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
- Ensured that you are assigned a role as a Project Owner or Tester in the project. See Managing access to the server projects.
- Ensured that you have run the Web UI test.
- Read and understood the information in Edit branch overview and Create or select an Edit branch.
About this task
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space is displayed.
-
Click to open the project that contains the test assets.
The Overview page of the project is displayed.
-
Click .
The Test Editor page and the test navigator panel are displayed.
- Click Tests to view the list of tests recorded for the selected application.
-
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.
-
Perform the following actions to update a failed step:
- Click the color-coded step result
indicator.
The step details pane is displayed.
- Click the
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. - Close the step details pane.
- Click the color-coded step result
indicator.
-
Click any test step for which you want to view the result details.
The step details pane is displayed.
-
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. -
Click the Previous Step icon
and the Next Step icon
to navigate between the previous and next test
steps.
-
Perform the following actions to replace the smartshot for a step:
- Click the Replace Smartshot icon
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
to view the enlarged image. The image displays with the
controls to rotate right, rotate left, zoom in, and zoom
out. - Select a smartshot, and then click Replace if you want to replace the smartshort for the step.
- Click the Replace Smartshot icon
- Optional:
Click the Edit Step icon
to edit the step.
-
Click the Save icon
to save the
modifications.
Results
What to do next
- Run the test and view the results. See Running a Web UI test.
- View the Functional Report to verify the test steps with the variable assignment. See Viewing a Functional Report.