0% found this document useful (0 votes)
22 views13 pages

App Load Testing

The document discusses how to load test a web application before release using Visual Studio and Cloud-based Load Testing on Visual Studio Team Services. It provides steps to create a web performance test by recording user actions, create a load test using the performance test, run the load test locally or in the cloud, and analyze results to identify performance issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views13 pages

App Load Testing

The document discusses how to load test a web application before release using Visual Studio and Cloud-based Load Testing on Visual Studio Team Services. It provides steps to create a web performance test by recording user actions, create a load test using the performance test, run the load test locally or in the cloud, and analyze results to identify performance issues.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

Tutorial: Load test your app before release

Last Update: 7/4/2017

Team Services | Visual Studio 2017 | Visual Studio 2015 | Previous version

Find performance issues before you release your app by running load tests with with
Visual Studio Enterprise using Cloud-based Load Testing to provide virtual machines in
the cloud that generate the load of many users accessing your web site at the same time.
All you need is a Visual Studio Team Services account.

 Create a web performance and load test project


 Record a web performance test
 Create a load test
 Run and analyze your load test
 Improve your load tests

Create a web performance and load test project


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. If you don't have Visual Studio Enterprise, get it here.


2. Create a web performance and load test project.

If you don't see the template for the web performance and load test project type,
ensure you have installed the required packages during Visual Studio setup.
Record a web performance test
1. Create a web performance test.

Your web browser opens.


2. Enter the URL for the website that you want to test.
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 you're done, stop recording.

Now, Visual Studio looks for dynamic parameters for the HTTP responses to each
of your HTTP requests. A progress bar appears while this happens.
If dynamic parameters are found, a table appears. You can assign constant values
to each dynamic parameter.
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.

7. Save the test.

Create a load test


1. Create a new load test in the web performance and load test project.
2. When the load test wizard appears, choose the kind of load test that you'd like to
run.

3. Change the load pattern to step load. This gradually adds users over time. How
many virtual users can I configure in my load test?
4. Choose the test mix step.

5. Add the web performance test you created.


6. Move the web performance test to the list of tests to run.

When you run cloud-based load tests using your Visual Studio Team Services
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.
7. Select the location where you want to run your load test.
8. When you finish the wizard, the web performance test is added to the load test
and appears in the load test editor.

Run and analyze your load test


You can run your load test locally, or you can run it in the cloud using Visual Studio Team
Services. All you need is a Visual Studio Team Services account. If you run the load test in
the cloud, you can generate more load without setting up test controllers and test
agents. To learn how easy it is to use Cloud-based Load Testing to run your load tests,
go here.

Follow these steps to run your load test on your local machine.

1. Run the load test.

2. While the test runs, you discover that the shopping cart page response time
exceeds the value you set.
3. Add an analysis note to track the issue.

4. After the load test is finished, the summary is displayed.


The results for the completed test include performance counter data, threshold
violations, and error information.

5. 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.
6. Fix any performance issues in your application's code and rerun the test.

Improve your load tests


You can improve your test to better simulate real-world loads by specifying various load
test scenario properties and run settings properties. For example, you can specify the
number of new users that will use web cache data in your load test.

You might also like