Lines 23-29
Link Here
|
23 |
import org.apache.commons.jexl3.JexlBuilder; |
23 |
import org.apache.commons.jexl3.JexlBuilder; |
24 |
import org.apache.commons.jexl3.JexlContext; |
24 |
import org.apache.commons.jexl3.JexlContext; |
25 |
import org.apache.commons.jexl3.JexlEngine; |
25 |
import org.apache.commons.jexl3.JexlEngine; |
26 |
import org.apache.commons.jexl3.JexlExpression; |
26 |
import org.apache.commons.jexl3.JexlScript; |
27 |
import org.apache.commons.jexl3.MapContext; |
27 |
import org.apache.commons.jexl3.MapContext; |
28 |
import org.apache.jmeter.engine.util.CompoundVariable; |
28 |
import org.apache.jmeter.engine.util.CompoundVariable; |
29 |
import org.apache.jmeter.samplers.SampleResult; |
29 |
import org.apache.jmeter.samplers.SampleResult; |
Lines 91-98
Link Here
|
91 |
jc.set("OUT", System.out);//$NON-NLS-1$ |
91 |
jc.set("OUT", System.out);//$NON-NLS-1$ |
92 |
|
92 |
|
93 |
// Now evaluate the script, getting the result |
93 |
// Now evaluate the script, getting the result |
94 |
JexlExpression e = getJexlEngine().createExpression( exp ); |
94 |
JexlScript e = getJexlEngine().createScript(exp); |
95 |
Object o = e.evaluate(jc); |
95 |
Object o = e.execute(jc); |
96 |
if (o != null) |
96 |
if (o != null) |
97 |
{ |
97 |
{ |
98 |
str = o.toString(); |
98 |
str = o.toString(); |