|
第一次尝试使用LoadRunner 遇到个很纠结的问题:日志如下:
通知: Found jdk version: 1.7.0.
警告: Warning: Failed to find Classes.zip entry in Classpath.
通知: classpath=C:\Users\Administrator\Documents\VuGen\Scripts\test\;c:\program files (x86)\hp\loadrunner\classes\srv;c:\program files (x86)\hp\loadrunner\classes;;.;C:\Program Files (x86)\Java\jdk1.7.0_10\lib\dt.jar;C:\Program Files (x86)\Java\jdk1.7.0_10\lib\tools.jar;C:\Program Files (x86)\apache-ant-1.8.4\lib;;;c:\program files (x86)\hp\loadrunner\lib\xstream-1.3.jar;c:\program files (x86)\hp\loadrunner\lib\xpp3-1.1.4c.jar
通知: Path=C:\Program Files (x86)\HP\LoadRunner\Bin;C:\Program Files (x86)\HP\LoadRunner\Bin\tulip\bin;C:\PROGRA~2\HP\LOADRU~1\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin;C:\Program Files (x86)\HP\LoadRunner\strawberry-perl\perl\bin;C:\Program Files (x86)\Java\jdk1.7.0_10\bin;C:\Program Files (x86)\Java\jdk1.7.0_10\jre\bin;C:\Program Files (x86)\CVSNT\;C:\Program Files (x86)\apache-ant-1.8.4\bin;C:\Program Files (x86)\HP\LoadRunner\bin;
通知: VM Params: .
错误: Java VM 内部错误: Error Loading javai.dll.
。
警告: 扩展 java_int.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。
Jdk 确定是32位的。LoadRunner11 只支持32位的jvm
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode, sharing)
环境变量设置为
JAVA_HOME C:\Program Files (x86)\Java\jdk1.7.0_10
CLASSPATH .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib;%ANT_HOME%\lib
PATH %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;C:\Program Files (x86)\CVSNT\;%ANT_HOME%\bin;C:\Program Files (x86)\HP\LoadRunner\bin;
感觉都没什么问题,但是还是出现了这个问题。
脚本如下:
import lrapi.lr;
import main.Ntest;
public class Actions
{
public int init() throws Throwable {
return 0;
}//end of init
public int action() throws Throwable {
Ntest.main(new String[]{"123"});
return 0;
}//end of action
public int end() throws Throwable {
return 0;
}//end of end
}
main.Ntest;已导入 编译成功。运行出错。求哪位朋友帮忙解决下,实在是逼急了。 |
|