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

  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 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.
  5. Click the Try Now icon 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 check mark icon after each test or suite that passes, and a crossmark cross mark icon for any failed test or suite.
      • The Results tab displays the test as In Progress during the test run.
    • After the test run is completed, you can view the following results:
      • The Results tab displays the test as Pass or Fail.
  6. Click image of an icon to open the Results page, where you can view the results, reports, and logs of the completed test run.

Results

You have rerun the failed tests in a suite.

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.