[Webtest] <kein Betreff>

Markus Maier Markus Maier <haustuere@web.de>
Mon, 15 Jan 2007 11:00:20 +0100


Hi to all!

I have really big problems with the cookie handling.

I have a login page which will give me a cookie:
<html>
 <head>
   <meta http-equiv=3D'content-type' content=3D'text/html; charset=3DUTF-8'>
   <meta http-equiv=3D'set-cookie' content=3D'webm=3Dnone; path=3D/;'>
 </head>
 <body>
...

My seps so far:
<setInputField description=3D"set password"
 name=3D"WEBMv-Admin-Password"
 value=3D"123456" />
<clickButton
 label=3D"Login"
 description=3D"Click the submit button"
 saveResponse=3D"true"
 />

So far so good. The login works (There is a successor page).

But now I can't store or verify a cookie:
<storeCookie description=3D"store the cookie" name=3D"webm"
property=3D"cookie" />

gives me:
com.canoo.webtest.engine.StepFailedException: No cookies set!, Step:
StoreCookie at D:\webtest\modules\adminlogin.xml:24: with
(taskName=3D"storeCookie")

So where is the problem=3F=3F

Another question:
Do I have to handle cookies by myself=3F=3F Are the cookies not
automatically stored and sent by every invoke=3F

I actually don't have not check the value of the cookie. I just need to
send it to the webserver for verification (session id).

Hope you can help me with that.

Regards,
Markus

=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
Viren-Scan f=FCr Ihren PC! Jetzt f=FCr jeden. Sofort, online und kostenlos.
Gleich testen! http://www.pc-sicherheit.web.de/freescan/=3Fmc=3D022222