google搜索 51Testing站内搜索                    软件测试门户 | 软件测试培 训 | 文章资料精选 | 软件测试论坛 | 软件测试博客 | 测试招聘求职 
打印

[求助] 在LoadRunner测试中的web service协议问题

在LoadRunner测试中的web service协议问题


在性能测试过程中,录制脚本选的协议是Web Service,在运行脚本时总是出现下面的错误, 崩溃中......:(,请高手指点啊。:) Error: server returned an incorrectly formatted SOAP response 我用的是第二种手动指定Wsdl文件的方法来录制脚本的,上面的错误是在脚本初始化时出现的,我上网查的资料上说,需要安装两个补丁:LR80WebServicesFP1_setup.exe和lrunner_web_services_patch_1.exe,我也安装了,但是还存在这个问题。 初始化的脚本如下: vuser_init() { web_service_call( "StepName=submitInfo_101", "SOAPMethod=InfoWSService.InfoWS.submitInfo", "ResponseParam=response", "WSDL=D:/out/InfoWS.wsdl", "UseWSDLCopy=1", "Snapshot=t1187317947.inf", BEGIN_ARGUMENTS, "strParam=auto string", END_ARGUMENTS, BEGIN_RESULT, END_RESULT, LAST); lr_think_time(3); return 0; } 录制的Action脚本: Action() { web_add_header("SOAPAction", "\"\""); web_add_header("Content-Type", "text/xml; charset=UTF-8"); soap_request("StepName=apply", "URL=http://172.16.24.72:8080/ac/services/AuthWS", "SOAPEnvelope=\n\n\n\n007000111923020956975001\n\n\n\n\n", "Snapshot=t1.inf", "ResponseParam=response", LAST); return 0; } 但是,如果我用第一种Record Client Appliation录制方法,则没有上面的问题,可以正常运行,这两种录制方法有什么不同吗?为什么第一种方法行,而第二种就不行了呢? 第一种录制方法录制的脚本如下: Action() { web_add_header("SOAPAction", "\"\""); web_add_header("Content-Type", "text/xml; charset=UTF-8"); web_service_call("StepName=apply", "SOAPMethod=AuthWSService.AuthWS.apply", "WSDL=D:/out/AuthWS.wsdl", "UseWSDLCopy=1", "Snapshot=t1.inf", RecordedBuffer1, "ResponseParam=response", BEGIN_ARGUMENTS, "strParam={sn1}", END_ARGUMENTS, BEGIN_RESULT, END_RESULT, LAST); return 0; } 是不是服务器端的配置有问题?还是Wsdl的方法有问题?哪位高手可否帮我看一下? Wsdl文件内容如下: [ 本帖最后由 kangge 于 2007-9-14 10:49 编辑 ]

TOP

关于LoadRunner如何测试WebService的问题


您好,我也出现了和你同样的问题,。但目前没有补丁包: 1 lrunner_web_services_patch_1.exe 2 LR80WebServicesFP1_setup.exe,拜托你能不能给我发一个,本人不胜感激,谢谢!! 我qq号724993820,邮箱:lili365@163.com

TOP

高手帮忙看一下,下面是脚本 : vuser_init() { web_service_call( "StepName=CustInfoQuery_102", "SOAPMethod=CustInfoQueryPTExport1_CustInfoQueryPTHttpService.CustInfoQueryPT.CustInfoQuery", "ResponseParam=response", "WSDL=D:/wsdl/CustInfoQueryPTExport1_CustInfoQueryPTHttp_Service.wsdl", "UseWSDLCopy=1", "Snapshot=t1206776860.inf", BEGIN_ARGUMENTS, "Version=66", "CustomerSell=600101", "xmlueryCondition=CustomerName" "99", "QueryType=1", "MsgSender=600101", "MsgReceiver=10", END_ARGUMENTS, BEGIN_RESULT, END_RESULT, LAST); lr_think_time(3); return 0; } ---------------------------------- 虚拟用户脚本已启动 正在开始操作 vuser_init。 vuser_init.c(4): Web service call "CustInfoQuery_102" started vuser_init.c(4): Using working copy of the WSDL file "D:/wsdl/CustInfoQueryPTExport1_CustInfoQueryPTHttp_Service.wsdl" vuser_init.c(4): Using client emulation General vuser_init.c(4): Removed Web headers not matching the emulated client vuser_init.c(4): 错误: C interpreter run time error: vuser_init.c (4): Error -- memory violation : Exception ACCESS_VIOLATION received.vuser_init.c(4): 通知: CCI 跟踪: vuser_init.c(4): web_service_call(0x011f035c "StepName=CustInfoQuery_102", 0x011f0301 "SOAPMethod=CustInfoQueryPTExport1_CustIn...", 0x011f02ea "ResponseParam=response", 0x011f02a5 "WSDL=D:/wsdl/CustInfoQueryPTExport1_Cust...", 0x011f0297 "UseWSDLCopy=1", 0x011f027e. vuser_init.c(4): 通知: CCI 跟踪: "Snapshot=t1206776860.inf", 0x011f026e "BEGIN_ARGUMENTS", 0x011f0263 "Version=66", 0x011f024f "CustomerSell=600101", 0x011f01d0 "xmlueryCondition=

TOP

QQ:505361712 急用!

TOP

有什么样的解决方法啊?

TOP

 
当前时区 GMT+8, 现在时间是 2008-7-25 03:15Copyright(C)上海博为峰软件技术有限公司 2001-2007 电话:021-64471599-8017
当您在访问网站、论坛及博客过程中遇到问题时可发送email:webmaster@51testing.com或发送论坛短信至管理员风在吹