https://issues.apache.org/bugzilla/show_bug.cgi?id=56552
Michael Osipov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #2 from Michael Osipov <[email protected]> --- (In reply to Sebb from comment #1) > If I understand correctly, this is nothing to do with caching. > > The problem is that both Groovy and JMeter use the same syntax - i.e. > ${varname} - to refer to variables. So JMeter replaces ${varname} with the > contents of the variable before Groovy sees the script. Not exactly, if I understand caching correctly, JMeter processes (filters) the script one, passes to Groovy, caches the result and then uses it over and over again. So the result is that the JMeter interpolation happens only once, at compile/cache time. > If this is so, then there are several options: > > 1) use a file rather than an in-line script In my case, script are a few lines, I do not to scatter stuff. > 2) use a variable name that is not defined in JMeter, as Jmeter leaves such > references alone Yes, that is a workaround only. > 3) escape the $ or the { with backslash How? \$? I haven't found a clear paragraph on the in the functions reference. -- You are receiving this mail because: You are the assignee for the bug.
