TA的每日心情 | 奋斗 2015-10-13 08:52 |
---|
签到天数: 3 天 连续签到: 1 天 [LV.2]测试排长
|
本帖最后由 wlbxlh 于 2015-8-21 16:05 编辑
电脑安装了Myeclipse8.6和LoadRunner12在网上找的最简单的实例,创建了最基本的HelloWord类,已将整个包放在Java\jdk1.6.0_10\lib下
我的path配置为.;C:\Program Files (x86)\Java\jdk1.6.0_10\bin;C:\Program Files (x86)\Java\jdk1.6.0_10\jre\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin;%Android_Home%/tools;C:\strawberry\c\bin;C:\strawberry\perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Subversion\bin;C:\Program Files (x86)\HP\LoadRunner\strawberry-perl\perl\bin
classpath配置为:.;%JAVA_HOME%/lib;%JAVA_HOME%/lib/tools.jar;D:\android-sdk-windows\android-sdk-windows\tools;C:\Program Files (x86)\HP\LoadRunner\classes;C:\Program Files (x86)\HP\LoadRunner\lib
脚本代码为:
import lrapi.lr;
import com.lr.test.*;
public class Actions
{
public int init() throws Throwable {
return 0;
}//end of init
public int action() throws Throwable {
HelloWord.main((String[])null);
return 0;
}//end of action
public int end() throws Throwable {
return 0;
}//end of end
}
运行就报错,Error: Extension lrwreplaymain.dll is not loaded. System error: [param not passed in call]
Error: Extension lrwreplaymain.dll is not loaded. System error: [param not passed in call]
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.
但是我的安装目录里有lrwreplaymain.dll啊?请大神帮我看下,出错的原因是什么啊?感谢啦!
|
|