web test LoadRunner error_list

news/2024/7/6 0:58:10

http://bbs.51testing.com/thread-8644-1-1.html

  sckOutOfMemory 7 内存不足 
  sckInvalidPropertyValue 380 属性值不效 
  sckGetNotSupported 394 属性不可读 
  sckGetNotSupported 383 属性是只读的 
  sckBadState 40006 所请求的事务或请求本身的错误协议或者错误连接状态 
  sckInvalidArg 40014 传递给函数的参数格式不确定,或者不在指定范围内 
  sckSuccess 40017 成功 
  sckUnsupported 40018 不支持的变量类型 
  sckInvalidOp 40020 在当前状态下的无效操作 
  sckOutOfRange 40021 参数越界 
  sckWrongProtocol 40026 所请求的事务或请求本身的错误协议 
  sckOpCanceled 10004 取消操作 
  sckInvalidArgument 10014 所请求的地址是广播地址,但未设置标记 
  sckWouldBlock 10035 套接字不成块,而指定操作将使之成块 
  sckInProgress 10036 制造块的Winsock操作在进行之中 
  sckAlreadyComplete 10037 完成操作。未进行制作块的操作 
  sckNotSocket 10038 描述符不是套接字 
  sckMsgTooBig 10040 数据太大,不适于缓冲区的要求,因而被截断 
  sckPortNotSupported 10043 不支持指定的端口 
  sckAddressInUse 10048 地址在使用中 
  sckAddressNotAvailable 10049 来自本地机器的不可用地址 
  sckNetworkSubsystemFailed 10050 网络子系统失败 
  sckNetworkUnreachable 10051 当前不能从主机到达网络 
  sckNetReset 10052 在设置SO_KEEPALIVE时连接超时 
  sckConnectAborted 10053 由于超时或者其它失败而中止接连 
  sckConnectionReset 10054 通过远端重新设置连接 
  sckNoBufferSpace 10055 没有可用的缓存空间 
  sckAlreadyConnected 10056 已连接的套接字 
  sckNotConnected 10057 未接连套接字 
  sckSockedShutdown 10058 已关闭套接字 
  sckTimedout 10060 套接字超时 
  sckConnectionRefused 10061 强行拒绝连接 
  sckNotInitialized 10093 套接字没有初始化 
  sckHostNotFound 11001 授权应答:未找到主机 
  sckHostNotFoundTryAgain 11002 非授权应答:未找到主机,重试 
  sckNonRecoverableError 11003 不可恢复的错误 
  sckNoData 11004 无效名,对所请求的类型无数据记录

 

 

问题描述   :lr11 BUG?Failed to send data by channels - post message failed.

解决方法 :http://bbs.51testing.com/thread-527804-1-1.html

HTTP协议的,windows server 2008+lr11+IE7 应该没啥特殊操作,也不是每次跑都出现这个错误,之前也跑过8小时疲劳也正常出结果。
网上搜了一圈,看到个建议把controller中的Diagnotics-configure-Web Page Diagnotics默认的Enable关掉,重新试了几次倒是正常了,现在也不确定是不是真的没问题了。
估计是兼容性的问题吧

 

问题描述 :Error -27257: Pending web_reg_save_param/reg_find/create_html_param[_ex] request(s) detected and reset at the end of iteration number 1

http://www.mianwww.com/html/2011/11/11898.html
解决方法:
 web_reg_save_param位置放错了,应该放到请求页面前面。

 

问题描述 : Action.c(19): Error -27796: Failed to connect to server "preprice1.suning.cn:80": [10048] Address already in use

解决方法: Try changing the registry value 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\TcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\tcpip\Parameters\MaxUserPort to 65534
and rebooting the machine

http://blog.csdn.net/alix_zhou/article/details/4488809

2、HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/tcpip/Parameters/TcpTimedWaitDelay to 30
and HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/tcpip/Parameters/MaxUserPort to 65534
将TcpTimedWaitDelay to 30设置为5s或者其它,同时增加了think time,需要重启机器。

 

 

LoadRunner错误及解决方法总结

http://wenku.baidu.com/view/2879ff4e2b160b4e767fcf2f.html?from=rec&pos=0&weight=3&lastweight=1&count=5

 

 

