I worked around the issue by adding "If Controller
${JMeterThread.last_sample_ok}" to each sampler. Using the "Evaluate
for all Children" seemed to be a nice way of handling the check if the
prior sampler had failed.
Would be nice if the Thread group had an option "Continue to next
iteration on error" as well as the other options.
Stan
-----Original Message-----
From: Deepak Shetty [mailto:[email protected]]
Sent: Wednesday, September 29, 2010 3:28 PM
To: JMeter Users List
Subject: Re: Problem with If Controller - Evaluate for all Children
Hi
I dont see a problem with Last Sampler Ok, its terminating correctly
right ,
no sampler after the error is executed?
>The second pass should execute the same set of samplers failing at the
same spot, however, it doesn't.
Not necessarily. Your test might be passing something incorrectly at the
next *pass* (Incidentally when you mean pass Im assuming you mean your
ThreadGroup is set for multiple iterations). Maybe you are trying to
create
something that already exists , Youll have to look at your test and see
what
each sampler is passing and why it fails. Sometimes looking at the
response
might tell you if the application returns a readable error message (or
if
you have access to the applications logs).
Another possibility is that your application is using cookies and the
second
pass is differing from the first pass due to this (since you have
signout ,
and im assuming it is working , it shouldnt be because of session). From
your attached screen I cant make out where /secure/create sampler is and
under what condition JMeter takes that path.
Otherwise you have to fallback to the same old compare browser with
Jmeter..
regards
deepak
On Wed, Sep 29, 2010 at 2:45 PM, Derry, Stanton
<[email protected]>wrote:
> Sorry for the attachment.... The View Results Tree Listener screen
> snapshot is at
>
https://docs.google.com/leaf?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY2LWE
>
1OTUtNTZiZTEwMDAyMWMy&hl=en&authkey=CKbCzP4J<https://docs.google.com/lea
f?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl
=en&authkey=CKbCzP4J>
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:[email protected]]
> Sent: Wednesday, September 29, 2010 1:36 PM
> To: JMeter Users List
> Subject: Re: Problem with If Controller - Evaluate for all Children
>
> upload the files somewhere and post a link.
>
> On Wed, Sep 29, 2010 at 12:52 PM, Derry, Stanton
> <[email protected]>wrote:
>
> > Using JMeter 2.4 r961953. In my test plan I have an "If
> > Controller"(LastSampleOk) as a parent of Controllers and HTTP
Samplers
> with
> > "Evaluate for all children" set. The condition for LastSmapleOk is
> > ${JMeterThread.last_sample_ok}. I executed two passes, the first
pass
> works
> > flawlessly and doesn't execute any samplers in the LastSampleOk
scope
> after
> > a failure. The second pass should execute the same set of samplers
> failing
> > at the same spot, however, it doesn't. I've attached a screen
> snapshot of
> > the test plan and view results tree listener. What is even more
> perplexing
> > is the listener shows a sampler in the second pass that should have
> never
> > been reached.
> >
> >
> >
> > How robust is the "If Controller with Evaluate for all Children" ?
> >
> > Do I need to clear jmeter variables at the end of an iteration?
> >
> >
> >
> > Stan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
---------------------------------------------------------------------
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]