51Testing软件测试论坛

标题: WEB Services 测试上传下载录制脚本时出错 [打印本页]

作者: 地瓜小七    时间: 2008-4-28 10:09
标题: WEB Services 测试上传下载录制脚本时出错
LR8.1+汉化
选择Web Services协议
导入的wsdd正确
错误如下: 请各位大侠指教

虚拟用户脚本已启动
正在开始操作 vuser_init。
vuser_init.c(4): Web service call "downloadChildren_101" started
vuser_init.c(4): Using working copy of the WSDL file "C:/Documents and Settings/Administrator/桌面/新建文件夹/新建文件夹/ChildService.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(0x010802b9 "StepName=downloadChildren_101", 0x0108027c "SOAPMethod=ServiceChildService.ServiceCh...", 0x01080265 "ResponseParam=response", 0x0108020b "WSDL=C:/Documents and Settings/Administr...", 0x010801fd "UseWSDLCopy=1".
vuser_init.c(4): 通知: CCI 跟踪: , 0x010801e4 "Snapshot=t1209347768.inf", 0x010801d4 "BEGIN_ARGUMENTS", 0x010801ca "username=", 0x010801c0 "password=", 0x010801b7 "chil_id=", 0x010801ae "depCode=", 0x0108019c "downloadDatetime=", 0x0108018e "END_ARGUMENTS", 0x01080181 "BEGIN_RESULT", 0x01080176.
vuser_init.c(4): 通知: CCI 跟踪:  "END_RESULT", 0x01080171 "LAST")
.
vuser_init.c(4): 通知: CCI 跟踪: Compiled_code(0): vuser_init()
.
作者: iori    时间: 2008-4-28 10:17
代码呢?应该是你的代码有问题
作者: 地瓜小七    时间: 2008-4-28 10:34
标题: 回复 2# 的帖子
谢谢楼上
我选择了downloadChildren函数,参数自动生成

代码如下:
vuser_init()
{

        web_service_call( "StepName=downloadChildren_101",
                "SOAPMethod=ServiceChildService.ServiceChild.downloadChildren",
                "ResponseParam=response",
                "WSDL=C:/Documents and Settings/Administrator/桌面/新建文件夹/新建文件夹/ChildService.wsdl",
                "UseWSDLCopy=1",
                "Snapshot=t1209347768.inf",
                BEGIN_ARGUMENTS,
                "username=",
                "password=",
                "chil_id=",
                "depCode=",
                "downloadDatetime=",
                END_ARGUMENTS,
                BEGIN_RESULT,
                END_RESULT,
                LAST);

        lr_think_time(3);



        return 0;
}
作者: liuh3218    时间: 2008-5-6 08:55
你的问题解决了吗? 有什么方法?
作者: huoxingyinzi    时间: 2008-12-14 17:03
在run- time -setting ---> webserivce-->clinet emulation-->MS SOAP就能解决这个问题.




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