Rerunning failed tests in a suite
When you run tests in a suite, a few tests might fail. You can rerun the failed tests instead of rerunning the suite.
Before you begin
You must have completed the following tasks:
- Ensured that you are assigned a Team Space Owner, Project Owner, or Member with a Tester role to create or edit a test resource.
- Ensured that a suite is available in your project.
About this task
The Run only failed option is available only if the suite ran previously and contained failed tests. When the Run only failed option is available, you can select it to rerun the tests that failed.
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 the .dts.yaml file in the list of Suites to open the
suite.
The tests, suites or both are displayed on the Suite Editor page.
-
Click the Try Now icon
, and then select the Run only failed option.
You can view the following stages on the progress bar during the test run:- In transition: The test setup is in progress.
- Running: The test is actively running.
- Complete: The test run is completed.
- During the Running phase, you can view the
following details:
- A checkmark
after each test or suite that passes, and a crossmark
for any failed test or suite.
- The Results tab displays the test as In Progress during the test run.
- A checkmark
- After the test run is completed, you can view the following results:
- The Results tab displays the test as Pass or Fail.
-
Click
to open the Results page, where you can view the results, reports, and logs of the completed test run.
Results
What to do next
You can view the following information:
- The details of the suites and individual test results from the Run Details tab.
- The console output, which includes error messages and logs. See Accessing console output.
- The test results, reports, and logs from the Results page after the test completes the run.