Cookie Manager Question
Hello All, 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: Then, a header manager that defines the Cookie header using my static cookie: Then, my cookie manager explicitly stores that 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]
Cookie Manager Question
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]
Re: Cookie Manager Question
No, there is only one cookie manager in my test plan. The strange thing is that if I deselect Clear cookies each iteration then I end up with the following cookie for my second request: Cookie: un=${uname-cookie}; wosid=lI3iPzwi; woinst=3; un=123456; So, it's picking up the un cookie that I have stored in my cookie manager, but it's not resolving it. Thanks for your help. I'd appreciate any further suggestions you may have. Jennifer Ward On Apr 12, 2005, at 4:24 PM, sebb wrote: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]