Fw: [Webtest] Cookies and WebTest
Vishal Augustine
webtest@lists.canoo.com
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
http://lists.canoo.com/pipermail/webtest/2003q2/000783.html
How to share the cookie vals across "testSpec"s ?
Any patches for that available ?
Thanks and Regards
Vishal
+
----- Forwarded by Vishal Augustine/India/IBM on 08/05/2004 06:23 PM -----
Vishal Augustine
To: webtest@gate2.canoo.com
08/05/2004 12:02 cc:
PM From: Vishal Augustine/India/IBM@IBMIN
Subject: RE: [Webtest] Cookies and WebTest(Document link: Vishal Augustine)
Thnx Mittie.
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
testSpecs.
Thanks and Regards
Vishal
+
"Dierk Koenig"
<dierk.koenig@cano To: <webtest@gate2.canoo.com>
o.com> cc:
Sent by: Subject: RE: [Webtest] Cookies and WebTest
webtest-admin@gate
2.canoo.com
08/04/2004 07:52
PM
Please respond to
webtest
Hi Vishal,
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.
cheers
Mittie
> -----Original Message-----
> From: webtest-admin@lists.canoo.com
> [mailto:webtest-admin@lists.canoo.com]On Behalf Of Vishal Augustine
> Sent: Dienstag, 3. August 2004 16:22
> To: webtest@gate2.canoo.com
> Subject: [Webtest] Cookies and WebTest
>
>
>
>
>
>
> Hi,
>
> 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
> <config
> host="myhost.mydomian.com"
> port="80"
> protocol="http">
> <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/ ?
>
> Thanks
> Vishal
>
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
WebTest@lists.canoo.com
http://lists.canoo.com/mailman/listinfo/webtest