Return-Path: X-Original-To: apmail-jakarta-jmeter-user-archive@www.apache.org Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 06B387C77 for ; Wed, 14 Sep 2011 10:43:26 +0000 (UTC) Received: (qmail 99413 invoked by uid 500); 14 Sep 2011 10:43:25 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 99389 invoked by uid 500); 14 Sep 2011 10:43:25 -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 99379 invoked by uid 99); 14 Sep 2011 10:43:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 10:43:25 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=FREEMAIL_FROM,SPF_SOFTFAIL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of oliver_lloyd@hotmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2011 10:43:19 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R3mvi-0001tz-Lk for jmeter-user@jakarta.apache.org; Wed, 14 Sep 2011 03:42:58 -0700 Date: Wed, 14 Sep 2011 03:42:58 -0700 (PDT) From: Oliver Lloyd To: jmeter-user@jakarta.apache.org Message-ID: <1315996978661-4802300.post@n5.nabble.com> Subject: While Controller | Reverse Logic? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Is it possible to reverse the logic in the while controller? So, I have this: ThreadGroup ---Sampler | This returns "foo" ------Regexp | My regexp is "bar" (thus = false) ---While | "${__javaScript("${FOO_VAR}")}" ------Sampler | This returns "foobar" ---------Regexp | My regexp is "bar" (thus = true) Basically, I want the test to poll a request until it sees 'bar' and then, at that point, it should exit the loop. My problem is the regexp returns 'false' when it does NOT find the text so in the example above the logic is reversed. Before I start hacking up a messy workaround I wanted to see if there were a more elegant solution; I feel like I am missing a '!' in the right place... ----- http://www.http503.com/ -- View this message in context: http://jmeter.512774.n5.nabble.com/While-Controller-Reverse-Logic-tp4802300p4802300.html 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