2
votes

I can generate dashboard report from command line... but i have to execute test with command line for the same .... Can we generate Dashboard report from Jmeter GUI or run test from GUI and get dashboard report for the same?

2

2 Answers

10
votes

In short, yes you have to run test from GUI and get dashboard report for the same.

Add a listener to your test script in GUI mode. From every test, you can generate report file (.jtl file) in default CSV format.

In your listeners, you can save your report file (.jtl file) like this. Just put the full path of your file and the run the test.

enter image description here

This will automatically generates the .jtl/.csv reports after test completion.

Then you can read and process samples from CSV files to generate HTML files containing graph views.

Now, Generating report from the existing .jtl results file:

jmeter -g /path/to/jtl/file -o /where/you/want/to/store/dashboard

For more, follow this referrence.

1
votes

As of JMeter 3.0 or 3.1, HTML report can be generated in 2 ways:

  • Non GUI mode at end of load test

  • On demand from command line using an existing CSV file

See this:

Generating a report for a load test ran in GUI will never be possible because it's a bad practice to Load Test from GUI.

But it may be possible in the future to generate a report from an existing CSV file and from the GUI: