Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

Image RemovedClick 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.

  1. You can use Numeric, Boolean comparisons, string values, and arithmetic operators.
  2. Environment variables and stored variables should be included in curly braces in expression.
  3. 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

...

Image Removed

    • . You need to use StoreVariable Action and in the second parameter column enter as "{$$_Status]".  For more information about $$_Status and

...

    • similar variables,

...

Examples of Expressions:

Anchor
Examples of Expressions
Examples of Expressions

...

  1. The static or dynamic string data used should always be enclosed within double-quotes.
  2. The expression, having string as data, should always be enclosed within double-quotes.
  3. Boolean values are case-sensitive and should be used in lower case.

...

Adding ELSE IF block after IF

Image Removed

Adding Multiple ELSE IF Blocks:

Image Removed

Adding ELSE Block After IF Step

Image RemovedYou 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

...