On 05/07/07, aidy lewis <[EMAIL PROTECTED]> wrote:
On 05/07/07, sebb <[EMAIL PROTECTED]> wrote:
> On 05/07/07, aidy lewis <[EMAIL PROTECTED]> 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.
OK. Then I am confused on what the difference is between a
pre-processor and a post-processor running in reverse order.
If there are multiple Post-Processors, they run in reverse order in
JMeter 2.2 and below, which is why the Beanshell needed to be before
the RE.
A pre-processor runs before the sampler.
>
> > Regular Expression Extractor
> > ref name: test
> > RegEx: (.*)
> > Template $0$
>
> Do you really want to match everything?
No, but just using this as a test
>
> > 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.
However, if I create a user parameter of 'test' with any value this command
print("${test}") prints the value to the command window,
Not any value. Try setting:
test = abcd"efgh
>
> 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.
>
I am receiving this
Caused by: Parse error at line 1, column 6. Encountered: (
at bsh.Parser.generateParseException(Unknown Source)
at bsh.Parser.jj_consume_token(Unknown Source)
at bsh.Parser.Statement(Unknown Source)
at bsh.Parser.BlockStatement(Unknown Source)
at bsh.Parser.Line(Unknown Source)
at bsh.Interpreter.Line(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
Exactly.
Thank you
Aidy
---------------------------------------------------------------------
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]