I also tried the regular expression extractor, but I did not find a way to
make that work. I then looked at functions, with the function helper dialog
under the options menu.
You have to fill in 6 fields and then generate the function:

1) <input type="text" name="inputId" value="(.*)">
2) $1$
3) 1
4)
5) 1
6) inputId

That will give something like:

${__regexFunction(<input type="text" name="inputId"
value="(.*)">,$1$,1,,1,inputId)}

Paste that into the parameter field (actually wherever you want) and the
second time you want to use the value in the same request, use the id you
gave in the function: ${inputId}

There's some explanation in the userdocs with jmeter too, look for functions
in the index.

Kind Regards,
Jan

----- Original Message ----- 
From: "Marco Mistroni" <[EMAIL PROTECTED]>
To: "'JMeter Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 11, 2004 11:48 AM
Subject: RE: Html request paramters


> Hi Jan,
> I m having problems with regexp.. can you tell me exactly
> How to use it?
> I have followed JMeter FAQs, I have a response that contains following
> Two strings
>
> S000000000
> S000000140
>
> And the one that I am interested to is the second (S00000140)
>
> I have httprequest1 which produces the response with the abovementioned
> strings
> I have httprequest2 which should extract the string and use it as input
> parameter
>
> Questions:
> 1 - do the two requests have to be under a 'controller'?
> 2 - how to specify the regexp? Currently I am specifying a regular
> expression extractor, and I am specifying following value in
> the regular expression field
>
> containerID=S[0]{1,6}1..
>
> when I remove 'containerID=' I got a null value..
> do I have to specify the  left side of the assignment?
> Or it's enough to write S[0]{1,6}1..
>
> Trouble is that I have run the request in the Jakarta ORO demo, and it
> Works perfectly fine....
>
> Thanx in advance and regards
> marco
>
>
>
>
>
> -----Original Message-----
> From: Jan Hoskens [mailto:[EMAIL PROTECTED]
> Sent: 11 May 2004 09:29
> To: JMeter Users List
> Subject: Re: Html request paramters
>
> I found the regexfunction, this does work fine now. I still wonder if
> there
> isn't a way to just make every input available with it's default value
> given.
>
> Kind Regards,
> Jan
>
>
> ----- Original Message ----- 
> From: "Jan Hoskens" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 11, 2004 10:02 AM
> Subject: Html request paramters
>
>
> > Hi,
> >
> > When receiving a html form, there may be some values already filled
> in. Is
> > there an easy way to retreive those values in order to use them in the
> next
> > html request. I've noticed the "Regular expression extractor", is this
> the
> > way to go? If so, how do I match with the complete <input
> name="input1"
> > type="text" value="value1"/> and retreive the value1?
> >
> > Or are the request parameters somehow already available as ${input1}
> (maybe
> > through using another component??).
> >
> > I'm using JMeter 2.0.
> >
> > Kind Regards,
> > Jan
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to