Run Apache JMeter load tests with Visual Studio Team Services

Last Update: 7/4/2017

| Team Services |

Before you start:

To run a JMeter 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 Apache JMeter test.

    Start a new load test from the New menu

  3. Enter your load test parameters. To run your test near to where your users are located, select a closer location for your load test. Then start your test when you're ready.

    Add load test information, then choose Run Test

    For information about the scripts and supporting files used for JMeter web tests, see Build a Web Test Plan on the Apache JMeter website.

  4. 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

  5. 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.

  6. 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

  7. 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

  8. 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

  9. If you have a favorite listener that you use to analyze results in the JMeter IDE, download the test results in .CSV format and the logs as a zip file from the Download Results link.

    Downloading the results and log files as a zip file

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

    Rerunning the same test

  11. Now see how you can view and compare your load test runs.

See also

Help and support

Submit bugs through Connect, and make suggestions on Uservoice. We look forward to your feedback.