Ordered Tests Overview

An ordered test contains other tests that you want to run in a specific order. An ordered test appears as a single test in the Test List Editor and the Test View window, and its results appear in a single row in the Test Results window.

An ordered test can contain any test type except load tests. However, if you run an ordered test remotely, or from a command line, any manual tests that are contained in the ordered test are temporarily removed from it for this test run, and a warning is displayed.

Running an Ordered Test

To run an ordered test, do one of the following:

  • Select the test in the Test View window and click Run Selection.

  • Select the test in the Test View window, right-click in the window, and then click Run Selection.

  • Select the check box next to the test in the Test List Editor and then click Run Checked Tests.

  • Select the check box next to the test in the Test List Editor, right-click, and then click Run Checked Tests.

For more information about how to run tests, see How to: Run Selected Tests.

Continuing the Run After Individual Tests Fail

The page in which you author an ordered test contains a check box that directly affects how the test is run. In your ordered test, selecting Continue after failure means that the ordered test will continue to run regardless of the failure of one or more contained tests. Not selecting Continue after failure means that the ordered test will stop running after the first occurrence of a test failure.

Viewing the Results of Ordered Tests

The result of an ordered test appears in a single row in the Test Results window. You can also see results for each test that was run as a part of the ordered test; in the Test Results window, double-click the row for the ordered test that contains the individual test whose results you want to see. These results then appear in a Test Details page in the main editing window of the Microsoft Visual Studio 2005 IDE. From this Test Details page for the ordered test, you can view the detailed results of an individual contained test by double-clicking it in the list of contained tests.

See Also

Concepts

Manual Tests Overview