Search code examples
jmeterperformance-testingload-testingjmeter-pluginsjmeter-5.0

Is there any way to collect failure request(payload) + response data in Jmeter when I execute from command line execution?


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.


Solution

  • 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