jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coret Bob" <>
Subject RE: User Parameters not evaluated in the firs request
Date Mon, 15 Nov 2004 16:18:18 GMT

I've adjusted my Testplan as follows:

> Test Plan
  > Thread Group
    > HTTP Request
      > User Defined Variables (definition of rn1 and rn2)
      > User Parameters (defition of rn3)
    > View Results Tree

When I run this testplan I see in the first request that rn1 and rn2 are not evaluated, rn3
is evaluated. In the subsequent requests all variables/parameters are evaluated.

Conclusion: your suggestion to use Pre-Processor User Parameters works!


-----Original Message-----
From:   sebb []
Sent:   Mon 15-11-2004 16:56
To:     JMeter Users List
Subject:        Re: User Parameters not evaluated in the firs request
Dunno without looking at the code, but it looks like the UDV is being
evaluated before the test has fully started.

Try using the Pre-Processor User Parameters instead.


On Mon, 15 Nov 2004 16:41:41 +0100, Coret Bob <> wrote:
> I´ve got the User Defined Variable "rn1" in my Thread Group defined as "${__Random(0,3,rn1)}".
I use this variable in the HTTP Request. The Thread Group has a loop count of 6. When I look
at the View Results Tree I see "${__Random(0,3,rn1)}" in the first request, in the following
requests I see the desired effect (a random number). I see the same effect when I user "rn2",
which is defined as "${__javaScript(Math.floor(Math.random()*4),rn2)}".
> > Test Plan
>   > Thread Group
>     > User Defined Variables (rn1 and rn2)
>     > HTTP Request
>     > View Results Tree
> I don't see errors in the log...
> I'm using JMeter 2.0.1 on Windows XP with JRE 1.4.2_06.
> Any ideas what's causing the non-evaluation in the first request?
> Regards,
> Bob

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message