LoadRunner SHUNRA\CloudServices

http://dax9527.blog.163.com/blog/static/3764789520100136832542/

在某次重启以后突然发现公司的机器不能上网了,主要症状是无法获取IP,手动指定IP也不起作用,域用户下也没法联网.域防火墙无法连接.系统设备中有一个网卡带叹号,不能正常工作也没法卸载掉.
      经过半天折腾,结果无意中发现本地连接属性中有一个叫SHUNRA\Cloud WAN Emulator的服务是勾选状态.
嘿,这东西跟那个带叹号的网卡是一个名字啊,后来明白这是因为我安装了LoadRunner8.0工业级压力测试软件的原因,LR自动安装并启用了这个服务,不过却是个阉割的东西,导致不能接入到局域网.去掉勾选,完美解决.

 

LoadRunner小技巧集锦

http://www.cnblogs.com/preftest/archive/2010/08/02/1790569.html

 

1、录制脚本中包含中文,出现乱码怎么办?

把录制选项中的Support charset选中UTF-8

 

 

录制脚本后,切换到树视图中,打开相应的脚本页面。在右侧的PageView中录制的脚本呈现中文版式,但是当切换到Server Response中,所有的中文全部换成的乱码,如“勌缞仫訆”。

 

原因是服务器端没有把响应的编码设置为gb2312

 

在IIS中找到Web.Config文件,在<system.web>….</system.web>节加 入<globalization requestEncoding="gb2312" responseEncoding="gb2312" fileEncoding="gb2312"/>后再次录制脚本,乱码变中文。

 

2、录制到的脚本是空白的

有可能是由于录制的URL地址采用的是localhost的问题,改成分配的IP地址或127.0.0.1试试。

 

 

3、插入文本检查点步骤时,使用web_reg_find,通常TextPfx和TextSfx中会包含双引号,需要进行转义(用斜杠),例如:

 

       web_reg_find("Search=Body",

              "SaveCount=Welcome",

              "TextPfx=欢迎<a class=\"drop\" id=\"viewpro\" onMouseOver=\"showMenu(this.id)\">",

              "TextSfx=</a>",

              LAST);

 

4、使用web_image_check插入图片检查点时需要主要设置Run-Time Setting中的Enable Image and text check选项:

 

 

使用web_find函数插入文本检查点也一样要做此设置

 

5、性能测试往往需要准备大批量的数据,大批量数据的生成方法有很多种,常见的有:

       (1)编写SQL语句来插入数据

(2)使用DataFactory等专业的数据生成工具

       (3)通过LoadRunner录制回放的方式重复执行生成大批量数据

 

Tips:

使用DataFactory插入nchar数据类型的数据时会出现空值的情况,可以先修改数据库的数据类型设置,插完数据后再改回来

 

6、在录制脚本的过程中插入注释,录制后查看和理解脚本会更加方便。

 

 

7、LoadRunner回放脚本时,在浏览器显示的中文是乱码

 

解决办法(1):

首先设置Run-Time Settings – Browser – Browser Emulation – User-Agent

 

 

然后设置IE:

查看-编码-钩上“自动选择”和Unicode(UTF-8)。

 

解决办法(2):

使用lr_convert_string_encoding函数来转换编码

 

下面是一个使用的例子:

