51Testing软件测试论坛

标题: 脚本回放时出现错误:Error -26627: HTTP Status-Code=404 (Not Found) [打印本页]

作者: xuyan_8707    时间: 2015-3-9 17:01
标题: 脚本回放时出现错误:Error -26627: HTTP Status-Code=404 (Not Found)
使用Loadrunner录制一个测试网站的用户登录和其他操作功能。 发现脚本回放时,都出现同一个问题,错误日志如下:
Action.c(110): Error -26627: HTTP Status-Code=404 (Not Found) for "http://xiangmu.trjcn.name:88/service/deliveryZjxm/fbox"          [MsgId: MERR-26627]
Action.c(110): web_submit_data("fbox") highest severity level was "ERROR", 5181 body bytes, 202 header bytes          [MsgId: MMSG-26388]
和开发探讨发现,网站这些URL都是通过AJAX异步技术调用的, 单独打开这些链接是无法访问的。 但是Loadrunner在回放时,直接获取这些URL,所有一直报错。

请问,这个有解决方案么?
作者: 地壳    时间: 2015-3-10 13:58
(网上)试试:
处理方法如下:
1, 打开recording options,在internet protocol下的recording中选择recording level为HTML-based script,点击HTML Advanced,选择script type为A script containing explicit.即可。
2, 选择使用URL_based script录制。

对LR回放中highest severity level was"ERROR"的第二个解决方法
3.取消选中run time settings-browser emulation-download non-html resources.解决 。




作者: 地壳    时间: 2015-3-10 14:02
楼主所测试的平台是用什么语言开发的?感觉跟我以前负责的一个项目很像,建议换种协议试试,自行编写脚本实现起来更方便
作者: xuyan_8707    时间: 2015-3-10 19:28
确实是自行编写脚本更方便,,,  可惜我不会。  我只是摸到loadrunner的一角而已。。。




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