Share via


Analyzing Load Test Results Using the Load Test Analyzer

 

Find bottlenecks, identify errors, and measure improvements in your app when you use the Load Test Analyzer. Analyze load test results in these ways:

  • Monitor a load test when it is running.

  • Analyze a load test after it has completed.

  • View results from a previous load test.

You can also create reports that compare two or more reports for trend analysis to share with stakeholders. See Reporting Load Tests Results for Test Comparisons or Trend Analysis.

Requirements

  • Visual Studio Enterprise

You can complete these tasks whether you run your load test from Visual Studio Enterprise or from the command line, and whether you run your load test on a single computer or on a remote machine.

Differences between Analyzing a Running and a Completed Load Test

When you run a load test, the Load Test Analyzer displays in a separate tab, together with the name of your load test and the time that the test was started (for example, LoadTest1 [12:40 PM]). When a load test runs, a smaller set of the performance counter data is maintained in memory. You can monitor this set of data when your load test runs. After a load test has completed, you can analyze the full set of data from the database. Differences exist in what data is displayed when a load test runs and what data that you can see after a load test has completed. For example, 90 percent and 95 percent response time data is not calculated until the load test has completed. Some differences also occur in the functionality of the tools that are available to analyze the data.

When you run the load test, two views are available: The Graphs view and the Tables view. The Graphs view allows you to graph performance counters that are collected. The Tables view gives you information about each of the tests, pages, transactions, and requests that are collected. You also get a table that lists the errors.

By default, when the load test run has completed, the Summary view is displayed. You can switch between the Summary, Graphs, Tables, and Details views by using the toolbar. The Load Test Analyzer can be docked or set to float by using the usual Visual Studio window manipulation techniques. When you analyze completed load test runs, you can have multiple Load Test Analyzers open at the same time to compare the different load test runs.

For a more comprehensive overview of the Load Test Analyzer, see Load Test Analyzer Overview.

Tasks

Tasks Associated topics
Accessing the results of your load test: When you run a load test from the Load Test Editor, the load test results open automatically and the running load test is displayed in the Load Test Analyzer. - How to: Access Load Test Results for Analysis
Add analysis notes to your load test: You can add comments to your load test when you conduct your analysis. The comments are stored permanently, together with the load test result. The description that you enter also displays in the Description column that is associated with the load test in the Open and Manage Test Results dialog box in the Load Test Editor.

For more information, see How to: Access Load Test Results for Analysis.

Additionally, the comments are displayed when you create an Excel report for the load test results.

For more information, see Reporting Load Tests Results for Test Comparisons or Trend Analysis.
- How to: Add Comments while Analyzing a Completed Load Test
Analyzing the results of your load test: After you access the load test run data, you can analyze the resulting data. You can view the Load Test Summary to understand the results quickly. The load test summary shows the key results in a compact and easily read format.

You can print the load test summary. This makes it convenient to use when you communicate results to stakeholders.

You can analyze the details of your load test results by using the graphs and tables in the results. These include Errors, Pages, Requests, SQL Trace, Tests, Thresholds, and Transactions.
- Load Test Analyzer Overview
- Load Test Results Summary Overview
- How to: View Web Page Response
- Analyzing Threshold Rule Violations
- Analyzing Load Test Results in the Graphs View
- Analyzing Load Test Results and Errors in the Tables View
Analyzing the virtual user activity in your load test results to isolate performance issues: You can use the Virtual User Activity Chart to visualize what virtual users are doing during a load test. This can help you isolate spikes in a CPU or drops in requests/sec, and determine which tests or pages are running during these spikes and drops. - Analyzing Virtual User Activity in the Details View

Running Load and Web Performance Tests

Before you conduct analysis of a load test, you must run a test one or more times. You can observe the test results in real time when the test is running.

Managing Load Test Results in the Load Test Results Repository

When you run your load tests, any information that is gathered during a load test run may be stored in the Load Test Results Repository, which is an SQL database. The Load Test Results Repository contains performance counter data and any information about recorded errors.

You can manage load test results from the Load Test Editor by using the Open and Manage Load Test Results dialog box. You can open, import, export, and remove load test results.

Reporting Load Tests Results for Test Comparisons or Trend Analysis

You can create a Microsoft Excel report to help determine issues and discover trends. The reports can be shared with the stakeholders without requiring their access to the Team Foundation Server.

External resources

Guidance

Testing for Continuous Delivery with Visual Studio 2012 – Chapter 6: A Testing Toolbox

See Also

Creating and Editing Load and Web Performance Tests
Web performance and load tests in Visual Studio
Reviewing Test Results in Microsoft Test Manager
Reporting Load Tests Results for Test Comparisons or Trend Analysis