lr_convert_string_encoding(lr_eval_string("{ReplyContents}"),LR_ENC_SYSTEM_LOCALE,LR_ENC_UTF8,"ReplyMessage");

 

       web_submit_data("postreply.aspx_2",

              "Action=http://127.0.0.1/postreply.aspx?infloat=1&topicid=2&&inajax=1",

              "Method=POST",

              "EncType=multipart/form-data",

              "RecContentType=text/xml",

              "Referer=http://127.0.0.1/showtopic-2.aspx",

              "Snapshot=t9.inf",

              "Mode=HTML",

              ITEMDATA,

              "Name=iconid", "Value=0", ENDITEM,

              "Name=title", "Value=", ENDITEM,

              "Name=wysiwyg", "Value=0", ENDITEM,

              "Name=checkbox", "Value=0", ENDITEM,

              "Name=message", "Value=[localimg=180,112]1[/localimg]\r\n\r\n{ReplyMessage}", ENDITEM,

              "Name=e_mediatyperadio", "Value=on", ENDITEM,

              "Name=sl_attachdesc", "Value=", ENDITEM,

              "Name=attachid", "Value=", ENDITEM,

              "Name=attachdesc", "Value=", ENDITEM,

              "Name=localid", "Value=", ENDITEM,

              "Name=attachdesc", "Value=", ENDITEM,

              "Name=localid", "Value=1", ENDITEM,

              "Name=attachdesc", "Value=", ENDITEM,

              "Name=localid", "Value=2", ENDITEM,

              "Name=emailnotify", "Value=on", ENDITEM,

              "Name=postreplynotice", "Value=on", ENDITEM,

              "Name=postfile", "Value=", "File=Yes", ENDITEM,

              "Name=postfile", "Value=D:\\\\图片收集\\\\It's about time.JPG", "File=Yes", ENDITEM,

              "Name=postfile", "Value=", "File=Yes", ENDITEM,

              "Name=uploadallowmax", "Value=10", ENDITEM,

              "Name=uploadallowtype", "Value=jpg,gif", ENDITEM,

              "Name=thumbwidth", "Value=300", ENDITEM,

              "Name=thumbheight", "Value=250", ENDITEM,

              "Name=noinsert", "Value=0", ENDITEM,

              LAST);

 

8、可以在LR测试脚本的目录中找到参数文件,直接修改参数文件

The parameter file is stored in the script directory as .dat file extension.  It can be opened with a simple text editor like Notepad as it is stored in pure text format.  Therefore, you can manipulate the files via the Notepad.  You can also use office applications such as Microsoft Excel or OpenOffice.org Calc to work on the file.  This greatly the amount of work required for maintaining a long list of data.

 

9、LR9.x启动VUGen时提示"Failed to connect to server"

After upgrading to LoadRunner 9.x I started getting a window popup which said "Failed to connect to server" every time I opened virtual user generator (vugen.exe).

 

 

The solution to this was to close virtual user generator and delete the [vugen.ini] file.

vugen.ini is found in the %systemroot% folder on your Windows PC (usually C:\WINDOWS or C:\WINNT).

 

Once you've deleted the file, virtual user generator will open without any issues and create a new vugen.ini file automatically.

 

 

 

10、怎样抓取有相同左右边界的动态value?

怎样抓取有相同左右边界的动态value?例如:

stateID="d7lg0ehmjkkm6uin3s4boei7oq">

stateID="cvopakp46ftsf8mh6l37ti3ubm">

stateID="bv9mja8gtgr39ddibm5t9163re">

web_reg_save_param里的ORD应该怎样设置?

 

 

 

 

ORD: Indicates the ordinal position or instance of the match. The default instance is 1. If you specify "All," it saves the parameter values in an array.

 

例子:

char outFlightParam[50]; // The name of the parameter for correlation

char outFlightParamVal[50]; // The formatted value of outFlightParam

web_reg_save_param("outFlightVal",

        "LB=outboundFlight value=", "RB=>",

        "ORD=ALL",

        "SaveLen=18",

        LAST);

 

    web_submit_form("reservations.pl",

        "Snapshot=t4.inf",

        ITEMDATA,

        "Name=depart", "Value=London", ENDITEM,

        "Name=departDate", "Value=11/20/2003", ENDITEM,

        "Name=arrive", "Value=New York", ENDITEM,

        "Name=returnDate", "Value=11/21/2003", ENDITEM,

        "Name=numPassengers", "Value=1", ENDITEM,

        "Name=roundtrip", "Value=<OFF>", ENDITEM,

        "Name=seatPref", "Value=None", ENDITEM,

        "Name=seatType", "Value=Coach", ENDITEM,

        "Name=findFlights.x", "Value=83", ENDITEM,

        "Name=findFlights.y", "Value=16", ENDITEM,

        LAST);

 

    sprintf(outFlightParam, "{outFlightVal_%s}",

        lr_eval_string("{outFlightVal_count}"));

    sprintf(outFlightParamVal, "Value=%s",

        lr_eval_string(outFlightParam));

    lr_message("The value argument is : %s", outFlightParamVal);

 

    web_submit_form("reservations.pl_2",

        "Snapshot=t5.inf",

        ITEMDATA,

        "Name=outboundFlight",outFlightParamVal, ENDITEM,

        "Name=reserveFlights.x", "Value=92", ENDITEM,

        "Name=reserveFlights.y", "Value=10", ENDITEM,

        LAST);

 

 

 

