51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1672|回复: 2
打印 上一主题 下一主题

[原创] LR测试Webservice生成脚本不能被执行怎么办呀 急急急

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2010-8-15 14:53:48 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
Action()
{

        web_service_call( "StepName=customerTopic_101",
                "SOAPMethod=CustomerTopic.CustomerTopicPortType.customerTopic",
                "ResponseParam=response",
                "WSDL=C:/Documents and Settings/Administrator/桌面/CustomerTopic.wsdl",
                "UseWSDLCopy=1",
                "Snapshot=t1281697510.inf",
                BEGIN_ARGUMENTS,
                "sysCode=EII",
                "custmerId=0001",
                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 "customerTopic_101" started
Action.c(4): Using working copy of the WSDL file "C:/Documents and Settings/Administrator/桌面/CustomerTopic.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(0x01000277 "StepName=customerTopic_101", 0x0100023a "SOAPMethod=CustomerTopic.CustomerTopicPo...", 0x01000223 "ResponseParam=response", 0x010001de "WSDL=C:/Documents and Settings/Administr...", 0x010001d0 "UseWSDLCopy=1", 0x010001b7.
Action.c(4): 通知: CCI 跟踪:  "Snapshot=t1281697510.inf", 0x010001a7 "BEGIN_ARGUMENTS", 0x0100019b "sysCode=EII", 0x0100018c "custmerId=0001", 0x0100017e "END_ARGUMENTS", 0x01000171 "BEGIN_RESULT", 0x01000166 "END_RESULT", 0x01000161 "LAST")
.
Action.c(4): 通知: CCI 跟踪: Compiled_code(0): Action()
.
正在结束 Vuser...
正在开始操作 vuser_end。
正在结束操作 vuser_end。
Vuser 已终止。

我的的是8。1版本的
请哪位高人指点啊 急急急,QQ:80399099   MSN: darling.lin@msn.com
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

3#
发表于 2010-8-16 16:27:11 | 只看该作者
回复 支持 反对

使用道具 举报

该用户从未签到

2#
发表于 2010-8-16 09:46:51 | 只看该作者
这类问题好像出现比较多是脚本语法的错误,但从你的脚本来看,表面上也看不出什么问题。
以下这两个值是做什么的?是否需要进行参数化的呢?
         "sysCode=EII",
                "custmerId=0001",

另外对于webservices协议的脚本问题,
处理过程:1、 首先要检查webservices服务器是否正常;
2、检查wsdl文件是否正确,包括配置,可以尝试用wsdl文件 或者 直接用应用服务器上的;
3、在检查脚本参数等等问题。
4、在跑脚本过程中看应用服务器后台是否打印错误----这个至关重要!往往这类问题让我们一筹莫展。

希望能帮到你.
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-20 19:50 , Processed in 0.062664 second(s), 26 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表