1

It's best practice to run JMeter tests without GUI without any enabled listeners.

Due to a report, I have to prepare after my test runs using the table from the summary listener and the graph from the graph listener, I usually let these listeners active in my test plan. The results from the summary and graph are saved as CSV files.

Q: How can I disable/remove those listeners and get summary tables and graph graphics CSVs anyway?

In my case, it's not useful to just use one results .jtl via the -l results.jtl switch when starting my .jmx. I don't even know which listeners (if any) are saved there. My test plan consists of several threads and each thread needs one summary table and one graph by default.

1 Answer 1

1
  1. You can generate a JMeter HTML Dashboard Report from the .jtl results file like

    jmeter -g results.jtl -o /where/you/want/dashboard/to/be/generated
    
  2. You can use JMeterPluginsCMD Command Line Tool in order to produce any report or graph type out of the .jtl results file. You can install JMeterPluginsCMS using JMeter Plugins Manager

    JMeter Plugins Manager

5
  • When I try your first option then I get Error: Incompatible options --n/--nongui and -g/--reportonly found. So it seems this is not doable in non-gui mode?
    – c1ph4
    Aug 29, 2017 at 6:39
  • The above instruction is applicable for generating report from existing .jtl results file, if you want to generate dashboard along with test execution the syntax would be jmeter -n -t test.jmx -l result.jtl -e -o /where/you/want/dashboard/to/be/generated. Also be aware that you can upload your results file to BM.Sense service to get it analyzed and see tables, charts, trends, etc. Moreover this way you will be able to compare results of several test runs.
    – Dmitri T
    Aug 29, 2017 at 7:33
  • Still not working: ./jmeter -n -t Scenarios.jmx -l results.jtl -e -o /html-Dashboards gives An error occurred: Cannot write to '/html-Dashboards' as folder does not exist and parent folder is not writable. Folder exists and should be writeable. ./jmeter -n -t Scenarios.jmx -l results.jtl -e -o html-Dashboards gives error Error in NonGUIDriver java.lang.IllegalArgumentException: Results file:results.jtl is not empty. After deleting the old jtl file my tests complete, but there is no file in my special folder and no other output file found.
    – c1ph4
    Aug 29, 2017 at 8:33
  • Try removing the slash before html-Dashboards like ./jmeter -n -t Scenarios.jmx -l results.jtl -e -o html-Dashboards. It looks you are running your test on Linux or MacOSX under non-privileged user and the folder /html-Dashboards does not exist
    – Dmitri T
    Aug 29, 2017 at 9:17
  • In my case it doesn't work with or without slash. Currently this is tried with macOS Sierra, yes. The folder is named html-Dashboards and chmod 777. Thanks for your help, Dmitri!
    – c1ph4
    Aug 30, 2017 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.