You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by "Derry, Stanton" <st...@intuit.com> on 2010/09/29 21:52:18 UTC

Problem with If Controller - Evaluate for all Children

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

 

 

 

 


Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
FYI
The status of this bug is now marked as resolved and can be taken from the
next nightly build

https://issues.apache.org/bugzilla/show_bug.cgi?id=50032

Thanks to Milamber and Sebb.
regards
deepak


On Thu, Sep 30, 2010 at 10:53 AM, Deepak Shetty <sh...@gmail.com> wrote:

> Hi
> Raised Bugzilla issue -
> https://issues.apache.org/bugzilla/show_bug.cgi?id=50032
>
> Briefly
>
>  if the test plan is
> Thread Group (Thread = 1 , Loop =2)
> +Sample1
> +If Controller (${JMeterThread.last_sample_ok})
> ++Sample2
> ++Sample3  (always fails)
> ++Sample4  (always fails)
> Then the test plan executes correctly (i.e. Result is Sample1, Sample2,
> Sample3(failed) ,Sample1, Sample2, Sample3(failed)
>
>
> However if now we add a Simple Controller so that the plan is
> Thread Group (Thread = 1 , Loop =2)
> +Sample1
> +If Controller (${JMeterThread.last_sample_ok})
> ++Sample2
> ++Simple Controller
> +++Sample3  (always fails)
> +++Sample4  (always fails)
>
> Then the test plan executes incorrectly(i.e. Result is Sample1, Sample2,
> Sample3(failed) ,Sample1, Sample2, *Sample4(failed)*
>
> The only workaround I can see is to not have the simple controller (but
> other controllers like the IF will similarly impact the behavior so this
> isnt very viable)
>
>
> regards
> deepak
>
>
>
>
> On Wed, Sep 29, 2010 at 4:33 PM, Deepak Shetty <sh...@gmail.com> wrote:
>
>> hi
>> yes . I wont be able to try it out till later today though .
>>
>> regards
>> deepak
>>
>>
>> On Wed, Sep 29, 2010 at 4:20 PM, Derry, Stanton <st...@intuit.com>wrote:
>>
>>> Can I send the link directly to you?
>>>
>>> -----Original Message-----
>>> From: Deepak Shetty [mailto:shettyd@gmail.com]
>>> Sent: Wednesday, September 29, 2010 3:47 PM
>>> To: JMeter Users List
>>> Subject: Re: Problem with If Controller - Evaluate for all Children
>>>
>>> How many threads do you have running and from the screenshot I cant make
>>> out
>>> whether they are simple controllers / if controllers or something
>>> completely
>>> different?  Again whether or not the test fails at the same point
>>> depends on
>>> your test.
>>> Ill try this for simplified test case and see if it behaves as
>>> expected...
>>>
>>> On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton
>>> <st...@intuit.com>wrote:
>>>
>>> > The two passes, from InTheBeginning to AtTheEnd, should have produced
>>> > the same set of samplers and  errors.  In the first pass the  flow
>>> fails
>>> > at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope
>>> of
>>> > LastSampleOk are not executed.  In the second pass,  a failure  occurs
>>> > at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
>>> > TTO-0100 to have  been executed JMeter should have executed 6 prior
>>> > samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
>>> >
>>> > Stan
>>> >
>>> > -----Original Message-----
>>> > From: Deepak Shetty [mailto:shettyd@gmail.com]
>>> > 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
>>> > <st...@intuit.com>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
>>> <https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY
>>> 2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
>>> > =en&authkey=CKbCzP4J>
>>> > >
>>> > > Stan
>>> > >
>>> > > -----Original Message-----
>>> > > From: Deepak Shetty [mailto:shettyd@gmail.com]
>>> > > 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
>>> > > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
>>> > > > For additional commands, e-mail:
>>> jmeter-user-help@jakarta.apache.org
>>> > > >
>>> > >
>>> > >
>>> ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>> > >
>>> > >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>
>

Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
Hi
Raised Bugzilla issue -
https://issues.apache.org/bugzilla/show_bug.cgi?id=50032

Briefly

 if the test plan is
Thread Group (Thread = 1 , Loop =2)
+Sample1
+If Controller (${JMeterThread.last_sample_ok})
++Sample2
++Sample3  (always fails)
++Sample4  (always fails)
Then the test plan executes correctly (i.e. Result is Sample1, Sample2,
Sample3(failed) ,Sample1, Sample2, Sample3(failed)


However if now we add a Simple Controller so that the plan is
Thread Group (Thread = 1 , Loop =2)
+Sample1
+If Controller (${JMeterThread.last_sample_ok})
++Sample2
++Simple Controller
+++Sample3  (always fails)
+++Sample4  (always fails)

Then the test plan executes incorrectly(i.e. Result is Sample1, Sample2,
Sample3(failed) ,Sample1, Sample2, *Sample4(failed)*

The only workaround I can see is to not have the simple controller (but
other controllers like the IF will similarly impact the behavior so this
isnt very viable)


regards
deepak



On Wed, Sep 29, 2010 at 4:33 PM, Deepak Shetty <sh...@gmail.com> wrote:

> hi
> yes . I wont be able to try it out till later today though .
>
> regards
> deepak
>
>
> On Wed, Sep 29, 2010 at 4:20 PM, Derry, Stanton <st...@intuit.com>wrote:
>
>> Can I send the link directly to you?
>>
>> -----Original Message-----
>> From: Deepak Shetty [mailto:shettyd@gmail.com]
>> Sent: Wednesday, September 29, 2010 3:47 PM
>> To: JMeter Users List
>> Subject: Re: Problem with If Controller - Evaluate for all Children
>>
>> How many threads do you have running and from the screenshot I cant make
>> out
>> whether they are simple controllers / if controllers or something
>> completely
>> different?  Again whether or not the test fails at the same point
>> depends on
>> your test.
>> Ill try this for simplified test case and see if it behaves as
>> expected...
>>
>> On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton
>> <st...@intuit.com>wrote:
>>
>> > The two passes, from InTheBeginning to AtTheEnd, should have produced
>> > the same set of samplers and  errors.  In the first pass the  flow
>> fails
>> > at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope
>> of
>> > LastSampleOk are not executed.  In the second pass,  a failure  occurs
>> > at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
>> > TTO-0100 to have  been executed JMeter should have executed 6 prior
>> > samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
>> >
>> > Stan
>> >
>> > -----Original Message-----
>> > From: Deepak Shetty [mailto:shettyd@gmail.com]
>> > 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
>> > <st...@intuit.com>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
>> <https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY
>> 2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
>> > =en&authkey=CKbCzP4J>
>> > >
>> > > Stan
>> > >
>> > > -----Original Message-----
>> > > From: Deepak Shetty [mailto:shettyd@gmail.com]
>> > > 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
>> > > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
>> > > > For additional commands, e-mail:
>> jmeter-user-help@jakarta.apache.org
>> > > >
>> > >
>> > >
>> ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>

Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
hi
yes . I wont be able to try it out till later today though .

regards
deepak

On Wed, Sep 29, 2010 at 4:20 PM, Derry, Stanton <st...@intuit.com>wrote:

> Can I send the link directly to you?
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> Sent: Wednesday, September 29, 2010 3:47 PM
> To: JMeter Users List
> Subject: Re: Problem with If Controller - Evaluate for all Children
>
> How many threads do you have running and from the screenshot I cant make
> out
> whether they are simple controllers / if controllers or something
> completely
> different?  Again whether or not the test fails at the same point
> depends on
> your test.
> Ill try this for simplified test case and see if it behaves as
> expected...
>
> On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton
> <st...@intuit.com>wrote:
>
> > The two passes, from InTheBeginning to AtTheEnd, should have produced
> > the same set of samplers and  errors.  In the first pass the  flow
> fails
> > at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope
> of
> > LastSampleOk are not executed.  In the second pass,  a failure  occurs
> > at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
> > TTO-0100 to have  been executed JMeter should have executed 6 prior
> > samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
> >
> > Stan
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > 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
> > <st...@intuit.com>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
> <https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY
> 2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
> > =en&authkey=CKbCzP4J>
> > >
> > > Stan
> > >
> > > -----Original Message-----
> > > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > > 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
> > > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
> > > >
> > >
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Problem with If Controller - Evaluate for all Children

Posted by "Derry, Stanton" <st...@intuit.com>.
Can I send the link directly to you?

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Wednesday, September 29, 2010 3:47 PM
To: JMeter Users List
Subject: Re: Problem with If Controller - Evaluate for all Children

How many threads do you have running and from the screenshot I cant make
out
whether they are simple controllers / if controllers or something
completely
different?  Again whether or not the test fails at the same point
depends on
your test.
Ill try this for simplified test case and see if it behaves as
expected...

On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton
<st...@intuit.com>wrote:

> The two passes, from InTheBeginning to AtTheEnd, should have produced
> the same set of samplers and  errors.  In the first pass the  flow
fails
> at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope
of
> LastSampleOk are not executed.  In the second pass,  a failure  occurs
> at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
> TTO-0100 to have  been executed JMeter should have executed 6 prior
> samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> 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
> <st...@intuit.com>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
<https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY
2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
> =en&authkey=CKbCzP4J>
> >
> > Stan
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > 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
> > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
jmeter-user-help@jakarta.apache.org
> > >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Problem with If Controller - Evaluate for all Children

Posted by "Derry, Stanton" <st...@intuit.com>.
Thread Group properties, 1 thread, loop 2. There is a combination of If,
Simple, and Throughput controllers in the scope of LastSampleOk which is
an If controller with the condition ${JMeterThread.last_sample_ok} and
Evaluate for all children selected. If I can  post the  test plan  I
will.

Stan

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
Sent: Wednesday, September 29, 2010 3:47 PM
To: JMeter Users List
Subject: Re: Problem with If Controller - Evaluate for all Children

How many threads do you have running and from the screenshot I cant make
out
whether they are simple controllers / if controllers or something
completely
different?  Again whether or not the test fails at the same point
depends on
your test.
Ill try this for simplified test case and see if it behaves as
expected...

On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton
<st...@intuit.com>wrote:

> The two passes, from InTheBeginning to AtTheEnd, should have produced
> the same set of samplers and  errors.  In the first pass the  flow
fails
> at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope
of
> LastSampleOk are not executed.  In the second pass,  a failure  occurs
> at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
> TTO-0100 to have  been executed JMeter should have executed 6 prior
> samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> 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
> <st...@intuit.com>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
<https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY
2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
> =en&authkey=CKbCzP4J>
> >
> > Stan
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > 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
> > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
jmeter-user-help@jakarta.apache.org
> > >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
How many threads do you have running and from the screenshot I cant make out
whether they are simple controllers / if controllers or something completely
different?  Again whether or not the test fails at the same point depends on
your test.
Ill try this for simplified test case and see if it behaves as expected...

On Wed, Sep 29, 2010 at 3:40 PM, Derry, Stanton <st...@intuit.com>wrote:

> The two passes, from InTheBeginning to AtTheEnd, should have produced
> the same set of samplers and  errors.  In the first pass the  flow fails
> at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope of
> LastSampleOk are not executed.  In the second pass,  a failure  occurs
> at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
> TTO-0100 to have  been executed JMeter should have executed 6 prior
> samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> 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
> <st...@intuit.com>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<https://docs.google.com/lea%0Af?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl>
> =en&authkey=CKbCzP4J>
> >
> > Stan
> >
> > -----Original Message-----
> > From: Deepak Shetty [mailto:shettyd@gmail.com]
> > 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
> > <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Problem with If Controller - Evaluate for all Children

Posted by "Derry, Stanton" <st...@intuit.com>.
The two passes, from InTheBeginning to AtTheEnd, should have produced
the same set of samplers and  errors.  In the first pass the  flow fails
at TTO-0090-ttoentry/SSO.... and all samplers after that in the scope of
LastSampleOk are not executed.  In the second pass,  a failure  occurs
at TTO-0100-/secure... and NOT  AT TTO-0090-ttoentry/SSO...., for
TTO-0100 to have  been executed JMeter should have executed 6 prior
samplers, TTO-0010..., TTO-0050,0060,0070,0080, and 0090.

Stan

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
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
<st...@intuit.com>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:shettyd@gmail.com]
> 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
> <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Problem with If Controller - Evaluate for all Children

Posted by "Derry, Stanton" <st...@intuit.com>.
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:shettyd@gmail.com] 
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
<st...@intuit.com>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:shettyd@gmail.com]
> 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
> <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
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 <st...@intuit.com>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/leaf?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl=en&authkey=CKbCzP4J>
>
> Stan
>
> -----Original Message-----
> From: Deepak Shetty [mailto:shettyd@gmail.com]
> 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
> <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

RE: Problem with If Controller - Evaluate for all Children

Posted by "Derry, Stanton" <st...@intuit.com>.
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

Stan

-----Original Message-----
From: Deepak Shetty [mailto:shettyd@gmail.com] 
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
<st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Problem with If Controller - Evaluate for all Children

Posted by Deepak Shetty <sh...@gmail.com>.
upload the files somewhere and post a link.

On Wed, Sep 29, 2010 at 12:52 PM, Derry, Stanton <st...@intuit.com>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: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>