Hi Marc,

Thanks for ur response, actually i am not able to set it even once, the one i 
have shown in config.xml i have cut pasted the JSESSIONID from my browser and 
using it, so its manually done by me after login in web application thru 
firefox. 

I want to set it once in webtest after login and then use it across. 

How is it possible to set cookie in webtest ?

-Amit 

Hi Amit,

why do you want to set the cookie again? Once set, cookies are available
through the whole <webtest> and will be used in further requests.

----- Original Message ----
From: amit shrivas <[EMAIL PROTECTED]>
To: [email protected]
Sent: Friday, March 16, 2007 3:06:51 AM
Subject: How to set JESSIONID cookie header after storing cookie..

Hi,

I am testing a web application and storing cookie after login as:

<storeCookie name="JSESSIONID" property="cookie" />
<verifyCookie name="JSESSIONID" text="#{cookie}" />

Verification is also done properly, now i want to set this cookie in header 
something like

<header name="Cookie" value="JSESSIONID=4EA91ED4FEF3245652F40FEC887B6B8C"/> 

So that i can run a set of test cases on subsequent pages with this session, 
how can i achieve this ?

I was looking at 

 <storeHeader description="store cookie"   name="Content-Type" 
property="contentType" />

Option but this in documents it says: The name of the Http Response Header of 
interest. If the property name
is not specified, the header name is used as key to store the value
found. this i think is more on HTTP response header. 

Please help, since i tried lot of different options and failed.

-Amit 





We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.





 
____________________________________________________________________________________
Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

Reply via email to