What is better for web testing? Recording automation or coding?

I am working on a new project and I would like to know which automation tool is best used. Should I write or code?

+4
source share
5 answers

I worked a lot with Selenium browser automation software packages, and I found that the record re-opens the existing application design, while coding manages the design in a flexible and supported way.

In particular, the practice that I found best is to write a high level script, pretending that you don't know what the existing HTML markup says. Try to make the script readable.

open / click "Ask a question" type title, "What does ?SYNTAX ERROR ON 20 mean?" type body "This is an example question, asked by an automated testing robot." click "Ask your question" 

If the script does not start, do not modify the script - change the HTML. Add identifiers or classes or headers to the elements where the script β€œtells you” that it wants them. This will take a little longer, but it ensures that your script is easily accessible and obvious, and it simplifies further scripts.

+11
source

Coding is much better. When using recording systems, if any aspect of the page changes, you need to rewrite the entire test suite. With coding and proper design, you can change the functions that interact with this area, and all tests will start working.

+7
source

I would say that both of them - write down as much as possible, and then adjust the recorded code to check how you need it. This assumes, of course, that your recorder emits code that you can edit.

+4
source

So far, QTP is the best. But keep in mind - this is a powerful platform. If you do not want to drown in servicing recording / playback scripts, you will need to develop your own framework (go to the keyword) or buy HP BPT.

There are also a number of low budget and open source tools.

+2
source

It also depends on the complexity of the web application you want to test.

Talking about it differently and thinking about working in the office also depends on how close you work with developers.

Waiting times for finding features and app items can be prevented when you find out that your DEVELOPER commands have your back.

What is your case?

PS: better coding;)

0
source

Source: https://habr.com/ru/post/1277238/


All Articles