0
votes

I have a simple Jmeter project configured the way I like it, in regards to the actual load test. But now, when I want to configure Jmeter to log the results to a csv/xml file, I hit a road block. I simply can't figure out how to configure it to log the same data that I see in the GUI.

The listener I use is the "Summary Report". In it, I see things like "Average", "Min", "Max", "Error %" and "Throughput". All of these are data that I want. But when I click the "Configure" button in the "Write results to file" box above the results, none of the checkboxes seem to match these columns. How do I get "Error %", "Throughput" etc written to the file? Instead I see a bunch of unrelated stuff, like "Save URL". How is the individual URLs relevant for a Summary Report? The summary report is literally one single line of data, but nothing in the GUI configuration options tell me how I can get this single line of data written to a file. It's only the final results that I'm interested in, ie the results of the calculations, not the data needed for the calculations.

2

2 Answers

0
votes
./jmeter -n -t [Jmeter Location "/home/documents/jmeter.jmx"]  -l [Jmeter results location/home/documents/Results.jtl"]

Running Jmeter script in CLI should help you to get this report using above command

0
votes

The values you're looking for are calculated after all results are ready, you cannot configure JMeter to save i.e. average response time because it will change with each next result coming to the file. Same applies for other metrics.

Reference material:

If you need to store the metrics like average, min, max, etc. into a CSV file - consider using JMeterPluginsCMD Command Line tool which is capable of producing tables and charts out of the .jtl result files so you can use it for automation of the results processing.