Viewing test assets exported from DevOps Test UI
When you export Web UI test projects from HCL DevOps Test UI (Test UI) to HCL DevOps Test Hub (Test Hub), Test UI extracts test assets, processes them, and generates a .yaml file that contains the step details and the associated smartshots. You can then view the test assets of the Web UI test projects that are exported from Test UI.
Before you begin
You must have completed the following tasks:
- Ensured that you are assigned a role as a Project Owner or Tester in the project. See Managing access to the server projects.
- Exported a Web UI test project from Test UI. For more information, refer to Migrating Web UI test projects.
About this task
If the exported test contains a dataset, then a If
statement is added to check whether the variable has an assigned value and an
Assign statement is added to assign the value from
dataset in the test. And for compound tests with datasets, only an
Assign statement is added to assign the dataset. Also, if
the exported test contains an encrypted dataset, the encryption will be visible only
on the Data page and not on the Test Editor
page.
Note: If two datasets in a compound test
contain the same column name, then the value of the variable will be overwritten
by the value from the subsequent dataset, which might result in a failure of the
test run.
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space is displayed.
-
Click to open the project that contains the exported test assets.
The Overview page of the project is displayed.
-
Click .
The Test Editor page and the test navigator panel are displayed.
- Click the exported test project to view the list of tests.
-
Click the .yaml file to open the test.
The test steps are displayed on the Test Editor page.
-
Click any test step for which you want to view the details.
The step details pane is displayed with the smartshot.
-
Click the Previous Step icon
and the Next Step icon
to navigate between the previous and next test
steps.
Results
What to do next
- Edit the test in Test Editor. See Editing a Web UI test.Note: You must compare the test steps with the original test steps in Test UI and if anything is missing, modify the imported test before you run the test.
- Create an Assign step to link the dataset to relevant variables if the exported test has a dataset linked. Refer to the first Log statement for variable mapping information.
- Create a classification if any of the exported tests have an encrypted dataset. See Creating a classification.
- Run the test and view the results. See Running a Web UI test.