Creating a test module from an existing set of steps
When a set of steps are repeated and required in multiple tests, you can create a test module for such repeatable steps. You can select the required steps that are in sequence from an existing test and extract them to create a new test module. After extraction, the selected steps are replaced by the Run step and the new test module is listed in the test navigator panel.
Before you begin
You must have completed the following tasks:
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Read and understood the information in Edit branch overview and Create or select an Edit branch.
- Ensured that your project contains a Web UI test.
- Opened the test in Test Editor. See Editing a Web UI test.
About this task
- A test with the application or page URL details in the Open step. You can play back this type of test.
- A module without the application or page URL. You must add the required URL by adding the details in the Configure settings and variables step or Open step.
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 3. - Select an existing edit branch or create a new edit branch.
-
Right-click a step or a container and click
Select.
Checkboxes are displayed for each step.
- Select the checkboxes to select a set of steps or a container with multiple steps in sequence.
-
Right-click a selected step and click Extract
Steps.
The Create Test from Steps dialog is displayed. The Extracted Content text box displays the list of selected steps and the Application field displays the application for which you create the test.
- Enter a name for the test in Asset Name.
-
Select an existing folder from the list in Location to
save the test assets that you are creating.
Alternatively, click New Folder to create a folder to save the test assets.
-
Click Create.
The selected steps are replaced by the Run step for the new test module and the newly created test module is listed in the test navigator panel.