When running a browser via JMeter proxy, it is the responsibility of
the browser to look after all the cookies. JMeter just passes the
browser request across, and returns the response. It does not change
the data.

When running a test, the browser is not present, and it is up to
JMeter to handle cookies via the Cookie Manger. You can add some fixed
cookies to that if you want, however that should not be necessary in
most cases.

All cookies ultimately originate from the remote server; any cookie
that a browser sends was derived from a server at some stage. Indeed
when you first use a browser with a particular server it won't have
any cookies to send. Likewise if you clear the cookies from the
browser cache. Indeed a browser can delete any cookies it wants if it
runs out of storage.

Unless you preset some cookies in the Cookie Manager, JMeter behaves
like a browser with no pre-existing cookies. This is what the user
will experience when connecting to a site for the first time.

S
On 31/08/06, Sen, Kakoli <[EMAIL PROTECTED]> wrote:
Hi,
 Did not get any response. Is the problem clear?
Basically, the cookie gets saved to the hard-disc of the client m/c. Then when 
the site is opened in a new IE window, the textfields should be populated with 
cookie data which is got from the client m/c. This is happenning through direct 
browser. But how do I ensure the same through JMeter proxy?

Regards,
Kakoli

-----Original Message-----
From: Sen, Kakoli [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 30, 2006 4:56 PM
To: JMeter Users List
Subject: RE: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording 
cookies


Hi Alex/Sebb,
   The flow is as below:
1) I access the remote site and enter some values in the text field. Press a 
button 'Save Cookie'. The cookie gets saved onto my hard-disc.
2) Close IE.
3) Open the same site in a new window. The text field should be populated by 
values entered earlier.


When I try the above sequence through JMeter proxy, in step 3) the text fields 
are blank. From the 'View Result Tree' listener, the html response in step 3) 
gives blank text-fields. And the request comes thus :
GET  <  <http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> 
http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm>  
<http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> 
http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm

[no cookies]

Request Headers:
Accept-Encoding: gzip, deflate
Host: www.codehouse.com
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322; .NET CLR 2.0.50727)
Cookie: [EMAIL PROTECTED]@[EMAIL PROTECTED]
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, 
application/x-shockwave-flash, */*

Note, the cookie is reflected in the request header, though it says [no 
cookies] in the middle.

Now, where is the problem? Hope I could be clear.

Thanks& Regards,

Kakoli


----Original Message-----
From: Alex Turner [  <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 29, 2006 5:33 PM
To: JMeter Users List
Subject: RE: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording 
cookies


Sen,

The cookie would be coming from the server to start with.  You will only see it 
in the request in a later request.  You should look in the response or in the 
next request to the same domain.

Cheers

AJ

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Sen, Kakoli [  <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
Sent: 29 August 2006 07:44
To: JMeter Users List
Subject: TPN POSSIBLE SPAM:RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Hi,
 This is what I did : Added View tree to the proxy server. Then the site with 
the cookie produces the fol. in 'Request' tab of view tree :


GET  <  <http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> 
http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm>  
<http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm> 
http://www.codehouse.com/javascript/scripts/cjl/cookie/cookie_demo.htm

[no cookies]

Request Headers:
Accept-Encoding: gzip, deflate
Host: www.codehouse.com
Accept-Language: en-us
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322; .NET CLR 2.0.50727)
Cookie: [EMAIL PROTECTED]@[EMAIL PROTECTED]
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, 
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, 
application/x-shockwave-flash, */*

And the 'Response data' in HTML does not reflect the data stored in the cookies.

But the page in IE reflects the data store in the cookies.

Now, where is the problem?

Also, how do I map the cookie data as it appears in the 'Request' of view tree 
to HTTP cookie manager?

If the proxy could record the cookie directly onto a cookie manager like it 
does for header in Http header manager, then all this confusion could have been 
avoided.

Regards,

Kakoli

-----Original Message-----
From: Alex Turner [  <  <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]>  
<mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
Sent: Monday, August 28, 2006 6:38 PM
To: JMeter Users List
Subject: RE: TPN POSSIBLE SPAM:Jmeter proxy recording cookies


Sen,

If you run the proxy with a tree viewer, then you get the cookies turning up in 
the recorded headers.  You can then copy these over to the cookie manager.

AJ

Alexander J Turner Ph.D.
www.deployview.com
www.nerds-central.blogspot.com
www.project-network.com

-----Original Message-----
From: Sen, Kakoli [  <  <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]>  
<mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
Sent: 28 August 2006 12:47
To: JMeter Users List
Subject: TPN POSSIBLE SPAM:Jmeter proxy recording cookies

Hi all,
   I am recording requests to an HTTP site which uses cookies, through JMeter's 
proxy. But the proxy does not seem to record the cookies. Is that so?
  Then how do I test a web-site having cookies? I intend to use the Cookie 
Manager with hard-coded cookie values, which I thought would be automatically 
recorded by the proxy.

Regards,
Kakoli

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/428 - Release Date: 25/08/2006


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




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.405 / Virus Database: 268.11.6/430 - Release Date: 28/08/2006


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

Reply via email to