Referencing the docs: https://jmeter.apache.org/usermanual/listeners.html#defaults
"The information to be saved is configurable. For maximum information, choose "xml" as the format and specify "Functional Test Mode" on the Test Plan element. If this box is not checked, the default saved data includes a time stamp (the number of milliseconds since midnight, January 1, 1970 UTC), the data type, the thread name, the label, the response time, message, and code, and a success indicator. If checked, all information, including the full response data will be logged." So check Functional Test mode and then stick these in user.properties jmeter.save.saveservice.output_format=xml jmeter.save.saveservice.samplerData=true # if you need them jmeter.save.saveservice.requestHeaders=true jmeter.save.saveservice.url=true Not actually tested this so if it doesn't work for you take a look at https://jmeter-plugins.org/wiki/FlexibleFileWriter/ and requestData field. Cheers, Kieran Lynch WM Reply Nova South 160 Victoria Street, Westminster London SW1E 5LB - UK phone: +44 (0)20 7730 6000 [email protected]<mailto:[email protected]> www.reply.com<http://www.reply.com> <http://> [WM Reply] ________________________________ From: Prateek Dua <[email protected]> Sent: 08 September 2021 12:16 To: JMeter Users List <[email protected]> Cc: [email protected] <[email protected]> Subject: Save POST API data in jtl file Hi Team, Is there any way to store payload ( POST data) of POST request in jtl / csv file on running JMeter via command line prompt. Currently for my case, jtl file stores only *URL* of POST request. Though I'v enabled * jmeter.save.saveservice.samplerData=true* in both jmeter.properties & user.properties file but POST data is not getting stored in jtl file. Thanks, Prateek
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
