LoadRunner测试139邮箱的脚本,HTTP/HTML 协议,N多关联
Action()
{
web_url("mail.10086.cn",
"URL=http://mail.10086.cn/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/sprite_ico.png", ENDITEM,
"Url=/Images/201102111850/lzyzky0c.jpg", ENDITEM,
"Url=http://sdc.10086.cn/dcsc9na25000004z5fw99vsl2_5v7c/dcs.gif?&dcsdat=1303387016231&dcssip=mail.10086.cn&dcsuri=/&WT.co_f=2741c942ad2188bde541303371851272&WT.vtid=2741c942ad2188bde541303371851272&WT.vtvs=1303385479169&WT.Branch=mail&WT.es=http://mail.10086.cn/&WT.host=mail.10086.cn&WT.vt_f_tlh=1303386603", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/min_mail_icons01.gif", ENDITEM,
"Url=http://sdc.10086.cn/dcsc9na25000004z5fw99vsl2_5v7c/dcs.gif?&dcsdat=1303387037354&dcssip=mail.10086.cn&dcsuri=https://mail.10086.cn/Login/Login.ashx&WT.co_f=2741c942ad2188bde541303371851272&WT.vtid=2741c942ad2188bde541303371851272&WT.vtvs=1303385479169&WT.Branch=mail&WT.es=http://mail.10086.cn/&WT.host=mail.10086.cn&WT.vt_f_tlh=1303387016&WT.event=FormButton:loginForm&WT.dl=27", ENDITEM,
LAST);
web_reg_save_param("p_uid",
"LB=default.jsp\?funcid=main\&sid=",
"RB='",
"Search=Body",
LAST);
web_reg_save_param("UserSid",
"LB=Os_SSo_Sid=",
"RB=;",
"Search=ALL",
LAST);
/*登录*/
lr_think_time(6);
web_submit_form("Login.ashx",
"Snapshot=t2.inf",
ITEMDATA,
"Name=UserName", "Value=XXXXXX", ENDITEM,
"Name=Password", "Value=XXXXXX", ENDITEM,
"Name=VerifyCode", "Value=", ENDITEM,
"Name=auto", "Value=<OFF>", ENDITEM,
EXTRARES,
"Url=http://images.139cm.com/m/coremail/images/login/a4.png", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/js/jquery.js", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/loadingBg.png", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/js/utils_controls.js?v=20110408", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/js/framework.js?v=2011040918", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/css/skin_g1.css", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://wmail4.mail.10086.cn/m/httphelper.swf", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/g1/bg.jpg", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://wmail4.mail.10086.cn/favicon.ico", "Referer=", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/g1/theme.png", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
LAST);
lr_log_message(lr_eval_string("{UserSid}"));
web_url("history.htm",
"URL=http://wmail4.mail.10086.cn/m/history.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.139cm.com/m/coremail/images/feBg.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=config/service/1.xml?date=20110421", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/g1/mail_bg02_morenban.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://g1.mail.10086.cn/ServiceAPI/getmaindata.ashx?sid={UserSid}&uid=15920506503&rnd=0.17220428273998384", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
LAST);
lr_log_message(lr_eval_string("{p_uid}"));
web_url("welcome.aspx",
"URL=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.139cm.com/m/coremail/css/basic.css", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/css/welcome_skin_g1.css", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/tipsBackgroundRp.jpg", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/welcomeIcon.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/skin_green/backgroundRp.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=/addr/apiserver/GetContactsDataByJs.ashx?sid={UserSid}&rnd=0.7475764463097358", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://uec.mail.10086.cn/mail/uecer.ashx?Sid={UserSid}", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/newIcons.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/cximages/sjqb.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/weasmall.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://admin.139.com/updata/adfile/logo48.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
LAST);
web_url("GetDynamicData.ashx",
"URL=http://g1.mail.10086.cn/ServiceAPI/GetDynamicData.ashx?sid={UserSid}&num=0",
"Resource=0",
"RecContentType=text/html",
"Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=http://admin.139.com/updata/adfile/zxsd2.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://admin.139.com/updata/adfile/logo3.png", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
"Url=http://admin.mail.10086.cn/UpData/AdFile/sjyx2.jpg", "Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}", ENDITEM,
LAST);
web_url("GetShareCount.ashx",
"URL=http://disk1.mail.10086.cn/serviceapi/GetShareCount.ashx?sid={UserSid}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}",
"Snapshot=t6.inf",
"Mode=HTML",
EXTRARES,
"Url=http://webim.feixin.10086.cn/webimbar/initialize.aspx?prelogin=fetionPreLogin&bind=fetionBind&containerid=fetionBar&titleid=fetionChatTitle&onexpand=fetionExpand&autologin=0", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/GetUi.aspx?uitype=css&uikey=style&2011041401", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/GetUi.aspx?uitype=js&uikey=fetionQuery&charset=&2011041401", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/swf/ajaxhelper.swf?2011041401", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/GetUi.aspx?uitype=js&uikey=fetionInit&charset=&2011041401", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/img/login_main_bg.jpg", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
LAST);
web_url("LoginFetion.aspx",
"URL=http://g1.mail.10086.cn/Fetion/LoginFetion.aspx?sid={UserSid}&rnd=0.4493265939761566",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"Url=http://webim.feixin.10086.cn/webimbar/img/login_con_bg.jpg", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/setCounter.aspx?coutertype=init&tag=&rand=0.9775561214732717", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/img/button.png", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/img/link.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://res.fetionpic.com/img/blank/spacer.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/setCounter.aspx?coutertype=unbind&tag=&rand=0.0745610529594597", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/img/icon_big.png", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
"Url=http://webim.feixin.10086.cn/webimbar/img/icon.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
LAST);
web_custom_request("BehaviorGather.ashx",
"URL=http://g1.mail.10086.cn/Behavior/BehaviorGather.ashx?sid={UserSid}&rnd=0.3204534104982884",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}",
"Snapshot=t8.inf",
"Mode=HTML",
"Body=reports=%3Creports%3E%3Cbehavior+id%3D'1239'+extendID%3D'0'+mid%3D'25'+index%3D'1'+pageId%3D'122010510011'+actionType%3D'20'%2F%3E%3C%2Freports%3E",
LAST);
/*写信*/
web_url("compose2010.htm",
"URL=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.139cm.com/m/coremail/css/basic-2.css", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/js/compose_2010_pack.js?v=20110408", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/css/compose2010.css", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/theme/g1/skin.css", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/css/icon.png", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=Richinfo_annex_upload.swf", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
LAST);
web_url("blank.htm",
"URL=http://wmail4.mail.10086.cn/m/blank.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}",
"Snapshot=t10.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.139cm.com/m/coremail/images/editor_ico.png", "Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/loadinfo.net2b.gif", "Referer=http://wmail4.mail.10086.cn/c/XTS/default.jsp?funcid=main&sid={p_uid}", ENDITEM,
LAST);
web_custom_request("BehaviorGather.ashx_2",
"URL=http://g1.mail.10086.cn/Behavior/BehaviorGather.ashx?sid={UserSid}&rnd=0.2744430332413743",
"Method=POST",
"Resource=0",
"RecContentType=text/plain",
"Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}",
"Snapshot=t11.inf",
"Mode=HTML",
"Body=reports=%3Creports%3E%3Cbehavior+id%3D'1005'+extendID%3D'0'+mid%3D'14'+index%3D'2'+pageId%3D'122010510011'+actionType%3D'20'%2F%3E%3C%2Freports%3E",
LAST);
/*发送*/
// lr_think_time(30);
web_custom_request("s",
"URL=http://wmail4.mail.10086.cn/c/s?func=mbox:compose&sid={p_uid}&randnum=0.7377103098384575",
"Method=POST",
"Resource=0",
"RecContentType=text/javascript",
"Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}#&type=compose",
"Snapshot=t12.inf",
"Mode=HTML",
"EncType=application/xml",
"Body=<object>\r\n <object name=\"attrs\">\r\n <string name=\"account\">"XXXX"<XXXX@139.com></string>\r\n <array name=\"to\">\r\n <string>XXXX@139.com</string>\r\n </array>\r\n <array name=\"cc\">\r\n </array>\r\n <array name=\"bcc\">\r\n </array>\r\n <boolean name=\"showOneRcpt\">false</boolean>\r\n <boolean name=\"isHtml\">true</boolean>\r\n <string name=\"subject\">333</string>\r\n <string name=\"content\"><DIV></"
"DIV></string>\r\n <int name=\"priority\">3</int>\r\n <boolean name=\"requestReadReceipt\">false</boolean>\r\n <boolean name=\"saveSentCopy\">true</boolean>\r\n <null name=\"inlineResources\" />\r\n <null name=\"scheduleDate\" />\r\n <boolean name=\"normalizeRfc822\">false</boolean>\r\n <array name=\"attachments\">\r\n </array>\r\n <string name=\"id\" />\r\n </object>\r\n <string name=\"action\">deliver</string>\r\n <boolean name=\"returnInfo\">true</boolean>\r\n</"
"object>",
LAST);
web_url("success2010.htm",
"URL=http://wmail4.mail.10086.cn/m/success2010.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wmail4.mail.10086.cn/m/compose2010.htm?sid={p_uid}",
"Snapshot=t13.inf",
"Mode=HTML",
EXTRARES,
"Url=http://images.139cm.com/m/coremail/css/success.css", ENDITEM,
"Url=http://images.139cm.com/m/coremail/images/mail_icons01.gif", ENDITEM,
LAST);
web_submit_data("AutosaveContact.ashx",
"Action=http://g1.mail.10086.cn/addr/apiserver/AutosaveContact.ashx?sid={UserSid}&rnd=0.9378754164703844",
"Method=POST",
"RecContentType=text/javascript",
"Referer=http://g1.mail.10086.cn/welcome.aspx?Sid={UserSid}",
"Snapshot=t14.inf",
"Mode=HTML",
"EncodeAtSign=YES",
ITEMDATA,
"Name=xml", "Value=<AddLastContacts><AddContactsInfo><SerialId>524497767</SerialId><AddrName>15920506503</AddrName><AddrType>E</AddrType><AddrContent>15920506503@139.com</AddrContent><AddrMobile>15920506503</AddrMobile><AddrId>0</AddrId><AddrTitle>222</AddrTitle><ComeFrom>1</ComeFrom></AddContactsInfo></AddLastContacts>", ENDITEM,
LAST);
/*退出*/
web_url("Logout.aspx",
"URL=http://g1.mail.10086.cn/logout/Logout.aspx?sid={UserSid}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t15.inf",
"Mode=HTML",
EXTRARES,
"Url=http://mail.10086.cn/images/sprite_ico.png", "Referer=http://mail.10086.cn/", ENDITEM,
"Url=http://mail.10086.cn/Images/201102111850/lzyzky0c.jpg", "Referer=http://mail.10086.cn/", ENDITEM,
LAST);
return 0;
}