Adding conditional logic and redefining the flow in tests from the Flow catalog

When you want to add conditional logic and redefine the flow to update a test, you can add such steps from the Flow catalog. You can add a test inside the test as a step and abort the test after marking it as failed. Also, you can insert the If, While, and Do-While conditions in the test to make a set of steps run only if a specific condition is met.

You can add conditional logic and redefine the flow by adding the following steps from the Flow catalog in the Catalog tab to update the test:
Catalog element Description Reference
Run You can embed tests within a test and run them. You can add a test after any step within the test. Adding a Run step
Fail You can abort the test and mark the test as failed. For example, you can add this element as a resulting step after checking a condition by using the If statement. Adding a Fail step
If You can insert the If logic in a test to make a set of steps run only if a specific condition is met. Adding an If step
While You can insert the While logic in a test to make a set of steps run in a loop only if a specific condition is met. Adding a While step
Do-While You can insert the Do-While logic in a test to make a set of steps run in a loop only if a specific condition is met after the first iteration. Adding a Do-While step