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

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

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

报错:

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;被覆盖,缺少语句就会报错,在脚本顶部增加这条语句,就会运行正常

时间: 10-17

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值