Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 94942 invoked from network); 6 Nov 2009 06:59:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Nov 2009 06:59:51 -0000 Received: (qmail 97139 invoked by uid 500); 6 Nov 2009 06:59:50 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 97071 invoked by uid 500); 6 Nov 2009 06:59:50 -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 97061 invoked by uid 99); 6 Nov 2009 06:59:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 06:59:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HS_INDEX_PARAM,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shettyd@gmail.com designates 209.85.160.54 as permitted sender) Received: from [209.85.160.54] (HELO mail-pw0-f54.google.com) (209.85.160.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Nov 2009 06:59:41 +0000 Received: by pwj8 with SMTP id 8so530626pwj.13 for ; Thu, 05 Nov 2009 22:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=swvjLBZbZwLYq498Ylb4IpDdcHaytb8UajhCTuJOQMs=; b=gNfdZdspSrqj+7AwA4rYK5TqyTlZvojMrIuyoTjmAklYTf0Pohd0TQ26abbQ8qajmy qJZGIf9zS3/Yo0RirwypT0TbmAhIAz8R+zsq53zvqVkkFNYwXnqnSuTh8yOoumPT4ua5 1z82eNhbmKQCMwR++8DBQ2d8PRUbSgivepyGw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=w3TG203b52a6dI2kpVFiDkvSIT0d431wtjihMyGmmEqX+O4WW/pbnDCNhnb641D4xz UqlO5qHIDtNHxTXBS9Cclt7Fk3/be4rx6rmR4IbLaCQDfoysEnqzxifpCCR41w5pmCzJ MU6Rvsj0rbJ/vWrGVDNrK46KW/55ykem4t/Yw= MIME-Version: 1.0 Received: by 10.141.22.2 with SMTP id z2mr207855rvi.122.1257490760154; Thu, 05 Nov 2009 22:59:20 -0800 (PST) In-Reply-To: <21148e340911052226k33c8a5fbvf0231ad97855da7@mail.gmail.com> References: <21148e340911052226k33c8a5fbvf0231ad97855da7@mail.gmail.com> Date: Thu, 5 Nov 2009 22:59:20 -0800 Message-ID: <4483c26c0911052259p205a6211td89a6fa67de3948@mail.gmail.com> Subject: Re: How to get subString with Split function. From: Deepak Shetty To: JMeter Users List Content-Type: multipart/alternative; boundary=000e0cd1a590113e510477ae62ed X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1a590113e510477ae62ed Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable hi ${__split(${string},subString,=3D)} You can always use a debug sampler(with view results tree listener) to chec= k what values your variables have, also you should check jmeter logs regards deepak 2009/11/5 Cynthia Li > hi, > Anyone could help me to resolve this problem??Thanks > -------------------- > My JMeter Version is 2.3.2 > I have a string like string=3D"wap/test.do?n=3D123&testName=3Dtest2" ,and= I want > to get the substring and split with character '=3D' > My define a variable as subString=3D ${__split(${string},subString),=3D} > subString_1=3Dwap/test.do?n > subString_2=3D123&testName > subString_3=3Dtest2 > I think it is right ,but System will return a null subString when I try t= o > get value of ${subString_3}.Where is wrong?? > > -- > Best Regards, > Cynthia Lee > Ice Breaker China, Inc. > Tel=A3=BA 86-10-82800942-815 > Fax=A3=BA 86-10-82800941 > --000e0cd1a590113e510477ae62ed--