I just tried 2.1.2 for the first time using test cases developed with 2.1.1 and it seems I'm facing the exakt same problem.

I'm extracting a Location header in a 302 response that I'm later using as request path in a request.

I can send you a test case if you like

/Per


From: sebb <[EMAIL PROTECTED]>
Reply-To: "JMeter Users List" <[email protected]>
To: "JMeter Users List" <[email protected]>
Subject: Re: JMeter 2.2 Extractor Variable Problems
Date: Thu, 15 Jun 2006 14:58:58 +0100

Are you saying that the Location header is not even appearing in the
TreeView Listener in 2.2, but it does in 2.1.1?

If so, that's rather odd - perhaps you could privately send me a
test-case I can have a look at.

S.
On 15/06/06, Morgan Monger <[EMAIL PROTECTED]> wrote:
Using regular HTTP Sampler. Also, following redirects
does not seem to help much because if certain
parameters are not returned on the redirect in the
Location header, then the test is stopped. That is why
I need access to the Location header, which works in
2.1.1.

Morgan

--- sebb <[EMAIL PROTECTED]> wrote:

> Are you using the default HTTP Sampler, or the
> HTTPClient version?
>
> There was a problem with the handling of redirects
> in the latter,
> which is fixed in 2.2.
>
> Also, are you using Redirect Automatically, or
> Follow Redirects?
>
> S.
> On 14/06/06, Morgan Monger <[EMAIL PROTECTED]>
> wrote:
> > No, default values were not populated in the
> scripts;
> > however, that does not explain why the Location
> header
> > is omitted from the headers passed to the RE.
> >
> > Morgan
> >
> > --- sebb <[EMAIL PROTECTED]> wrote:
> >
> > > Perhaps, but if the RE does not match, then it
> will
> > > set the variable
> > > to the default.
> > >
> > > Just remembered - in 2.2 the code was changed to
> not
> > > set any default
> > > if no default string was provided, so that could
> > > explain the change in
> > > behaviour.
> > >
> > > Have you provided a default value?
> > >
> > > S.
> > > On 14/06/06, Morgan Monger <[EMAIL PROTECTED]>
> > > wrote:
> > > > I think I may have narrowed it down a bit. On
> an
> > > > HTTPSampler node that receives a 302 response
> > > code,
> > > > the Location header is not in the list of
> headers
> > > > passed to the RegexExtractor.
> > > >
> > > > Morgan
> > > >
> > > > --- sebb <[EMAIL PROTECTED]> wrote:
> > > >
> > > > > That's a bit odd - the value ${ss1} means
> that
> > > the
> > > > > variable ss1 is not
> > > > > recognised, which suggests that the regex
> > > extractor
> > > > > is not being run -
> > > > > otherwise it would have generated at least
> the
> > > > > default value -
> > > > > assuming you are using the RE
> Post-Processor?
> > > > >
> > > > > This works for me with a very simple test
> case
> > > in
> > > > > 2.2.
> > > > >
> > > > > Check jmeter.log for any errors.
> > > > >
> > > > > If you can't fix it, please create a
> Bugzilla
> > > issue
> > > > > and attach JMX and
> > > > > jmeter.log files.
> > > > >
> > > > > S.
> > > > > On 14/06/06, Morgan Monger
> <[EMAIL PROTECTED]>
> > > > > wrote:
> > > > > > In JMeter 2.1.1, I have an extractor below
> an
> > > HTTP
> > > > > > Sampler. The reference name is ss1. In the
> > > > > subsequent
> > > > > > HTTP Sampler, I reference ${ss1} and the
> > > extracted
> > > > > > value is passed correctly. In JMeter 2.2,
> the
> > > > > value is
> > > > > > sent to the web server as ${ss1} instead
> of
> > > the
> > > > > > extracted value. I have run the script
> > > > > side-by-side
> > > > > > for JMeter 2.1.1 and 2.2 to make sure the
> > > header
> > > > > > information is coming across correct. Any
> > > ideas
> > > > > why
> > > > > > the value is not substituted? Thanks,
> > > > > >
> > > > > > Morgan
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Tired of spam?  Yahoo! Mail has the best
> spam
> > > > > protection around
> > > > > > http://mail.yahoo.com
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > 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]
> > > > >
> > > > >
> > > >
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > 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]
> > >
> > >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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]
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

---------------------------------------------------------------------
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]


_________________________________________________________________
Tusentals sista chansen-auktioner! http://tradera.msn.se/category/auctionlist.aspx?special=1


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to