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

Philippe Mouawad <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
                 CC|                            |[email protected]
                   |                            |om
             Status|NEW                         |RESOLVED

--- Comment #1 from Philippe Mouawad <[email protected]> ---
There is no bug here.

You are using a function inside a JSR223 Sampler where you have checked "Cache
compiled script if available".
As a consequence script is compiled on first run with result of evaluating
${__Random(1000000000,9999999999)}. 
Then you always get same Value during run.

In View Results Tree, you see a different result because script is evaluated.

But if you add return val to your script you'll see it's always the same value
returned.

To fix your script, put the function call in Parameters and then use value in
script as Parameters variable.

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

Reply via email to