Viewing step-level results and updating tests

You can view the step-level results of each step after running a Web UI test. You can edit and update the failed steps in test scripts.

Before you begin

You must have completed the following tasks:

About this task

HCL DevOps Test Hub (Test Hub) collects the UI data during the test run and smartshots that are captured during the test run can be used to update the failed step. If an object is not identified during the test run, then the step fails. The test steps are indicated in different colors to specify the status of each test step. For the failed step, you can replace the smartshot with the latest one from the last test run. Also, you can update a step by replacing the smartshot and selecting a target element.

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 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 Tests to view the list of tests recorded for the selected application.
  5. Click the .yaml file to open the test.
    The test steps are displayed on the Test Editor page.
    Note: If you have just run the test and the edit branch is not published, then you can click the color-coded step result indicators that are displayed for each step to view the result details.
  6. Perform the following actions to update a failed step:
    1. Click the color-coded step result indicator.

      The step details pane is displayed.

    2. Click the Replace Smartshot icon to replace the smartshot with the latest one from the last test run.

      If the edit branch is active, the existing smartshot is replaced with the smartshot captured from the last test run. A confirmation message is then displayed.


      If the edit branch is not active, the Edit branch dialog is displayed. You must select an existing branch or create a new branch. The smartshot is replaced, and a confirmation message is displayed.

    3. Close the step details pane.
  7. Click any test step for which you want to view the result details.
    The step details pane is displayed.
  8. Click the View Result icon .
    The result details such as test result, smartshot, start time, end time, and the duration of the step are displayed.
  9. Click the Previous Step icon and the Next Step icon to navigate between the previous and next test steps.
  10. Perform the following actions to replace the smartshot for a step:
    1. Click the Replace Smartshot icon Replace Smartshot that is displayed if the edit branch is active.

      The Replace Smartshot pop-up is displayed with a list of smartshots available as a replacement for the smartshot of the step. You can hover over an image and click the zoom icon Zoom to view the enlarged image. The image displays with the controls to rotate right, rotate left, zoom in, and zoom out.

    2. Select a smartshot, and then click Replace if you want to replace the smartshort for the step.
  11. Optional: Click the Edit Step icon to edit the step.
  12. Click the Save icon to save the modifications.

Results

You have viewed the step-level result.

What to do next

You can perform the following tasks: