HTML REPORT DASHBOARD - JMETER
Hi There,
Today i present you with how to create a new an intuitive result dashboard of the test you have created .
Before we begin, let me tell you the Pre-requisite for this
1. Have Jmeter installed in your PC (Jmeter 3 and above)
2. Have the Updated Java running (Preferably 1.8)
3. Check if you have the following -> reportgenerator.properties
Now please follow the easy steps and you will have your own result file
Step 1: Open your reportgenerator.properties file and copy all the contents
Step 2: Now open user.properties and paste all the contents you have pasted and the end. Save the file
Step 3 : Copy the following and save it in user.properties file
#--------------------------------------------------------- # SAVESERVICE PROPERTIES - JMETER INTERNAL USE ONLY #---------------------------------------------------------
jmeter.save.saveservice.bytes = true jmeter.save.saveservice.label = true jmeter.save.saveservice.latency = true jmeter.save.saveservice.response_code = true jmeter.save.saveservice.response_message = true jmeter.save.saveservice.successful = true jmeter.save.saveservice.thread_counts = true jmeter.save.saveservice.thread_name = true jmeter.save.saveservice.time = true jmeter.save.saveservice.print_field_names = true jmeter.save.saveservice.timestamp_format = dd/MM/yyyy HH:mm jmeter.save.saveservice.assertion_results_failure_message = true
you might be wondering why you are explicitly declaring the save service properties.
This is to tell the jmeter save the those additional information when we run the test. These will be required when we try to parse the file to generate the HMTL report. (plotting of data)
Step 4 : We need to run the test now ... and save it in the CSV format
THis can be done in a number of ways... for this i am using SIMPLE DATA WRITER
Step 5 : Open the command prompt and go the bin of you Jmeter folder location. and run the following mentioned below
jmeter -g C:\TEST.csv -o C:\JUSTFILES\HTMLREPORT
THERE YOU ARE DONE !!!
Go to the following location C:\JUSTFILES\HTMLREPORT
and open the index.html report.
Few Snapshots of the HTML Report :