You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Shmuel Krakower <sh...@gmail.com> on 2012/02/22 14:12:02 UTC
Stop thread after a sampler error
Hi all,
I am looking for a way to stop a thread if a specific sampler failed.
I cannot use the Thread Group configuration as it affects all samplers in
it and I need to stop the thread only if a specific sampler failed.
E.g. I have a login sampler in once only controller, and want to stop the
thread only if the login fails and not when any other sampler in this
thread group will fail.
Regards,
Shmuel Krakower.
Re: Stop thread after a sampler error
Posted by Shmuel Krakower <sh...@gmail.com>.
Nice, I used If controller + "${JMeterThread.last_sample_ok}" == "false"
and put Test Action in it with Stop Thread.
Thanks Philippe!
Shmuel Krakower.
On Wed, Feb 22, 2012 at 3:14 PM, Philippe Mouawad <
philippe.mouawad@gmail.com> wrote:
> Look at Test Action sampler.
>
> Regards
> Philippe
> http://www.ubik-ingenierie.com
>
> On Wed, Feb 22, 2012 at 2:12 PM, Shmuel Krakower <sh...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > I am looking for a way to stop a thread if a specific sampler failed.
> > I cannot use the Thread Group configuration as it affects all samplers in
> > it and I need to stop the thread only if a specific sampler failed.
> >
> > E.g. I have a login sampler in once only controller, and want to stop the
> > thread only if the login fails and not when any other sampler in this
> > thread group will fail.
> >
> > Regards,
> > Shmuel Krakower.
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>
Re: Stop thread after a sampler error
Posted by Philippe Mouawad <ph...@gmail.com>.
Look at Test Action sampler.
Regards
Philippe
http://www.ubik-ingenierie.com
On Wed, Feb 22, 2012 at 2:12 PM, Shmuel Krakower <sh...@gmail.com> wrote:
> Hi all,
>
> I am looking for a way to stop a thread if a specific sampler failed.
> I cannot use the Thread Group configuration as it affects all samplers in
> it and I need to stop the thread only if a specific sampler failed.
>
> E.g. I have a login sampler in once only controller, and want to stop the
> thread only if the login fails and not when any other sampler in this
> thread group will fail.
>
> Regards,
> Shmuel Krakower.
>
--
Cordialement.
Philippe Mouawad.