Professional Documents
Culture Documents
Runperformancetestsonanapplicationbeforearelease
Sign in
MSDN subscriptions
Get tools
Other Versions
Use load testing in Visual Studio Enterprise to find performance issues before you release your app.
Dont want to use your resources and set up your own machines to create this load? You can use cloudbased load testing
to provide virtualmachines in the cloud that generate the load of manyusers accessing your web site at the same time. All
you need is a Visual Studio Online account. Learn more about this cloudbased load testing service.
To load test your app with onpremises resources or using cloudbased load testing, you first create web performance tests.
These tests are used in your load tests to simulate multiple users performing actions in your app at the same time.
1/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
Yes
No
3. Use your application like you expect your customers to use it. For example, search for items and add them to the
shopping cart.
The recorder will capture the HTTP requests and responses.
4. When youre done, stop recording.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
2/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
Now, Visual Studio looks for dynamic parameters for the HTTP responses to each of your HTTP requests. A
progress bar is displayed while this happens.
If dynamic parameters are found, a table appears. It lets you assign constant values to each of the dynamic
parameters.
5. Rename your test. For example, ShoppingCart.webtest.
6. Edit test properties to specify performance goals. For example, you can set a page response time goal to 1 second.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
3/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
2. When the load test wizard appears, choose the load pattern step.
Change the load pattern to step load. This gradually adds users over time.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
4/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
5/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
4. When you run cloudbased load tests using your Visual Studio Online account, you can run those tests and
generate load in an Azure datacenter that's closer to your users. That way, you reduce latency and simulate local
conditions.
Select your Visual Studio Online account and the location where you want to run your load test.
5. When you finish the wizard, the web performance test is added to the load test and appears in the load test editor.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
6/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
7/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
2. While the test is running, you discover that the shopping cart page response time exceeds the value you set.
8/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
The results for the completed test include performance counter data, threshold violations, and error information.
3. Choose the detail view. By analyzing the step load pattern for users, you can identify the user count where your
performance fails to meet your requirements.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
9/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
Fix any performance issues in your applications code and rerun the test.
Q&A
Q: How can I increase the capacity of my load tests?
A: You can use cloudbased load testing service, so you can run your tests across multiple virtual machines in the
cloud. You can also use an onpremises test controllers and test agents. See Create and run a load test.
Using a test controller and agents is not supported using the Visual Studio Enterprise trial version.
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
10/12
8/27/2015
Runperformancetestsonanapplicationbeforearelease
emulate thousands of users, use test controller and test agent machines.
In Visual Studio Enterprise trial version, the virtual user count is limited to 250.
Q: Can load tests use other test types in their test mix besides web
performance tests?
A: Yes, you can include unit tests and coded UI tests.
Dev centers
Learning resources
Community
Support
Forums
Self support
11/12
8/27/2015
Windows
Office
Runperformancetestsonanapplicationbeforearelease
Microsoft Virtual Academy
Forums
Self support
Channel 9
Blogs
Interoperability Bridges
Codeplex
MSDN Magazine
Visual Studio
Microsoft Azure
More...
Programs
BizSpark for startups
DreamSpark
Imagine Cup
Newsletter
https://msdn.microsoft.com/enus/library/dn250793(d=printer).aspx
Terms of use
Trademarks
12/12