PHP: Make test fail

In order to make a test fail due to changes in data, click Editor->Control->EVAL to insert a PHP code evaluation.

See How to evaluate a PHP commands to manipulate variables and clipboard (Experimental feature) for details on EVAL action.

EVAL error("Text 'Step 1' not found.")

Makes the test fail with “Text ‘Step 1’ not found.” as error message:

Befor playing EVAL step.
After playing EVAL error(“Text ‘Step 1’ not found.”)

Example:

If we would like to assert that the clipboard contains value “Testing” use

EVAL $CLIPBOARD=="Testing"||error("myerror")

Free Webinar

Uncover the secrets of automated testing in the free webinar.