发布新日志

  • lr---Error -- Unresolved symbol : vuser_end.

    2010-02-02 17:22:19


            Action.c(33): Error: C interpreter run time error: Action.c (33):  Error -- Unresolved symbol : vuser_end.

           日志意思是vuser_end部分的语法错误。

          比如缺少下面这段中的某行。

    vuser_end()
    {
     return 0;
    }

          然后loadrunner给定位到Action.c33行,害我看了半天也没看出33行附近哪里出了问题。

     

  • loadrunner controller加载负载机出错,解决办法

    2010-01-29 18:41:24

    问题现象:
    使用controller加载另外的负载机,提示failed:

    Connection to load generator failed.

    Error: Process "lr_bridge.exe" was not created on remote host "192.168.170.161". Reason: communication error. Make sure the Agent process or service is running on the remote machine..    [MsgId: MERR-29987]

    Error: Communication error: Failed to connect to remote host [server IP: 192.168.170.161].    [MsgId: MERR-10343]

    解决方法
    出现这种通常都是防火墙之类给限制了。 负载机是windows 2008,装的loadrunner9.5,上面没有另外装防火墙或者杀毒软件。
    所以关闭掉windows防火墙(控制面板--防火墙--关闭)。
    链接成功

    当然可以不关闭防火墙,添加例外。添加loadrunner agent process


    另外有时候,loadrunner也是傻傻地,之前都可以了连接的,现在不能连接了。请重启机器后试下能否链接。







  • 先记下测试过程中遇到的问题

    2009-12-03 15:38:28

    问题1:
    执行场景时出现  Error: Exception was raised when calling event-notify Vuser function in extension lrwreplaymain.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION

    解决办法:在C盘新建一个TEMP目录,把环境变量TMP,TEMP值设置成新建的就可以解决

    问题2:
    Action.c(77): Continuing after Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)

    设置loadrunner9.1的设置过程,run-time setting---internet protocal----preferences----advanced--打开options--修改General中Step download timeout(sec):600.
    这个值根据自己的实际需要而设置。我这里的场景是要下载一个附件,手工操作大概是3.4分钟。我这里就设置为了。

    问题3:
    Action.c(77): Continuing after Error -27782: Timeout (120 seconds) exceeded while waiting to receive data for URL "http://192.168.170.24/downloadFile.jsp?code=82v167l1&key=1Uf1Ssvk1D_U37jkUnAU-7jLU8UUSUjvUn5U-7jvUbtU3JjpUnA1Sn2L1gdUS7jLU1AU37jkUnAU-7jLUbJUaUjLU1AUSUjvUn5U-


    Message Code 27782 Timeout ('timeout value'_ld seconds) exceeded while waiting to receive data for URL 'URL address'.

    A timeout occurred while trying to reach the specified URL.

    Troubleshooting
    Ping the remote host to which you were connected. If it does not respond, it may be off-line or there may be a network problem.
    Verify that the server application you are trying to access is running.
    Increase the HTTP-request receive timeout in Run-Time Settings > Internet Protocol:Preferences > Options.

    解决办法:修改Run-Time Settings > Internet Protocol:Preferences > Options >http-request receive timeout(sec):240

    超时时间根据实际情况而设置。


    问题4:
    Abnormal termination, caused by mdrv process termination.
    原因不清楚,偶尔都会遇到这个问题的,我都是重新运行场景就可以了。

    问题5:
     75004 Transaction : <http://192.168.170.24/common/login/logo.gif> InstanceID: 98784247812 VUser info:Host:192.168.171.18, Group:trsdownload_a_1_4, Script.:trsdownload_a_1_4, ID:1. End Time: 1259897034.73092 Transaction end time is less than the scenario start time

    问题6:
    Action.c(32): Continuing after 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

     


     

  • Loadrunner中Std性能指标的含义【转】

    2009-10-29 17:55:19


    STD是标准偏差值(Standard Deviation),主要用来反应样本空间分布情况。各个样本越接近平均值,STD越小,
            在LoadRunner中,STD越小,说明系统测试时的原始数据分布比较集中,基本接近平均值。所以这个值很小时,一定程度上可以表明系统更加稳定。
          计算方法如下:
            S2 = Σ( Xi − X )2 / n − 1
             式中X : 样本平均值
             S : 标准偏差
             n : 样本数量

  • loadrunner遇到的问题

    2009-05-15 10:00:42

     

     

        loadrunner总是要出些稀奇古怪的问题。今天又让我碰到了。

        打开virtual user generator 报告如图,runtime error! this application hos requested,the runtime to terminate it in an unusual way.please contat the application's support team for more information.

         打开analysis提示:startup error:外部组件发生异常。 点确定后提示:parse command line error:未将对象引用设置到对象的事例。

     

     

          现在唯一正常的就是controller了。不过不能分析和录制脚本也都没用啦。现在暂时不知道是什么原因导致的。先记录到这里。哪位xdjm知道的,麻烦提点下。

         呵呵 如果我找到原因了,再来报告啊。

     

  • loadrunner的ie代理问题

    2009-04-29 14:55:37

    脚本录制好后回放。提示如下,

    Virtual User Script. started
    Starting action vuser_init.
    Web Turbo Replay of LoadRunner 9.10.0 for WINXP; WebReplay85 build 5896   [MsgId: MMSG-27143]
    Run Mode: HTML   [MsgId: MMSG-26000]
    Run-Time Settings file: "C:\Documents and Settings\ranting\Local Settings\Temp\noname4\\default.cfg"   [MsgId: MMSG-27141]
    Starting to download the proxy automatic configuration script, URL="file://c:/docume~1/ran/locals~1/temp/customprofiledir1a07e92299d94e479c03108f9992bf44/proxy.pac"   [MsgId: MMSG-27097]
    Fatal Error -27099: Address (URL="file://c:/docume~1/ranting/locals~1/temp/customprofiledir1a07e92299d94e479c03108f9992bf44/proxy.pac") of the proxy automatic configuration script. does not start with "http:" / "https:" / "ftp:". See the 'Run-time settings/Internet Protocol/Proxy'   [MsgId: MERR-27099]
    Fatal Error -27072: The URL of the proxy automatic configuration script. was explicitly specified in "Run-time settings/Internet Protocol/Proxy".  Aborting   [MsgId: MERR-27072]

    两个办法

    1.临时性的:Run-time settings--Internet Protocol---Proxy 选择no proxy。

    2.或者设置ie--internet选项---连接---局域网设置---取消掉“使用自动撇之脚本”

    两种都可以解决。

  • 系统找不到mdv.exe文件

    2009-04-23 17:46:27

    负载的机器上报告:

    Error: Process "mdrv.exe" was not created. Reason: 系统找不到指定的文件。

    解决办法:首先查看mdrv.exe文件是否存在。lr 9.1 目录D:\Program Files\HP\LoadRunner\bin

            发现真的没有这个文件

            在别的机器上copy mdrv.exe文件解决问题。

     

    估计是给杀毒软件之类的给杀了。这个是我同事的机器上遇到的

    我自己机器上就遇到过360报告lr的bin目录下的dll是灰鸽子,本着试一试的心态,杀了,结果lr就彻底用不了。当时是重装了,因为也有些其他问题。

  • loadrunner监控windows资源,“Cannot collect data ”的问题解决

    2008-07-14 18:18:32

    Monitor name :Windows Resources. Cannot collect data on the machine 192.168.170.171.
    Details: The query does not currently have any counters.
    Hint:
    Close the application and reopen it later (it seems to be a temporary problem) (entry point: CFactory::CollectData).    [MsgId: MMSG-47292]

    这个问题,关掉controller,再开就可以了。
  • loadrunner监控windows资源遇到net use failed,拒绝访问的问题。

    2008-07-14 18:06:56

        
    loadrunner监控windows资源遇到net use failed,拒绝访问的问题。
       今天下午用loadrunner监控windows服务器资源时,遇到提示“net use failed,error code:5,error descrīption :拒绝访问”。。。



    这个错误在网上可以搜到很多解决办法:
    比如:1.在目标机器"服务"中开启"Remote Procedure Call (RPC)"和"Remote Registry"
         2.
    被监视的WINDOWS机器:右击我的电脑,选择管理->共享文件夹->共享  在这里面要有C$这个共享文件夹,(要是没有自己手动加)
         然后保证在安装LR的机器上使用运行.输入\\被监视机器IP\C$  然后输入管理员帐号和密码,如果能看到被监视机器的C盘了,就说明你得到了那台机器的管理员权限,可以使用LR去连接了.


       这两种方法都试过了,还是监控不到windows资源。

       最后把windows 2003上的域控制器删除掉,解决问题了。
        不知道域控制器哪里的设置影响到,使得lr监控不到系统资源。
         试过把域控制器里的administrator里有关权限的部分都设置为了允许还是监控不了。最后没辙,把域控制器给删除掉了。
       有空再看看具体是域控制里哪里设置问题。
  • 关于做性能测试要模拟用户真实环境的思考

    2008-07-04 10:01:22

          看了不少资料都是说做性能测试的时候要模拟客户的真实环境。
          做什么事情都从他的目的出发,是想得到什么样的效果。如果是想找出系统程序上的问题,比如内存泄露等,就可以在虚拟机上进行,个人觉得虚拟机更好,可以随时恢复到某个状态,使得每次测试的环境一致。
         
      


  • 性能测试计划

    2008-07-02 11:07:58

          简单的写写测试计划
         1.做什么事情,都有它的目的。首先就是要搞清楚,做这件事情的目的是什么。
         2.然后根据这个目的,设计场景。
         3.根据平时的经验,估算整个测试时间。
         4.测试环境和系统测试前的准备工作,比如准备数据,创建1万用户,并且在这1万用户生成部分测试数据。需要比较长的时间,尽量把这些事情安排在下班时间做。
         5.录制和修改脚本。
         6.运行测试场景。
         7.写报告。
     
        为了使得每次测试环境的一致。服务器是一台虚拟机的话,可以按下面的方法设置:
        在vmware server console 选中测试的虚拟机,右键选择virtual machine settings,选择hardware选项卡,选择hard disk—advanced---independent,选择
    nonpersistent。
        在每次测试前,
    power off 虚拟机,再power on 虚拟机,可以达到保持测试环境前后一致的目的。

  • 360误报C:\Program Files\HP\LoadRunner\bin\OrchidUtils.dll是灰鸽子。

    2008-06-27 18:27:07

         今天用360杀毒,报告C:\Program Files\HP\LoadRunner\bin\OrchidUtils.dll感染了灰鸽子。

    怀着半信半疑的态度,先把OrchidUtils.dll备份了出来,然后用360立即查杀功能杀360所谓的灰鸽子。

    结果导致vugen,用不了。提示runtime error。

    analysis报告startup error。

    现在vugen和analysis都用不了了。

    把之前备份出来的OrchidUtils.dll文件再copy回去,结果还是一样,用不了的还是用不了。

    恼火。以后可以真要留心点才行。

    360误报可真是害人不浅啊。

     

  • loadrunner报告的这些错误。可以在那里查找是什么原因啊

    2008-06-23 17:06:53

         

          Error: Exception was raised when calling event-notify Vuser function in extension lrwreplaymain.dll: System Exceptions: EXCEPTION_ACCESS_VIOLATION

    这个是什么错误?
  • 说说今天loadrunner测试遇到的怪事

    2008-06-23 16:20:56

    说说今天测试遇到的怪事
    http录制一个脚本,之前测试100个用户的时正常通过,在回头测试80个用户的时候报告这个错误。
    Action.c(29): Error -26377: No match found for the requested parameter "WCSParam_Diff1". 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。

    经过高手指点,在脚本开头加了个web_set_max_html_param_len("1024"); 

    再次运行,报
    Action.c(29): Error -26377: No match found for the requested parameter "WCSParam_Diff1". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 1024 bytes, use web_set_max_html_param_len to increase the parameter size

    我是用自动关联的,"WCSParam_Diff1"参数就是关联类似BAsmckllnJWbDbsMZHllMgknzxdXpbrl这串由32个英文字符组成的字符串。

    这个问题知道是什么原因引起的了,"WCSParam_Diff1"参数是参数化由32个英文字符组成的session id。由于系统忙,响应不过来。导致部分用户未分配到sid号。。。。
Open Toolbar