Can't able to print the failure Message in Jmeter if API request getting fail
I tried the multiple API hits on the server through Jmeter and save the result data in the file but some how I cant print the failure Message in the file, any body helps me how to print the failure message.?
I would suggest using a JSR223 post processor, where you will need to do a little scripting to get what you need to save as a CSV file. Here is basic pseudo-code to help with this.
//use PREV to get response data from previous sampler prev.getResponseDataAsString() //format this data (remove commas) and output to CSV file outLog.write(csvResponse + "\n")
for an example in java, please see: