|
3#
楼主 |
发表于 2008-7-1 14:55:57
|
只看该作者
对应代码:
Action()
{
web_url("tais_web",
"URL=http://192.168.2.55:3001/tais_web",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t45.inf",
"Mode=HTML",
LAST);
web_add_cookie("user=test; DOMAIN=192.168.2.55");
web_add_cookie("password=MTIz; DOMAIN=192.168.2.55");
web_add_cookie("savePassword=true; DOMAIN=192.168.2.55");
web_add_cookie("lastuser=test; DOMAIN=192.168.2.55");
web_url("login3.do",
"URL=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t46.inf",
"Mode=HTML",
LAST);
web_add_cookie("user=3700009101; DOMAIN=192.168.2.55");
web_add_cookie("lastuser=3700009101; DOMAIN=192.168.2.55");
lr_think_time(14);
web_submit_data("loginAction3.do",///////////////回放错误对应代码处
"Action=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Snapshot=t47.inf",
"Mode=HTML",
ITEMDATA,
"Name=password", "Value=D9840773233FA6B19FDE8CAF765402F5", ENDITEM,
"Name=loginName", "Value=3700009101", ENDITEM,
"Name=passwordA", "Value=123", ENDITEM,
"Name=com.cvicse.rbac.attachCode", "Value=", ENDITEM,
"Name=remember", "Value=true", ENDITEM,
"Name=imageField.x", "Value=0", ENDITEM,
"Name=imageField.y", "Value=0", ENDITEM,
LAST);
web_add_cookie("JSESSIONID=LpRW2RCg4LnGyfzvtbQv03FfgS5LhF2ml3KkQFlGqWFT5dNmvr1w!254845856; DOMAIN=192.168.2.55");
web_add_cookie("JSESSIONID=LpRmYnm2KjJsScyLtNxvyQP8XnvKQqHY6vqs48gsT1v6L8j5K2vv!254845856; DOMAIN=192.168.2.55");
web_submit_data("loginAction3.do_2",
"Action=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/login3.do",
"Mode=HTML",
ITEMDATA,
"Name=password", "Value=D9840773233FA6B19FDE8CAF765402F5", ENDITEM,
"Name=loginName", "Value=3700009101", ENDITEM,
"Name=passwordA", "Value=123", ENDITEM,
"Name=com.cvicse.rbac.attachCode", "Value=", ENDITEM,
"Name=remember", "Value=true", ENDITEM,
EXTRARES,
"URL=../images/bar_left_bg.gif", ENDITEM,
"URL=../img/splitpanel/vertical_left.gif", ENDITEM,
"URL=../img/splitpanel/vertical_right.gif", ENDITEM,
"URL=../img/BSTreeView/Pplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/close.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/I.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/L.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/jsdoc.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/Tplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/T.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/Lplus.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/BSTreeView/empty.gif", "Referer=http://192.168.2.55:3001/tais_web/rbac/desktoplr/menuTree.jsp", ENDITEM,
"URL=../img/tabpane/close.gif", ENDITEM,
LAST);
web_url("gztListQueryAction.do",
"URL=http://192.168.2.55:3001/tais_web/tais/gztListQueryAction.do?operFlag=query",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Snapshot=t48.inf",
"Mode=HTML",
LAST);
web_url("sjfqListQueryAction.do",
"URL=http://192.168.2.55:3001/tais_web/tais/sjfqListQueryAction.do?operFlag=allQuery&procDefId=nspg:nspgflow&actDefId=pjpggcl&pgdxLx=ZX",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.55:3001/tais_web/rbac/loginAction3.do",
"Snapshot=t49.inf",
"Mode=HTML",
LAST);
................
在脚本中我只做过关联,而且回放时在检测不到资源的地方可以清楚的看到快照。 |
|