H
H
HaruAtari2014-04-09 07:35:25
JavaScript
HaruAtari, 2014-04-09 07:35:25

How to test javascript interface?

Good morning.

Tell me, what are the libraries for functional testing of javascript interfaces? Something at the input: click on the button, check that a window has popped up, enter text in the field, send the form, check the answer ...

At first I tried to do this through selenium from the server - a thankless task. The code is too complex.

I thought, since this case works on the client, then it is most likely necessary to test it on the client. But I did not find any libraries for this. Who uses what? Please share. The code is written in jquery.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
pomeo, 2014-04-09
@pomeo

phantomjs.org

S
Shavadre, 2014-04-09
@Shavadre

Hmm... It seemed to me that "testers" are doing all this, i.e. people.

M
maxaon, 2014-04-09
@maxaon

Testing, roughly speaking, can be divided into two types:
1. Unit and end-to-end testing (code testing) - there are many solutions, for example, karma and jasmine .
2. GUI testing - I can only remember selenium and a tutorial from Yandex

S
Sild, 2014-04-09
@Sild

why not use selenium on the client? he is essentially a bot, once on the client and works

Y
Yunus Gaziev, 2014-04-09
@BBoyJuss

Gremlins.js I think this is what you need

Demonstration of work (gif picture)
207ee1438c598890b5c12997c1ed3169.gif

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question