I've a testplan with one http sampler in thread group. I want to run the test for 5 minutes. How can I store the results of sampler with request and response data into a file showing same like as in view results tree listener?
2
votes
1 Answers
5
votes
Add the next lines to user.properties file (lives in JMeter's "bin" folder):
jmeter.save.saveservice.output_format=xml jmeter.save.saveservice.response_data=true jmeter.save.saveservice.samplerData=true jmeter.save.saveservice.requestHeaders=true jmeter.save.saveservice.url=true jmeter.save.saveservice.responseHeaders=true
- Restart JMeter to pick the properties up
Run your test in command-line non-GUI mode like:
jmeter -n -t test.jmx -l result.jtl
- Once your test is finished open JMeter GUI, add View Results Tree listener, locate
result.jtl
file using "Browse" button - you should see requests and responses details.
References:
Remember that storing request and especially response data causes massive Disk IO overhead so don't forget to remove the aforementioned lines once you won't be needing verbose information anymore.