I am trying to extract the results from my JBDC Request sampler using Bean shell assertion
I added a beanshell assertion to my sampler to extract the results and I got an error while running it. The Code in question is :
if (!ResponseCode.equals("200") || vars.getObject("dataFromDB").size() == 0) {
FailureMessage = "!!!!!!!!!!! No connection to the database or data not
received !!!!!!!!!!!";
Failure = true;
prev.setStopThread(true):
}
Where dataFromDB is the result variable name of my JBDC Request Sampler
The Error is : Assertion failure message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval