【LR11】Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误解决办法

 

场景描述:被测系统是发布在远程服务器上的,假设IP是10.10.10.10,端口是8066,那么访问地址是http://10.10.10.10:8066/,在control机器上我设置了IP欺骗。

错误现象:在场景运行时出现大量Action.c(8): Error -27796: Failed to connect to server"server:port": [10060] Connection timed out错误。

官方的troubleshooting:

查看工具的troubleshooting,如下:
代码:
Message Code 27796
Failed to connect to server 'hostname';port_ld': 'reason'.
Unable to connect to the specified server and port.
Troubleshooting
o    Try to address the reason provided for the connection failure.
o    Try to access the application with a browser from the injector machine and from another machine (such as the recording machine).
o    Check that you accurately specified the correct host name and port.
o    Ping the host/port.
o    Check if the server application you are trying to access is running.
o    If you used a hostname, check if it was resolved to the correct address.
o    Check if the server application is listening to the right port.

网上查找的解决方法:
方法一:
在注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里,有如下两个键值:
TcpTimedWaitDelay
MaxUserPort
1,这里的TcpTimedWaitDelay默认值应该中是30s,所以这里,把这个值调小为5s(按需要调整)。
2,也可以把MaxUserPort调大(如果这个值不是最大值的话)。

此法不通!

方法二:

修改run time setting中的请求超时时间Preferences 中点击Options 其中有三项的参数可以一次都修改了,HTTP-request connect timeout,HTTP-request receieve timeout,

Step download timeout,分别建议修改为1000、1000、10000;run time setting设置完了后记住还需要在control组件的option的run time setting中设置相应的参数;

此法不通!

上面两个解决方法,百度一大片,我不知道转载的人是不是确实解决了问题,我希望以后大家转载文章或者博客时,最好证实是否有效再转载。

方法三:取消IP欺骗,取消后再运行场景,不再提示这个错误。

上一篇:C++ //多态 //静态多态:函数重载 和 运算符重载 属于静态多态 ,复用函数名 //动态多态:派生类和虚函数实现运行时多态


下一篇:深入理解OOP(二):多态和继承(继承)