Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 68343 invoked from network); 9 May 2007 14:05:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 14:05:53 -0000 Received: (qmail 50671 invoked by uid 500); 9 May 2007 14:05:56 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 50627 invoked by uid 500); 9 May 2007 14:05:55 -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 50616 invoked by uid 99); 9 May 2007 14:05:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:05:55 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 07:05:46 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1HlmnF-0001mD-UH for jmeter-user@jakarta.apache.org; Wed, 09 May 2007 07:05:25 -0700 Message-ID: <10394987.post@talk.nabble.com> Date: Wed, 9 May 2007 07:05:25 -0700 (PDT) From: CharekC To: jmeter-user@jakarta.apache.org Subject: Re: While-Controller question In-Reply-To: <25aac9fc0702280306x761fb862ka3d09e2f9febed5f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: charek@gmail.com References: <7C36DCD0D35F9A4A8D89A7A8916E755D607501@GAIA-SERVER.gaia-group.local> <25aac9fc0702280306x761fb862ka3d09e2f9febed5f@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org I have a similar situation to the original poster but I want to assign my while loop a maximum number of iterations. I've created a counter preprocessor inside the while loop as well as a response assertion after the http sampler. My while condition currently is ${JMeterThread.last_sample_ok} but I want something like ${JMeterThread.last_sample_ok} && ${count} < 10 But that doesn't seem to work Do I have to use beanshell or javascript for this kind of expression? sebb-2 wrote: >=20 > http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Whil= e_Controller >=20 > Either: >=20 > use LAST and add an assertion to set the sampler as failed >=20 > Or: >=20 > use ${VARIABLE} and have the P-P set VARIABLE=3DFALSE when you are done. >=20 >=20 >=20 > On 28/02/07, Bernhard Wellh=C3=B6fer > wrote: >> Hello, >> >> I have one question regarding while controllers: >> >> What I need is a while controller which has one HTTP request sampler as >> only child. E.g. a post processor to the HTTP request checks whether the >> response body contains a specific text. If yes the while controller >> should stop and if not the while controller should continue to call the >> HTTP request sampler. Here the simple test tree: >> >> While Controller (loop until Post Processor detects a specific text in >> the response) >> HTTP Request Sampler >> Post Processor >> >> I read the whole JMeter documentation, but have no idea how to implement >> this feature in JMeter. >> >> Thx in advance, >> >> Bernhard >> >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/While-Controller-questi= on-tf3307648.html#a10394987 Sent from the JMeter - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org