You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Steve Kapinos <St...@tandberg.com> on 2008/11/14 18:51:43 UTC
function syntax question with nesting
I have an existing expression...
${__BeanShell(org.apache.jmeter.threads.JMeterContextService.getNumberOf
Threads()==1)}
I want to replace '1' with a computed value containing a property.
__P(p_vcsthreadcount,1) is the property I want to base the expression
off of..
Is this valid?
${__BeanShell(org.apache.jmeter.threads.JMeterContextService.getNumberOf
Threads()==(1+${__P(p_vcsthreadcount,1)}))}
The documentation says variables can not be nested, but does not mention
functions explicitly that I could find.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
Re: function syntax question with nesting
Posted by sebb <se...@gmail.com>.
On 14/11/2008, Steve Kapinos <St...@tandberg.com> wrote:
> I have an existing expression...
>
> ${__BeanShell(org.apache.jmeter.threads.JMeterContextService.getNumberOf
> Threads()==1)}
>
> I want to replace '1' with a computed value containing a property.
>
> __P(p_vcsthreadcount,1) is the property I want to base the expression
> off of..
>
> Is this valid?
>
> ${__BeanShell(org.apache.jmeter.threads.JMeterContextService.getNumberOf
> Threads()==(1+${__P(p_vcsthreadcount,1)}))}
>
Yes, though the ",1" is redundant as __P(var) defaults to 1.
>
> The documentation says variables can not be nested, but does not mention
> functions explicitly that I could find.
>
> ---------------------------------------------------------------------
> 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