Ordered Tests


The last test we need to look at is the ordered test. An ordered test is simply a test you create that groups and orders other tests. This type of test can be useful if you want to define an overall module test, for instance. The ordered test is treated as a single test even though it groups many tests. This is also true for the results of an ordered test. The ordered test either fails or succeeds.

Creating an Ordered Test

You add an ordered test to a test project just like any other test. You can then use the ordered test definition window to add any type of test to the ordered test, with the exception of a load test. Load tests are outside the bounds of an ordered test.

Figure 22.43 shows an example of an ordered test. You can select tests from the left and add them to the ordered test on the right. You can then choose the order in which these items get executed. Finally, you can indicate whether the ordered test should continue upon the first failure.

Figure 22.43. An ordered test.





Microsoft Visual Studio 2005 Unleashed
Microsoft Visual Studio 2005 Unleashed
ISBN: 0672328194
EAN: 2147483647
Year: 2006
Pages: 195

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net