Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save JMeter Aggregate Report results to a CSV file using command prompt?

Tags:

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.

like image 974
Harshdeep Avatar asked Nov 03 '11 06:11

Harshdeep


People also ask

How do you read an aggregate report in JMeter?

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.


2 Answers

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:

enter image description here

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 
like image 197
Aliaksandr Belik Avatar answered Sep 19 '22 12:09

Aliaksandr Belik


Use JMeterPluginsCMD tool with Plugin Type = AggregateReport

like image 39
Andrey Pokhilko Avatar answered Sep 21 '22 12:09

Andrey Pokhilko