Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 94932 invoked from network); 24 Aug 2005 18:49:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Aug 2005 18:49:38 -0000 Received: (qmail 81352 invoked by uid 500); 24 Aug 2005 18:49:36 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 81333 invoked by uid 500); 24 Aug 2005 18:49:36 -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 81320 invoked by uid 99); 24 Aug 2005 18:49:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 11:49:35 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.182.199 as permitted sender) Received: from [64.233.182.199] (HELO nproxy.gmail.com) (64.233.182.199) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2005 11:49:52 -0700 Received: by nproxy.gmail.com with SMTP id c2so37802nfe for ; Wed, 24 Aug 2005 11:49:32 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NdAUqqERLqgT3obUNe5Z5lS2N/DxWwvbCEhaYk1wIoUg6eghqD4JFTAyVSnojTNAcn9lxEWHBmBAx2qrlkiSwoPiM4nxmAxlB96JO/YRIiR5AaeBtaf3AbuXMP5+mzWs2216U3j4p4xbrwtf8eFZesYpSriwqTRy+Rl+bQXU/6g= Received: by 10.48.236.9 with SMTP id j9mr32626nfh; Wed, 24 Aug 2005 11:49:32 -0700 (PDT) Received: by 10.48.144.17 with HTTP; Wed, 24 Aug 2005 11:49:32 -0700 (PDT) Message-ID: <25aac9fc05082411499eb3030@mail.gmail.com> Date: Wed, 24 Aug 2005 19:49:32 +0100 From: sebb To: JMeter Users List Subject: Re: using counter with while controller In-Reply-To: <20050824182819.91083.qmail@web50907.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050824182819.91083.qmail@web50907.mail.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N See http://jakarta.apache.org/jmeter/usermanual/component_reference.html#While_= Controller The While Controller condition needs to return the string "FALSE" or "false" in order to exit the loop. ${counter}<3 will never be "false" it will be perhaps "0<3" or "1<3" or "100<3" etc You need to use a Javascript or Beanshell function to evaluate the string as an expression. S On 24/08/05, Anton Andreev wrote: > Hello everybody, >=20 > I'm trying to set up a counter to be used with while > controller and i'm having dificulty (my while loop > does not stop). What i did, just before while > controller i have "user variables" where i set > {counter} to 0. In while controller my condition is > ${counter}<3 and i have counter (name {counter}, just > like user var) inside the loop which starts from 1 and > increments by 1 till 4. My while loop does not stop. > Please tell me what i'm doing wrong or if i have to > use something else to accomplish what i'm trying to > do. >=20 > Thank you, >=20 > Anton Andreev >=20 >=20 >=20 >=20 >=20 >=20 > __________________________________________________________ > Find your next car at http://autos.yahoo.ca >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: jmeter-user-help@jakarta.apache.org