Can I branch [Scenarios] with if statements and for / while statements?

Prev Next

At this time, we do not support branching or looping when testing.

However, there are ways to create a single [Scenario] without a need for branching:

  • If you want to check if one of the branches fails:
    In the Scenario Edit Page, click on the step that you want to check for failures. Click on the When this step fails dropdown, select Ignore and continue.

  • If there is a large number of steps in the branching Scenario:
    Create a [Step Group] for the test content up to the point of branching. Then, select [Step Group] from the New Scenario Page and create a scenario for each branch.

Related article: