模拟登录页面系统问题
我现在要进行模拟网上营业厅的登录,并获取登录成功,返回跳转页面上的参数,下面的脚本发现登录不了,无法获取值lr.start_transaction("ct10000_SSOLogin");
web.reg_save_param ("ua_ticket",
new String []{
"NOTFOUND=ERROR",
"LB/IC=UATicket=",
"RB/IC=\r\n" ,
"LAST"} );
String login_from="=<?xml version=\"1.0\" encoding=\"UTF-8\"?>"+
"<CAPRoot><SessionHeader><ServiceCode>CAP01002</ServiceCode><Version>1234567890123456</Version><ActionCode>0</ActionCode><TransactionID>"+lr.eval_string("<id1>")+lr.eval_string("<id2>")+"</TransactionID>"+
"<SrcSysID>29102</SrcSysID><DstSysID>29</DstSysID><ReqTime>20090319171446</ReqTime><DigitalSign/></SessionHeader><SessionBody><CT10000SSOAuthReq><RedirectURL>"+redirect_url+"</RedirectURL></CT10000SSOAuthReq></SessionBody></CAPRoot>";
web.submit_data("SSOLogin",
"Action="+sso_url,
new String[]{ //options[]
"Method=POST",
"RecContentType=text/html",
"Referer="+redirect_url,
"Mode=HTTP"
},
new String[]{
//"Name=SSORequestXML",login_from,web.ENDITEM,
"Name=accountType", "Value="+lr.eval_string ("<type>"), web.ENDITEM,
"Name=username", "Value="+lr.eval_string ("<custid>"), web.ENDITEM,
"Name=password","Value="+lr.eval_string("<password>"), web.ENDITEM,
"Name=cityCode","Value="+lr.eval_string("<area>"), web.ENDITEM,
"Name=pwdType","Value="+lr.eval_string("<pwdtype>"), web.ENDITEM,
// "Name=submit", "Value=login", web.ENDITEM,
web.LAST
});
lr.end_transaction("ct10000_SSOLogin", lr.AUTO);
页:
[1]