You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Eddie O'Sullivan <eo...@qad.com> on 2009/10/08 13:25:19 UTC
Variable containing a variable
Hi all,
Is it possible for a JMeter variable to contain a variable.
Example:
If I have a counter C and the following variables Order_1 Order_2
Order_3
Can I pass ${Order_${C}} into a beanshell sampler? It seems to pass in
Order_${C}
Thanks in advance,
Eddie
Eddie O'Sullivan (Embedded image
Application Performance moved to file:
Group pic18593.gif)
QAD Ireland Ltd. eos@qad.com
Hamilton House Tel: +353 61
National Technological 213616
Park http://www.qad.com/
Limerick, Ireland
This e-mail may contain
QAD proprietary
information and should
be treated as
confidential.
Re: Variable containing a variable
Posted by Eddie O'Sullivan <eo...@qad.com>.
Hi Jose,
Thanks for the reply, that was not quiet exactly what I was looking for as
I need the result to be a variable containing the string but from reading
more of the documentation the Variable function from Jmeter 2.2+ does
exactly what I need.
http://jakarta.apache.org/jmeter/usermanual/functions.html#__V
Example:
If I have a counter C and the following variables Order_1 Order_2 Order_3
Can I pass ${Order_${C}} into a beanshell sampler? It seems to pass in
Order_${C}
So the function I use is: ${__V(Order_${C})}
Eddie
Eddie O'Sullivan (Embedded image
Application Performance moved to file:
Group pic17554.gif)
QAD Ireland Ltd. eos@qad.com
Hamilton House Tel: +353 61
National Technological 213616
Park http://www.qad.com/
Limerick, Ireland
This e-mail may contain
QAD proprietary
information and should
be treated as
confidential.
From: Jose Pablo Sarco <jo...@gmail.com>
To: JMeter Users List <jm...@jakarta.apache.org>
Date: 10/08/2009 03:05 PM
Subject: Re: Variable containing a variable
Hi,
You can try with functions:
http://jakarta.apache.org/jmeter/usermanual/functions.html#__evalVar
or
http://jakarta.apache.org/jmeter/usermanual/functions.html#__eval
Best regards,
Jose
On Thu, Oct 8, 2009 at 8:25 AM, Eddie O'Sullivan <eo...@qad.com> wrote:
> Hi all,
>
> Is it possible for a JMeter variable to contain a variable.
>
> Example:
> If I have a counter C and the following variables Order_1 Order_2
> Order_3
>
> Can I pass ${Order_${C}} into a beanshell sampler? It seems to pass in
> Order_${C}
>
> Thanks in advance,
> Eddie
>
>
>
> Eddie O'Sullivan (Embedded image
> Application Performance moved to file:
> Group pic18593.gif)
>
>
> QAD Ireland Ltd. eos@qad.com
> Hamilton House Tel: +353 61
> National Technological 213616
> Park http://www.qad.com/
> Limerick, Ireland
>
>
>
> This e-mail may contain
> QAD proprietary
> information and should
> be treated as
> confidential.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
Re: Variable containing a variable
Posted by Jose Pablo Sarco <jo...@gmail.com>.
Hi,
You can try with functions:
http://jakarta.apache.org/jmeter/usermanual/functions.html#__evalVar
or
http://jakarta.apache.org/jmeter/usermanual/functions.html#__eval
Best regards,
Jose
On Thu, Oct 8, 2009 at 8:25 AM, Eddie O'Sullivan <eo...@qad.com> wrote:
> Hi all,
>
> Is it possible for a JMeter variable to contain a variable.
>
> Example:
> If I have a counter C and the following variables Order_1 Order_2
> Order_3
>
> Can I pass ${Order_${C}} into a beanshell sampler? It seems to pass in
> Order_${C}
>
> Thanks in advance,
> Eddie
>
>
>
> Eddie O'Sullivan (Embedded image
> Application Performance moved to file:
> Group pic18593.gif)
>
>
> QAD Ireland Ltd. eos@qad.com
> Hamilton House Tel: +353 61
> National Technological 213616
> Park http://www.qad.com/
> Limerick, Ireland
>
>
>
> This e-mail may contain
> QAD proprietary
> information and should
> be treated as
> confidential.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>