51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] Lr9脚本回放出错。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2008-5-22 09:05:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
各位,我是LoadRunner新手。在录制脚本时没有错误,回放出错,replay log 如下:
Virtual User Script started
Starting action vuser_init.
Web Turbo Replay of LoadRunner 9.0.0 for WIN2003; WebReplay82 build 5727          [MsgId: MMSG-27143]
Run-Time Settings file: "F:\测试\sfxt\sfxt_jy_20080522\\default.cfg"          [MsgId: MMSG-27141]
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(6): Found resource "http://10.140.99.65:8081/sfxt/script/meizzDate.js" in HTML "http://10.140.99.65:8081/sfxt/sfxt/ZhengChangSF1_fb.jsp"          [MsgId: MMSG-26659]
Action.c(6): Found resource "http://10.140.99.65:8081/sfxt/script/alai_button.js" in HTML "http://10.140.99.65:8081/sfxt/sfxt/ZhengChangSF1_fb.jsp"          [MsgId: MMSG-26659]
Action.c(6): Downloading resource "http://10.140.99.65:8081/sfxt/script/images/btn_bg.gif" (specified by argument number 9)          [MsgId: MMSG-26577]
Action.c(6): web_url("ZhengChangSF1_fb.jsp") was successful, 25816 body bytes, 844 header bytes          [MsgId: MMSG-26386]
Action.c(17): web_url("SelectGdsServlet") was successful, 0 body bytes, 142 header bytes          [MsgId: MMSG-26386]
Action.c(28): Resource "http://10.140.99.65:8081/sfxt/script/meizzDate.js" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Action.c(28): Resource "http://10.140.99.65:8081/sfxt/script/alai_button.js" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Action.c(28): web_submit_data("searchDianFeiXX_fb.do") was successful, 2326 body bytes, 145 header bytes          [MsgId: MMSG-26386]
Action.c(45): Linking to "http://10.140.99.65:8081/sfxt/ShouFeiCXJGServlet?yhbh=6800001826&yhbz=1", Target Frame=""          [MsgId: MMSG-27994]
Action.c(45): Redirecting "http://10.140.99.65:8081/sfxt/ShouFeiCXJGServlet?yhbh=6800001826&yhbz=1" (redirection depth is 0)          [MsgId: MMSG-26694]
Action.c(45): To location "http://10.140.99.65:8081/sfxt/sfxt/ZhengChangSF_fb.jsp"          [MsgId: MMSG-26693]
Action.c(45): Found resource "http://10.140.99.65:8081/sfxt/script/isnull.js" in HTML "http://10.140.99.65:8081/sfxt/sfxt/ZhengChangSF_fb.jsp"          [MsgId: MMSG-26659]
Action.c(45): Resource "http://10.140.99.65:8081/sfxt/script/alai_button.js" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Action.c(45): Resource "http://10.140.99.65:8081/sfxt/script/images/btn_bg.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Action.c(45): web_link("查看") was successful, 5326 body bytes, 538 header bytes          [MsgId: MMSG-26386]
Action.c(52): Submitting form to "http://10.140.99.65:8081/sfxt/zhengChangSF.do", Target Frame=""          [MsgId: MMSG-27978]
Action.c(52): Resource "http://10.140.99.65:8081/sfxt/script/images/btn_bg.gif" is in the cache already and will not be downloaded again          [MsgId: MMSG-26655]
Action.c(52): Error -26612: HTTP Status-Code=500 (Internal Server Error) for "http://10.140.99.65:8081/sfxt/zhengChangSF.do"          [MsgId: MERR-26612]
Action.c(52): web_submit_form("zhengChangSF.do") highest severity level was "ERROR", 1617 body bytes, 182 header bytes          [MsgId: MMSG-26388]

Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
这个问题我也根据帮助文档中错误代码提示看了,觉得没有他说的那些,在网上查找了,有这方面的介绍,但是和这不完全一样,也没解决。请各位帮帮忙看看,这是为什么啊?
   本来最开始还成功录制了同样的操作的脚本,而且回放也没有问题。后来重新录制,就再也回放不成功了!
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2008-5-22 09:09:37 | 只看该作者
HTTP 500——服务器产生内部错误
取消选中run time settings-browser emulation-download non-html resources.

或者看看你的关联 是否有问题
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2008-5-22 10:26:44 | 只看该作者
你录制脚本的时候,选择 options-->recording-->html based-->html advanced-->script type 选第二项试试
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2008-5-22 11:55:31 | 只看该作者
谢谢两位,按照两位所说的设置,仍然不行。
我想过关联,不过我对关联理解不深,我自动检测,没有提示说需要关联,我把脚本中某些需要变化的(比如我脚本里的用户编号)参数化了。也不行!
还有什么地方需要注意吗?
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-9-22 15:38 , Processed in 0.091796 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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