Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-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 B96681862A for ; Wed, 3 Feb 2016 07:41:07 +0000 (UTC) Received: (qmail 84652 invoked by uid 500); 3 Feb 2016 07:41:07 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 84609 invoked by uid 500); 3 Feb 2016 07:41:07 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 84598 invoked by uid 99); 3 Feb 2016 07:41:07 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 07:41:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C4C42C0D7F for ; Wed, 3 Feb 2016 07:41:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.146 X-Spam-Level: X-Spam-Status: No, score=-6.146 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RP_MATCHES_RCVD=-0.545, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id O2v5HO4SxRyP for ; Wed, 3 Feb 2016 07:40:58 +0000 (UTC) Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3441E42B96 for ; Wed, 3 Feb 2016 07:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8971; q=dns/txt; s=iport; t=1454485258; x=1455694858; h=from:to:subject:date:message-id:mime-version; bh=kamtLXmxMtabf9+ZGSSqj6HZwnuf/Yb1p1XiQ8gYIxg=; b=l9z5bh4ArVYWqwjDPcZJ674TUBw8pDNISAH36jcwYerN7xY6ziAonPh2 FYCIqjP/wQu8svM50RX1D/KvxOXzUYzPCOwjCI8w0DDljHjLddCxS5Fao quIKhhPKxJpf+1Zlw0GjyY/X+cqzrlfZvsXd9V45wzWeXoAVRpLpToLzT c=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AlAgDMrrFW/5FdJa1egm5MUm0GiFWvX?= =?us-ascii?q?YITAQ2BZIdVOBQBAQEBAQEBfwuEQQEBAQQtXgEIEQQBAWEdCQEEEwiIE6Bwnmg?= =?us-ascii?q?BAQEBAQEBAQEBAQEBAQEBAQEBAQEVhg+EN4hsBY0lhUeEBQGNRYFihEKIVIhvh?= =?us-ascii?q?VABHgEBQoNkaohvfAEBAQ?= X-IronPort-AV: E=Sophos;i="5.22,389,1449532800"; d="scan'208,217";a="69572727" Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Feb 2016 07:40:51 +0000 Received: from XCH-ALN-009.cisco.com (xch-aln-009.cisco.com [173.36.7.19]) by rcdn-core-9.cisco.com (8.14.5/8.14.5) with ESMTP id u137eppF003449 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL) for ; Wed, 3 Feb 2016 07:40:51 GMT Received: from xch-rcd-009.cisco.com (173.37.102.19) by XCH-ALN-009.cisco.com (173.36.7.19) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Wed, 3 Feb 2016 01:40:50 -0600 Received: from xch-rcd-009.cisco.com ([173.37.102.19]) by XCH-RCD-009.cisco.com ([173.37.102.19]) with mapi id 15.00.1104.009; Wed, 3 Feb 2016 01:40:50 -0600 From: "Charles Lin (charlin)" To: "user@jmeter.apache.org" Subject: RE: problem exiting WHILE loop Thread-Topic: problem exiting WHILE loop Thread-Index: AdFeUBD7FTVpuXkeQc2yxUSFOVXxEAABgn2Q Date: Wed, 3 Feb 2016 07:40:50 +0000 Message-ID: <5996824ad11146b3b1523f216bc6a312@XCH-RCD-009.cisco.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.24.46.116] Content-Type: multipart/alternative; boundary="_000_5996824ad11146b3b1523f216bc6a312XCHRCD009ciscocom_" MIME-Version: 1.0 --_000_5996824ad11146b3b1523f216bc6a312XCHRCD009ciscocom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi folks, Nevermind, I figured out the correct syntax ${__javaScript("${prep}"!=3D"OKOK")} This worked. Thank you Charles From: Charles Lin (charlin) Sent: Tuesday, February 02, 2016 11:21 PM To: user@jmeter.apache.org Subject: problem exiting WHILE loop Hi, I have following setup: Define variable 'prep', set to initial value 'Preparing' While Loop (condition checks if 'prep' !=3D 'OKOK') Counter, variable =3D loop, increment by 1 Debug showing Loop ${loop} status =3D ${prep} Submit HTTP Request =3D =3D > response contains either= 'Preparing' which =3D not ready, or 'OKOK' which means file has been prepa= red and is ready for downloading RegEx extract, Reference Name =3D prep, expression search f= or (Preparing), Default Value =3D 'OKOK' Timer wait 2 sec View Result shows that I have correct values of prep (either 'Preparing' or= 'OKOK'), but the conditional check of WHILE loop does not appear to take p= lace, so test does not exist out of the WHILE loop (and HTTP request contin= ue to be resubmitted) when it should exist. View Result Tree output looks like this: D: Before Wait Loop D: Loop # 1 status =3D Preparing http request D: Loop # 2 status =3D OKOK http request D: Loop # 3 status =3D OKOK http request D: Loop # 4 status =3D OKOK ...... ...... repeating of above pattern Can you please advise what is the proper syntax to use to accomplish the go= al of evaluating ${prep} !=3D 'OKOK' to FALSE so that it can exist the loo= p? Thanks Charles --_000_5996824ad11146b3b1523f216bc6a312XCHRCD009ciscocom_--