51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2952|回复: 3
打印 上一主题 下一主题

[原创] 新人请教!LR录制脚本回放时报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-9-18 18:14:47 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
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.

希望能有高手给予解答!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

4#
发表于 2009-9-21 09:24:46 | 只看该作者
额,哪里有失败的报错啊,全是成功啊
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2009-9-19 12:27:46 | 只看该作者
慢慢看来。。。。。。。。。。
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2009-9-18 18:45:21 | 只看该作者
全部都是成功的,那里有失败的?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-19 05:46 , Processed in 0.109565 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表