次の方法で共有


Get app performance data with your load tests

Azure Test Plans

Note

While Azure DevOps cloud-based load testing service is deprecated, Azure Load Testing Preview is available. Azure Load Testing Preview is a fully managed load testing service that enables you to use existing Apache JMeter scripts to generate high-scale load. To learn more, see What is Azure Load Testing Preview?. To learn more about the deprecation of Azure DevOps load testing and other, alternative services see Changes to load test functionality in Visual Studio and cloud load testing in Azure DevOps.

When you load test your app in the cloud using Azure DevOps, you can compare app performance with virtual user load using Application Insights. Then, by doing a quick root cause analysis, you can figure out which code is causing performance problems.

  1. Download and install Visual Studio Enterprise, if you haven't already done so.

  2. Enable Azure Active Directory for your Azure DevOps subscription, if you haven't already done so.

  3. Link Azure DevOps with your Azure subscription, if you haven't already done so.

  4. Sign in to Azure DevOps from your web browser to refresh the Azure Resources Manager access token. The token is valid for 12 hours in the context of Azure DevOps.

    • If you have already signed, you must sign out and then sign in again.

  5. Set up your load test project to run in the cloud, if you haven't already done so.

  6. With your load test project open in Visual Studio Enterprise, open the Run Settings section and select your active run settings. Open the shortcut menu and choose Get Performance Data from Application Insights.

    Choosing Get Performance Data from Application Insights

  7. Select the apps you want to monitor and the performance counters you want to view while your load test runs.

    Select the apps to monitor and performance counters

    The counters you selected are shown in the load test project.

    Performance counters shown in the load test project

  8. Queue a load test run and view the performance data from Application Insights while your load test runs. The data might take a few minutes to appear.

    To view the performance counters when your load test runs, click Application

    Application counters are correlated with user load so that you can understand which issues might cause performance problems that you find.

    The counter samples have a sampling rate of one minute irrespective of the sampling rate configured in your load test project.

  9. To do a more detailed analysis for any performance issue, or to do a quick root cause analysis, go to Application Insights.

    To get more performance details, click Go to Application Insights

Can I define load tests once and then run them against different hosts?

See also

Help and support

Report any problems on Developer Community, get advice on Stack Overflow, and get support via our Support page.