If something does not work, always check in jmeter.log for error messages.
BeanShell is optional, so you need to download the jar from
www.beanshell.org and put it in the lib directory before you can use
it.
I meant that someone could create a new function to evaluate its
parameter as a variable - which is what the BeanShell script is
currently doing.
S.
On 7/11/05, Grigoryan, Lilit <[EMAIL PROTECTED]> wrote:
> Hi Sebb,
>
> Thank you very much for the clarification.
> I've tried ${__BeanShell(vars.get("${VAR1}${VAR2}"))}, where
> VAR1=componentID and VAR2=1, but the function doesn't return anything.
>
> Please, clarify what you mean by creating var() function.
>
> Thanks,
> Lilit
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 11, 2005 4:22 PM
> To: JMeter Users List
> Subject: Re: function within variable
>
> Nested variables don't seem to work.
>
> However, variables nested inside function calls do work.
> For example:
>
> Set variables:
> VAR1=abc
> VAR2=def
> abcdef=xyz
>
> and then the following gives:
>
> ${__BeanShell(vars.get("${VAR1}${VAR2}"))}
>
> xyz
>
> If it's not easy / desirable to fix nested variables, it should be
> easy to create a var() function that does the same as the BeanShell
> script above (with less typing and overhead).
>
> S.
> On 7/11/05, Darko Jovisic <[EMAIL PROTECTED]> wrote:
> > I'm also having the same problem when iterating foreach. I have more
> > regexs and i want to iterate through all of them at the same time so I
> > use:
> >
> > ${status_g${__counter(FALSE,C)}}
> >
> > and I get:
> >
> > status=${FALSE,C)}}
> >
> > Cheers,
> > Darko
> >
> > -----Original Message-----
> > From: Grigoryan, Lilit [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 11, 2005 9:29 AM
> > To: [email protected]
> > Subject: function within variable
> >
> > Hi,
> >
> >
> >
> > I am trying to insert a number into a variable by using the following
> > expression ${componentID${__counter(false,counter)}}, but I am getting
> > ${false,counter)}} instead of ${componentID1}.
> >
> > Please, advise.
> >
> >
> >
> > Thanks,
> >
> > Lilit
> >
> >
> > ---------------------------------------------------------------------
> > 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]
>
>
>
>
> ---------------------------------------------------------------------
> 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]