Run |
You can run a test that is created for the same application as the current
test. You can add the test after any step within the test. |
Perform the following steps:
- Drag and drop the Run element under any test step
as required.
- Click the Run step.
The step details pane is
displayed.
- Select a test from the list in Path or drag and
drop the .yaml file in the designated field.
|
Fail |
You can abort the test and mark the test as failed. For example, you can
add this element as a resulting step after checking a condition by using the
If statement. |
Perform the following steps:
- Drag and drop the Fail element under any test step
as required.
- Click the Fail step.
The step details pane is
displayed.
- Enter a custom message in the Fail statement text
box.
|
If |
You can insert the If logic in a test to make a set of
steps run only if a specific condition is met. |
Perform the following steps:
- Drag and drop the If element under any test step as
required.
- Click the If step.
The step details pane is
displayed.
- Select a variable in the Value 1 list.
- In the Operator field, indicate the basis of
comparison of the two operands. Note that the two operands are strings.
- Enter a value to be compared with the value of the selected variable in
the Value 2 list.
Alternatively, you can select the
Code checkbox to enter the If statement in the
text box.
- Select the Negate the operator checkbox to negate a
condition when you perform a comparison.
For example, if the result of any
condition is true, the result returns
false
|
While |
You can insert the While logic in a test to make a set of
steps run in a loop only if a specific condition is met. |
Perform the following steps:
- Drag and drop the While element under any test step
as required.
- Click the While step.
The step details pane is
displayed.
- Select a variable in the Value 1 list.
- In the Operator field, indicate the basis of
comparison of the two operands. Note that the two operands are strings.
- Enter a value to be compared with the value of the selected variable in
the Value 2 list.
Alternatively, you can select the
Code checkbox to enter the While
statement in the text box.
- Select the Negate the operator checkbox to negate a
condition when you perform a comparison.
For example, if the result of any
condition is true, the result returns
false
|
Do-While |
You can insert the Do-While logic in a test to make a set
of steps run in a loop only if a specific condition is met after the first
iteration. |
Perform the following steps:
- Drag and drop the Do-While element under any test
step as required.
- Click the Do While step.
The step details pane is
displayed.
- Select a variable in the Value 1 list.
- In the Operator field, indicate the basis of
comparison of the two operands. Note that the two operands are strings.
- Enter a value to be compared with the value of the selected variable in
the Value 2 list.
Alternatively, you can select the
Code checkbox to enter the
Do-While statement in the text box.
- Select the Negate the operator checkbox to negate a
condition when you perform a comparison.
For example, if the result of any
condition is true, the result returns
false
|