Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Created March 4, 2020 04:38
Show Gist options
  • Save zulhfreelancer/ecc7e24a7b3e4a996829380e70bcc573 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/ecc7e24a7b3e4a996829380e70bcc573 to your computer and use it in GitHub Desktop.
JMeter - How To Save Requests & Responses Data?

Step 1 - Change JMeter Properties

$ nano /jmeter-folder/bin/jmeter.properties

jmeter.save.saveservice.samplerData=   <-- set this to "true"
jmeter.save.saveservice.response_data= <-- set this to "true"
jmeter.save.saveservice.output_format= <-- set this to "xml"

Step 2 - Run Tests

$ jmeter --nongui --testfile /path/to/test-file.jmx --logfile /path/to/result-file.xml

Step 3 - View Test Results

  1. Open JMeter in GUI mode
  2. Add a listener i.e. View Results Tree
  3. In the listener section, click on the Browse button
  4. Load the XML file created from step 2 to see the results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment