I am running a load test by using a jmeter script in non gui mode.
I use the following command to run the JMeter in non gui mode and result is stored in a file Test.jtl<
The response data will be recorded in your JTL, if you check "Save as XML" and "Save Response Data XML" instead of CSV file in your Sample Result Save Configuration.
By default JMeter does not store response data as:
You can still configure JMeter to store response data, but keep in mind above constraints. In order to do so pass the following extra command line arguments:
sh jmeter.sh -Jjmeter.save.saveservice.output_format=xml -Jjmeter.save.saveservice.response_data=true -n -t ThreadGroup.jmx -l Test.jtl
another option is adding next 2 lines to user.properties file (located in /bin folder of your JMeter installation)
jmeter.save.saveservice.output_format=xml
jmeter.save.saveservice.response_data=true
See Apache JMeter Properties Customization Guide for more information on JMeter properties and ways of working with them