Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 775 Bytes

stop-command.md

File metadata and controls

30 lines (20 loc) · 775 Bytes
description
Learn how to use the TEST.stop command to stop a UIlicious test during a test run.

Stop Command

TEST.stop

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).

Usage

TEST.stop()

Example

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.