Fw: [Webtest] Cookies and WebTest
Thu, 5 Aug 2004 18:56:47 +0530
Updates on this ...
Given below indeed works.
<header name="cookie" value="cookieuser=vishal; next_cookie_var=nextval" />
Previously I messed up setting the cookie value. The server did not
validate those values properly
I face the same problem Alan had faced
How to share the cookie vals across "testSpec"s ?
Any patches for that available ?
Thanks and Regards
----- Forwarded by Vishal Augustine/India/IBM on 08/05/2004 06:23 PM -----
08/05/2004 12:02 cc:
PM From: Vishal Augustine/India/IBM@IBMIN
Subject: RE: [Webtest] Cookies and WebTest(Document link: Vishal Augustine)
The login/password validation and cookie setting is done by one server
process running at port 80.
The server pages are hosted by another server process running at a
different port - 8080. This means I need to come up with two "testSpec"
having two different "config" sections. I read somewhere that each
testSpecs works independently, which means the cookie set in one won't be
valid in the other. Hence I was trying to explicitly set the cookie. I
tried initially "Cookie" not "Set-Cookie", but it didn't work.
Perhaps what I read about testSpec was wrong. I'll give a try with two
Thanks and Regards
<dierk.koenig@cano To: <email@example.com>
Sent by: Subject: RE: [Webtest] Cookies and WebTest
Please respond to
first: typically there is no need to set any cookies explicitely.
this is all done under the hood. whatever the server sends as a cookie,
Canoo WebTest will send it back.
second: you tried to set the "Set-Cookie" header in an http request,
but "Set-Cookie" is only used in http resonse headers, i.e. what the
server sends to the client (browser). For setting a request header
(pretending the server sent a "Set-Cookie" before), you need to
send the "Cookie" header.
> -----Original Message-----
> From: firstname.lastname@example.org
> [mailto:email@example.com]On Behalf Of Vishal Augustine
> Sent: Dienstag, 3. August 2004 16:22
> To: firstname.lastname@example.org
> Subject: [Webtest] Cookies and WebTest
> Can someone please help me to set a cookie in the config (SampleTest.xml)
> xml file ?
> I tried the following but it is not working
> <header name="Set-Cookie" value="cookieuser=vishal;" /> </config>
> I searched the mail archives, but couldn't find an answer to it.
> Is there a good tutorial link for canoo other than what is there under
> http://webtest.canoo.com/manual/ ?
> WebTest mailing list
WebTest mailing list