Versions Compared

Key

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

...

Expressions can be entered for IF and ELSE IF conditional step. User can use stored variables, environment variables as expressions.

  1. Ensure that it is part IF/Else is added after an IF statement.
  2. You can use Numeric, Boolean comparisons, string values, and arithmetic operators.
  3. Environment variables and stored variables should be included in curly braces in expression.
  4. 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.

...

  1. Select TC Step/Task after which you wish to add TC level conditional block.
  2. Click Condition >TC Condition > IF.
  3. .Select IF step of block, click the TC Step button to add TC step.
  4. Select recently added TC Step:
    1. click Condition >TC Condition >ELSE IF to add TC level ELSE IF block.
    2. click Condition >TC Condition > ELSE to add ELSE block.

...

  1. Select TC Step/Task after which you want to add TC level conditional block.
  2. Click Condition >TC Condition > IF.
  3. Select IF step of block and then click New to add new task or Import to add the existing task to the conditional block.
  4. 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:

...