1

As we are execution our load test from Command line arguments, is there any way to save failed request payload + response data? I have implemented Simple Data Writer but it doesn't display failed requests payload in generated file also if I check Save as XML it generates file with huge size.

Appreciate your help. Thanks in advance.

Peter
  • 855
  • 2
  • 15
  • 35

1 Answers1

1

As per JMeter's Results File Configuration:

enter image description here

If you want to save request and response data:

  1. You will have to go for XML format
  2. The result file will be much larger than the .jtl file in the CSV format.

You can try "implementing" the Simple Data Writer for failed samplers only, it should reduce your "huge" file size

Example configuration:

enter image description here

More information: How to Save Response Data in JMeter

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • it shows everytime when I run multiple times "Append to existing File" or "Overwrite existing File" what could be the solution like it takes new file date/Time wise when I run multipletimes. – Peter Aug 31 '22 at 05:33
  • The behaviour is controllable by `resultcollector.action_if_file_exists` [JMeter Property](https://www.blazemeter.com/blog/jmeter-properties-customization) which defaults to `ASK`. Other possible choices are `APPEND` and `DELETE`. If you want to append the timestamp - take a look at [__time() function](https://jmeter.apache.org/usermanual/functions.html#__time) – Dmitri T Aug 31 '22 at 05:41