|
2#
楼主 |
发表于 2006-7-13 17:37:22
|
只看该作者
这是录制的脚本文件
#include "web_api.h"
Action()
{
web_add_cookie("LoginSchool=8EB265B4%2D11DB%2D47A7%2D9A8B%2D3175C65D41B0; DOMAIN=test70");
web_url("test70:805",
"URL=http://test70:805/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/apps/schoolmis/portal/images/03.gif", "Referer=http://test70:805/apps/schoolmis/portal/", ENDITEM,
"URL=/apps/schoolmis/portal/images/33.gif", "Referer=http://test70:805/apps/schoolmis/portal/", ENDITEM,
"URL=/apps/schoolmis/portal/images/12.gif", "Referer=http://test70:805/apps/schoolmis/portal/", ENDITEM,
"URL=/apps/schoolmis/portal/images/21.gif", "Referer=http://test70:805/apps/schoolmis/portal/", ENDITEM,
LAST);
web_submit_form("login.asp",
"Snapshot=t2.inf",
ITEMDATA,
"Name=selSchool", "Value=演示学校", ENDITEM,
"Name=LoginName", "Value={UsName}", ENDITEM,
"Name=PassWord", "Value=", ENDITEM,
LAST);
web_url("SchoolMis",
"URL=http://test70:805/apps/SchoolMis",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=SchoolMis/images/a003.gif", "Referer=http://test70:805/apps/SchoolMis/", ENDITEM,
LAST);
web_url("welcome.asp",
"URL=http://test70:805/apps/SchoolMis/welcome.asp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test70:805/apps/SchoolMis/",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("logout.asp",
"URL=http://test70:805/apps/SchoolMis/portal/logout.asp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
return 0;
} |
|