Nevermind, I found the issue - it was this setting:
 
                CookieManager.save.cookies=true
 
Apparently this was on by default previously in JMeter2.4 (or was configured 
somewhere that I didn't know about), but adding it to
my 'user.properties' fixed the problem.
 
--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
www.KingsIsle.com
 
From: Robin D. Wilson [mailto:rwils...@gmail.com] 
Sent: Thursday, February 23, 2012 8:58 AM
To: 'JMeter Users List'
Subject: RE: Cookie manager not getting more than one set-cookie per response?
 
OK, I have setup a test case for this...
 
My test script returns 2 cookies, here's a look at the response headers from a 
request to that page:
 
 
Response headers:
HTTP/1.1 200 OK
Date: Thu, 23 Feb 2012 14:51:51 GMT
Server: Apache/2.2.17 (Unix)
Expires: Thu, 02 Feb 2012 23:59:59 GMT
Set-Cookie: theCookie1=value1; Expires=Wed, 09 Jun 2021 12:00:00 GMT
Set-Cookie: theCookie2=value2
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8
 
My second sampler in the test attempts to use the cookies set above in the POST 
of the request - using "${COOKIE_theCookie1}" and
"${COOKIE_theCookie2}". But when I look at the values posted, I get this 
instead:
 
POST data:
POSTVARCOOKIE1=%24%7BCOOKIE_theCookie1%7D&POSTVARCOOKIE2=%24%7BCOOKIE_theCookie2%7D
 
However, in the request headers of the second sampler, I can see that the 
cookies are both actually set:
 
Cookie Data:
theCookie1=value1; theCookie2=value2
 
They just aren't being accessed by the "${COOKIE_<cookie_name>}" convention 
anymore... Did this change in JM2.6?
 
--
Robin D. Wilson
Sr. Director of Web Development
KingsIsle Entertainment, Inc.
VOICE: 512-777-1861
www.KingsIsle.com
 
-----Original Message-----
From: Philippe Mouawad [mailto:philippe.moua...@gmail.com] 
Sent: Wednesday, February 22, 2012 3:37 PM
To: JMeter Users List
Subject: Re: Cookie manager not getting more than one set-cookie per response?
 
Can you give an example of the page that returns the 3 cookies (attach the
HTML response for example) and extract from your Test Plan the part that
manages the Cookie ?
 
Regards
Philippe
On Wed, Feb 22, 2012 at 10:19 PM, Robin D. Wilson < <mailto:rwils...@gmail.com> 
rwils...@gmail.com>wrote:
 
> I'll try to get a test case out there - but the failing test case is
> pretty complicated, and stripping everything down to a level to
> show this problem will take me a while.
> 
> --
> Robin D. Wilson
> Sr. Director of Web Development
> KingsIsle Entertainment, Inc.
> VOICE: 512-777-1861
>  <http://www.KingsIsle.com> www.KingsIsle.com
> 
> 
> -----Original Message-----
> From: sebb  <mailto:[mailto:seb...@gmail.com]> [mailto:seb...@gmail.com]
> Sent: Wednesday, February 22, 2012 3:03 PM
> To: JMeter Users List
> Subject: Re: Cookie manager not getting more than one set-cookie per
> response?
> 
> On 22 February 2012 20:53, Robin D. Wilson < <mailto:rwils...@gmail.com> 
> rwils...@gmail.com> wrote:
> > I have a test case that used to work fine in JMeter 2.4 (still does).
> But it started failing when I upgraded to JMeter 2.6.
> >
> > The failure is a direct result of the test case failing to find a cookie
> that is set early in the test samples. It is from a
> > response that contains 3 "Set-Cookie:" headers. Apparently, JM2.6 Cookie
> Manager is only storing the first cookie being set in the
> > response. Subsequent "Set-Cookie:" response headers are being ignored.
> >
> > I am able to work around the issue by using a Regular Expression
> Extractor and getting the cookies manually through a regular
> > expression, but this means that I have to go back a re-code a bunch of
> test cases.
> >
> > Is there a setting that I'm missing?
> 
> Not that I know of.
> 
> Can you provide a test case via Bugzilla?
> 
> > --
> > Robin D. Wilson
> > Sr. Director of Web Development
> > KingsIsle Entertainment, Inc.
> > VOICE: 512-777-1861
> >  <http://www.KingsIsle.com> www.KingsIsle.com
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail:  <mailto:user-unsubscr...@jmeter.apache.org> 
> > user-unsubscr...@jmeter.apache.org
> > For additional commands, e-mail:  <mailto:user-h...@jmeter.apache.org> 
> > user-h...@jmeter.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:  <mailto:user-unsubscr...@jmeter.apache.org> 
> user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail:  <mailto:user-h...@jmeter.apache.org> 
> user-h...@jmeter.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:  <mailto:user-unsubscr...@jmeter.apache.org> 
> user-unsubscr...@jmeter.apache.org
> For additional commands, e-mail:  <mailto:user-h...@jmeter.apache.org> 
> user-h...@jmeter.apache.org
> 
> 
 
 
-- 
Cordialement.
Philippe Mouawad.

Reply via email to