Hope you are doing well !!
In this blog, we will take a look at How to generate JMeter HTML Dashboard Report so without any delay, Let’s start
How to generate JMeter HTML Dashboard Report?
1) Open JMeter and Add the Thread Group
For Adding the Thread Group navigate to Test Plan -> Add -> Threads -> Thread Group
2) Add HTTP Request
Navigate to Thread Group -> Add -> Sampler -> HTTP Request
3) Now, Add some HTTP Request in JMeter
4) For viewing the result Add some listener (simple data writer) and store the result in csv file
For Adding the listener navigate to Thread Group -> Add -> Listener (simple data writer)
Two Ways to generate the Report:
a) Using GUI Mode: Firstly, create one folder at any location
In JMeter Go to Tools -> Generate HTML Report
- Firstly on Result File put the CSV file path where our result is stored
- In User.properties file section mentions the location of the user.properties file
- In the output, directory put the newly created folder path
Now, Click on the Generate Report and our report is generated
Now open the folder which we created and we got out HTML report, so simply open the HTML report
b) Using Non GUI Mode:
1) Open cmd and navigate to bin folder
2) For Windows, run the command
jmeter -n -t path/test_name -l path/file_name.jtl -e -o path/file_name
3) For Linux, run the command
./jmeter.sh -n -t path/test_name -l path/file_name.jtl -e -o path/file_name
Now open the folder which we created and we got out HTML report, so simply open the HTML report
The HTML Report provides the following metrics:
1) APDEX (Application Performance Index) table that computes for every transaction the APDEX based on configurable values for tolerated and satisfied thresholds
2) A request summary graph showing the Success and failed requests (Transaction Controller Sample Results are not taken into account) percentage
3) A Statistics table providing in one table a summary of all metrics per transaction including 3 configurable percentiles
4) An error table providing a summary of all errors and their proportion in the total requests
5) It also provides Top 5 Errors by Sampler table providing for every Sampler (excluding Transaction Controller by default)
6) It also provides different charts like Response times Over Time, Active Threads Over Time etc
Reference:
http://www.ishatrainingsolutions.org/2020/06/30/jmeter-html-dashboard-report-generation/
https://blog.knoldus.com/category/tech-blogs/test-automation/