loadrunner java 缺少必要的导入包报错

Posted testway

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了loadrunner java 缺少必要的导入包报错相关的知识,希望对你有一定的参考价值。

loadrunner 运行从eclipse中做好的脚本,ctrl + A 复制到loadrunner中来,

添加参数化的的语句:verifyCode =    lr.eval_string ("<rand6>");

报错:

 

Notify: Found jdk version: 1.6.0. [MsgId: MMSG-22986]
Notify: classpath=E:\performanceTest\3-性能测试\lr_hibox_script\;c:\program files (x86)\hp\loadrunner\classes\srv;c:\program files (x86)\hp\loadrunner\classes;.;C:\Program Files (x86)\Java\jdk1.6.0_45\lib\tools.jar;C:\Program Files (x86)\Java\jdk1.6.0_45\lib\dt.jar;E:\performanceTest\jar\fastjson-1.1.37.jar;E:\performanceTest\jar\hibox_for_lr.jar;E:\performanceTest\jar\protobuf-java-2.5.0.jar;;;;c:\program files (x86)\hp\loadrunner\lib\xstream-1.3.jar;c:\program files (x86)\hp\loadrunner\lib\xpp3-1.1.4c.jar [MsgId: MMSG-22986]
Error: Compilation process failed. [MsgId: MERR-22997]
Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize [MsgId: MWAR-10485]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn‘t initialized on this thread. [MsgId: MERR-10176]

 

原来是复制过来,导致原本的语句 import lrapi.lr;被覆盖,缺少语句就会报错,在脚本顶部增加这条语句,就会运行正常

 





以上是关于loadrunner java 缺少必要的导入包报错的主要内容,如果未能解决你的问题,请参考以下文章

安装LoadRunner时提示缺少vc2005_sp1_with_atl_fix_redist解决方案

loadrunner如何做接口的压力测试?

LoadRunner11录制APP脚本

无法打开spring-batch-core

捆绑包 UITests 无法加载,因为它已损坏或缺少必要的资源。尝试重新安装捆绑包

java 提示包不存在