|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
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 Team Edition for Testers.
To edit a test (all test types except unit tests)
In Test Manager, Test View, 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 Test Manager or Test View, 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.
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.