I have got several thread groups. I want to use variable from the first group. In second group this var should be used in BeanShell. So: in first thread group I created BeanShell Assertion with this code:
${__setProperty(erroriden, ${erroriden1})};
In second thread group I have BeanShell pre-processor. If has line like this:
String[] erroriden = (vars.get("erroriden")).split(",");
I tried some variations like this:
String[] erroriden = (vars.get("__property(erroriden)")).split(",");
String[] erroriden = (vars.get("${__property(erroriden)}")).split(",");
but it doesn't work. Please help to use ${__property(erroriden)} in BeanShell pre-processor.
String[] erroriden = (vars.get("${__property(erroriden)}")).split(",");works ok. Log says:2015/06/23 16:33:25 WARN - jmeter.modifiers.BeanShellPreProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import java.util.Random; String[] erroriden = (vars.get("6618291,2072106868,601 . . . '' : Typed variable declaration- Ololowa QA