51Testing软件测试论坛

标题: web_custom_request进行数据提交,有部分数据不能插入 [打印本页]

作者: lci    时间: 2014-11-18 14:51
标题: web_custom_request进行数据提交,有部分数据不能插入
使用web_custom_request进行数据提交,大部分数据都能插入,但是有部分数据不能插入,代码如下:(其中红色字体部分为插入失败的数据)

web_custom_request("RFPManagement.aspx_3",
                "URL={RootWebsite}{WebsiteName}/ChangeOrder/RFPManagement.aspx",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer={RootWebsite}{WebsiteName}/ChangeOrder/RFPManagement.aspx",
                "Snapshot=t286.inf",
                "Mode=HTML",
                "EncType=application/x-www-form-urlencoded; charset=utf-8",
                "Body=ctl00%24ScriptManager1=ctl00%24body%24upMain%7Cctl00%24body%24btnSave&__CSRFTOKEN={CSRFTOKEN_AddRFP_1}&ctl00%24hidfiedFunctionName=&ctl00%24body%24ChangeNumber%24txtAutoNumber=RFP%20ID%20to%20be%20Automatically%20Generated&ctl00%24body%24ChangeNumber%24hf="
                "&ctl00%24body%24PContractAutoID%24txtText=ABCABC%20Master%20-%20ABCABC%20Master&ctl00%24body%24PContractAutoID%24hfValue=1157&ctl00%24body%24VendorAutoID%24txtText=ABC%20-%20ABC%20Contracting%20Inc&ctl00%24body%24VendorAutoID%24hfValue=9"
                "&ctl00_body_IssueDate_wdDateTime_DrpPnl_Calendar1=%253Cx%2520PostData%253D%25222014x10x-1x-1x-1%2522%253E%253C%2Fx%253E&ctl00%24body%24IssueDate%24wdDateTime_hidden=%253CDateChooser%2520Value%253D%25222014x10x21%2522%253E%253C%2FDateChooser%253E"
                "&ctl00_body_IssueDate_wdDateTime_input=10%2F21%2F2014&ctl00%24body%24StatusID%24ddlPicklist=1&ctl00_body_AuthorizationStatusDate_wdDateTime_DrpPnl_Calendar1=%253Cx%2520PostData%253D%25222014x10x-1x-1x-1%2522%253E%253C%2Fx%253E&ctl00%24body%24AuthorizationStatusDate%24wdDateTime_h"
                "idden=&ctl00_body_AuthorizationStatusDate_wdDateTime_input=&ctl00%24body%24cstm_ReferenceNumber%24txtText=&ctl00%24body%24SubjectDesc%24txtText={RFPName}&ctl00%24body%24ReasonOfChange%24txtText=&ctl00_body_ReasonOfChange_ctl03_Data="
                "&ctl00%24body%24DescriptionOfChange%24txtText=&ctl00_body_DescriptionOfChange_ctl03_Data=&ctl00%24body%24cstm_EstimatedTimeChange%24txtDecimal=&ctl00%24body%24cstm_ProposedChangeAmount%24txtMoney=&ctl00%24body%24cstm_ProposedChangeAmount%24hfCurrencySymbol="
                "&ctl00%24body%24ContactName%24txtText=&ctl00%24shotcut=&ctl00%24hfMasterPage_ConfirmBoxExtenderClientID=ctl00_mpeConfirmBox&ctl00%24hfMasterPage_ConfirmBoxContentClientID=ctl00_dvConfirmBoxContent&ctl00%24hfMasterPage_AppPath=%2F{WebsiteName}%2F&hiddenInputToUpdateATBuffer_CommonToolkitScripts=1"
                "&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE={VIEWSTATE_AddRFP_1}&__VIEWSTATEENCRYPTED=&__EVENTVALIDATION={EVENTVALIDATION_AddRFP_1}&__sectionIdHiddenField=&__ASYNCPOST=true&ctl00%24body%24btnSave=Save",
                LAST);


软件UI如下:
[attach]92954[/attach]






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