Run URL-based load tests with Visual Studio Team Services

Last Update: 7/4/2017

| Team Services |

You can run a load test on your web app or site directly using Visual Studio Team Services.

In this example, you'll learn how to:

Prepare your environment

Run a URL-based load test

  1. Sign in to your Visual Studio Team Services account (https://{youraccount}.visualstudio.com).

  2. Go to the Load test hub, open the plus-icon  New menu and choose URL based test.

    Start a new load test from the New menu

  3. Type a name for the load test, and enter the URL you want to test in the center column and in the details pane on the right. For a simple load test, leave the HTTP method set to GET.

    Add load test information

    You can add multiple URLs and select the method for each one, such as POST or PUT. You can also add headers and querystring values if you need to send these as part of the request. The URL Load Test accesses each of these URLs multiple times using the parameters you specify, and records the results.

  4. Open the Settings tab. Here you can change the parameters of the test such as the duration, load pattern, number of users, and more. To run the test near to your users, select a Load location. Then choose Save.

    Specify settings, then save the test

  5. When you have set up all the URLs and parameters for your test, start it by choosing Run test.

    Start the test

  6. As the test runs, you see live information about the progress of the test. You can stop the test by using the Abort link on the toolbar.

    Live information about the running load test

View the results of the load test

  1. When your test is done, look at the results to see how well your app performed. For example, you can see an overview of your app's performance in the Summary tab. This tab shows all of the main metrics such as average response time, user load, requests per second, failed requests, any errors that might have occurred, and test usage.

    Load test Summary tab results

    The lower section of the Summary tab shows the settings used for the test, and details of the five slowest requests during the test. If there are any transaction tests, the tab will also show the five slowest of these. Use the down arrow icon above a column to sort the list based on the contents of that column.

  2. Open the Charts tab to see a graphical representation of the test results over time. The charts show the average performance, throughput, errors, and the results of each test request. Hover your mouse pointer over a chart to see more details.

    Load test Charts tab results

  3. Open the Diagnostics tab to see detailed information such as a list of errors and status messages.

    Load test Diagnostics tab results

    You can also use the arrow icon in the Errors section of the Summary tab to go directly to the Diagnostics tab.

    Opening the Diagnostics tab from the Summary tab

  4. Open the Logs tab to see a list of test runs. Choose the link in the Attachment column to download the detailed log as a text file.

    Load test Logs tab results

  5. To run the same test again, choose Rerun.

    Rerunning the same test

Next steps

See also

Help and support

Report any problems on Developer Community, make suggestions on UserVoice, get advice on Stack Overflow, and get support via our Support page. We look forward to your feedback.