Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 16721 invoked from network); 20 Jun 2006 17:53:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Jun 2006 17:53:23 -0000 Received: (qmail 9324 invoked by uid 500); 20 Jun 2006 17:53:20 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 9297 invoked by uid 500); 20 Jun 2006 17:53:20 -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 9286 invoked by uid 99); 20 Jun 2006 17:53:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 10:53:20 -0700 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 Massimo.Forno@deltatre.com designates 62.101.74.253 as permitted sender) Received: from [62.101.74.253] (HELO SI-DNS-02.deltatre.it) (62.101.74.253) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jun 2006 10:53:19 -0700 Received: from si-exc-01.deltatre.it ([172.31.252.235]) by dns2gbl.deltatre.it with InterScan VirusWall; Tue, 20 Jun 2006 19:52:53 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Regular Expression Date: Tue, 20 Jun 2006 19:52:56 +0200 Message-ID: <7B148FD90E07314591CE70BF57ED0C0E85B1B2@si-exc-01.deltatre.it> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Regular Expression Thread-Index: AcaUkgpKr/SX2wvVTA+g5G02u5Y3cgAACYgQ From: "Massimo Forno" To: "JMeter Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, Using: name=3D"ResourceID"\s+value=3D"(\d+) I get: ${ResourceID} Using: .+name=3D"CurrentResourceID".+value=3D"(\d+)".+ I get: 0 -----Original Message----- From: sebb [mailto:sebbaz@gmail.com]=20 Sent: Tuesday, June 20, 2006 7:50 PM To: JMeter Users List Subject: Re: Regular Expression On 20/06/06, Massimo Forno wrote: > > Hi sebb, > > We are improving :-) > > In this way it works: .+name=3D"CurrentResourceID".+value=3D"(\d+)".+ The .+ at the start and the end should be removed. > But I'm gettink the wrong ID (0) and I think because the '.+' between > the name and the value. Yes, because .+ means match as much as it can. > I've been tried with the \s but it does not work in my case. Why not? what do you get? What *exactly* did you try? > Massimo. > > > -----Original Message----- > From: sebb [mailto:sebbaz@gmail.com] > Sent: Tuesday, June 20, 2006 7:13 PM > To: JMeter Users List > Subject: Re: Regular Expression > > It looks as though there is a newline before > > value=3D" > > So try: > > Regular Expression: name=3D"ResourceID"\s+value=3D"(\d+) > > \s matches all white-space, including new-line > > S. > On 20/06/06, Massimo Forno wrote: > > > > Hi, > > > > I've tried using > > > > value=3D"(\d+) > > > > instead of > > > > name=3D"CurrentResourceID" value=3D"(\d+) > > > > and I get the value, but as you know I have a lot of Value=3D.... > > > > Maybe it is the space or the " ? > > > > Thanks, > > Massimo. > > > > > > > > > > -----Original Message----- > > From: sebb [mailto:sebbaz@gmail.com] > > Sent: Tuesday, June 20, 2006 6:49 PM > > To: JMeter Users List > > Subject: Re: Regular Expression > > > > Is the POST data from a file, or is it from parameters on the sampler? > > > > JMeter does not replace variable references in files. > > > > Try checking that the RE has been extracted correctly by using a Java > > Request / Java Test sampler. > > > > You can put ${PersonID} in the label or Result data field and check it > > in the appropriate Listener. > > > > S. > > On 20/06/06, Massimo Forno wrote: > > > > > > Hi Sebb, > > > > > > Nothing, I'm still getting JMeter sending: > > > > > > POST http://localhost:9000/SBS/EDS/Person/List.htmx > > > > > > POST data: > > > > > > __cmsPageId=3D765&__cmsStartPageId=3D107&__cmsPageBack=3D0&__cmsActionTar= get=3D& > > > > > > __cmsAction=3Ddatasaved&CurrentResourceBindingID=3D${PersonBindID}&Curren= tRe > > > sourceID=3D${PersonID}&...... > > > > > > Instead of: > > > > > > POST http://localhost:9000/SBS/EDS/Person/List.htmx > > > > > > POST data: > > > > > > __cmsPageId=3D765&__cmsStartPageId=3D107&__cmsPageBack=3D0&__cmsActionTar= get=3D& > > > > > > __cmsAction=3Ddatasaved&CurrentResourceBindingID=3D${PersonBindID}&Curren= tRe > > > sourceID=3D'THE REAL ID'&..... > > > > > > I thank you for any other suggestion. > > > > > > Massimo. > > > > > > > > > > > > -----Original Message----- > > > From: sebb [mailto:sebbaz@gmail.com] > > > Sent: Tuesday, June 20, 2006 6:32 PM > > > To: JMeter Users List > > > Subject: Re: Regular Expression > > > > > > The template $0$ means to match the *whole* RE; $1$ means the 1st > pair > > > of (). > > > > > > Try: > > > > > > Name: PersonID > > > > > > ReferenceName: PersonID > > > > > > Regular Expression: name=3D"ResourceID" value=3D"(\d+) > > > > > > Template: $1$ > > > > > > Match N0. : 1 > > > > > > This assumes that the Resource ID will only be numeric. > > > If it can be anything upto to the closing ", then use: > > > > > > Regular Expression: name=3D"ResourceID" value=3D"(.+?)" > > > > > > S. > > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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