When you want to add a test inside the test as a step, you can use the
Run step from the Flow catalog.
Procedure
-
Click the
button displayed on the Test
Editor page.
The Edit button appears only when no active edit branch is
selected.
Alternatively, right-click the test in the test navigator panel and select
Edit.
The Edit branch dialog is displayed.
If the
Edit branch dialog is not displayed, then go to step
2.
-
Drag and drop the Run element under any test step as required
from the Flow catalog in the Catalog
tab.
-
Click the Run step.
The step details pane is displayed.
-
Perform the following steps in the step details pane:
- Select a test from the list in Path or drag and drop the
.yaml file in the designated field.
- Optional: Select a dataset from the list in Dataset or
drag and drop the .csv file in the designated field.
-
Click the Save icon
to save the modifications.
- Optional:
Click the expand icon
to view the embedded test steps.
The embedded test steps are displayed in greyed-out mode indicating that you can only
view the steps. You can click any step to view the step details. If you want to edit the
embedded test, you must right-click the Run step and click
Open. The embedded test is displayed in a new tab in
Test Editor. When you run the test, the step result indicators
are displayed for an embedded test as well.
Results
You have added a Run step from the
Flow catalog to embed a test inside another test.
What to do next
You can run the test and view the results. See Running a Web UI test.