On 29/09/2008, Laurent Perez <[EMAIL PROTECTED]> wrote:
> Hi
>
> Does the Thread group element support variables inside Calendar
> duration/startup delay fields ?
Yes.
> I'm using a beanshell postprocessor like :
> u1duration = 180;
> u1delay = 10;
> vars.put("u1duration", String.valueOf(u1duration));
> vars.put("u1delay",String.valueOf(u1delay));
> print(cal.getTime() + "u1: " + vars.get("u1duration") + "/" +
> vars.get("u1delay"));
> -> the output here is : Tue Sep 30 12:14:23 CEST 2008u1: 180/10
>
> However, when I use ${u1duration} and ${u1delay in fields}, they are
> not used by the thread group : the group just starts, then stops,
> without performing anything.
You need to define the variables on the Test Plan (or use properties
and define them on the command-line or jmeter.properties.)
By the time the beanshell post-processor is invoked, the test has
already started.
> Are variables supported in thread group element ?
>
> Thanks
> laurent
>
>
>
> --
> <a href="http://in-pocket.blogspot.com">http://in-pocket.blogspot.com
> - Mobile world, technology and more</a>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]