共享一下知识
loadrunner的几种常见错误及解决办法
1录制loadrunner脚本时,无法生成脚本,录制过程中事物都有显示,我把所有防火墙和网络保护都关了,但是脚本就是无法生成,协议之类的都是对的。
解决:、
在录制选项option->network-> ort Mapping 中的Capture levet选择Socket level and WinNet level data试试
2在回放脚本时出现的错误
Action.c(33): Error -35061: No match found for the requested parameter "CorrelationParameter_1". 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(
"aramName=CorrelationParameter_3",
"LB=c",
"RB=>\n<table border",
后面 加上 "NotFound=warning",
保存编译下,就不回再提是错误了。
主要是自动关联造成的左右边界定位不精确,需要保存的值大
3
Error -27987: Requested image not found [MsgId: MERR-27987]
打开Mercury Tours
选择Start > Programs > Mercury LoadRunner > Samples > Web> Mercury Web Tours Application. 在浏览器中打开Mercury Tours网页。
更改服务器选项
在左侧的面板中单击SERVER OPTION.选择Setting 3选项。滚动页面到底部,单击Reconfigure Server Details按钮。单击Return to the Mercury Tours Homepage链接。这个设置时告诉服务器不允许重复的session IDs
注:如果你的电脑上安装了IIS, 你需要修改这个应用的设置。在xitami文件夹中查哨xitami.cfg文件,在文本编辑器中打开它,定位到portbase=1000, 并将其修改成portbase=1001,保存并关闭文件
改为"Name=userSession", "Value={userSession}", ENDITEM,
51Testing软件测试网4Qe dx0O r
51Testing软件测试网OH Cu8T]
51Testing软件测试网+UaT)xO0o
0}h;G)j(ZA:| p0
[#Jm b1J;@~,R0² Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s). 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
7vl7_9dx s%S0解决办法:51Testing软件测试网1ru‑J[*{ vC7g"T
·
Run-Time Setting ->Internet Protocol ->references ->Option -> Step download timeout(sec)改为32000.
·
将HTTP-request connect timeout和HTTP-request receive timeout设为1000.
/K,w%]3p9j%^$X} e0² Error -27780: connect to host "172.16.83.219" failed: [10054] Connection reset by peer
‑y+C%['Q-nv'sU x0解决办法:
·
5KI8iBt‑H6]7aXzK0web_set_sockets_option("CLOSE_KEEPALIVE_CONNECTIONS", "1");
&gU,x c~R6`0² Error -27764: Request "https://172.16.83.219/u_valid_crl1.pfx" failed 51Testing软件测试网'B&Hg.Av^
解决办法:
·
6d.q$C:gZg/ax/_0 Run-Time Setting ->Internet Protocol ->references ->Advanced勾选winInet replay instead of Sockets(Windows only)
51Testing软件测试网:Y)PL.i~!q X*n*g9U
² Error -27796: Failed to connect to server "172.16.83.219:443": [10060] Connection timed out
6yO0s9F5vO2D0解决办法:51Testing软件测试网Oz `"F P3TYE
·
将注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters中的TcpTimedWaitDelay改小
·
使用多个负载生成器
51Testing软件测试网‑r‑FZg,vJ7q gnl
² Error -27790: Failed to read data from server "192.168.3.213": [10053] Software caused connection abort
(Nq cA5g An0解决办法:
·
c"[+cW;o T E4V0web_set_sockets_option("OVERLAPPED","0");
·
在web_set_sockets_option里用TCP_BUFFER_SIZE增加buffer的大小
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |