南翔塞燕 发表于 2011-11-7 17:28:24

【求助】LoadRunner脚本录制后回放报错,请大虾们提点提点

脚本如下
web_service_call( "StepName=accept_101",
                "SOAPMethod=AcceptService.AcceptService.accept",
                "SOAPHeader=?<?xml version=\"1.0\" encoding=\"gb2312\"?><tiripPackage "
                                "version=\"1.0\"><identity><serviceId>SB02</serviceId><"
                                "channelId>ABC_4000</channelId><password>11111111</password>"
                                "</identity><contentControl><control><id>1</id><"
                                "type>zip</type><impl>Zlib</impl></control><"
                                "control><id>2</id><type>crypt</type><impl>"
                                "SBMMJM</impl></control><control><id>3</id><"
                                "type>code</type><impl>BASE64</impl></control><"
                                "/contentControl><routerSession><paramList><name>SENDER<"
                                "/name><value>43232264081213101</value></paramList><"
                                "/routerSession><businessContent><subPackage><id>1</id&"
                                "gt;<content>UEsDBBQAAAAIAEZTTD+D8iwb7AEAAFMDAABGACQAdGF4TUxfMTAxMDNfMDAxXz"
                                "IwMTEwOTAxXzIwMTEwOTMwXzQzMjMyMjY0MDgxMjEzMTAxXzEwMjYxM18xN19WMS4wLnhtbAoAIAAAAA"
                                "AAAQAYAH0jB1CGiMwBfSMHUIaIzAF9IwdQhojMAZ1TPW/TUBT9K5F/QN+"
                                "H0zSRbl4XBgZAYmHoFn8QJ7Kdxi9Ufv47qUTGRlZTaAQqpbRKm6FCCCRgQIpYqsLAgJDKwH3vRSIDDLD"
                                "43XPu8fG51zZs5klc2Qkz2emlTYetUacSpn4v6KTtptP2uMu4sylg0Mrv3vmte2CEaSsJm470vFv9IGw"
                                "P2jJK5UMVFcg4FT+9Z9qT0en7yWjy9cn3+eenu7P59PHJ7GLv4O2b4+ni3cfZ1Xg0/uII+"
                                "KOLgChsBQK2H3lxx79t6lRm0otE1eUu57UqrTPOXEYZkGVHKxJflLuz8vxyfn15cvbj8GX5bfJpvDi62"
                                "b8yOuzDwMv6glPG8GYOxEBNVgimkRJB1r9vBLSh7TVCamtJuVRTWwKIFQcqSVbsDASymnw76+"
                                "y0BqEFqsgTMT09unn+E4gBIP2uCgoxv342PD4YlsO9YXn4Cu0tDZESLxbnH17vA8ESfJVJgRnMCXEeRI"
                                "K5jY31er3Ba+tADIMBVh9K7Dq9XoAGSZ7n0h64M7UcC9eDPdntqlDgLDi3rSEKDMWrFB9qAchCINQazC"
                                "djQdeoiyDG8VIZCncDF2EqUNKT2hCxqUDpq1vThMFeYbp4ALGRyDJg1F0JyOg/BjRvM9aL+"
                                "s9Y2oDYDMQujvzlWyXmJxG/AFBLAQItABQAAAAIAEZTTD+D8iwb7AEAAFMDAABGACQAAAAAAAAAIAAAA"
                                "AAAAAB0YXhNTF8xMDEwM18wMDFfMjAxMTA5MDFfMjAxMTA5MzBfNDMyMzIyNjQwODEyMTMxMDFfMTAyN"
                                "jEzXzE3X1YxLjAueG1sCgAgAAAAAAABABgAfSMHUIaIzAF9IwdQhojMAX0jB1CGiMwBUEsFBgAAAAABA"
                                "AEAmAAAAHQCAAAAAA==</content><paramList><name>SBZL</name&"
                                "gt;<value>10103</value></paramList><paramList><name&"
                                "gt;FileName</name><value>taxML_10103_20110901_20110930_4323226408121"
                                "3101_102613_17_V1.0.zip</value></paramList></subPackage><"
                                "/businessContent></tiripPackage>",
                "ResponseParam=response",
                "WSDL=http://118.118.118.16:7206/tdps-accept/services/AcceptService?wsdl",
                "UseWSDLCopy=1",
                "Snapshot=t1318647000.inf",
                BEGIN_ARGUMENTS,
                "tiripPkgStr=",
                END_ARGUMENTS,
                BEGIN_RESULT,
                END_RESULT,
                LAST);


一回放就报错:Action.c(4): ´íÎó: C interpreter run time error: Action.c (4):Error -- memory violation : Exception ACCESS_VIOLATION received.
Action.c(4): ֪ͨ: CCI ¸ú×Ù: Action.c(4): web_service_call(0x00fb0b3b "StepName=accept_101", 0x00fb0b0d "SOAPMethod=AcceptService.AcceptService.a...", 0x00fb022f "SOAPHeader=?<?xml version="1.0" encod...", 0x00fb0218 "ResponseParam=response", 0x00fb01d0 "WSDL=http://118.118.118.16:7.
Action.c(4): ֪ͨ: CCI ¸ú×Ù: 206/tdps-acc...", 0x00fb01c2 "UseWSDLCopy=1", 0x00fb01a9 "Snapshot=t1318647000.inf", 0x00fb0199 "BEGIN_ARGUMENTS", 0x00fb018c "tiripPkgStr=", 0x00fb017e "END_ARGUMENTS", 0x00fb0171 "BEGIN_RESULT", 0x00fb0166 "END_RESULT", 0x00fb0161 "LAST")
.
大虾们指教指教啊

zhysync 发表于 2011-11-7 17:43:09

感觉你这个方法有问题。楼主熟悉WEBSERVICE的脚本开发方法吗?

南翔塞燕 发表于 2011-11-8 09:08:38

webservice的脚本不能算熟悉,只是做过单纯的传递参数的测试主要是因为这次我们接口不是传的参数而是传得文件包就很晕了,我用win sockets+webservice协议,录制脚本就生成了如上的脚本 比较郁闷 不知道如何解决
PS:我用soapUI在参数栏用<!]方法传递参数能正常测试通过,用loadrunner就不行

wangyanzhao 发表于 2011-11-8 13:05:33

还是和协议有关

wangyanzhao 发表于 2011-11-8 13:05:48

还是和协议有关

archonwang 发表于 2011-11-8 15:54:11

那就用soapui录制。选用http协议做。

archonwang 发表于 2011-11-8 15:54:26

另外,你的lr是什么版本的。

perterliu 发表于 2011-11-8 20:45:51

还没做过webserver压力测试,关注下

夏日摸摸茶 发表于 2011-11-10 09:32:47

么接触过 关注中

liujie989423 发表于 2011-11-10 15:53:22

关注中、、、

南翔塞燕 发表于 2011-11-11 11:38:13

之前是用的lR8.1,这两天换了LR11来录制脚本,能正常回放初步鉴定应该是lr版本问题了
只是用lr11运行场景,只有一个vr也报错

南翔塞燕 发表于 2011-11-11 11:39:35

报错信息 -108964 Action.c(12): Error: SOAP request "acceptRequest_3" execution failed
   -108977Action.c(12): Error: Failed to connect to server "118.118.118.16:7004": Connection timed out
不知什么缘故?

南翔塞燕 发表于 2011-11-11 15:13:21

回复 6# archonwang


    呃soapUI做性能测试?还是用LR通过soapUI录制?
页: [1]
查看完整版本: 【求助】LoadRunner脚本录制后回放报错,请大虾们提点提点