My work around for this issue has been to use the "If Controller" with
the condition ${JMeterThread.last_sample_ok}. If your test plan isn't
overly complicated you add it as a parent to a number of samplers and
check "Evaluate for all children". If you have a number of nested
controllers you may have to add it as a parent to each sampler.
Stan
-----Original Message-----
From: Saurabh Gupta [mailto:[email protected]]
Sent: Thursday, October 14, 2010 4:59 AM
To: JMeter Users List
Subject: Re: How to stop iteration and log the error in a file
Sebb,
If we choose option "Continue" in Thread Group and save the error in
output
file, it does but here we need to stop the iteration when an error comes
and
log the error in file.
Can you please suggest which Listener will be best at the time of load
along
with the configuration options.
Best Regards,
Saurabh
On Thu, Oct 14, 2010 at 4:06 PM, sebb <[email protected]> wrote:
> On 14 October 2010 06:11, Saurabh Gupta <[email protected]>
> wrote:
> > Hi,
> >
> > I have seen that if we choose option "Continue" in Thread Group, it
> continue
> > performing action if we get an error.
> >
> > Also if we choose "Stop Thread", it will stop the VU and also
doesn't log
> > the error message in file.
> >
> > So is there any way to stop the iteration as soon as error occurs
and
> error
> > is to be logged in file in JMeter??
>
> The error will be noted in the sampler data output file.
>
> > Please suggest.
> >
> > --
> > Regards,
> > Saurabh
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
Regards,
Saurabh
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]