...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
- Numeric, Boolean comparisons, string values and arithmetic operators are allowed.
- Environment variables and stored variables if used should be included in curly braces in expression.
- User can save the execution status of last executed step as $$_STATUSusing StoreVariable keyword, Or directly use $$_STATUS in expression ($$_Status is not case sensitive).
- Using $$_STATUS directly in expression.
- Saving status of step ($$_STATUS) for use in expression.
User can save the execution status of a step in variable. This status can later be used in expression of IF step.
- Saving execution status for future reference.
More about $$_Status
- $$_Status is not case sensitive
- It gets overridden after each step is executed, hence can store the status of last executed step only.
Values of $$_STATUS variable
Value | Description |
0 | Success |
1 | Fail |
2 | Defect |
-1 | Not executed |
- $$_Status does not store any status for conditional steps like "IF", "ELSE IF", "ELSE" and END IF.
- If a user declares environment variable named "$$_STATUS", its value is ignored.
Examples of expressions:
Following are some examples of valid/invalid expressions, assuming var1 and var2 as stored variables.
Note
- The static or dynamic string data used , should always be enclosed with within double quotes.
- The expression, having string as data, should always be enclosed with within double quotes.
- Boolean values are case-sensitive and should be written in small case.
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)
| {var2}==true
|
|
---|---|---|---|
Arithmetic |
|
| |
Relational Operators |
|
| |
Bitwise Operators | (var1=60 , var2=13)
| {var2})==61
|
|
Special Characters | Using Qualitia Special characters:
|
|
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
...
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
The execution status of TC step can be stored same as Task step.
Anchor | ||||
---|---|---|---|---|
|
...
- Focus/Select TC Step/Task after which you wish to add TC level IF-ELSE block
- Click on Condition->TC Condition->IF
- Select IF step of block, click on "TC Step" to add TC step
- Select TC step, just added and click on Condition->TC Condition->ELSE IF to add TC level ELSE IF block. Or Condition->TC Condition-> ELSE to add ELSE block.
Anchor | ||||
---|---|---|---|---|
|
...
- Select TC Step/Task after which you wish to add TC level IF-ELSE block
- Click on Condition->TC Condition->IF
- Select IF step of block, click on "New Task" to add new task, or Import Task to add existing task to IF-ELSE block.
- To add Tasks to ELSE-IF or ELSE blocks, select the ELSE-IF or ELSE step of conditional block and click on "New Task" or "Import Task"
Anchor | ||||
---|---|---|---|---|
|
...