jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Beznogov" <andb...@googlemail.com>
Subject Re: Infinite While Controller
Date Fri, 01 Aug 2008 06:37:11 GMT
Hi,

quoting
http://jakarta.apache.org/jmeter/usermanual/functions.html#what_can_do

Note that variables cannot currently be nested; i.e ${Var${N}} does
not work. The __V (variable) function (versions after 2.2) can be used
to do this: ${__V(Var${N})}. In earlier JMeter versions one can use
${__BeanShell(vars.get("Var${N}")}.

Here is that functions description again

http://jakarta.apache.org/jmeter/usermanual/functions.html#__V

Regards,
Andrey

On Thu, Jul 31, 2008 at 10:59 PM, Ryan Miling <rmiling@bzzagent.com> wrote:
> I am attempting to use a while controller with the following condition:
>
>
>
> ${__javaScript("${x${numX}}"!="-1",dummy)}
>
>
>
> The condition includes a reference to the variable numX, which is a
> positive integer (e.g. 1,2,3,etc.), as well as the variable x${numX}
> that is also a positive integer (e.g. x1,x2,x3,etc.). These variables do
> in fact exist and are defined well.
>
>
>
> The issue is that the loop is never-ending and never evaluates to false
> (dummy = true). I expect the error is involving a variable referenced
> within a variable, but I am not sure what is the proper syntax to do so.
> I also checked related questions and I do not have any trailing spaces
> at the end of the condition or any variable.
>
>
>
> Ryan
>
>
>
>



-- 
diem perdidi

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message