51Testing软件测试论坛

标题: Webservices 测试错误 [打印本页]

作者: ggogw    时间: 2007-8-21 15:17
标题: Webservices 测试错误
附件是webservices的wsdl文件,改成后缀为.wsdl即可用我取其中一个方法测试,脚本如下:
Action()

{
        web_service_call( "StepName=AddUser_101",
                "SOAPMethod=SystemManager.SystemManagerSoap.AddUser",
                "ResponseParam=response",
                "WSDL=E:/SystemManager.wsdl",
                "UseWSDLCopy=1",
                "Snapshot=t1187679159.inf",
                BEGIN_ARGUMENTS,
                "userAccount=auto string",
                "userName=auto string",
                "userPassWord=auto string",
                "companyId=123456789",
                "roleId=123456789",
                "creator=auto string",
                "memo=auto string",
                "userStatus=true",
                "errMsg=auto string",
                END_ARGUMENTS,
                BEGIN_RESULT,
        END_RESULT,
                LAST);

        lr_think_time(3);
        return 0;
}

回放时报以下错误:
虚拟用户脚本已启动
正在开始操作 vuser_init。
正在结束操作 vuser_init。
正在运行 Vuser...
正在开始迭代 1。
正在开始操作 Action。
Action.c(4): Web service call "AddUser_101" started
Action.c(4): Using working copy of the WSDL file "E:/SystemManager.wsdl"
Action.c(4): Using client emulation General
Action.c(4): Removed Web headers not matching the emulated client
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(0x01980303 "StepName=AddUser_101", 0x019802d0 "SOAPMethod=SystemManager.SystemManagerSo...", 0x019802b9 "ResponseParam=response", 0x0198029e "WSDL=E:/SystemManager.wsdl", 0x01980290 "UseWSDLCopy=1", 0x01980277 "Snapshot=t118767.
Action.c(4): 通知: CCI 跟踪: 9159.inf", 0x01980267 "BEGIN_ARGUMENTS", 0x0198024f "userAccount=auto string", 0x0198023a "userName=auto string", 0x01980221 "userPassWord=auto string", 0x0198020d "companyId=123456789", 0x019801fc "roleId=123456789", 0x019801e8 "creator=auto string", 0x019801d7.
Action.c(4): 通知: CCI 跟踪:  "memo=auto string", 0x019801c7 "userStatus=true", 0x019801b4 "errMsg=auto string", 26739110, 26739097, 26739086, 26739081)
.
Action.c(4): 通知: CCI 跟踪: Compiled_code(0): Action()
.
正在结束 Vuser...
正在开始操作 vuser_end。
正在结束操作 vuser_end。
Vuser 已终止。
作者: rickyzhu    时间: 2007-8-27 17:47
我遇到过很多内存冲突的情况,都没有解决

一般来说,内存冲突大多是因为程序之间有冲突引起的,解决的方法就是找出那段冲突的内存,看被什么程序占用,停掉。




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