Running Apache JMeter based load tests in the cloud – how to
Sometime ago, we announced that the cloud-based load testing service in Visual Studio Team Services could be used to run Apache JMeter based load tests. We are happy to let you know that this feature is now publicly available and you can try it out using your Team Services account.
This is a quick how-to to help you get started.
Essentials: How to run Apache JMeter tests
1. Create a JMeter based load test for your app using the Apache JMeter IDE.
2. In the Team Services portal, navigate to your team project. Under the “Test” hub, you will see “Load Test”. Click on “New” in the ribbon and select Apache JMeter test.
3. Upload your JMeter test (a .jmx test script).
4. Upload any supporting files that are required for running load tests – for e.g., csv files that might be used to data-drive a test, a user.properties file, etc.
5. Number of agents is the scaling factor. Your JMeter test will be replicated across the number of agents you specify and accordingly the load will be multiplied. For example, if the total number of threads in your JMeter test is 50 and you select 5 agents, your app will be hit with requests using 250 threads. More agents will be available in the future to generate a higher load.
6. Load duration – you can run a small test (a few minutes) to validate your configuration or a long one (upto 4 hours). In the future, we will enhance this to support longer tests.
7. Load location – you can choose to generate load from different locations around the globe. Pick a location that represents the geography from where you expect traffic to your application.
Results and reports
1. As your test runs, a live report will be available to you indicating key metrics such as Avg. response time, user load, RPS, etc, as well as charts for performance and throughput.
2. Any errors that may occur in your test such as failed requests, exceptions, etc. can be viewed in the Diagnostics tab.
3. Once the test finishes you get to view the top 5 slowest requests, and results (.csv format) and logs become available for download.
4. Have a favorite listener that you use to analyze results in the JMeter IDE? Open the results.csv in the listener and analyze away!
For any issues or queries, please contact us at email@example.com
1. What is the supported JMeter version?
A1: Our load test agents run Apache JMeter version 2.13, the latest version available currently.
2. Which samplers are supported?
A2: Currently, only HTTP samplers are supported.
3. I want to supply properties to JMeter. How do I do that?
A3: Add the properties you need to a user.properties file. Upload it using the “Supporting files” field and it will be applied when the load test runs.
4. Are custom listeners supported?
A4: Custom listeners are currently not supported.
4. How is my load test’s usage calculated? What are VUMs?
A1: A load test’s usage is measured using VUMs or virtual-user minutes. It is based on the load generated (virtual users) and the duration of the test. 1 virtual user corresponds to 1 thread for JMeter. For minimum usage applied and other considerations, see this link
5. What else can I do with cloud-based load testing?
A5: Apart from running JMeter tests using Cloud Load Testing, you can run:
- A simple load test – just provide your app URL and run a test. No other tools are necessary!
- Visual Studio based load tests – build a load test using Visual Studio Enterprise and run them on-cloud or on-premises.