|
回放提交订单的时候总是不成功
以下是提交订单录制的脚本:
(PS:CorrelationParameter_2=商品id,oid=订单id,payid=支付id,CorrelationParameter_3=会员id,CorrelationParameter_4=订单金额)
lr_start_transaction("提交订单");
web_submit_data("order.do_3",
"Action=http://my.itrent.cn/member/order.do?action=confirmOrder",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://my.itrent.cn/member/order.do",
"Snapshot=t42.inf",
"Mode=HTML",
ITEMDATA,
"Name=ids", "Value={CorrelationParameter_2}", ENDITEM,
"Name=paymentType", "Value=1", ENDITEM,
"Name=buyerRemarks", "Value=", ENDITEM,
"Name=cashCoupons", "Value=", ENDITEM,
"Name=cashCouponsId", "Value=", ENDITEM,
LAST);
lr_end_transaction("提交订单", LR_AUTO);
lr_start_transaction("支付");
lr_think_time(13);
//Correlation comment - Do not change!Original value='SZ2017022611430050' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=oid",
"LB=oids\":\"",
"RB=\",",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/pay.do*",
LAST);
//Correlation comment - Do not change!Original value='290' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=payid",
"LB=payId\":\"",
"RB=\",",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/pay.do*",
LAST);
//Correlation comment - Do not change!Original value='1317' Name ='CorrelationParameter_3'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_3",
"LB=mid\":\"",
"RB=\",",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/pay.do*",
LAST);
//Correlation comment - Do not change!Original value='16686.05' Name ='CorrelationParameter_4'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_4",
"LB=capital\":\"",
"RB=\",",
SEARCH_FILTERS,
"Scope=Body",
"RequestUrl=*/pay.do*",
LAST);
web_submit_data("pay.do",
"Action=http://pay.itrent.cn/pay.do?action=confirmPay",
"Method=POST",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://pay.itrent.cn/{oid}",
"Snapshot=t43.inf",
"Mode=HTML",
ITEMDATA,
"Name=oids", "Value={oid}", ENDITEM,
"Name=payPwd", "Value=123456", ENDITEM,
LAST);
web_url("pay.do_2",
"URL=http://pay.itrent.cn/pay.do?action=paySucc&code={payid}",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://pay.itrent.cn/{oid}",
"Snapshot=t44.inf",
"Mode=HTML",
LAST);
lr_end_transaction("支付", LR_AUTO); |
|