Skip to main content

How to add and use Conditional Step

Ines avatar
Written by Ines
Updated over a week ago

What is a Conditional Step?

A Conditional Step (IF) evaluates a condition during a Test Run and determines the next action based on the result.

Instead of always executing steps sequentially, a Conditional Step allows your Test Case to react dynamically by stopping the run or jumping to another step.

When to use it

  • Execute steps only when a specific condition is true.

  • End the Test Run immediately when a critical condition is not met.

  • Jump over steps and continue later in the Test Case when a condition is met.

How to add a Conditional Step

  1. Open your Test Case.

  2. Click Add New Step.

  3. In Step type, select Conditional Step (IF).

Configure the Step

  • Condition: Define what should be evaluated

Conditions can check the presence, visibility, state, or value of elements, and can also use variables.

Examples:

  • Cookies banner appears

  • Login button exists

  • Submit button is disabled

  • Error message is visible

  • Page URL contains /dashboard

  • Text equals “Welcome back”

  • Displayed username matches [USERNAME]

When the condition is met, the Conditional Step can:

  • Stop : End the current Test Run immediately.

  • Go to step : Jump forward to another step in the same Test Case.

    • This option is available only if there are steps present after the Conditional Step.

    • Choose the target step you want to continue from.

    • When the jump happens, all steps between the Conditional Step and the target step are not executed and marked with a Skipped status.

If the condition is not met, the Test Case continues with the next step as usual.

Did this answer your question?