LR_Generator报错相关解决汇总

来源:互联网 发布:python做性能测试 编辑:程序博客网 时间:2024/06/06 09:29
问题1:脚本已经成功录制了,但是回放的时候报错:
Warning: Extension LrXml.dll reports error -1 on call to function ExtPerThreadInitialize
Error: Vuser failed to initialize extension LrXml.dll.

Vuser Terminated.


解决办法2016-11-22:

步骤1:找到LR安装位置,打开协议目录
安装位置>\dat\protocols
 
步骤2:
如果是录制的脚本是采用web协议的,找到Qtweb.lrp文件
如果是录制的脚本是采用citrix协议的,找到citrix.lrp文件或citrix_ica.lrp
 
步骤3:记事本打开脚本正在使用的xxx.lrp文件
 
步骤4:查找ResultsDirUI=1
 
步骤5:在ResultsDirUI=1前面加个分号,比如;ResultsDirUI=1




问题2:在controller中,运行时,报如下错误“Error: Socket descriptor not found.  Hint: the problem might be solved applying the following: (1) Update Run-Time Settings to Run Vuser as a process. (2) Add the following line into mdrv.dat, [lr_socks] section: 'ExtCmdLineConc=-UsingWinInet Yes'.


解决方法:先检查一下是否开启Enable IP Spoofer

如果没有开启继续下面的方法:

1、根据错误提示,在run-time setting中的Miscellaneous项中设置“run vuser as a process”;在安装目录的dat文件夹中查找mdrv.dat,找到[lr_socks]段,在最后添加“ExtCmdLineConc=-UsingWinInet Yes”一句;

2、在选择了expert mode后,选择option->general,选中“ip address allocation per process”;
3、如果仍然报错,在菜单栏中点击Diagnostics->configuration项,将web page diagnostics项disable掉(该路径是在loadrunner11中的位置,若是loadrunner8.0,则在Diagnostics--->Distribution,disable Web Page Diagnostics选项


0 0
原创粉丝点击