12

I ran performance test case in jmeter. Now I can see results in 'View Results in Table'. But I also want same results to be saved as html report.

By default jmeter save html report? or is there a way to generate html report?

Can anyone please help me on this.

sanjay pujari
  • 459
  • 2
  • 7
  • 23

1 Answers1

23

JMeter provide dashboard report which is only available since JMeter 3.0.

The dashboard generator is a modular extension of JMeter. Its default behavior is to read and process samples from CSV files to generate HTML files containing graph views. It can generate the report at end of a load test or on demand.

To generate Dashboard report follow the instruction below:

Generating Report Dashboard.

Generation from an existing sample CSV log file:

jmeter -g <log file> -o <Path to output folder>

Generation after load test:

jmeter -n -t <test JMX file> -l <test log file> -e -o <Path to output folder>
Adnan
  • 2,931
  • 3
  • 23
  • 35
  • This is for the apdex reports , not to convert from table results to html , – Boikot Jun 01 '18 at 08:40
  • 1
    Thanks dude, been looking for the correct command to ONLY generate the html files for a while, #LEGEND – diegeelvis_SA Jul 25 '18 at 08:19
  • 1
    ps: @Boikot to generate the CSV file just configure the table listener to output to a file and the table, and once the test completes, run the first commend above to generate the html report. – diegeelvis_SA Jul 25 '18 at 08:21
  • I am getting error while doing this: java.util.prefs.WindowsPreferences WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Not sure why. can you please help? – amit Jul 16 '19 at 05:12
  • @amit, have you tried [this](https://github.com/julienvollering/MIAmaxent/issues/1). I am not sure if it this is gonna work or not but at least give it a try. – Adnan Jul 16 '19 at 05:58
  • Thanks @Adnan. I was trying the exact same command. It was failing. I figured it out. I missed to check few columns in 'Summary Report' Configuration which are required for reporting. After I checked them, its working now. – amit Aug 01 '19 at 01:45
  • Note that the `log file` referenced here is *not* the default `jmeter.log` -- you have to use `-l` to generate the `.csv` needed for this. – Brent Bradburn Aug 28 '19 at 00:44
  • if you define your custom properties, then to the command add `-p youpropertiesfile`, in my experience even after I edited `user.properties` located in same `bin` as jmeter, it did not take them (though maybe partly due to me using alias to jmeter.sh). – Alex Martian Oct 21 '19 at 06:17
  • Here is a working command to generate HTML report with JMeter: `jmeter -n -t Jmeter.jmx -l log.csv -e -o ./html` Note: folder `html` must be empty – Duc Trung Mai Aug 20 '20 at 14:55