[Http-webtest-general] Does the webtest object hold cookie state?
Brought to you by:
m_ilya,
richardanderson
|
From: Alan R. <ar...@zo...> - 2004-06-08 02:31:15
|
Hi,
=20
I'm trying to test a web application where different users have
different permissions to view files. When I try to login as different
users, it doesn't look like my login screen request sets the=20
cookies.=20
=20
Also, once the server has sent cookies, will later requests
by the server to query client cookies be successful? In other
words, are cookies persistent in the webtest client?
=20
Do you see anything wrong here?
=20
Perl code (with some url info changed):
=20
return(
{
test_name =3D> "$user login",
url =3D> 'http://test.com/query.cgi',
params =3D> [ login =3D> $user,
password =3D> $password,
ShowLogIn =3D> 1,
ShowLogIn =3D> 'Login' ],
accept_cookies =3D> 'yes',
show_cookies =3D> 'yes',
send_cookies =3D> 'yes',
text_require =3D> [ 'Query Page' ]
}
);
Test Name: test araetz%40test.com login
URL:
http://test.com/query.cgi?login=3Daraetz%2540test.com&password=3Dcd201cd&=
Sho
wLogIn=3D1&ShowLogIn=3DLogin
=20
STATUS CODE CHECK
Expected '200' and got: 200 OK SUCCEED
REQUIRED TEXT
Query Page FAIL
=20
SENT COOKIE(S)
*** none ***
RECEIVED COOKIE(S)
*** none ***
=20
=20
Thanks!=20
=20
-Alan
=20
|