I have been using JMeter in GUI mode for composing all the test cases required for load testing my service but for actual testing I need to execute tests in non-GUI mode. How do I save the results of Aggregate report in csv file using command-prompt.
Thanks in advance.
In JMeter, we have different listeners to view the result of Test Plan, in which aggregate report is one of the listeners that are provided by the JMeter. The aggregate report is the same as the summary report except the aggregate listener provides some additional parameters such as Median.
Just as alternative: you may do this directly from the Aggregate Report listener.
1. set filename/template for results file:
resultsFile = ${__property(user.dir)}${__BeanShell(File.separator,)}result_${__time(yyyyMMdd-HHmmss)}.csv
2. configure Aggregate Report listener as shown below:
CSV-file generated in this case will differ from generated via GUI/"Save Table Data" one.
If it is not acceptable you'll better use method with JMeterPluginsCMD from previous answer:
java -jar JMeterPluginsCMD.jar --generate-csv aggregateResults.csv --input-jtl testResults.jtl --plugin-type AggregateReport
Use JMeterPluginsCMD tool with Plugin Type = AggregateReport
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With