description |
---|
Learn how to use the TEST.stop command to stop a UIlicious test during a test run. |
Stops the test.
Note that tests will automatically stop when there are no more commands.
Use this command to manually stop test in specific scenarios with conditions (see example).
TEST.stop()
if(I.see$("Out of stock")){ // I.see$ is the same as I.see, but any errors are supressed
TEST.stop()
}
This test will stop if the text "Out of stock" is seen on the page.