Thank you again

Sorry if this I this is a silly question
I am running Jmeter version 1.8.1 how do I use the Regular Expression Extractor


This is what my test looks like

Create product
-----create booking
---Response Assertion
-----Addproduct - this has productID (do I leave the original value in)
---HTML Link Parser
---Response Assertion - this as ${__regexFunction(name="productID"\s+value="(\d+)")}



Is this what it supposed to look like?

Thank you
RD

From: "BAZLEY, Sebastian" <[EMAIL PROTECTED]>
Reply-To: "JMeter Users List" <[EMAIL PROTECTED]>
To: 'JMeter Users List' <[EMAIL PROTECTED]>
Subject: RE: URGENT regexFunction
Date: Tue, 24 Aug 2004 11:56:35 +0100

By the way, you probably want to use the Regular Expression Extractor
Post-Processor rather than the  Function __regex().

Attach the element as a child of the sampler that returns the html to be
scanned.

S.
-----Original Message-----
From: BAZLEY, Sebastian
Sent: 24 August 2004 11:49
To: 'JMeter Users List'
Subject: RE: URGENT regexFunction


So long as there are no other instances of the string name="productID" in the response, and the value is always a string of numbers, the following regex should work:

        name="productID"\s+value="(\d+)"

If the name and value might be split across lines, enclose the regex as
follows:

        (?s:name="productID"\s+value="(\d+)")

The "s" is a flag to treat the regex as a single line.

I've not tested this, so try it in the Regex tester.

S.
-----Original Message-----
From: Rita danger [mailto:[EMAIL PROTECTED]
Sent: 24 August 2004 11:36
To: [EMAIL PROTECTED]
Subject: RE: URGENT regexFunction


Hi

Thank you for replying
Is this okay?

<input type="hidden" name="service" value="">

<input type="hidden" name="cacheBuster" value="">

<input type="hidden" name="productID" value="10442">

<input type="hidden" name="mode" value="Create">

<input type="hidden" name="editActiveDetailID" value="-1">

<input type="hidden" name="deleteActiveDetailID" value="-1">

<input type="hidden" name="deleteRnLineID" value="-1">

<input type="hidden" name="pageScrollY" value="0"/>

Let me know if you need more information,
Thanks
RD

>From: "BAZLEY, Sebastian" <[EMAIL PROTECTED]>
>Reply-To: "JMeter Users List" <[EMAIL PROTECTED]>
>To: 'JMeter Users List' <[EMAIL PROTECTED]>
>Subject: RE: URGENT regexFunction
>Date: Tue, 24 Aug 2004 11:20:31 +0100
>
>What does the HTML response look like that contains the productID (or is it
>BookingID?)
>
>Regexes need to be carefully crafted to ensure that they pick up exactly
>what is needed - no more, no less, so *exact* details are needed.
>
>S.
>P.S. Have you read the JMeter FAQ and the Wiki?
>There is some info on Regexes, including a pointer to an excellent
>interactive Regex tester.
>-----Original Message-----
>From: Rita danger [mailto:[EMAIL PROTECTED]
>Sent: 24 August 2004 11:04
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: URGENT regexFunction
>
>
>I hope this is a better detailed of what I am doing, please let me know if
>its not up to your standard.
>
>what are you trying to do
>-- I'm trying to create a Jmeter test, using one of our applications I want
>to test how long it takes to creating a product ( the application uses
>java
>
>& html and passes a productID when its saved), edit and save it.
>At the end of the test I want to use the productID to delete the product
>just created.
>
>what have been the results of your attempts,
>-- I looked at the User's Manual, thats probably why I decided to join the
>mail list.
>I've tried using the regexFunction in Jmeter to create and paste the
>function string
>${__regexFunction(.*,BookingID%3D,,,,BookingID%3D)}.
>
>The site has no examples which would be helpfull in situations like this
>when standards aren't up to your level (ie newbies)
>
>Please let me know if you need more information
>It would be good to get some help, this is really new to me,
>
>Thank you
>RD
>
> >From: Michael Stover <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: JMeter Users List <[EMAIL PROTECTED]>
> >Subject: Re: URGENT regexFunction
> >Date: Mon, 23 Aug 2004 14:17:29 -0400
> >
> >Rita,
> > If you are wondering why you don't usually get much response to your
> >questions, it's because we don't understand them. At least I don't.
> >You need to make an effort to provide some information about your
> >problem.
> >
> >Ie, what are you trying to do, what is your environment, how have you
> >tried to solve it, what have been the results of your attempts, what
> >error messages have you gotten, etc. You have a bad habit of asking
> >extremely terse questions that provide no information.
> >
> >-Mike
> >
> >On Mon, 2004-08-23 at 12:15, Rita danger wrote:
> > > Hello
> > >
> > > I need some help on the regexFunction.
> > >
> > > How do I get jmeter so save the in of something its just created and
> >then
> > > use the id to delete it.
> > >
> > > Thank you
> > >
> > > RD
> > >
> > > _________________________________________________________________
> > > Stay in touch with absent friends - get MSN Messenger
> > > http://www.msn.co.uk/messenger
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >--
> >Michael Stover <[EMAIL PROTECTED]>
> >Apache Software Foundation
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>_________________________________________________________________
>Express yourself with cool new emoticons
>http://www.msn.co.uk/specials/myemo
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>_______________________________________________________
>
>This e-mail and the documents attached are confidential and intended
>solely for the addressee; it may also be privileged. If you receive this
>e-mail in error, please notify the sender immediately and destroy it.
>As its integrity cannot be secured on the Internet, the Atos Origin group
>liability cannot be triggered for the message content. Although the
>sender endeavours to maintain a computer virus-free network, the
>sender does not warrant that this transmission is virus-free and will
>not be liable for any damages resulting from any virus transmitted.
>_______________________________________________________
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>


_________________________________________________________________
Use MSN Messenger to send music and pics to your friends
http://www.msn.co.uk/messenger


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


_______________________________________________________

This e-mail and the documents attached are confidential and intended
solely for the addressee; it may also be privileged. If you receive this
e-mail in error, please notify the sender immediately and destroy it.
As its integrity cannot be secured on the Internet, the Atos Origin group
liability cannot be triggered for the message content. Although the
sender endeavours to maintain a computer virus-free network, the
sender does not warrant that this transmission is virus-free and will
not be liable for any damages resulting from any virus transmitted.
_______________________________________________________


--------------------------------------------------------------------- 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]


_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! http://www.msn.co.uk/messenger



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



Reply via email to