Please read:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller

On 09/05/07, CharekC <[EMAIL PROTECTED]> wrote:

I have a similar situation to the original poster but I want to assign my
while loop a maximum number of iterations.
I've created a counter preprocessor inside the while loop as well as a
response assertion after the http sampler.

My while condition currently is ${JMeterThread.last_sample_ok} but I want
something like
 ${JMeterThread.last_sample_ok}  &&  ${count} < 10
But that doesn't seem to work

Do I have to use beanshell or javascript for this kind of expression?


sebb-2 wrote:
>
> 
http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_Controller
>
> Either:
>
> use LAST and add an assertion to set the sampler as failed
>
> Or:
>
> use ${VARIABLE} and have the P-P set VARIABLE=FALSE when you are done.
>
>
>
> On 28/02/07, Bernhard Wellhöfer <[EMAIL PROTECTED]>
> wrote:
>> Hello,
>>
>> I have one question regarding while controllers:
>>
>> What I need is a while controller which has one HTTP request sampler as
>> only child. E.g. a post processor to the HTTP request checks whether the
>> response body contains a specific text. If yes the while controller
>> should stop and if not the while controller should continue to call the
>> HTTP request sampler. Here the simple test tree:
>>
>> While Controller (loop until Post Processor detects a specific text in
>> the response)
>>    HTTP Request Sampler
>>        Post Processor
>>
>> I read the whole JMeter documentation, but have no idea how to implement
>> this feature in JMeter.
>>
>> Thx in advance,
>>
>> Bernhard
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context: 
http://www.nabble.com/While-Controller-question-tf3307648.html#a10394987
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]

Reply via email to