Add conditional steps

Conditions such as If and If/Else increase the control over test runs, making your script more resilient and robust. You can include conditions in your script.

To add conditional steps:

  1. Add a condition in one of the following ways:

    • Type If in an empty step and press Enter to form an If condition block. To form an If/Else condition block, type Else in another empty step.
    • Hover over an empty step line, click the button, and select Conditions > If / If-Else.
  2. Edit steps in an If or If/Else condition block. For details, see Manually add and edit steps.

  3. To use an output parameter to store the condition result, click Set condition result into output parameter in the step editing pane and select the output parameter. The result can be True or False.

See also: