jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sacha Michel Mallais <>
Subject Re: Help with regexFunction
Date Thu, 07 Sep 2006 20:26:00 GMT
Hi Sebb,

Thanks for your response.

On Sep 7, 2006, at 11:13 AM, sebb wrote:

> Checking the content of a response is usually handled by using an  
> Assertion:
> component_reference.html#assertions

Yes, I have successfully used a Response Assertion to check the  
content of a response, but in this case I want to control which  
sampler gets executed next.  If the login succeeds, sampler A gets  
run, if not, sampler B gets run.

> But if you do want to use the RE function, then I suggest you try it
> in a JavaSampler so you can see what is returned.
> Or wrap it in the __log() function.

Yes, that did help, thanks.

After much trial and error, this appears to work:
'${__regexFunction((<title>My Title</title>),$1$,1)}' == '<title>My  



Sacha Michel Mallais             Code Sculptor
Global Village Consulting Inc.
PGP Key ID: 7D757B65             AIM: smallais
Roses are #FF0000, violets are #0000FF, all my base are belong to you.

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

View raw message