11、运行场景时提示“Step download timeout (120 seconds) has expired when downloading resource(s)”

 

vuser_init.c(12): Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s)(出现个别,可以忽略)

vuser_init.c(12): Error -27727: Step download timeout (120 seconds) has expired when downloading resource(s). Set the "Step Timeout caused by resources is a warning" Run-Time Setting to Yes/No to have this message as a warning/error, respectively

 

 

如果觉得下载一个页面超过2分钟不是错误的话,可以在Run-Time设置中选择Preferences->Options,修改Step download timeout(sec)的时间

或者把“Step timeout caused by resources is a warning”设置为Yes,这样下载资源超时也只是作为警告,不作为错误提示,但是对于非资源的下载超时,则总是会提示错误的

 

12、用strtok函数分割字符串

需要在loadrunner里面获得“15”(下面红色高亮的部分),并做成关联参数。

//Body response 内容: <BODY><; PRE>//OK[8,7,5,15,6,5,0,4,0,3,0,3,2,0,0,0,1

 

用web_reg_save_param取出“8,7,5,15,6,5,0,4,0,3,0,3,2,0,0,0,1”这一段,然后用strtok函数切割出一个个数字,第四个数字就是要找的值

 

例如:

extern char * strtok(char * string, const char * delimiters ); // Explicit declaration

char separators[] = ",";

char * token;

lr_save_string("1,2,3,4,5,6","str");

token = (char *)strtok(lr_eval_string("{str}"), separators); // Get the first token

if (!token) {

        lr_output_message ("No tokens found in string!");

        return( -1 );

    }

while (token != NULL ) { // While valid tokens are returned

        lr_output_message ("%s", token );

        token = (char *)strtok(NULL, separators); // Get the next token

    }

 

 

 

 

13、LoadRunner没有购买webservice协议的license,只有http的,可不可以完全用http协议模拟webservice?

 

可以,参考:

http://blog.testsautomation.com/2009/01/web-services-performance-using-loadrunner/

http://blog.testsautomation.com/2009/05/validating-web-service-response-with-xpath/

 

 

 

 

14、在场景设置中不忽略思考时间,但是在查看响应时间的时候怎样让LR自动在响应时间里减去思考时间?

 

在analysis中找到了设置是否在报告中包含思考时间的地方做相应的设置即可:

 

 

 

 

 

15、LoadRunner在运行过程中停掉1半虚拟用户

 

Another issue that I’m facing from time to time is that LoadRunner stops 50% of running users without any notification, issue, error message etc. I’ve find out that it happens only when running with log level set to ‘always send a message’. Because of that, I suggest to run with log level set to ‘Send message only when error occur’.

 

 

 

16、LoadRunner录制不了任何东西

 

Sometimes LoadRunner is not recording anything while browsing using IE. I have no idea why but the fastest solution is to restart whole LR. Maybe some of you have good explanation for that?

 

 

 

 

17、测试RTMP协议应该在LoadRunner选择什么协议来录制?

 

用flex协议

 

有这几个函数可用:

flex_rtmp_connect  Connects a client to an RTMP server and sets connection options. 

flex_rtmp_disconnect  Disconnects a client from an RTMP server. 

flex_rtmp_send  Sends messages to an RTMP server. 

flex_rtmp_receive  Receives responses from an RTMP server

 

Flex can record and replay scripts involving RTMP (Real Time Messaging Protocol). In order to enable RTMP simulation, you must configure the recording options for the Flex protocol.

To enable RTMP:

1 Open the Recording Options dialog box by selecting Tools > Recording Options or clicking the Options button in the Start Recording dialog box.

2 In the Network > Port Mapping node click Options.

