Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 36548 invoked from network); 23 Mar 2006 12:04:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Mar 2006 12:04:22 -0000 Received: (qmail 92752 invoked by uid 500); 23 Mar 2006 12:04:13 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 92738 invoked by uid 500); 23 Mar 2006 12:04:13 -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 92726 invoked by uid 99); 23 Mar 2006 12:04:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 04:04:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sebbaz@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO pproxy.gmail.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Mar 2006 04:04:11 -0800 Received: by pproxy.gmail.com with SMTP id z59so359299pyg for ; Thu, 23 Mar 2006 04:03:51 -0800 (PST) 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=jLLxZ9Os2TQSbQ5byXhF4GEa3WdoaTSuQwD6KrFSRBcU2gEuBvWaeJPevw/MVWmigUUbmU8Db8HBKx5bvoi0ir7fWkVFWpHhm4PC1epMUmUtzF+zU0x37dNjUSFdfVYw7oMf+IKj65rnh9HjoHRSxzulihI42rjP5PBD0q44uJk= Received: by 10.35.43.10 with SMTP id v10mr635040pyj; Thu, 23 Mar 2006 04:03:49 -0800 (PST) Received: by 10.35.34.9 with HTTP; Thu, 23 Mar 2006 04:03:49 -0800 (PST) Message-ID: <25aac9fc0603230403x3ef11dd3n@mail.gmail.com> Date: Thu, 23 Mar 2006 12:03:49 +0000 From: sebb To: "JMeter Users List" Subject: Re: Undefining variable values and ForEach In-Reply-To: <200603221440.08807.bdamm@dammfine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200603221440.08807.bdamm@dammfine.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 22/03/06, Ben Damm wrote: > Hello, > > I have a script that reads a line of text once per loop and consumes it > using CSV Data Set Config, then uses "__split" to split one of those fiel= ds. > There is a ForEach controller that is executing once per value over the i= nner > field. > > The number of variables changes correctly (X_n is updated) and the ForEac= h > controller responds correctly when the number of variables increases. Wh= en > the number of variables decreases, the ForEach controller appears to igno= re > the newly reduced value of X_n and continues to use the stale contents of= the > variables X_1, X_2, X_3, etc, when it should be stopping at X_1. ForEach does not use the count X_n; it stops at the first missing variable. > Any idea how to unset variables or fix the behaviour of ForEach? We should probably fix the behaviour of __split() so that it ensures that at least the first stale variable is deleted... In the meantime, the only way to do this is to use BeanShell - this was dicussed recently. Search the archives for details. > Thank you, > -Ben > > --------------------------------------------------------------------- > 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