How to: Save and Open Test Results in Visual Studio
After you run a Web performance test or a load test in Visual Studio, the results of the test that was executed in that run are saved automatically on your computer in a test run file. You can open any test runs that were saved, view results of recently run tests, or save copies of test runs to a different location. How many test runs are saved automatically depends on a setting in the Options dialog box.
This topic is about using Visual Studio to save and open Web performance test and load test results. For information about viewing automated test results in the Test Explorer, see Run Tests from Test Explorer. For more information about how to save and open test results in Microsoft Test Manager, see How to: View Manual Test Case Results Using Microsoft Test Manager.
Microsoft Test Manager is provided as part of Visual Studio Ultimate, Visual Studio Premium, and Visual Studio Test Professional products.
Visual Studio Ultimate
How many test runs are saved by default dictates how many previously run tests you can open or copy to a different location.
To change how many test runs are automatically saved
On the Tools menu, choose Options.
In the Options dialog box expand Web Performance Test Tools, choose Test Execution, and under Test Results Management set the number of tests that you want to have saved automatically.
How you open test results depends on how they were saved. If you run multiple tests in a single session you can quickly open the previously run tests. You can also open tests that were saved automatically, or you can open tests that you saved to a chosen location.
To open results of recently run tests
In the Test Results window, in the Select Run list, choose the test run you want to open.
How many runs are available depends on how many tests you ran during the current session. It may also be limited by a setting in the Options dialog box.
(Optional) In the Result list, right-click a test and choose View Test Results Details to see more information about that particular test.
(Optional) For unit tests, in the Result list, double-click a test to go to that test method in your unit test code. If double-clicking does not open your test code, you may need to change a setting in Test Execution section of the Test Tools Tab of the Options dialog box.
(Optional) To view test result details, including any data and diagnostic adapter attachments, choose Run Details in the toolbar. For more information, see Setting Up Machines and Collecting Diagnostic Information Using Test Settings.