loadrunner11使用常见问题


  • 脚本录制为空

       1. 检查协议是否正确;

       2. 关闭无关浏览器,设置IE或者火狐为默认浏览器;

       3. 录制选项 -> Network -> 端口映射 -> 捕获级别,修改为:socket level and winnet level data;

         wKiom1kijICh1NpOAAFyCM-kHRw229.jpg-wh_50


  • 执行提示超时错误

    一般提示超时错误,都是因为并发压力过大,服务器端太繁忙,无法及时响应客户端的请求而造成的;


    Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)

    1. HTTP协议默认超时时间为120s,客户端发送一个请求到服务器,如果超过120秒服务器还没返回结果,则出现超时错误。

    2. 修改Run-Time Settings -> Internet Protocol:Preferences -> options -> Step download time,以及HTTP-request connect timeout或者HTTP-request receive的值

        Error -27796: Failed to connect to server  www.baidu.com:80: [10048] 

        1. 在注册表HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters里,有如下两个键值:TcpTimedWaitDelay、MaxUserPort
        2. TcpTimedWaitDelay默认值应该中是30s,所以这里,把这个值调小为5s(按需要调整)。
        3. MaxUserPort调大 -> 65534 (如果这个值不是最大值的话)。


  • 如何让执行错误后仍继续运行,以保障不间断进行压力测试

        Run-time Settings -> General -> Miscellaneous,关于Error Handling的配置,勾选“Continue on error”即可让虚拟用户发生错误继续运行。