jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: RE extractor
Date Thu, 05 Jul 2007 15:36:27 GMT
On 05/07/07, aidy lewis <aidy.lewis@googlemail.com> wrote:
> Hi,
>
> I am having problems making the RE extractor to work.
>
> The Test Plan looks like this
>
> HTTP Request
> www.google.co.uk
>
> BeanShell PostProcessor   //sebb informs us there is a bug in the
> postprocessor and works like
> print("${test}");         //a pre-processor

No, I said that the post-processors run in reverse order.

> Regular Expression Extractor
> ref name:  test
> RegEx:  (.*)
> Template $0$

Do you really want to match everything?

> Match No 1
> Default Value: "Token Not found".

No need for enclosing quotes.

> The returned result = ${test}
>

The problem is the print command:

print("${test}");

The variable contains quotes, and these mess up the Java syntax.

Check the log and you will see some errors.

If a test does not behave as you expect, please always check the log for errors.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message