On 20/06/06, Massimo Forno <[EMAIL PROTECTED]> wrote:
Hi,Using: name="ResourceID"\s+value="(\d+) I get: ${ResourceID} Using: .+name="CurrentResourceID".+value="(\d+)".+ I get: 0
Try Using: name="CurrentResourceID"\s+value="(\d+) Spot the difference?
-----Original Message----- From: sebb [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 20, 2006 7:50 PM To: JMeter Users List Subject: Re: Regular Expression On 20/06/06, Massimo Forno <[EMAIL PROTECTED]> wrote: > > Hi sebb, > > We are improving :-) > > In this way it works: .+name="CurrentResourceID".+value="(\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:[EMAIL PROTECTED] > 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=" > > So try: > > Regular Expression: name="ResourceID"\s+value="(\d+) > > \s matches all white-space, including new-line > > S. > On 20/06/06, Massimo Forno <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I've tried using > > > > value="(\d+) > > > > instead of > > > > name="CurrentResourceID" value="(\d+) > > > > and I get the value, but as you know I have a lot of Value=.... > > > > Maybe it is the space or the " ? > > > > Thanks, > > Massimo. > > > > > > > > > > -----Original Message----- > > From: sebb [mailto:[EMAIL PROTECTED] > > 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 <[EMAIL PROTECTED]> wrote: > > > > > > Hi Sebb, > > > > > > Nothing, I'm still getting JMeter sending: > > > > > > POST http://localhost:9000/SBS/EDS/Person/List.htmx > > > > > > POST data: > > > > > > __cmsPageId=765&__cmsStartPageId=107&__cmsPageBack=0&__cmsActionTarget=& > > > > > > __cmsAction=datasaved&CurrentResourceBindingID=${PersonBindID}&CurrentRe > > > sourceID=${PersonID}&...... > > > > > > Instead of: > > > > > > POST http://localhost:9000/SBS/EDS/Person/List.htmx > > > > > > POST data: > > > > > > __cmsPageId=765&__cmsStartPageId=107&__cmsPageBack=0&__cmsActionTarget=& > > > > > > __cmsAction=datasaved&CurrentResourceBindingID=${PersonBindID}&CurrentRe > > > sourceID='THE REAL ID'&..... > > > > > > I thank you for any other suggestion. > > > > > > Massimo. > > > > > > > > > > > > -----Original Message----- > > > From: sebb [mailto:[EMAIL PROTECTED] > > > 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="ResourceID" value="(\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="ResourceID" value="(.+?)" > > > > > > S. > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

