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 steps in test scripts by replacing smartshots.

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. Click any test step for which you want to view the result details.
    The step details pane is displayed.
  7. Click the Show Result toggle button in the upper-right corner of the step details pane to view the outcome of the step.

    The Result section displays the following details:

    • Step run status, such as Completed step or Failure, along with the Duration is displayed. The failure reason is displayed when the step fails.
    • Start Time and End Time, which you can view by clicking the Expand view icon .
    • Overall step outcome, such as PASS or FAIL.
    Note:
    The Show Result option can be enabled only if the test has already been run. You can disable this option and navigate to the Test Editor page.
  8. Click the Previous Step icon and the Next Step icon to navigate between the previous and next test steps.
  9. Perform the following actions to update the step by replacing the smartshot for the step:
    You can update both passed and failed steps.
    1. Click the Replace Smartshot icon Replace Smartshot that is displayed if the edit branch is active.

      The Replace Smartshot pop-up window is displayed with a list of smartshots under two different sections: Result Smartshots and Application Smartshots. The Result Smartshots displays the smartshots from the last test run, and the Application Smartshots displays all the available smartshots captured earlier for the application. You can hover over an image and click the zoom icon Zoom or Zoom to view the enlarged image. The image is displayed with the controls to rotate right, rotate left, zoom in, and zoom out.

      Note:
      If the test is run as part of the test suite, then the Replace Smartshot icon Replace Smartshot is disabled even when the edit branch is active. You can click the Open button button that is displayed to open the test for editing.
    2. Select a smartshot, and then click Replace if you want to replace the smartshot for the step.
  10. Click the Save icon to save the modifications.

Results

You have viewed the step-level result and updated the test.

What to do next

You can perform the following tasks: