You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by zillakilla <zi...@sogetthis.com> on 2011/04/23 11:10:07 UTC

Re: JMeter counter

set the max value of the counter to:
${VARIABLE_matchNr}


zilla

--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-counter-tp4333626p4334450.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: JMeter counter

Posted by zillakilla <zi...@sogetthis.com>.
Try moving the counter so it is BEFORE the loop controller
(i cannot test this as I am not at work, this is from memory)

HTH
zilla

--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-counter-tp4333626p4344713.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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


Re: JMeter counter

Posted by zillakilla <zi...@sogetthis.com>.
Can you change the WHILE controller to a LOOP controller?
then set the Loop Count of the LOOP controller to ${VARIABLE_matchNr} 
So your test plan look like this:

++Thread 
  +HTTP Request 
    -Regular Expression Extractor (stored as VARIABLE) 
  +LOOP Controller [Loop count = ${VARIABLE_matchNr}]
    -Counter (count)  [MAX value = ${VARIABLE_matchNr}]
    -HTTP Request (this will use ${__V(VARIABLE_${count}_g1)} 

HTH
Zilla

--
View this message in context: http://jmeter.512774.n5.nabble.com/JMeter-counter-tp4333626p4340310.html
Sent from the JMeter - User mailing list archive at Nabble.com.

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