Export (0) Print
Expand All

How to: Change the Order of Test Cases in a Test Suite

Visual Studio 2010

You might want to list and run your test cases in a specific order. For example, you might want to run the simplest tests first, because if these tests failed then the subsequent tests in your test suite would be blocked. You can change the order of your test cases in your test suite using Microsoft Test Manager, unless your test suite is a query-based test suite or has been created by adding a requirement or user story to your test plan.

When you run the tests from the test suite, the tests will be listed in Test Runner in the order shown in your test suite. However, you can still decide to run the tests in a different order if you want.

Change Order of Test Cases in a Test Suite

Use the following procedure to change the order of test cases in a test suite that is not a query-based test suite or created from a requirement or user story.

To change the order of test cases in a test suite

  1. Open Microsoft Test Manager.

    NoteNote

    To display the Microsoft Test Manager window, click Start, and then click All Programs. Point to Microsoft Visual Studio 2010 and then click Microsoft Test Manager 2010.

  2. From the Testing Center, click Plan and then click Contents.

    The Contents pane is displayed.

  3. To change the order of test cases in a test suite, select the test suite in the test suite hierarchy pane, and then click Order in the toolbar above the list of tests.

    The Order Test Cases dialog box is displayed. All test cases in the test suite are shown in the list of tests.

  4. Type the new value for the position of a test in Order. For example, to move a test to the top you can type 1 in Order, or to move a test to the end of the list type the total number of test cases in the suite in Order.

    This order will now be used when you run these tests.

    NoteNote

    To move a test case A (order 2) under an existing test case B (order 4), type 5 in Order. Test case A will now appear under test case B. To move a test case C (order 5) above an existing test case D (order 3), type 3 in Order. Test case C will now appear above test case D.

Community Additions

ADD
Show:
© 2014 Microsoft