jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: JMeter Cookie Question
Date Tue, 13 Apr 2010 01:16:05 GMT
On 13/04/2010, Jason.F.Dawes@kp.org <Jason.F.Dawes@kp.org> wrote:
> I am trying to test a site that uses authentication provided by Oracle's
>  CoreID product (also known as WebGate).  A problem is arising when webgate
>  tries to set a cookie that is intended for a target 2 hops down a redirect
>  chain. JMeter refuses to set the cookie because it violates path rules. If
>  you set the cookie manually everything works fine.
>
>  How can I go about getting this cookie set by the cookie manager (or some
>  other element) instead of blindly setting it for everything?  Or is that
>  actually fine since the path rules will only really allow the cookie to be
>  set for the one page?
>
>  i.e.
>
>  1) frontPage.html sets cookie "yada" with a path of "/foo.cgi" and

JMeter will save the cookie.

>  redirects to setupStuff.html
>  2) <-- cookie is not set by JMeter due to rule violation

Yes.

>  3) setupStuff.html does arbitrary setup type things and redirects to
>  /foo.cgi

At which point JMeter should send the yada cookie.

Add the Tree View Listener to track what is happening.

Make sure you have "Follow redirects" enabled and "Auto redirect" disabled.

>  - Jason

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