|
录制的脚本如下:
#include "web_api.h"
Action()
{
web_url("swjayww",
"URL=http://210.73.84.34/swjayww/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=images/login_bg04.jpg", ENDITEM,
LAST);
lr_think_time( 6 );
web_submit_form("login.do",
"Snapshot=t2.inf",
ITEMDATA,
"Name=username", "Value=112", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=vali", "Value=", ENDITEM,
"Name=image2.x", "Value=30", ENDITEM,
"Name=image2.y", "Value=18", ENDITEM,
EXTRARES,
"Url=../images/top_bg1.gif", "Referer=http://210.73.84.34/swjayww/web/login.do?method=Login", ENDITEM,
"Url=../images/leftbg01-1.jpg", "Referer=http://210.73.84.34/swjayww/web/login.do?method=Login", ENDITEM,
"Url=../images/leftbg01.jpg", "Referer=http://210.73.84.34/swjayww/web/login.do?method=Login", ENDITEM,
"Url=../images/content-title03.gif", "Referer=http://210.73.84.34/swjayww/web/rb/rbmain.jsp", ENDITEM,
"Url=../include/images/ico.gif", "Referer=http://210.73.84.34/swjayww/web/ribao.do?method=findRibao", ENDITEM,
"Url=../include/images/f1.gif", "Referer=http://210.73.84.34/swjayww/web/ribao.do?method=findRibao", ENDITEM,
LAST);
return 0;
}
但是回放时,出现如下提示信息:
Action.c(19): Warning -26627: HTTP Status-Code=404 (/swjayww/commons/404.jsp) for "http://210.73.84.34/swjayww/dwr/interface/dwrUser.js" [MsgId: MWAR-26627]
Action.c(19): Warning -26627: HTTP Status-Code=404 (/swjayww/commons/404.jsp) for "http://210.73.84.34/swjayww/dwr/engine.js" [MsgId: MWAR-26627]
Action.c(19): Warning -26627: HTTP Status-Code=404 (/swjayww/commons/404.jsp) for "http://210.73.84.34/swjayww/dwr/util.js" [MsgId: MWAR-26627]
不是是何原因,跪求答案!!!!!!!!!!!!!! |
|