3 Set the Send-Receive buffer size threshold to 1500.

 

 

 

18、如何在LoadRunner中运行QTP脚本?

  1、运行准备:

  1)勾选QTP的Tools--Options--Run的"Alow other Mercury products to run tests and components"

  2)录制需要在lr中运行的QTP脚本,并且在QTP脚本中设置事务,Services.StartTransaction "start"与Services.EndTransaction "start"

  2、运行QTP脚本

  在LR中运行时选择QTP脚本,为QTP脚本存放目录下文件扩展名为.usr的文件。

  注:LR中运行QTP脚本时,只能有一个Vuser,否则将报错:

  The load generator is currently running the maximum number of Vusers of this type

 

 

 

 

19、在LR中如何忽略Socket接收数据的验证

在LR中对Socket进行性能测试时,LR会自己判断lrs_receive回来的数据的长度,而如果长度不符的话会有时间延迟的情况(这是性能测试完全不能接受的事情),如果做到这一点呢,经过反复尝试,发现一种简单的方法(用*代替具体的长度):

 

类似于将:

recv buf1 12

"Hello, Denny"

 

改为:

recv buf1 *

"Hello, Denny"

 

一切OK。

 

 

 

20、LoadRunner9.5的Controller中不能添加Apache的监控

 

 

在C:\Program Files\HP\LoadRunner\dat\online_graphs中找到online_resource_graphs.rmd文件,修改[Apache]部分中的EnableInUI为1

参考:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1274450165814+28353475&threadId=1229523

 

 

21、VB Vuser开发ADO脚本,提示“user-defined type not defined”

想在VB Vuser写入模拟数据操作的过程,然后在VB Vuser里定义了这个全局变量

Private m_Conn As ADODB.Connection '连接对象

Private m_Reco As ADODB.Recordset  '结果集

但是在VB Vuser中不识别这个对象,报出user-defined type not defined

 

 

需要在Run-Time 设置中的VBA部分把ADO的库选上

如果用VB Script虚拟用户来开发就不要,直接用CreateObject来创建ADO对象即可

 

 

22、loadrunner9.5录制脚本时出现c:\PROGRA~1\MICROS~1\office12\Grooveutil.DLL时出错内存位置访问无效

 

Office2007的问题,IE加载项禁用Groove  GFSBrowser Helper 组件

 

 

23、LR自带的例子端口号怎么修改?

LR自带的例子端口号是1080,我怎么样把这个端口设置我自己想用的端口号8088,在什么地方设置

 

 

在LR安装目录下,找到Xitami.config文件,找到portbase,可以修改它(默认是1000);

默认的端口号是portbase+80;

要把端口号改成8088,就把portionbase改为8008,保存之后就是了(8088=8008+80)。

 

24、用Web_reg_find查找中文字符串时查找不到

 

脚本文件里有个default.cfg ,里面有个参数是 UTF8InputOutput ,将其值改为0

 

 

 

25、替代IP Wizard的脚本

 

http://hi.baidu.com/higkoo/blog/item/39bbb21bc33d76dcac6e751c.html

 

LoadRunner自带的“IP Wizard”用起来非常麻烦,要不停的点,重要的是最后还必须重启系统生效。

于是乎写个脚本替代之:

1. 假设客户端IP为 192.168.10.31

2. 假设服务端IP为 192.168.10.10

3. 需要模拟的IP为 110.119.120.122

 

那么,客户端提供添加虚拟IP的BAT脚本:

netsh    interface    ip    add    address    本地连接    110.119.120.122    255.255.0.0

对应的删除设置为:

netsh    interface    ip    del    address    本地连接    110.119.120.122

 

对应服务器添加虚拟路由的Shell脚本:

route add -host 110.119.120.122 gw 192.168.10.31

删除路由的脚本:

route del -host 110.119.120.122 gw 192.168.10.31

 

这样就非常方便了,不用重启任何机器,执行脚本就生效,再执行脚本就取消。

 

 

26、如何从命令行调用LoadRunner脚本?

 

Here is the command line that you need to execute to run a VuGen script from the command prompt:

   <LoadRunner>\bin\mmdrv.exe -usr <path to usr file> 

