You can add a step to open a URL that is required for any test step by using the
Open step from the UI 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 Open element under any test step as required
from the UI catalog in the Catalog
tab.
-
Click the Open step.
The step details pane is displayed.
-
Perform the following steps in the Details tab of the step
details pane:
- Enter the URL of the page to be opened in the URL text
box.
- Select Attach to open the URL in a new tab or window.
- Enter a title to identify the container in the Context text
box.
- Enter a description about the container in the Note text
box.
-
Click the Advanced tab.
- Optional:
Select the Disable checkbox if you want to disable the
step.
The selected step is greyed out.
- Optional:
Perform the following steps to set the timeout value:
- Select the Override Timeout checkbox.
- Specify the duration of time that Test Hub must wait for the step to
be completed in Duration.
- Select the unit of time for the timeout in
Unit.
Alternatively, you can select the Code checkbox and enter the timeout and unit in Duration.
-
Close the step details pane.
-
Click the Save icon
to save the modifications.
Results
You have added an Open step from the
UI catalog to add user actions in a Web UI test.
What to do next
You can run the test and view the results. See Running a Web UI test.