Generating JMeter Load Test Dashboard Report
In this article I’d like to share how can we generate dashboard report in JMeter in a form of HTML report.
The Apache JMeter application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. The types of report that I’ll share are:
Before we start, JMeter download and installation reference can be found here. Here’s how we can setup each type of dashboard report:
1. Prepare Test Plan
Add HTTP Requests and Thread Group within your Test Plan. You can specify the Number of threads, Ramp-Up Period and Loop Count in the Thread Group from JMeter GUI, for example:
- Number of threads (users): 10
- Ramp up duration (between test start and peak load): 1
- Loop count (number of iteration to run): 2
Another way is to parameterize the configuration to allow flexibility by specifying it through command line as follow:
2. Run JMeter test
Run the following command to start executing the Test Plan. In this example the test result will be stored in result.csv file with 5 users which will run 3 iterations each, and both will start within 1 second of each other.
D:\Tools\apache-jmeter-5.4.1\bin> jmeter -n -t sample-tests.jmx
-Jthreads=5 -Jrampup=1 -Jiteration=3 -l result.csv -e -o HTMLreport
Further readings for JMeter functions and variables can be found here.
Once the test completed, the detailed HTML report will be generated based on result.csv file and can be found in the specific folder which in this case is HTMLReport folder.
Besides HTML-based dashboard, integrating JMeter with real-time dashboard using InfluxDB and Grafana would also be an interesting area to explore next.