JSR223 Sampler - Pass external results back to JMeter

By xngo on July 14, 2022

Here is how to communicate with the JMeter framework from the script code.

SampleResult.setResponseCode("300");
SampleResult.setSuccessful(false);
SampleResult.setErrorCount(2);
SampleResult.setResponseData("This is the response");

JSR223 - Pass external results back to JMeter-Script

JSR223 - Pass external results back to JMeter-SampleResult

JSR223 - Pass external results back to JMeter-ResponseData

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.