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 Manager and Test View windows, 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, select the test in the Test View window and click Run Selection, or check the test in the Test Manager window and click Run Checked Tests. For more information about how to run tests, see How to: Run Selected Tests.
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
- 1/4/2012
- Namrata Sinha
The only problem is that the tests it self have to be moved to a other test-list, because if i select ALL test i RUN ALL-TEST.
So i run my tests (that have to be orderd) and the ordered test it self.
Can't i let say: Disable the test from running NOT in a ordered test?
So that i can still group them together in the same test-list, now i have to store the test at two different paths of the test-list.
So that i can CHECK one test-list and run them all. (And the test that need a type of order to work, don't get run alone, but only from a ordered test)
Greatings Roger Keulen and HaPpY cOdInG.
- 10/19/2011
- Roger Keulen
