51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1196|回复: 1
打印 上一主题 下一主题

[求助] 关联问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-9-18 17:15:44 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
已经将变量进行关联,在回放脚本还是有错误:Action.c(76): Error: Server returned error for message #1 : description="AMF call returned an error, described in XML seen in extended log" ,该错误出现在amf_call("AMF3_call_1",这段脚本中
下面是脚本,请高手帮忙看看
Action()
{

        web_add_auto_header("x-flash-version",
                "11,4,402,265");
        amf_call(
                "AMF3_call",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t3.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/1",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.CommandMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"correlationId\"/>"
                "<object-class-member memberName=\"timeToLive\"/><object-class-member memberName="
                "\"messageId\"/><object-class-member memberName=\"headers\"/>"
                "<object-class-member memberName=\"timestamp\"/><object-class-member memberName="
                "\"clientId\"/><object-class-member memberName=\"body\"/><object-class-member "
                "memberName=\"destination\"/></object-class><object-content><object-member "
                "memberName=\"operation\"><integer>5</integer></object-member><object-member "
                "memberName=\"correlationId\"><string/></object-member><object-member memberName="
                "\"timeToLive\"><integer>0</integer></object-member><object-member memberName="
                "\"messageId\"><string>2C8E38BE-4286-067D-8337-D2B78D9E4385</string>"
                "</object-member><object-member memberName=\"headers\"><object><object-class "
                "className=\"\"/><object-content/><object-dynamic-content><object-dynamic-member "
                "dynamicMemberName=\"DSId\"><string>nil</string></object-dynamic-member>"
                "<object-dynamic-member dynamicMemberName=\"DSMessagingVersion\"><integer>"
                "1</integer></object-dynamic-member></object-dynamic-content></object>"
                "</object-member><object-member memberName=\"timestamp\"><integer>0</integer>"
                "</object-member><object-member memberName=\"clientId\"><null/></object-member>"
                "<object-member memberName=\"body\"><object><object-class className=\"\"/>"
                "<object-content/></object></object-member><object-member memberName="
                "\"destination\"><string/></object-member></object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);

        web_reg_save_param("messageID",
                "LB=headers\x06I",
                "RB=\x06I",
                "Search=Noresource",
                LAST);

        web_reg_save_param("DSID",
                "LB=DSId\x06A",
                "RB=\x01",
                "Search=Noresource",
                LAST);

        web_custom_request("Gateway.aspx_2",
                "URL=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Method=POST",
                "Resource=0",
                "RecContentType=application/x-amf",
                "Referer=app:/iForm6.swf/[[DYNAMIC]]/5",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "EncType=application/x-amf",
                "BodyBinary=\\x00\\x03\\x00\\x00\\x00\\x01\\x00\\x04null\\x00\\x02/2\\x00\\x00\\x01;\n"
                "\\x00\\x00\\x00\\x01\\x11\n"
                "\\x81\\x13Oflex.messaging.messages.RemotingMessage\\x13operation\rsource\\x15timeToLive\\x13messageId\\x0Fheaders\\x13timestamp\\x11clientId\tbody\\x17destination\\x06)ValidFlexUserFromCIT\\x06MZoom.iFormROServer.iFormROLoginService\\x04\\x00\\x06I57A904A1-B35B-287A-6570-D2B78D8E3047\n"
                "\\x0B\\x01\tDSId\\x06A33a2729983784596b98b890d84179a23\\x15DSEndpoint\\x01\\x01\\x04\\x00\\x01\t\\x05\\x01\\x06\tzoom\\x06\r111111\\x06\\x0Blogin",
                LAST);

       

        amf_call(
                "AMF3_call_1",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t5.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/1",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.CommandMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"correlationId\"/>"
                "<object-class-member memberName=\"timeToLive\"/><object-class-member memberName="
                "\"messageId\"/><object-class-member memberName=\"headers\"/>"
                "<object-class-member memberName=\"timestamp\"/><object-class-member memberName="
                "\"clientId\"/><object-class-member memberName=\"body\"/><object-class-member "
                "memberName=\"destination\"/></object-class><object-content><object-member "
                "memberName=\"operation\"><integer>8</integer></object-member><object-member "
                "memberName=\"correlationId\"><string/></object-member><object-member memberName="
                "\"timeToLive\"><integer>0</integer></object-member><object-member memberName="
                "\"messageId\"><string>{messageID}</string>"
                "</object-member><object-member memberName=\"headers\"><object><object-class "
                "className=\"\"/><object-content/><object-dynamic-content><object-dynamic-member "
                "dynamicMemberName=\"DSId\"><string>{DSID}</string>"
                "</object-dynamic-member><object-dynamic-member dynamicMemberName="
                "\"DSMessagingVersion\"><integer>1</integer></object-dynamic-member>"
                "</object-dynamic-content></object></object-member><object-member memberName="
                "\"timestamp\"><integer>0</integer></object-member><object-member memberName="
                "\"clientId\"><null/></object-member><object-member memberName=\"body\"><string>"
                "OTM1NGU0ZjAtMzBlNy00MDVmLWEyYTktNWJhYjA3ODgwZThhOjkzNTRlNGYwLTMwZTctNDA1Zi1h\nMm"
                "E5LTViYWIwNzg4MGU4YQ==</string></object-member><object-member memberName="
                "\"destination\"><string/></object-member></object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);

        amf_call(
                "fluorine::GetUserConfigXml",
                "Gateway=http://192.168.1.33/iFormRo1/Gateway.aspx",
                "Snapshot=t7.inf",
                MESSAGE,
                "Method=null",
                "TargetObjectId=/2",
                BEGIN_ARGUMENTS,
                "<AMF3><object><object-class className="
                "\"flex.messaging.messages.RemotingMessage\"><object-class-member memberName="
                "\"operation\"/><object-class-member memberName=\"source\"/><object-class-member "
                "memberName=\"timeToLive\"/><object-class-member memberName=\"messageId\"/>"
                "<object-class-member memberName=\"headers\"/><object-class-member memberName="
                "\"timestamp\"/><object-class-member memberName=\"clientId\"/>"
                "<object-class-member memberName=\"body\"/><object-class-member memberName="
                "\"destination\"/></object-class><object-content><object-member memberName="
                "\"operation\"><string>GetUserConfigXml</string></object-member><object-member "
                "memberName=\"source\"><string>Zoom.iFormROServer.iFormRO</string>"
                "</object-member><object-member memberName=\"timeToLive\"><integer>0</integer>"
                "</object-member><object-member memberName=\"messageId\"><string>"
                "0027972E-727B-493E-E442-D2B79CE0027A</string></object-member><object-member "
                "memberName=\"headers\"><object><object-class className=\"\"/><object-content/>"
                "<object-dynamic-content><object-dynamic-member dynamicMemberName=\"DSId\">"
                "<string>33a2729983784596b98b890d84179a23</string></object-dynamic-member>"
                "<object-dynamic-member dynamicMemberName=\"DSEndpoint\"><null/>"
                "</object-dynamic-member></object-dynamic-content></object></object-member>"
                "<object-member memberName=\"timestamp\"><integer>0</integer></object-member>"
                "<object-member memberName=\"clientId\"><null/></object-member><object-member "
                "memberName=\"body\"><array arrayLength=\"2\"><array-members-part><array-member>"
                "<integer>1</integer></array-member><array-member><integer>1</integer>"
                "</array-member></array-members-part></array></object-member><object-member "
                "memberName=\"destination\"><string>fluorine</string></object-member>"
                "</object-content></object></AMF3>",
                END_ARGUMENTS,
                LAST);
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2012-9-18 17:32:20 | 只看该作者
amf的关联不是这样做的。。
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-9 10:48 , Processed in 0.085777 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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