You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Roger Laenen <ro...@pandora.be> on 2003/11/23 21:31:29 UTC
How to reuse a function value ?
Hi all,
I have a thread group consisting of a simple controller that contains 2 http requests. In the first http request one of the parameters contains the following Random function
${__Random(1,100, stbid)}
In the second http request I want to re-use the random value in one of the parameters by specifying ${stbid}
However, instead of putting the value it just puts ${stbid} in the request parameter value.
I've been looking in the docs and in the mail archive but don't find any clues for this. What am i doing wrong here ?
tx in advance for any help.
Roger.
Re: How to reuse a function value ?
Posted by Roger Laenen <ro...@pandora.be>.
Great,
That was exactly the problem.
Tal Jordi.
----- Original Message -----
From: "Jordi Salvat i Alabart" <js...@atg.com>
To: "JMeter Users List" <jm...@jakarta.apache.org>
Sent: Sunday, November 23, 2003 9:50 PM
Subject: Re: How to reuse a function value ?
> I'd say the space between the comma and stbid is causing the problem.
> Try "${__Random(1,100,stbid)}" instead.
>
> Salut,
>
> Jordi.
>
> En/na Roger Laenen ha escrit:
> > Hi all,
> >
> > I have a thread group consisting of a simple controller that contains 2
http requests. In the first http request one of the parameters contains the
following Random function
> >
> > ${__Random(1,100, stbid)}
> >
> > In the second http request I want to re-use the random value in one of
the parameters by specifying ${stbid}
> >
> > However, instead of putting the value it just puts ${stbid} in the
request parameter value.
> >
> > I've been looking in the docs and in the mail archive but don't find any
clues for this. What am i doing wrong here ?
> >
> > tx in advance for any help.
> >
> >
> > Roger.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: How to reuse a function value ?
Posted by Jordi Salvat i Alabart <js...@atg.com>.
I'd say the space between the comma and stbid is causing the problem.
Try "${__Random(1,100,stbid)}" instead.
Salut,
Jordi.
En/na Roger Laenen ha escrit:
> Hi all,
>
> I have a thread group consisting of a simple controller that contains 2 http requests. In the first http request one of the parameters contains the following Random function
>
> ${__Random(1,100, stbid)}
>
> In the second http request I want to re-use the random value in one of the parameters by specifying ${stbid}
>
> However, instead of putting the value it just puts ${stbid} in the request parameter value.
>
> I've been looking in the docs and in the mail archive but don't find any clues for this. What am i doing wrong here ?
>
> tx in advance for any help.
>
>
> Roger.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org