You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by leneluxe <le...@hotmail.com> on 2011/03/07 15:11:29 UTC
Exit current iteration and start next thread loop
i have a jmeter test case as follows:
- Thread Group [loop forever]
- http request1[good]
- loop controller [loop twice]
- http request2 [good]
- http request3 [bad]
- http request4 [good]
......
Currently, if i run this i get the results:
http request1[good]
http request2[good]
http request3[bad]
http request4[good]
http request2[good]
http request3[bad]
http request4[good]
however, on http request3 failing, i want to stop current loop execution and
resume the next thread loop so i get the following results:
http request1[good]
http request2[good]
http request3[bad]
http request1[good]
http request2[good]
http request3[bad]
Can anyone help??!!! The key thing is to exit the current execution and
start the next THREAD loop.
--
View this message in context: http://jmeter.512774.n5.nabble.com/Exit-current-iteration-and-start-next-thread-loop-tp3412491p3412491.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: Exit current iteration and start next thread loop
Posted by Deepak Shetty <sh...@gmail.com>.
look at last_sample_ok along with an IF controller which checks everything
for e.g.
http://theworkaholic.blogspot.com/2009/11/dependent-tests-in-jmeter-kind-of.html
On Mon, Mar 7, 2011 at 6:11 AM, leneluxe <le...@hotmail.com> wrote:
> i have a jmeter test case as follows:
>
> - Thread Group [loop forever]
> - http request1[good]
> - loop controller [loop twice]
> - http request2 [good]
> - http request3 [bad]
> - http request4 [good]
> ......
>
> Currently, if i run this i get the results:
>
> http request1[good]
> http request2[good]
> http request3[bad]
> http request4[good]
> http request2[good]
> http request3[bad]
> http request4[good]
>
> however, on http request3 failing, i want to stop current loop execution
> and
> resume the next thread loop so i get the following results:
>
> http request1[good]
> http request2[good]
> http request3[bad]
> http request1[good]
> http request2[good]
> http request3[bad]
>
> Can anyone help??!!! The key thing is to exit the current execution and
> start the next THREAD loop.
>
> --
> View this message in context:
> http://jmeter.512774.n5.nabble.com/Exit-current-iteration-and-start-next-thread-loop-tp3412491p3412491.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: Exit current iteration and start next thread loop
Posted by leneluxe <le...@hotmail.com>.
Thanks for that @evanphelan. It works ok even though i had to dig up and
implement an old fix (bug 30563) which also did the trick. Would def save me
writing all the clutter using your method. :-)
--
View this message in context: http://jmeter.512774.n5.nabble.com/Exit-current-iteration-and-start-next-thread-loop-tp3412491p3413614.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