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.

Marc.

amit shrivas wrote:
> 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
> <http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265 >
> (and love to hate): Yahoo! TV's Guilty Pleasures list.
> <http://us.rd.yahoo.com/evt=49980/*http://tv.yahoo.com/collections/265 >

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to