Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 65815 invoked from network); 11 Oct 2010 21:37:44 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Oct 2010 21:37:44 -0000 Received: (qmail 19757 invoked by uid 500); 11 Oct 2010 21:37:43 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 19709 invoked by uid 500); 11 Oct 2010 21:37:43 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 19701 invoked by uid 99); 11 Oct 2010 21:37:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 21:37:43 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shettyd@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-iw0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Oct 2010 21:37:36 +0000 Received: by iwn10 with SMTP id 10so5213205iwn.31 for ; Mon, 11 Oct 2010 14:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=fnHAEwJqZbMBH4/i68/fZGFE2OZS8KUEu6ONZpwAFl4=; b=jICJQgfYwSRvnHbnqoAn07gj8WyRErxzX2fK0AmNW0SJwPDA4eT8Wam+BN6/AR7hv3 gA7poc1fEKaM0jZNngW6XY55N+ukTLHwDN4yRymyI4BvAs//fpEZIeFqR3qptOoCCmN0 QzF4yfqAFMmitftFDflMcSKcSsf6F9VbZIeyo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=f2CytOcIK9oP3JajUu/6troXm3uUGztHetIQjP2+KcSoWe0QPZZrho4jvFO2HlVWrx t24kwcP1kurKgYnOPV6Y2fT6S20c11WyOpM/HXt8NzRg+MArOBj74qh7sMM+vIiHnD0n Efig9NO4RtNeYfXEtl1J34gnBLiDkCeImU2Zo= MIME-Version: 1.0 Received: by 10.231.161.68 with SMTP id q4mr5079789ibx.79.1286833034814; Mon, 11 Oct 2010 14:37:14 -0700 (PDT) Received: by 10.231.59.21 with HTTP; Mon, 11 Oct 2010 14:37:14 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Oct 2010 14:37:14 -0700 Message-ID: Subject: Re: Problem with If Controller - Evaluate for all Children From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=0050450140b5ece3b704925e29c5 X-Virus-Checked: Checked by ClamAV on apache.org --0050450140b5ece3b704925e29c5 Content-Type: text/plain; charset=ISO-8859-1 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 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 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 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 >>> 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 >>> > 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>> > >>> f?id=0ByNiYXcp87RqMGIzYzI4M2MtMjdlMS00ZWY2LWE%0A1OTUtNTZiZTEwMDAyMWMy&hl >>> >> 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 >>> > > 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 >>> >>> >> > --0050450140b5ece3b704925e29c5--