On 5/20/05, Seth Ladd <[EMAIL PROTECTED]> wrote:
> Seth Ladd wrote:
> > Hello,
> >
> > Thanks very much for the quick and helpful reply.
> >
> > I tried this technique in a User Defined Variable:
> >
> > Name        Value
> > today        ${__javaScript(new Date(),Dummy)}
> > bizName        ${today} ${counter}
> >
> > (note that counter is a counter setup in the thread group)
> >
> > When I try to reference the ${bizName} variable, it resolves to the
> > literal string '${today} ${counter}'
> >
> > Are variables not dereferenced in the value of a User Defined Variable?
> 
> Sorry about that... I just saw in the reference documentation that User
> Defined Variables have to be static.
> 
> What is the recommended way to construct a variable from the value of
> two different variables?
> 

No need, one can use them all in a field, e.g. the HTTP Path field
could contain:

/${dir1}/${dir2}/${file}?${p1}&${p2}

Of course, this does get a bit messy, so you can use the User
Parameters Pre-Processor instead of UDV. This does support
variables/functions.

BTW, no need to provide entries for more than 1 user - JMeter will
keep using User_1 if necessary.

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to