jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Flavio Cysne <flaviocy...@gmail.com>
Subject Re: passing variable in __Random() method call in Beanshell
Date Tue, 21 May 2013 11:59:48 GMT
Use ${__Random(${accountIdRange})} as an argument in BeanShell Processor,
then, use it:

vars.put("randomAccountId", bsh.args[0]);

Another option is to use a Random Variable component


2013/5/21 hamepal@gmail.com <hamepal@gmail.com>

> Currently I am using Java.lang.Math
> Math.Random() method to achieve the same functionality. But I was curious
> about the right syntax of the method call.
>
>
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/passing-variable-in-Random-method-call-in-Beanshell-tp5716932p5716934.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message