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(
                "ParamName=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,

 

4、Eerror -277277: 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

解决办法:

  •  Run-Time Setting ->Internet Protocol ->Preferences ->Option -> Step download timeout(sec)改为32000.

 将HTTP-request connect timeout和HTTP-request receive timeout设为1000.

5、Error -27780: connect to host "172.16.83.219" failed: [10054] Connection reset by peer

解决办法:

web_set_sockets_option("CLOSE_KEEPALIVE_CONNECTIONS", "1");

6、 Error -27764: Request "https://172.16.83.219/u_valid_crl1.pfx" failed

解决办法:

Run-Time Setting ->Internet Protocol ->Preferences ->Advanced勾选winInet replay instead of Sockets(Windows only)

7、Error -27796: Failed to connect to server "172.16.83.219:443": [10060] Connection timed out

解决办法:

将注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters中的TcpTimedWaitDelay改小

使用多个负载生成器

8. Error -27790: Failed to read data from server "192.168.3.213": [10053] Software caused connection abort 

解决办法:

web_set_sockets_option("OVERLAPPED","0");

在web_set_sockets_option里用TCP_BUFFER_SIZE增加buffer的大小

szwebt06        Error -26377        Action.c(53) Error -26377 No match found for the requested parameter "TransitionId". 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。。。。。。

现在的问题是脚本没有问题,总共实行了22,028次,关于26377的错误只出现两次。

分析:

通常不是长度的问题,如果长度有问题就都出错了。应该是服务器返回的数据问题,导致没有找到这个参数。
26377错误的成因很多,总结最直接的结果就是No match found for the requested parameter "XXXXX"。意思就是没有找到关联变量匹配的值,实际上是没有从返回报文中得到匹配的边界结果。
可能的原因
1.脚本错误,确实没有匹配上的值22,028次中出现2次,或许可以排除(但也不能完全排除)是脚本的错误。需要仔细看日志分析到此返回的结果是什么。
2. 参数列表错误,实际上还是造成了脚本运行错误,没有返回正确的页面和结果(可能根本就没有正常到达你设想的页面,由于特殊原因跳转到某个地方去了)
3.服务器超载,没有在规定时间内返回正确的网页报文,当然就找不到数据了。(注意不要对同一条目重复进行查询、更新等复杂造作)
4. web_set_max_html_param_len 过小,没有足够的空间储存返回的报文,也就是,你要的信息在某个地方因为存储空间不足被截断了。设置更大的值可能会解决问题。
26377 这个错误很常见,但是原因有多种,你再提供更多的信息,可能能帮你找点原因。


 

猜你喜欢

转载自blog.csdn.net/qq_41650233/article/details/82804481