共用方式為


How to: Save and Open Web Performance and Load 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 Test Results Using Microsoft Test Manager.

Note

Microsoft Test Manager is provided as part of Visual Studio Ultimate, Visual Studio Premium, and Visual Studio Test Professional products.

Requirements

  • Visual Studio Ultimate

Change how many test runs are automatically saved

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

  1. On the Tools menu, choose Options.

  2. 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.

Open test results in Visual Studio

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

  1. From the VIEW menu, choose Other Windows and then choose Test Results.

  2. In the Test Results window, in the Select Run list, choose the test run you want to open or choose Manage test runs to browse for a test from the Test Runs window.

    How many runs are available depends on how many tests you ran during the current session.

  3. (Optional) In the Result list, right-click a test and choose View Results to see more information about that particular test.

  4. (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.

See Also

Other Resources

How to: Delete Test Results

Running Tests

Running System Tests Using Microsoft Visual Studio

How to: Analyze Test Runs Using Microsoft Test and Lab Manager