Exporting Web UI test projects to DevOps Test Hub
You can migrate Web UI test projects to a compatible format and export them to HCL DevOps Test Hub (Test Hub) so that you can edit and run the exported tests in Test Hub.
Before you begin
- Configured the URL and offline user token of Test Hub in the page of HCL DevOps Test UI (Test UI). See Publishing test results to DevOps Test Hub.
- Ensured that the test project to be exported is present in the Test UI workspace and the project contains a test suite. Otherwise, the project does not get displayed in the Export wizard.
- Ensured that you are the owner of the target project in Test Hub.
- Added a repository for the project to export test assets.
About this task
When you export Web UI test projects that contain assets such as tests, variables, datasets, and application visuals to Test Hub, Test UI extracts test assets, and transforms them into a compatible format. For each test suite, Test UI generates a .yaml file that contains the step details and the associated smartshots.
The export feature supports the following scenarios:
- Migration of test projects that contain Web UI tests, and compound tests and AFT
Suites with only Web UI tests. The individual Web UI tests and compound tests are listed
as tests (.dtx.yaml files) after migration in Test Hub, whereas AFT Suites are
listed as suites(.dts.yaml files).Restriction: You cannot export tests such as HTTP test, functional test, Selenium test, mobile test, SAP test, API test, and Windows test.
- Migration of compound tests that contain a linked dataset.
- Migration of tests that contain an encrypted dataset. Note: After migration, you must create a classification to play back the test with an encrypted dataset in Test Hub. For more information, refer to Adding an encrypted dataset to a classification.
- Migration of Web UI tests that contain JavaScript alerts such as alert, prompt, or confirm dialogs, and drag-and-drop actions.
Procedure
- Go to the UI Test perspective.
-
Perform one of the following steps to open the Export
wizard:
- Click from the menu.
- Right-click the project in the test navigator, and then click Export.
The Export wizard is displayed.
- Expand the Test folder, and then select Web UI assets to Test Hub Web UI assets.
-
Click Next.
The Web UI assets to Test Hub Web UI assets screen is displayed.
- Select test projects, or expand a project and select specific tests to be exported under Select Project(s).
- Select a Test Hub project and the repository to host the exported test assets under Select a Test Hub project and repository to migrate to.
-
Select your action in Select/Create an Edit Branch:
- Perform the following steps to select an existing Edit branch:
- Select Use an existing edit branch.
- Select an Edit branch from the list if Edit branches already exist in the selected branch of the repository.
- Perform the following steps to create the Edit branch:
- Select Create new edit branch.
- Enter a name for the Edit branch in the Branch Name field.
- Click Save.
- Perform the following steps to select an existing Edit branch:
-
Click Finish.
The progress bar is displayed with the status of the export process.
You can cancel the process by clicking the
icon in the Progress pane. -
Perform one of the following steps in the Migration Complete
dialog:
- Click OK to close the dialog.
- Click Migration Report to view the report. The report is displayed in a web browser with the following details:
- Total number of files migrated in each project
- Number of passed and failed tests
- Total number of steps migrated in each project
- Number of passed and failed steps
- List of failed test suites and failure details