I’ve an issue with my project. I’m trying to log the response body and cheking it in the generated report. But I can’t see the corresponding column:
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect
I tryed to do this:
- JSR223 PostProcessor whit this:
def responseBody = prev.getResponseDataAsString();
vars.put("responseBody", responseBody);
- BeanShell Sampler with this:
import org.apache.jmeter.samplers.SampleResult;
SampleResult.setResponseData(vars.get("responseBody").getBytes());
IMPORTANT: I’m executing the project in CLI mode
But it didn’t work
Anybody can help me? I will be grateful
Thanks…
Expected results:
timeStamp,elapsed,label,responseCode,responseMessage, responseBody,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Latency,IdleTime,Connect