Note:
In order to get all the other options that go with the command, run mmdrv.exe from the command prompt without any options.

 

 

27、请问"int64这个类型,在LR中怎么表示"。我将一段C的代码放在LR中,LR不认int64这个类型,怎么解决?

 

把那段C代码做成DLL,然后在LR中调用

 

 

28、LoadRunner监控远程机器Windows资源,提示“net use failed”

 

解决办法 :

在被监控机器上更改本地帐户的共享和安全模式为经典模式。控制面板->管理工具->本地安全策略->网络访问:本地帐户的共享和安全模式->经典模式。

 

监视连接前的准备工作 :

首先保证被监视的windows系统开启以下二个服务Remote Procedure Call(RPC) 和Remote Registry Service

被监视的WINDOWS机器:右击我的电脑,选择管理->共享文件夹->共享 在这里面要有C$这个共享文件夹,(要是没有自己手动加)

然后保证在安装LR的机器上使用运行.输入\\被监视机器IP\C$ 然后输入管理员帐号和密码,如果能看到被监视机器的C盘了,就说明你得到了那台机器的管理员权限,可以使用LR去连接了

 

Analysislog.log

Analysis Error log: <2012-11-1 9:26:41>
无法更新;当前被锁定。
SQL: Insert into Breakdown_meter select * FROM [Text; database=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\].101179031Breakdown_meter.txt;

loadrunner收集结果失败

 

loadrunner 11.0 + JDK 1.7 环境异常

 

Java代码   收藏代码
  1. Notify: Found jdk version: 1.7.0.    [MsgId: MMSG-22986]  
  2. Warning: Warning: Failed to find Classes.zip entry in Classpath.  
  3.     [MsgId: MWAR-22986]  
  4. Notify: classpath=D:\TestCase\20121025_wuliu\WuLiu_TC_01_GPSCollecter\;c:\program files\hp\loadrunner\classes\srv;c:\program files\hp\loadrunner\classes;;.;C:\Program Files\Java\jdk1.7.0_10\jre\lib\rt.jar;C:\Program Files\HP\LoadRunner\classes\snf-data-cache-aio-1.1.0.jar;;;c:\program files\hp\loadrunner\lib\xstream-1.3.jar;c:\program files\hp\loadrunner\lib\xpp3-1.1.4c.jar    [MsgId: MMSG-22986]  
  5. Notify: Path=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:\Program Files\Java\jdk1.7.0_10\bin;C:\Program Files\Common Files\NetSarang;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\strawberry\c\bin;C:\strawberry\perl\bin;C:\Documents and Settings\Administrator\WINDOWS;    [MsgId: MMSG-22986]  
  6. Notify: VM Params: .    [MsgId: MMSG-22986]  
  7. Error: Java VM internal error:Error Loading javai.dll.  
  8. .    [MsgId: MERR-22995]  
  9. Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize    [MsgId: MWAR-10485]  
  10. Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.    [MsgId: MERR-10176]  

 

LoadRunner与JDK的安装问题

http://www.cnblogs.com/xiaochuncha/archive/2008/07/22/1248599.html

Louis-KB-20080722-T001
我在安装LoadRunner9.1版本的时候,取得的license是Java协议,需要在服务器上安装JDK。首先服务器是Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack2(x64),安装的LoadRunner9.1默认是在C盘的Program Files中,按照这样来说,就需要安装64为的JDK,我即安装jdk-1_5_0_16-windows-amd64.exe,但是在安装成功后,运行写好的Java协议脚本,会出现如下的错误:

Java代码   收藏代码
  1. Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry.  [MsgId: MERR-22981]  
  2. Error: Failed to find java.exe.  
  3. Please add the <JDK>\bin to the path and try again.   [MsgId: MERR-22968]  
  4. Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize    [MsgId: MWAR-10485]  
  5. Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread. [MsgId: MERR-10176]  

 

