jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: Modulus in If Controller
Date Tue, 10 Jul 2007 20:47:50 GMT
The If controller uses Javascript (Rhino).

There's some documentation here:

http://developer.mozilla.org/en/docs/JavaScript_Language_Resources

It looks like the operator is %, so I would try:

(${COUNT} % 10) == 0


S.
On 10/07/07, Hugh Hunter <hhunter@oversee.net> wrote:
> Been struggling at this for a while.  I want to use an If Controller to
> only call a sampler every 10 iterations through the test plan.  So I
> have a counter storing as ${COUNT} and I've tried:
>
> ${COUNT} % 10 == 0
>
> in the If Controller as well as
>
> ${COUNT} MOD 10 == 0
>
> Any ideas?
>
> --Hugh
>
> --
> Hugh Hunter
> Sr. QA Engineer
> ------------------------------------
> Oversee.net
> 818 W. 7th St. Suite 700
> Los Angeles, CA 90017
> Main: 213.408.0080
> Fax: 213.892.1227
> hhunter@oversee.net
> www.oversee.net
> ------------------------------------
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message