51Testing软件测试论坛

标题: 在Loadrunn中无法调用java多线程脚本 大家帮帮忙. [打印本页]

作者: orceric    时间: 2010-4-27 13:53
标题: 在Loadrunn中无法调用java多线程脚本 大家帮帮忙.
我用java在Eclipse中写了一个多线程的程序,模拟与服务器进行socket通讯,其中一个线程负责 读取socket消息,另外一个线程负责发送socket消息,在Eclipse中都可以正常运行.

然后在loadrunner中调用个程序的main方法. 脚本无法正常执行,Replay log没有显示错误.在Log中有错误提示.但不明白是什么意思 我在runtime setting 已经设置成 进程的方式了.还是无法成功执行. 请问这是怎么回事??已经在这个问题上卡了很久了..在网上也搜索不到结果.希望大家能帮帮忙.

Replay log 如下
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
Ending action Actions.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

旁边的log
Notify: Found jdk version: 1.6.0.
Notify: classpath=Z:\Temp\noname1\;c:\program files\hp\loadrunner\classes\srv;c:\program files\hp\loadrunner\classes;.;C:\Program Files\Java\jdk1.6.0_18\lib;C:\Program Files\Java\jdk1.6.0_18\jre\lib;C:\Program Files\HP\LoadRunner\classes;C:\Program Files\HP\LoadRunner\lib;;;
Notify: Path=C:\Program Files\Java\jdk1.6.0_18\jre\bin\client;C:\PROGRA~1\HP\LOADRU~1\bin;C:\PROGRA~1\HP\LOADRU~1\bin\tulip\bin;.;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Program Files\Java\jdk1.6.0_18\jre\bin;C:\Program Files\HP\LoadRunner\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Thunder Network\KanKan\Codecs;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;D:\Program Files\IBM\Rational AppScan\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\IDM Computer Solutions\UltraEdit\;C:\Program Files\IDM Computer Solutions\UltraCompare\;
Notify: VM Params: .
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Actions.
Ending action Actions.
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.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
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.
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.
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.
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.
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.
Vuser Terminated.

[ 本帖最后由 orceric 于 2010-4-27 13:55 编辑 ]
作者: ziheng198688    时间: 2010-4-27 16:03
帮顶,希望高手的出现。
作者: orceric    时间: 2010-4-28 16:37
顶起来一下...
作者: kelly_yan    时间: 2010-6-12 11:43
据说不支持多线程。。。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2