在检测JDK安装是否成功时,JDK能够正常运行,LoadRunner的安装也没有任何问题,这样的问题就定位到二者的结合的问题上,首先在Vuser->Run-Time Setting中的Java Environment Settings->ClassPath中能够识别环境变量中的ClassPath,但是还是会报以上的错误。
在找问题所在的时候,我发现LoadRunner9.1没有任何说明此版本是64位软件,如何没有任何说明,则默认应该是32位软件,而对应的JDK应该也是32位的JDK,64位操作系统是兼容32位软件,我马上安装了32位的JDK,重启server,删除Vuser->Run-Time Setting中的Java Environment Settings->ClassPath中所有变量,重新运行脚本,发现错误消失。
写此文章就是想告诉大家,32位的软件和64位软件还是有很多不兼容,出现的报错信息也是五花八门,希望能对大家有帮助。
---------------------------------------------------------------------------
Louis Yan
Beijing, China
Mail:xiaochuncha@gmail.com
MSN:xiaochuncha@gmail.com

 

 

loadrunner 8.0 / 8.1 + JDK 1.5 环境异常

问题:Failed to find Classes.zip entry in Classpath.

http://blog.sina.com.cn/s/blog_69735aa50100vgtn.html

 今天写了一个JavaUser的LR的测试脚本,

编译时报错:Failed to find Classes.zip entry in Classpath.
解决:

http://download.csdn.net/download/foreignli/2560453
LR8.0或者8.1+JDK1.5版需要打一个补丁名字叫做:java_protocol_fixes_Feb_05,打上之后重启机器就ok了。

 

 

 

end


http://www.niftyadmin.cn/n/3854427.html

相关文章

Coding之路——重新学习C++(9):解决异常

1.什么是异常 (1)异常的基本思路是让一个函数发现自己无法解决的错误时抛出异常&#xff0c;让调用者来解决。异常处理机制类似于编译时的类型检查和歧义性控制在运行时的对应物&#xff0c;它是一种非局部的控制结构&#xff0c;在抛出异常时&#xff0c;我们用堆栈回退来找到…

android开发--RelativeLayout用到的一些重要的属性

介绍一下RelativeLayout用到的一些重要的属性&#xff1a;第一类:属性值为true或falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_cen…

用正则表达式将前后空格用空字符串替代:replace(/(^\s*)|(\s*$)/g, )

^表示字符串必须以后面的规则开头, 在这里就是说字符串必须以\s*开头.\s 是空格的意思, * 表示有0个或多个\s* 就是有0个或多个空格(^\s*) 表示的就是以0个空格或者多个空格开头| 表示或的意思, 也就是满足| 左边的也成立, 满足 | 右面的也成立.\s*前面说过了$ 的意思是字符串必…

Oracle技术之常数复合索引应用案例

从一个客户的真实优化案例引申的问题。客户的一个数据库需要进行优化&#xff0c;不过由于程序开发方没有介入&#xff0c;因此这次优化无法对SQL进行修改。仅对数据库级的调整一般来说收效不大&#xff0c;不过发现客户数据库中个别的SQL存在性能问题&#xff0c;且这个性能问…

防止野指针

delete以后使用 p NULL转载于:https://www.cnblogs.com/jilichuan/p/4004066.html

spring工作机制及原理

一、 IoC(Inversion of control): 控制反转 1、IoC&#xff1a; 概念&#xff1a;控制权由对象本身转向容器&#xff1b;由容器根据配 置文件去创建实例并创建各个实例之间的依赖关系 核心&#xff1a;bean工厂&#xff1b;在Spring中&#xff0c;bean工厂创建的各个实例称作…

poj 1704 Georgia and Bob (nim)

题意&#xff1a; N个棋子&#xff0c;位置分别是p[1]...p[N]。 Georgia和Bob轮流&#xff0c;每人每次可选择其中一个棋子向左移动若干个位置&#xff08;不能超过前一个棋子&#xff0c;不能超出最左边【位置1】且不能不移&#xff09; Georgia先手&#xff0c;问谁赢。 思路…

特征值和特征向量的几何意义、计算及其性质

一、特征值和特征向量的几何意义 特征值和特征向量确实有很明确的几何意义&#xff0c;矩阵&#xff08;既然讨论特征向量的问题&#xff0c;当然是方阵&#xff0c;这里不讨论广义特征向量的概念&#xff0c;就是一般的特征向量&#xff09;乘以一个向量的结果仍是同维数的一个…