jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Massimo Forno" <Massimo.Fo...@deltatre.com>
Subject RE: Regular Expression
Date Tue, 20 Jun 2006 17:36:17 GMT

Hi sebb, 

We are improving :-)

In this way it works: .+name="CurrentResourceID".+value="(\d+)".+

But I'm gettink the wrong ID (0) and I think because the '.+' between
the name and the value.

I've been tried with the \s but it does not work in my case.

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="

So try:

Regular Expression: name="ResourceID"\s+value="(\d+)

\s matches all white-space, including new-line

S.
On 20/06/06, Massimo Forno <Massimo.Forno@deltatre.com> 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: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 <Massimo.Forno@deltatre.com> 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: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="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: 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


Mime
View raw message