A
A
Artem Lisovsky2014-08-13 15:52:17
Automation
Artem Lisovsky, 2014-08-13 15:52:17

What to choose to emulate pseudo-random user actions?

In fact, I am looking for the best system for organizing functional autotests.
For example, the simplest case - the page displays an element without id, classes. It is only known in what limits of the screen it is displayed. It is necessary to launch the browser in incognito mode, follow the link, click in a random place in the given area and simulate random actions on the open page - fill out the form with random data, click in different (x, y), follow random links, etc.
In general, a kind of monkey-testing with an algorithm of actions.
Tried Selenium. Surprised that he does not know how to do a lot (or did I not find how to do it?). I opened Selenium, protutorialized, stuck that you can’t access an element without an id (only rip it out with xpath. are you serious?), work with coordinates is poor and otherwise there are a lot of unpleasant differences (you can’t randomize actions, all test cases should be clearly described, etc). Spat.
Went looking further. I opened gremlin.js ( habrahabr.ru/post/216805/) - an excellent monkey-testing library. You just need to put js on every open page. The option is not bad, but I would like alternatives of course.
The next hero is AutoClickerExtreme. Implemented everything I wanted. Cons - the program is unstable (flies often), paid, it is difficult to work out all sorts of sorties and the randomization is small after all.
What software is still worth touching to complete the picture?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Smirnov, 2014-09-18
@polarnik

selenium. You can refer to an element without an id. You can generally get all the divs on the page, select a random one from the list. Click on it. You can choose, for simplicity, by the name of the tag.
Links to the documentation are on the page https://code.google.com/p/selenium/
Let's say you use C# as a programming language, then the description of selecting elements by tag name:
selenium.googlecode.com/git/docs/api/ dotnet/html/M...
Namely: FindElementsByClassName
A more flexible method usually helps:FindElementsByCssSelector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question