...
Expressions can be entered for IF and ELSE IF conditional step. User can use stored variables, environment variables as expressions.
- Ensure that it is part IF/Else is added after an IF statement.
- You can use Numeric, Boolean comparisons, string values, and arithmetic operators.
- Environment variables and stored variables should be included in curly braces in expression.
- User can save the execution status of last executed step as anyone of the following.
- Using $$_STATUS directly in expression
- Saving status of step ($$_STATUS) for use as an expression.
User can save the execution status of a step in variable. This status can later be used as an expression of IF step. - Saving execution status for future reference. You need to use StoreVariable Action and in the second parameter column enter as "{$$_Status}". For more information about $$_Status and similar variables, refer to Qualitia System Variables.
Examples of Expressions: Anchor Examples of Expressions Examples of Expressions
Following The following are some examples of valid/invalid expressions, assuming var1 and var2 as stored variables.
...
- Select TC Step/Task after which you wish to add TC level conditional block.
- Click Condition >TC Condition > IF.
- .Select IF step of block, click the TC Step button to add TC step.
- Select recently added TC Step:
- click Condition >TC Condition >ELSE IF to add TC level ELSE IF block.
- click Condition >TC Condition > ELSE to add ELSE block.
...
- Select TC Step/Task after which you want to add TC level conditional block.
- Click Condition >TC Condition > IF.
- Select IF step of block and then click New to add new task or Import to add the existing task to the conditional block.
- To add Tasks to ELSE-IF or ELSE blocks, select the ELSE-IF or ELSE step of the conditional block and then click New or Import.
Note: If you want to add an Else-If or Else condition, it must be added after If condition.
Adding IF-ELSE Blocks to Task in TC
You can add the conditional blocks particularly for task.
Note: If you want to add an Else-If or Else condition, it must be added after If condition.
To add conditional blocks to a task from the Test case:
...