51Testing软件测试论坛

标题: Lr9脚本回放出错。 [打印本页]

作者: 依涵    时间: 2008-5-22 09:05
标题: Lr9脚本回放出错。
各位,我是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.
这个问题我也根据帮助文档中错误代码提示看了,觉得没有他说的那些,在网上查找了,有这方面的介绍,但是和这不完全一样,也没解决。请各位帮帮忙看看,这是为什么啊?
   本来最开始还成功录制了同样的操作的脚本,而且回放也没有问题。后来重新录制,就再也回放不成功了!
作者: shen1936    时间: 2008-5-22 09:09
HTTP 500——服务器产生内部错误
取消选中run time settings-browser emulation-download non-html resources.

或者看看你的关联 是否有问题
作者: aks5201314    时间: 2008-5-22 10:26
你录制脚本的时候,选择 options-->recording-->html based-->html advanced-->script type 选第二项试试
作者: 依涵    时间: 2008-5-22 11:55
谢谢两位,按照两位所说的设置,仍然不行。
我想过关联,不过我对关联理解不深,我自动检测,没有提示说需要关联,我把脚本中某些需要变化的(比如我脚本里的用户编号)参数化了。也不行!
还有什么地方需要注意吗?




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