51Testing软件测试论坛

标题: 发送的请求由ajax计算的值,每次不同,关联失败 [打印本页]

作者: wuheemaq    时间: 2013-2-21 11:29
标题: 发送的请求由ajax计算的值,每次不同,关联失败
脚本中提交的请求,由ajax计算提交的,每次值都不同,进行了关联,回放时还是提示关联失败,有人遇到过这种情况么?
web_submit_data("appApply.ajax",
                "Action=http://172.16.2.138:8080/CloudOP/siapp/appApply.ajax?agencyId=1318470302163",
                "Method=POST",
                "RecContentType=application/x-json",
                "Referer=http://172.16.2.138:8080/CloudOP/siapp/applyWelcome.do?funcid=09150202&module=OP&isOp=1",
                "Snapshot=t16.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=id", "Value=", ENDITEM,
                "Name=siId", "Value={siId}", ENDITEM,
                "Name=applicationType", "Value=1", ENDITEM,
                "Name=appModules", "Value=", ENDITEM,
                "Name=appServices", "Value=", ENDITEM,
                "Name=appResTypes", "Value=[{\"id\":\"3-{id1}\",\"resType\":\"ff8080813c5d486e013c6018abf20015\",\"resTypeName\":\"应用服务器\"},{\"id\":\"2-{id2}\",\"resType\":\"ff8080813c5d486e013c60174e1e0010\",\"resTypeName\":\"虚拟机\"},{\"id\":\"1-{id3}\",\"resType\":\"1\",\"resTypeName\":\"数据库\"}]", ENDITEM,
                "Name=applicationCode", "Value=OH{applicationCode}", ENDITEM,
                "Name=applicationName", "Value=OH{applicationCode}", ENDITEM,
                "Name=isSaas", "Value=0", ENDITEM,
                "Name=applicationVersion", "Value=V1.0", ENDITEM,
                "Name=applicationTypeName", "Value=协同办公", ENDITEM,
                "Name=applicationIntro", "Value=OH{applicationCode}", ENDITEM,
                "Name=applicationDiscription", "Value=OH{applicationCode}", ENDITEM,
                "Name=applicationResource", "Value=OH{applicationCode}", ENDITEM,
                "Name=operant", "Value=", ENDITEM,
                LAST);
其中{id1}、{id3}、{id3}是关联。




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