...
Qualitia users can add conditional blocks using the If-Else button.
Task Level
...
Adding IF-ELSE Conditional Block to Task
...
Conditional Blocks
You can add if statement
Adding Expression for IF Step
Click the Conditional button, select IF,
Forming Expression for IF /ELSE IF:
Expressions can be entered for IF and ELSE IF conditional step. User can use stored variables, environment variables as expressions.
- 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 $$_STATUS using the StoreVariable action, or can directly use $$_STATUS in expressionanyone 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
- Saving status of step ($$_STATUS) for use as an expression.
...
- . 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
...
- The static or dynamic string data used should always be enclosed within double-quotes.
- The expression, having string as data, should always be enclosed within double-quotes.
- Boolean values are case-sensitive and should be used in lower case.
...
Adding ELSE IF block after IF
Adding Multiple ELSE IF Blocks:
Adding ELSE Block After IF Step
You can add single or Else If conditions within an IF block.
You can add Else block within an IF block.
Adding the Task Step on the TC Screen
...