New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
random function generate multiple value when access more than once #6269
Comments
This appears to be caused by #5788 in version 5.6 |
That seems about right for a random function, doesn't it? |
I would say |
@vlsi the main problem is generate random number and use that number to generate Mac. |
Could you share a reproducer script, expected and the actual output? |
Here is a script: jmeter-regression-v5.6.jmx.txt Expected would be that the SampleResult's label and URL match as they do with the caching. JTL output from v5.5
vs. 5.6.3
This might be an unintended consequence of the caching removal, but I think this is not unreasonable to expect that the sampler properties are evaluated once. |
The problem the author has is that the Random function is evaluated once when accessing the sampler payload for generating the MAC (in his JSR223 Preprocessor or likewise in a plugin's preprocessor) and then again when the sampler samples, resulting in a MAC mismatch. |
Hi
I'm using jmeter 5.6.2 with iso8583 plugin.
try to use this groovy script but seems jmeter create two value for field 11 that use random function ${__Random(111111111111,999999999999,)}!
seems random function generate multiple value when access more than once!
FYI: main issue report here and developer of this plugin told me this issue related to jmeter 5.6.2!
Would you please fix this issue?
Any idea?
Thanks
The text was updated successfully, but these errors were encountered: