jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wangke Liao" <>
Subject RE: Usage of _regexFunction
Date Tue, 24 Sep 2002 19:27:56 GMT
Thanks, Mike!

Indeed, that does solve the problem. The mistake I made was only using
${getID} instead of using ${getID_g1} - should have easily been avoided, I


 -----Original Message-----
From: 	Mike Stover []
Sent:	Tuesday, September 24, 2002 12:19 PM
Subject:	Re: Usage of _regexFunction

Have you read the docs about the regex function?

The function would go in the HTTP Request in the parameter table:
Name		Value
ID		${__regexFunction(xx,xx,xx,xx,,getID)}

*note the extra comma - the regexFunction takes six parameters these days.

Then, to access these values again later:

${getID_g1}  (this means, the first group parsed from the getID
regexFunction - you could
also grab the 0 group, which is the entire match.  You could grab any group
in the regular

Hope that helps


On 24 Sep 2002 at 11:27, Wangke Liao wrote:

> Hi,
> I guess I am bit confused on how exactly to use the _regexFunction. I have
> something like this:
> Thread group
> 	http req: login
> 	http req: load profile (the response from this req will have some Ids I
> looking for in <input hidden name="Id" value= ""> format)
> 	http req: change profile (which needs ID from the response of the last
> req)
> 		 name = Id, value = ${_regexFunction(xx,xx,xx,xx, getID) (I use the
> function helper to generate the string)
> 		 .....
> 	http req: update profile
> 		 name = Id, value = ${getID)
> 		 ......
> 	......
> Is this the right way to use it. Where exactly should I put the function
> what format should I follow to call the function? I probably should put
> function right after "http req: load profile", but in which kind of
> component and in which field?
> Thanks.
> -WK
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Michael Stover
Yahoo IM: mstover_ya
ICQ: 152975688

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message