Visual Studio 2017 | Visual Studio 2015 | Team Services
Load test your app in the cloud using Visual Studio
Check your app or web site's performance before you launch it or deploy updates to production. Find problems before your customers do. Start running cloud-based load tests in almost no time with Visual Studio and Team Services.
This example shows how to execute a load test using Visual Studio. You can also run cloud-based load tests directly using your Team Services portal. If you prefer to run your tests in a local environment rather than in the cloud, see Use a lab environment for your devops.
In this example, you'll learn how to:
- Prepare your environment
- Get the sample load test project
- Connect to your Visual Studio Team Services account
- Run and analyze your load test
Prepare your environment
Download and install Visual Studio Enterprise, if you don't already have it.
Create your Team Services account, if you don't have one already. You can have any access level assigned do you in Visual Studio Team Services when you use Visual Studio Enterprise to run load tests.
If you don't have a load test project, use our sample load test project with your web site or app. Just provide the address for the web site that you want to test. Or, if you have a load test project, jump ahead to set up your load test project to run load tests in Visual Studio Team Services.
Get the sample load test project
Download the sample load test project, unblock the zip file in its Properties dialog, and unzip the files into a local folder on your computer.
Open the GettingStartedWithLoadTesting.sln solution in Visual Studio Enterprise.
Open the SampleWebTest.webtest file. Replace the URL with the URL of your app's web page.
Connect to your Visual Studio Team Services account
Before you can run load tests in the cloud, connect Visual Studio to your Team Services account.
In Team Explorer, connect to your Team Services account.
Connect to one of your team projects.
If you haven't connected to your Team Services account before, add your account to the server list.
Enter your Team Services account name (
If you're prompted to sign in to Team Services, do that.
Select your Team Services account from the list, then choose your team project. Now you can connect.
Run and analyze your load test
In Solution Explorer, open the load test that you want to run.
To run your test closer to where your users are, select a location closer to your users.
Now run your load test. This will run in the cloud using Team Services.
Your test appears in the queue and waits for its turn to run. When Team Services is ready to run your test, the test status changes to "Acquiring resources".
A large test run might take up to 10 minutes while Team Services sets up virtual machines and agents for you.
You can watch your app's performance while the test runs. Look at the details to review errors, warnings, or other information about your test.
When the test is done, download the report to view the results.
The results include performance counter data, threshold violations, and error information.
Review your test's details. Find the number of users where your app's performance fails to meet your requirements by examining the step load pattern for virtual users.
Fix any performance issues that you find in your app's code, then rerun the test.
To simulate real-world loads more closely, you can refine your test by specifying web performance test properties, load test scenario properties, and run settings properties.
- Add app performance data
- View and compare results
- Run Apache JMeter load tests
- Record and replay tests
- Profile live Azure web apps with Application Insights
- Q & A for load testing
- Load test with Team Services
- Load test with Azure portal
- Tutorial: Run load tests before release
- Run Apache JMeter load tests with Visual Studio Team Services
- Analyze load test results using the Load Test Analyzer