Hi All, I am new to JMeter and trying to do a relatively simple task in a Beanshell Sampler.
I have a loop that is going to evaluate a variable 'Size' and I want the loop to break off when Size is 0. In a Rest call, I execute an XPath query to extract values and they are returned to a variable QSize_<x>.
In my Beanshell, I want to evaluate all QSize variables, when any one of these variables is not 0, I will assign it to Size then break out of the for loop in the beanshell. If all are 0, then I want to set Size to 0 to break the While loop. Below is my script:
if (new Integer(test).intValue() > 0)
print("**********Size at index " + i + " is " + test);
foundValue = true;
I am getting the following error:
2015/05/05 09:46:56 ERROR - jmeter.util.BeanShellInter
preter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import org.apache.jmeter.util.JMe
terUtils; boolean foundValue=false; for(int i=0 . . . '' : Typed variable declaration : Error in method invocation: Static method getProperty( java.lang.String, java.lang.String ) not found in class'org.apache.jmeter.ut
Attached is my JMeter spec file, change the extention to jmx ActiveMQ.txt