LoadRunner tests the 139 email script, HTTP/html protocol, and N multi-Association
Action ()
{
Web_url ("mail.10086.cn ",
"URLs = 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? & Amp; dcsdat = 1303387016231 & amp; dcssip = mail.10086.cn & amp; 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 );
/* Log on */
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 ("getaskcount. 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 = % 3 creports % 3E % 3 cbehavior + id % 3d '000000' + extendid % 3d '0' + mid % 3d '25' + index % 3d '1 '+ pageid % 3d '000000' + actiontype % 3d '20' % 2f % 3E % 3C % 2 freports % 3e ",
Last );
/* Write a letter */
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,
"Url1_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 = % 3 creports % 3E % 3 cbehavior + id % 3d '000000' + extendid % 3d '0' + mid % 3d '14' + index % 3d '2 '+ pageid % 3d '000000' + actiontype % 3d '20' % 2f % 3E % 3C % 2 freports % 3e ",
Last );
/* Send */
// 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 \ "> & quot; XXXX & quot; & lt; XXXX@139.com & gt; </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 \"> & lt; div & gt; & lt ;/"
"Div & gt; </string> \ r \ n <int name = \ "Priority \"> 3 </int> \ r \ n <Boolean name = \ "requestreadreceept \"> 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 & gt; <addrmobile> 15920506503 </addrmobile> <addrid> 0 </addrid> <addrtitle> 222 </addrtitle> <comefrom> 1 </comefrom> </addcontactsinfo> </addlastcontacts> ", enditem,
Last );
/* Exit */
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;
}