Have you got more than one cookie manager in the test plan?

If so, you need to make sure that they are not both in scope at the
same time, as only one will be actioned.

You can do this by adding each as a child of the relevant sampler.

S.
On 4/12/05, Jennifer Ward <[EMAIL PROTECTED]> wrote:
> Hello All,
> 
> I'm sending this again since it looks like my attachments got stripped
> out the first time.
> 
> I'm using JMeter to test a login session that basically involves
> sending two requests. The first request sends a static Cookie
> (predefined in my CSV file). The response for that request includes
> some set-cookie headers that I want to use for the request #2. However,
> I also want to include my static Cookie from the first request as so:
> 
> Request 1: GET /someurl
> Cookie: un=123456
> 
> Response:
> set-cookie: wosid=jGhVyqhtLM7s; version="1"; path=/somepath
> set-cookie: woinst=1; version="1"; path=/somepath
> 
> Request 2: GET /someurl/login
> Cookie: un=123456; woinst=1; wosid= jGhVyqhtLM7s
> 
> I've defined my test plan with the following User Parameters:
> 
> username  ${__CSVRead(...)}
> password  ${__CSVRead(...)}
> uname-cookie  ${__CSVRead(...)}
> 
> Then, a header manager that defines the Cookie header using my static
> cookie:
> 
> Cookie  ${uname-cookie}
> 
> Then, my cookie manager explicitly stores that cookie:
> 
> un  ${uname-cookie}
> 
> This works fine for the first request, but the second request is
> missing my un cookie.
> 
> Any suggestions would be appreciated.
> 
> Thanks
> Jennifer Ward
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to