51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2825|回复: 3
打印 上一主题 下一主题

[原创] Java Vuser脚本报错

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-1-8 15:13:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用Java Vuser写了一个简单的测试脚本,脚本如下:

/*
* LoadRunner Java script. (Build: _build_number_)
*
* Script Description:
*                     
*/

import lrapi.lr;
import com.meidusa.test.client.TestApp;

public class Actions
{

        public int init() throws Throwable {
                return 0;
        }//end of init


        public int action() throws Throwable {
            TestApp app = new TestApp();
            app.run("test");
            return 0;
        }//end of action


        public int end() throws Throwable {
                return 0;
        }//end of end
}


在运行的时候报以下错误:

Error (-17998): Failed to get [param not passed in call] thread TLS entry.

以下是全部的log信息:

Notify: Found jdk version: 1.6.0.
Notify: classpath=C:\Documents and Settings\Administrator\My Documents\test1\;c:\program files\hp\loadrunner\classes\srv;c:\program files\hp\loadrunner\classes;.;D:\Java\jdk1.6.0_22\lib\dt.jar;D:\Java\jdk1.6.0_22\lib\tools.jar;C:\Documents and Settings\Administrator\.m2\repository\com\threerings\narya\1.4-SNAPSHOT\narya-1.4-SNAPSHOT.jar;C:\Documents and Settings\Administrator\.m2\repository\com\samskivert\samskivert\1.1\samskivert-1.1.jar;C:\Documents and Settings\Administrator\.m2\repository\com\meidusa\test\performance\1.0-SNAPSHOT\performance-1.0-SNAPSHOT.jar;C:\Documents and Settings\Administrator\.m2\repository\com\google\guava\guava\r07\guava-r07.jar;;;;c:\program files\hp\loadrunner\lib\xstream-1.3.jar;c:\program files\hp\loadrunner\lib\xpp3-1.1.4c.jar
Notify: Path=D:\Java\jdk1.6.0_07\jre\bin\client;C:\PROGRA~1\HP\LOADRU~1\bin;C:\PROGRA~1\HP\LOADRU~1\bin\gecko;C:\PROGRA~1\HP\LOADRU~1\bin\tulip\bin;C:\PROGRA~1\HP\LOADRU~1\bin;C:\program files\jet7.2-eval\bin;C:\Program Files\CollabNet\Subversion Client;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;;C:\Program Files\SinoVoice\jTTS 5.0 Desktop\Bin;D:\Java\jdk1.6.0_07\bin;D:\Java\apache-ant-1.7.0\bin;D:\Java\cygwin\bin;D:\Java\mysql-5.1.32-win32\bin;C:\Program Files\Final Codecs\QTSystem\;C:\Program Files\TortoiseSVN\bin;D:\Java\apache-maven-2.2.1\bin;D:\c++\mingw\bin;D:\c++\msys\bin;D:\C++\boost-jam-3.1.18\bin.ntx86;C:\strawberry\c\bin;C:\strawberry\perl\bin;
Notify: VM Params: .
Virtual User Script started at : 2011-01-08 14:42:59
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
System.err:                                                                                                                                                       Error
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Error (-17998): Failed to get [param not passed in call] thread TLS entry.
Error (-17998): Failed to get [param not passed in call] thread TLS entry.

Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
HTML-Mode memory management statistics: Reusable=0, NonReusable=0, CsMemBlockSize=4096, checks disabled          [MsgId: MMSG-26000]
Vuser 0 (thread 4468), ended OK."

请高手帮忙看看
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    奋斗
    2022-5-8 19:23
  • 签到天数: 137 天

    连续签到: 1 天

    [LV.7]测试师长

    2#
    发表于 2011-1-9 11:43:46 | 只看该作者
    没用过,不过从日志看,怎么有2个JDK版本的
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    3#
    发表于 2011-1-10 09:55:12 | 只看该作者
    Runtime-settings中设置为run as process试试
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    4#
    发表于 2011-1-10 11:37:53 | 只看该作者
    com.meidusa.test.client.TestApp 对应的包没加载
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-10-6 16:21 , Processed in 0.100189 second(s), 27 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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