https://bz.apache.org/bugzilla/show_bug.cgi?id=65552

--- Comment #5 from Felix Schumacher <[email protected]> ---
As stated on
http://jmeter.apache.org/usermanual/component_reference.html#JSR223_Sampler do
not use ${...} together with JSR223 scripts (and especially not together with
caching).

The ${...} will be replaced by JMeter on each call of the sampler and will
produce a "new" script, that has to be compiled (and then will be cached).

Instead of "abc = ${someVar}" use "abc = vars.get("someVar")". That is Groovy
code and not JMeter templating stuff.

Same thing about ${function(...)}. Do not use it in JSR223 scripts.

You can
 a) ask questions about usage of JMeter on the users mailing list (which would
have been probably the right place for this question)
 b) replace the ${..} calls with native Groovy code
 c) use the parameters line to let JMeter ${...} fill in outside of the JSR223
script.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to