用户登录脚本
我录制一个用户登录的脚本, 仅仅是登陆。脚本中我找不到我曾经填写的用户名和密码,这样我就不能设置参数了, 请看我的脚本
/* -------------------------------------------------------------------------------
Script Title :
Script Description :
Recorder Version : 3041
------------------------------------------------------------------------------- */
vuser_init()
{
web_add_cookie("ExternalCanopyUserName=test00@163.com; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("v1st=BF4F3DC7BB4ECF0B; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("LTTracking=ESOURCEID=475010&PARTNER=lendingtree&LastSetDate=7%2F24%2F2009+2%3A37%3A17+AM; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("M4BR=2%2D2%2D8CB3CE09C7849D06FC7E810B903492667D93F36629C7184F7EFE391962068024%2D0F39AA45A14E7A8E4A057131FC35D072527A6D766CF70FBE7877A06FE8D90E57; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("BT=AUTO%5FOWNERSHIP%5FTYPE%5FCONST=&LOAN%5FPURPOSE%5FCONST=&PROP%5FSTATE%5FCONST=1&AUTO%5FSTATE%5FACQUIRED%5FCONST=1&ADDR%5FSTATE%5FBO%5FCONST=1&V2PROP%5FCONST=30; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("MA=; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("EsourceHistory=; DOMAIN=devcanopy.lendingtrees.com");
web_add_cookie("ASP%2ENET%5FSessionId=tv3cv045lu0a3y45oa1wurvz; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("QF=; DOMAIN=devcanopy.lendingtree.com");
web_add_cookie("session%5Fstart%5Ftime=1248415809872; DOMAIN=devcanopy.lendingtree.com");
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 4
// {Siebel_Analytic_ViewState2} = "/wEPDwUKMTY3NTQ2NDI3Ng9kFgJmD2QWAgIDD2QWAgICDw8WAh4XRW5hYmxlQWpheFNraW5SZW5kZXJpbmdoZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgIFFmN0bDAwJFJhZFdpbmRvd01hbmFnZXIFG2N0bDAwJENvbnRlbnRCb2R5JGJ0blN1Ym1pdF5T9elrXlppytcmmz/bgquFzs31"
// */
web_reg_save_param("Siebel_Analytic_ViewState2",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_url("Login.aspx",
"URL=https://devcanopy.lendingtree.com/Login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/login_bg.gif", ENDITEM,
"Url=/WebResource.axd?d=yrP7-O9iYdxfyO4dMwgWFQ2&t=633595192183430636", ENDITEM,
"Url=/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+"
"PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3aed16cbdc%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4", ENDITEM,
"Url=/WebResource.axd?d=LhyNaPTy01ZkpRF5XTzjdA2&t=633595192183430636", ENDITEM,
"Url=/images/loginboxmdlt.png", ENDITEM,
"Url=/images/loginboxlogo_bg.png", ENDITEM,
"Url=/images/loginboxmdrt.png", ENDITEM,
"Url=/images/loginboxtplt.png", ENDITEM,
"Url=/images/loginboxtpmd.png", ENDITEM,
"Url=/images/loginboxtprt.png", ENDITEM,
"Url=/images/loginbox_content_bg.png", ENDITEM,
"Url=/images/loginboxbtlt.png", ENDITEM,
"Url=/images/loginboxbtmd.png", ENDITEM,
"Url=/images/loginboxbtrt.png", ENDITEM,
LAST);
web_add_cookie("ExternalCanopyUserName=quickenloanbranch@lendingtree.com; DOMAIN=devcanopy.lendingtree.com");
lr_think_time(35);
web_custom_request("Login.aspx_2",
"URL=https://devcanopy.lendingtree.com/Login.aspx",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=https://devcanopy.lendingtree.com/Login.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
"EncType=application/x-www-form-urlencoded; charset=utf-8",
"Body=ctl00%24ScriptManager=ctl00%24ContentBody%24ctl00%24ContentBody%24ajaxPanelPanel%7Cctl00%24ContentBody%24btnSubmit&__LASTFOCUS=&ctl00_ScriptManager_HiddenField="
"%3B%3BSystem.Web.Extensions%2C%20Version%3D3.5.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D31bf3856ad364e35%3Aen-US%3A0d787d5c-3903-4814-ad72-296cea810318%3Aea597d4b%3Ab25378d2%3BTelerik.Web.UI%2C%20Version%3D2009.2.701.35%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3D121fae78165ba3d4%3Aen-US%3A7e598a31-3beb-49a1-914c-5f530240f0ea%3A16e4e7cd%3Aed16cbdc%3A874f8ea2%3Af7645509%3A24ee1bba%3A19620875%3A33108d14%3Abd8f85e4&__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE={Siebel_Analytic_ViewState2_URL}&"
"__EVENTVALIDATION=%2FwEWBQKov%2B76DALVgNCLDQLrpZn%2FBwKxipXMCgLAqv2nCpo76cMmL4hxWu9hmzEALKXSZ9eY&ctl00_RadWindowManager_ClientState=&ctl00%24ContentBody%24txtUserName=quickenloanbranch%40lendingtree.com&ctl00%24ContentBody%24txtPassword=Test0016&ctl00%24ContentBody%24hide=&__ASYNCPOST=true&ctl00%24ContentBody%24btnSubmit.x=24&ctl00%24ContentBody%24btnSubmit.y=23&RadAJAXControlID=ctl00_ContentBody_ajaxPanel",
LAST);
web_convert_param("Siebel_Analytic_ViewState2_URL",
"SourceString={Siebel_Analytic_ViewState2}",
"SourceEncoding=HTML",
"TargetEncoding=URL",
LAST);
web_url("Main.aspx",
"URL=https://devcanopy.lendingtree.com/Main.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=https://devcanopy.lendingtree.com/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/body_bg.gif", ENDITEM,
"Url=/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_ScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.2.701.35%2c+Culture%3dneutral%2c+"
"PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a7e598a31-3beb-49a1-914c-5f530240f0ea%3a16e4e7cd%3a874f8ea2%3af7645509%3a24ee1bba%3a19620875%3a33108d14%3abd8f85e4%3a1e771326%3a4cacbc31%3ae524c98b%3aed16cbdc%3aaa288e2d%3a39040b5c%3ae330518b%3a8e6f0d33", ENDITEM,
"Url=/images/wrapbg.png", ENDITEM,
"Url=/images/navbox_bg.png", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uor89Y3iOuVzbMblJAuw7DwH6glMps36BD-RhTpM-EUwQ1&t=633848758246456107", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uoObrKzKwtLmHZuM7JLX9lCLzW7tf1BtAcIxLK-qm8MVE1&t=633848758246456107", ENDITEM,
"Url=/images/pannelbox_mid_r.png", ENDITEM,
"Url=/images/pannelbox_mid_l.png", ENDITEM,
"Url=/images/rcbSprite.png", ENDITEM,
"Url=/images/content_mid_l.png", ENDITEM,
"Url=/images/activity_top_m.gif", ENDITEM,
"Url=/images/activity_mid_l.gif", ENDITEM,
"Url=/images/activity_mid_r.gif", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uoUYUxmXosabnnRmoaU-PiVMHP9N_zR2y00R5mOop64AU1&t=633848758246456107", ENDITEM,
"Url=/images/content_mid_r.png", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uoKUO_ErNoRRY1O3PPDJw_EyEyq3bPrErV6q0NTNMXWNM1&t=633848758246456107", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uomUUWUlOGZCLHMkumjTyBk3Vg4GVwKtF98R7CfoIudKM1&t=633848758246456107", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HqPfGoTgORTacx5GojQteFc73QjNGFXhX2utNS0j5Rg9Yw5OxvKuasftFtx1Muh9ns1&t=633848758246456107", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HqPfGoTgORTacx5GojQteFcztkM0WiBes-mTwI8rRc5GJaBoaPJ3S8kMwx2qwCABjs1&t=633848758246456107", ENDITEM,
"Url=/WebResource.axd?d=L2RhH3akrbcMJxzNPPkcv7OEpkEyg-yxRGwAA9T_7HpJvbzjsdY9enYyEzH459uo-I16OeLTM6LuG9lzMclXOVvr-1I2AbnSxFN79e-dXjA1&t=633848758246456107", ENDITEM,
"Url=/images/pannelbox_tp_m.png", ENDITEM,
"Url=/images/pannelbox_tp_r.png", ENDITEM,
"Url=/images/pannelbox_tp_l.png", ENDITEM,
"Url=/images/leafbutton.png", ENDITEM,
"Url=/images/pannelbox_btm_m.png", ENDITEM,
"Url=/images/pannelbox_btm_l.png", ENDITEM,
"Url=/images/pannelbox_btm_r.png", ENDITEM,
"Url=/images/TabStripStates.png", ENDITEM,
"Url=/images/content_top_m.png", ENDITEM,
"Url=/images/content_top_l.png", ENDITEM,
"Url=/images/content_top_r.png", ENDITEM,
"Url=/images/activity_top_r.gif", ENDITEM,
"Url=/images/activity_btm_r.gif", ENDITEM,
"Url=/images/activity_btm_l.gif", ENDITEM,
"Url=/images/content_btm_m.png", ENDITEM,
"Url=/images/content_btm_r.png", ENDITEM,
"Url=/images/activity_btm_m.gif", ENDITEM,
"Url=/images/content_btm_l.png", ENDITEM,
"Url=/images/footerbg.png", ENDITEM,
LAST);
return 0;
} 你脚本录制的选择的基于URL的吗
回复 1# 的帖子
UserName=quickenloanbranch?Password=Test0016?
还有个办法,你换一个用户登陆,然后比较2个脚本,看可以不~
[ 本帖最后由 xxicy 于 2009-8-7 17:06 编辑 ]
回复 3# 的帖子
其实, 我的用户名是quickenloanbranch@lendingtree.com, 但是在脚本中却显示quickenloanbranch%40lendingtree.com, 请问%40是怎么来的
页:
[1]