Document toolboxDocument toolbox

Conditional Structure (IF-ELSE)

Qualitia gives provision to execute a step, a group of steps, tasks, or a group of tasks based on different conditions.

Key Points

  • You can add If-Else block to a task and test case much like conditional structures used in programming languages, with a limitation that nested IF blocks are not supported.
  • If block has the following structure:
    • IF – ELSE IF –ELSE – ENDIF
    • You can add zero or more occurrences of ELSE-IF and zero or exactly one occurrence of ELSE. Zero or multiple occurrences of IF blocks can be added to a task.
  • It is mandatory to add expression to evaluate for IF and ELSE IF steps. You cannot save these tasks with blank expressions.
  • Expressions are much like the ones used in programming languages.
  • You can form conditions based on the status of previous step, values of environment variables/stored variables and arithmetic, logical and bitwise operators.

Related Topics

Not finding what you need?