...
Qualitia users can add conditional blocks using the IfELSE-Else IF button.
Task Level ELSE IF
...
Blocks
Adding ELSE-IF
...
Conditional Block to Task
Adding Expression for IF Step
...
Data type | Example | Valid/Invalid |
---|---|---|
Any |
| All are invalid as assignment operator is not allowed in expression |
String |
|
|
Integer |
|
|
Float |
|
|
Boolean |
|
|
Logical operators | (var1=true , var2=false)
|
|
Arithmetic |
|
|
Relational Operators |
|
|
Bitwise Operators | (var1=60 , var2=13)
|
|
Special Characters | Using Qualitia Special characters:
Always use escape character ~ before qualitia special characters ~,^,{,} |
|
Adding ELSE IF block after IF
...
Adding A TC Step and Task Step
Storing Execution Status of TC Step
The execution status of TC step can be stored same as task step.
ELSE IF
...
Blocks on the Test Cases Screen
On the Test Cases screen you can add conditional blocks to task and Test Case. The Test Case level ELSE-IF -ELSE blocks can contain tasks and the contained tasks in turn can have task level ELSE-IF -ELSE blocks.
Adding ELSE-IF
...
Blocks to Test Case
You can add the TC or Task condition using the IfELSE-Else IF button from the Testc ases screen.
To add TC or Task Condition:
- 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.
Adding Tasks in Test Case Level ELSE-IF
...
Blocks
You can add new tasks or import tasks from the existing library of tasks inside the conditional blocks.
To add tasks in TC level IfELSE-Else IF blocks:
- 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 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.
Adding ELSE-IF
...
Blocks to Task in TC
You can add the conditional blocks particularly for task.
...
- Create a new test case and add required tasks to it.
- Select the step after which the conditional block needs to be added, or the task row to which the block needs to be added.
- Click the IfELSE-ElseIF button > Task Condition > IF.
- Once If block is added to task, ELSE IF or ELSE blocks can be added by selecting proper task step and using the IfELSE-ElseIF button.
- For adding expression, double-click IF or ELSE IF.
- Use the syntax of expression is as described earlier.
Execution flow of conditional (ELSE-IF-ELSE) blocks will be as follows:
...