Selenium IDE - crash stop test

Is it possible to start a stop on failure when starting the entire test suite?

He currently stops this unsuccessful test and then continues to execute the next test.

I want him to just stop and fail on the first crash.

thanks

+6
source share
4 answers

I found https://addons.mozilla.org/en-US/firefox/addon/power-debugger-selenium-ide/ , which is a Selenium IDE plugin that adds a Pause on fail button in the Selenium IDE.

+8
source

In selenium ide we can add the Pause on fail button it is pause on fail by simply installing one plugin in the Selenium IDE. When pause on failure is enabled, the Selenium IDE pauses the test case when an error occurs or the command fails

Install the plugin from https://addons.mozilla.org/en-US/firefox/addon/power-debugger-selenium-ide/

+1
source

I don’t know if this problem has been resolved, but I use a plugin to solve this problem.

The plugin is "Selenium debugger" and I was able to download it from

https://addons.mozilla.org/en-US/firefox/addon/power-debugger-selenium-ide/

install using firefox. Then, as soon as firefox restarts, another icon will appear on the Selenium toolbar (pause on crash). It works for me!

The only thing to note is that if the script does not work in the last line of the test CASE, it can still continue the next test case in the package. The way I use it is to add a “pause 100” entry to the last line of each test case so that the plugin can “connect” to it.

I hope he helps

0
source

You can write assert in if and false stop execution.

-1
source

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


All Articles