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
- 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.
-
Click any test step for which you want to view the result details.
The step details pane is displayed.
-
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. -
Click the Previous Step icon
and the Next Step icon
to navigate between the previous and next test
steps.
-
Perform the following actions to update the step by replacing the smartshot for
the step:
You can update both passed and failed steps.
- Click the Replace Smartshot icon
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
or
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
is disabled
even when the edit branch is active. You can click the
button that is displayed to open the test for
editing. - Select a smartshot, and then click Replace if you want to replace the smartshot for the step.
- Click the Replace Smartshot icon
-
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.