Not sure why this won't work. 

The URL is:
http://localhost/tttt/ppp/form.action?id=333&selectedTab=1&refresh=1

The request that is coming back in the result tree is:

GET
http://localhost/tttt/ppp/form.action?id=Token+Not+Found&selectedTab=1&r
efresh=1

Cookie Data:
JSESSIONID=0E0B4C3CDE5E468557D5CD9E6E724C9A

Request Headers:


The regular expression extractor looks like this:
Reference name:  tmrid
Regular expression:  id="(\d{3})"
Template:  $1$
Match No.:  1
Default Value:  Token Not Found

In the request:
Form.action

Id = ${tmrid}  (encode and include checked)
Retrieve all embedded...  checked

Let me know if there is something I am doing wrong.
Thanks


-----Original Message-----
From: sebb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 04, 2007 12:52 PM
To: JMeter Users List
Subject: Re: General RegEx

Try

id=(\d{3})

instead.

On 04/04/07, Hoffman, Matthew <[EMAIL PROTECTED]> wrote:
> It looks like.
>
> http://localhost/index.htm?id=206
>
> -----Original Message-----
> From: sebb [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 04, 2007 11:23 AM
> To: JMeter Users List
> Subject: Re: General RegEx
>
> What does the query string actually look like?
>
> It cannot contain anything like:
>
> name="id" value="206"
>
> because spaces (and maybe quotes?) are not valid in query strings.
>
>
> On 03/04/07, Hoffman, Matthew <[EMAIL PROTECTED]> wrote:
> > This request doesn't pull from the form.  It should get the ID from
> the
> > URL (queryString).  I have the regex setup to get it from the URL
with
> > the specified format below.  Any other way I can do this?  I need
that
> > id put into a variable so I can use it further down in my script.
> >
> > Thanks
> >
> > -----Original Message-----
> > From: sebb [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 03, 2007 12:49 PM
> > To: JMeter Users List
> > Subject: Re: General RegEx
> >
> > Works for me (copy+paste into Java Sampler and RE PP).
> >
> > Perhaps there are some additional spaces in the document?
> >
> > BTW, you could use \d instead of [0-9]
> >
> > S.
> > On 03/04/07, Hoffman, Matthew <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I am trying to use the reg expression for the following:
> > >
> > > name="id" value="206"
> > >
> > > I am using the below which passes all the regex validators that I
> > have.
> > > I have Token Not Found in the Default value and that is what I am
> > seeing
> > > in the actual request.
> > >
> > > name="id" value="([0-9]{3})"
> > >
> > > Let me know if there is something else that JMeter is looking for.
> > >
> > > Thanks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ------------------------------------------------------------
> This message and any files transmitted within are intended
> solely for the addressee or its representative and may
> contain company sensitive information.  If you are
> not the intended recipient, notify the sender immediately
> and delete this message.  Publication, reproduction,
> forwarding, or content disclosure is prohibited without the
> consent of the original sender and may be unlawful.
>
> Concurrent Technologies Corporation and its Affiliates.
> www.ctc.com  1-800-282-4392
> ------------------------------------------------------------
>
> ---------------------------------------------------------------------
> 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]


------------------------------------------------------------
This message and any files transmitted within are intended
solely for the addressee or its representative and may
contain company sensitive information.  If you are
not the intended recipient, notify the sender immediately
and delete this message.  Publication, reproduction,
forwarding, or content disclosure is prohibited without the
consent of the original sender and may be unlawful.

Concurrent Technologies Corporation and its Affiliates.
www.ctc.com  1-800-282-4392
------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to