51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2117|回复: 0
打印 上一主题 下一主题

[求助] 本人是软件测试新手,初次接触LoadRunner,请教大神帮我看下录制java脚本,为什么报错?

[复制链接]
  • TA的每日心情
    奋斗
    2015-10-13 08:52
  • 签到天数: 3 天

    连续签到: 1 天

    [LV.2]测试排长

    跳转到指定楼层
    1#
    发表于 2015-8-21 16:00:28 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    本帖最后由 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啊?请大神帮我看下,出错的原因是什么啊?感谢啦!
    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-9-22 01:09 , Processed in 0.082343 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表