51Testing软件测试论坛

标题: 新人请教!LR录制脚本回放时报错 [打印本页]

作者: yaojianbo83    时间: 2009-9-18 18:14
标题: 新人请教!LR录制脚本回放时报错
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.

希望能有高手给予解答!
作者: 云层    时间: 2009-9-18 18:45
全部都是成功的,那里有失败的?
作者: 昙花痛    时间: 2009-9-19 12:27
慢慢看来。。。。。。。。。。
作者: yzylion    时间: 2009-9-21 09:24
额,哪里有失败的报错啊,全是成功啊




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2