【问题1】 Error -27728: Step download timeout (120 seconds) has expired
错误分析:对于HTTP协议,默认的超时时间是120秒(可以在Run-time Settings中修改),客户端发送一个请求到端还没有返回结果,则出现超时错误。
解决办法:首先在运行环境中对超时进行设置,默认的超时时间可以设置长一些。
【问题2】Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s).
错误分析:对于HTTP协议,默认的超时时间是120秒(可以在Run-time Settings中修改),客户端发送一个请求到端还没有返回结果,则出现超时错误。
解决办法:Set the "Step Timeout caused by resources is a warning" Run-Time Setting to Yes/No to have this message as a warning/error, respectively
【问题3】 Error -13874: missing newline in C:\Users\Administrator\AppData\Local\Temp\brr_YAR.13\netdir\C\TestingResult\StressTest.2\Script\交强险投保\username.dat
错误分析:The .dat file needs to have an empty line at the bottom of the file. Also, not sure if all your data is on one line,。
解决办法: Put your cursor on it innotepad/whatever you are using to edit your dat files, note that is an empty line at the bottom。
【问题4】Error -10776 Failed to find .cfg file
错误分析:
在loadrunner打开脚本的情况下,运行磁盘清理工具,导致运行打开的脚本时,提示Mdrv error:Failed to find .cfg file MsgId:MERR-10777
解决方法:
从其它文件夹拷贝3个文件到不能正常运行脚本的文件夹下:
default.cfg
default.usp
*.prm(将*的位置改为脚本的名字)
再次运行脚本,可以正常运行
【问题5】Error-26608: HTTP Status-Code=504(Gateway Time-out)
解决办法:
1.在Vuser Generator中的Tools--->Recording Options...--->Recording--->HTTP-based script--->HTML Advanced按钮--->在Script type中选择A script containing explicit URLs only(e.g.web_url,web_submit_data)点击“ok”即可
2.runtime-setting, browser emulation, 取消选择download non-HTML resources即可
【问题6】Error -27796: Failed to connect to server "10.2.9.147:80":
解决办法:
runtime-setting, browser emulation, 将默认勾选的simulate a new vuser on each iteration取消勾选
【问题7】回放时lr报错:Error -26488: Could not obtain informationabout submitted file
解决办法:
录制完脚本后,把要上传的文件放到脚本存放的文件夹里面,重新回放就ok
【问题8】Error -60990 : Two Way Communication Error: Function two_way_comm_post_message / two_way_comm_post_message_ex failed.
【问题8】Error -29724 : Failed to deliver a p2p message from parent to child process, reason - communication error.
【问题11】Error -35061: No match found for the requested parameter "CorrelationParameter_2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 256 bytes, use web_set_max_html_param_len to increase the parameter size [MsgId: MERR-35061]
解决办法:可以用web_set_max_html_param_len增加参数长度,我试过到99999999共8位;还有,你可以在web_reg_save_param_ex(
"ParamName=CorrelationParameter_3", "LB=c",
"RB=>\n<table border",
后面 加上 "NotFound=warning", 保存编译下,就不回再提是错误了。 主要是自动关联造成的左右边界定位不精确,需要保存的值大
【问题12】Fatal Error -26000: Not enough memory (12320 bytes) for "new buffer in LrwSrvNetTaskItem::AllocSrvNetBuf". Aborting
问题原因:报错的时候发现任务管理器里mmdrv.exe 内存占用一直增大,最红mmdrv.exe崩溃
解决办法:注意内存的使用,尽量减少变量声明,对于char类型的变量要及时用free:
【问题13】 Error -27791: Server "pcisstage.zsins.com" has shut down the connection prematurely
解决办法:测试中,并发200,300,400人时,LR没报错,在并发500人时,LR报错”Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely“,同时查看WEB服务器日志:出现这样一条信息:
”INFO: Maximum number of threads (200) created for connector with address null and port 8081“
查看配置文件参数:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
采用的是默认配置,这样在高并发情况下肯定撑不住,所以修改参数配置如下:
<Connector port="8081" protocol="HTTP/1.1"
maxThreads="500" acceptCount="500" connectionTimeout="20000"
redirectPort="8443" />
重新测试,事物全部成功,系统也未报错。
出现”Error -27791: Server "172.16.xx.xxx" has shut down the connection prematurely“的原因即有可能是操作系统网络线程连接资源的原因,也可能是应用软件的原因,当出现问题,随时查看系统日志,能帮助我们更快的定位问题。