On 04/01/2008, André van Hoorn
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> not sure whether I understood you correctly, but:
> Try using "User Parameters" (underneath the "Pre Processors") instead of
> "User Defined Variables" (and check "Update Once Per Iteration"). User
> Parameters are local to a thread (which I think is what you need)
> whereas User Defined Parameters are global to all threads.
>

Not so - all variables are local to a thread, whether defined via UP or UDV.

The difference between UP and UDV is that the former is a
Pre-Processor which runs for each sampler in scope, whereas UDV is a
config item which is processed once each loop before all the samplers.

> Best regards,
>
> André
>
>
> Wing Tang wrote, on 04.01.2008 11:20:
> > Hello,
> >
> > I have the following scenario which i cant get to work correctly, it always
> > return the last set of the User Defined Variables.
> >
> >
> > I have a generic login script that i want to use for different enviroments,
> > for instance a Development (dev) enviroment and a System Integration (si)
> > enviroment.
> > In Jmeter i have created the following structure in order to set the
> > corresponding user defined variables for the different enviroments, these
> > are variables like servername, serverport and protocol:
> >
> > -Thread Group
> > -- If Controller (( "${env}" == "dev" ))
> > --- User Defined Variables (servername, serverport, protocol of the
> > development environment)
> > -- If Controller (( "${env}" == "si" ))
> > --- User Defined Variables (servername, serverport, protocol of the system
> > integration environment)
> >
> >
> > The problem is that when i set my env on dev, than it returns the last set
> > of the User Defined Variables which is the system integration.
> >
> > Hopefully someone can explain or help me out whether i am doing it wrong or
> > is it just not possible what i want?
> >
> > Thanks in advance,
> >
> > Wing
> >
>
>
> --
>  Dipl.-Inform. André van Hoorn
>  Software Engineering Group
>  University of Oldenburg, D-26111 Oldenburg, Germany
>  Room A2 2-235
>  Tel: +49 (0)441 798-2365
>  E-Mail: [EMAIL PROTECTED]
>  URL: http://se.informatik.uni-oldenburg.de/Members/andrevh
>
> ---------------------------------------------------------------------
> 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]

Reply via email to