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:

About this task

Test UI exports the test projects to the specified project and the selected edit branch in Test Hub. Test Hub lists the exported test projects in the test navigator panel with the respective names suffixed with UTA. The exported test projects contain sub-folders such as tests, shots, and others. You can also edit and run the exported Web UI tests.
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

  1. Log in to Test Hub.
    The Projects page of the initial team space is displayed.
  2. Click My projects > project_name to open the project that contains the exported test assets.
    The Overview page of the project is displayed.
  3. Click Author > Test Editor.
    The Test Editor page and the test navigator panel are displayed.
  4. Click the exported test project to view the list of tests.
  5. Click the .yaml file to open the test.
    The test steps are displayed on the Test Editor page.
  6. Click any test step for which you want to view the details.
    The step details pane is displayed with the smartshot.
  7. Click the Previous Step icon and the Next Step icon to navigate between the previous and next test steps.

Results

You have viewed an exported test.

What to do next

You can perform the following tasks:
  • 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.