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;被覆蓋,缺少語句就會報錯,在腳本頂部增加這條語句,就會運行正常

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM