Bagikan melalui


How to: Open a Test to Edit

The Team System testing tools support several kinds of tests. Depending on the test type, tests consist of coded methods, sequences of HTTP requests, textual descriptions of test steps, groupings of other tests, or other kinds of content.

You sometimes have to open a test to edit it to change the way it functions. The following procedure describes how to open a test by using the windows and tools of Visual Studio Team System Test Edition.

To edit a test (all test types except unit tests)

  • In the Test List Editor, Test View window, or Solution Explorer, right-click the test you want to open and then click Open, or double-click the test.

    The test opens in the appropriate way for the test type. For example, for a manual test in Microsoft Word format, the test opens in Microsoft Word.

To edit a test (unit tests)

  • In the Test List Editor or Test View window, right-click the test you want to open and then click Open, or double-click the test. The test's source-code file opens and scrolls to the test method.

    Note

    Because a unit test is a method within a class, you can navigate to it in the same way that you can navigate to any other method in code. For example, you can navigate by using the Class View window or by using the Members list box of the Visual Studio code editor.

For unit tests, the source code editor opens with the appropriate function highlighted.

See Also

Concepts

Team System Testing Tools Windows

How to: Create and Run a Unit Test