I have this code in my Beanshell Post Processor
String line;
String[] words;
line = SampleResult.getResponseMessage(); log.info(msg);
words = line.split("*");
log.info("Here We are");
for (int i = 0; i < words.length; i++) {
log.info(words[i]);
}
This is the error I'm getting
2017/02/21 14:23:31 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of:
String line; String[] words; line = SampleResult.getResponseMessage(); log.inf . . . '' : Attempt to resolve method: getResponseMessage() on undefined variable or class name: SampleResult 2017/02/21 14:23:31 WARN - jmeter.extractor.BeanShellPostProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of:
String line; String[] words; line = SampleResult.getResponseMessage(); log.inf . . . '' : Attempt to resolve method: getResponseMessage() on undefined variable or class name: SampleResult
SampleResult
from? because if you read the error its mor or less saying " I dont know whatSampleResult
is." – TehTris