You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2020/04/27 11:47:24 UTC

[Bug 64245] Results tree shows incorrect values for __Random() invocations

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

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
             Status|NEW                         |RESOLVED

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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.