|
Action()
{
web_url("prjGamesBBManage",
"URL=http://192.168.0.195:8081/prjGamesBBManage",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
web_submit_form("login.jsp",
"Snapshot=t2.inf",
ITEMDATA,
"Name=account", "Value=game", ENDITEM,
"Name=password", "Value=rootsgame", ENDITEM,
"Name=rand", "Value=5320", ENDITEM,
"Name=Submit001", "Value=登陆", ENDITEM,
EXTRARES,
"Url=img/base.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/folder.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/empty.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/plusbottom.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/join.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/page.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/joinbottom.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/folderopen.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
"Url=img/minusbottom.gif", "Referer=http://192.168.0.195:8081/prjGamesBBManage/lefttree.html", ENDITEM,
LAST);
return 0;
}
以上是录制的脚本。
以下是回放时报错提示
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WINXP; WebReplay82 build 5727 [MsgId: MMSG-27143]
Run-Time Settings file: "C:\Documents and Settings\Administrator\Local Settings\Temp\noname23\\default.cfg" [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Redirecting "http://192.168.0.195:8081/prjGamesBBManage" (redirection depth is 0) [MsgId: MMSG-26694]
Action.c(4): To location "http://192.168.0.195:8081/prjGamesBBManage/" [MsgId: MMSG-26693]
Action.c(4): Redirecting "http://192.168.0.195:8081/prjGamesBBManage/" (redirection depth is 1) [MsgId: MMSG-26694]
Action.c(4): To location "http://192.168.0.195:8081/prjGamesBBManage/login.jsp" [MsgId: MMSG-26693]
Action.c(4): Found resource "http://192.168.0.195:8081/prjGamesBBManage/validatecode.jsp" in HTML "http://192.168.0.195:8081/prjGamesBBManage/login.jsp" [MsgId: MMSG-26659]
Action.c(4): web_url("prjGamesBBManage") was successful, 4096 body bytes, 856 header bytes, 17 chunking overhead bytes [MsgId: MMSG-26385]
Action.c(13): Submitting form to "http://192.168.0.195:8081/prjGamesBBManage/login.jsp", Target Frame="" [MsgId: MMSG-27978]
Action.c(13): Found resource "http://192.168.0.195:8081/prjGamesBBManage/validatecode.jsp" in HTML "http://192.168.0.195:8081/prjGamesBBManage/login.jsp" [MsgId: MMSG-26659]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/base.gif" (specified by argument number 17) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/folder.gif" (specified by argument number 20) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/empty.gif" (specified by argument number 23) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/plusbottom.gif" (specified by argument number 26) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/join.gif" (specified by argument number 29) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/page.gif" (specified by argument number 32) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/joinbottom.gif" (specified by argument number 35) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/folderopen.gif" (specified by argument number 38) [MsgId: MMSG-26577]
Action.c(13): Downloading resource "http://192.168.0.195:8081/prjGamesBBManage/img/minusbottom.gif" (specified by argument number 41) [MsgId: MMSG-26577]
Action.c(13): web_submit_form("login.jsp") was successful, 6809 body bytes, 2204 header bytes, 12 chunking overhead bytes [MsgId: MMSG-26385]
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
希望能有高手给予解答! |
|