Reputation: 888
I would like to have time/date of request sent to server, response received by client and latency by each thread in JMeter.
Any possibility to achieve this in non-gui mode.
Upvotes: 1
Views: 1068
Reputation: 168122
time/date of request sent to server
- JMeter stores this already in form of Unix timestamp, just in case you would like to change it to another format - it's controllable via jmeter.save.saveservice.timestamp_format
. It defaults to ms
(time in milliseconds from the beginning of Unix epoch) however you can amend it by providing a SimpleDateFormat pattern instead response received by client
- by default JMeter doesn't store this to reduce memory footprint and disk IO however you can enable storing the response by setting the following properties:
jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
latency
- JMeter stores it by default, if it doesn't - make sure to set the following property:
jmeter.save.saveservice.latency=true
Once you apply the above configurations run your test in command-line non-GUI mode like:
jmeter -n -t your.test.jmx -l result.jtl
result.jtl
file (which is basically XML file) either using your favorite XML editor or using View Results Tree listener References:
Upvotes: 2
Reputation: 34536
Those values will be in output csv you can generate adding:
-l results.csv
You can generate the html report adding:
-e -o report_folder
So you would end up with:
jmeter -n -t test.jmx -l results.csv -e -o report_folder
Upvotes: -1