Question

I would like to save table data generated by an aggregate report using command line, so that I can automate the process. However, I read from an older post around 2004 using 2.2/2.3 jmeter that this cannot be done. But since it is 2014 now and we are using jmeter 2.11, I was wondering if we could save the table data.

The button boxed in red is what I am trying to do but with command line rather than with the GUI.

enter image description here

Thanks

Was it helpful?

Solution

In order to achieve this you will have to write a batch script (windows) and shell script (Linux).
Please follow the below mentioned steps:

  • Run Jmeter via command line and specify path for output *.jtl file
  • Call CMDRunner.jar in your Jmeter \lib\ext directory to convert *.jtl file to Aggregate report and save as CSV file.
  1. jmeter -n -t "C:\Test.jmx" -l "C:\output.jtl" ^&^& exit
  2. java -jar CMDRunner.jar --tool Reporter --generate-csv "C:\Aggregate_Report.csv" --input-jtl "C:\output.jtl" --plugin-type AggregateReport
  • Run your *.bat or *.sh file

Hope this will help.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top