|
只录制了一个登录的脚本,脚本如下:
vuser_init:
vuser_init()
{
web_add_cookie("squirrelmail_language=zh_CN; DOMAIN=mail.41.com");
web_url("mail.41.com",
"URL=http://mail.41.com/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/webmail/plugins/html_mail/fckeditor/editor/js/fckeditorcode_ie.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/fckconfig.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/fck_editor.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/css/fck_editorarea.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/fck_strip.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.buttonarrow.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.buttonbg.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/plugins/html_mail/fckeditor/editor/skins/silver/images/toolbar.start.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/WdatePicker.js", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/WdatePicker.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/default/datepicker.css", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/webmail/js/My97DatePicker/My97DatePicker/skin/default/img.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/bg.jpg", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/wrap_bg.jpg", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
"Url=/skin4/images/line.gif", "Referer=http://mail.41.com/webmail/src/login.php", ENDITEM,
LAST);
web_url("fckeditor.html",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Normal",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_url("fckeditor.html_2",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/editor/fckeditor.html?InstanceName=body&Toolbar=Default",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("fckstyles.xml",
"URL=http://mail.41.com/webmail/plugins/html_mail/fckeditor/fckstyles.xml",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_url("My97DatePicker.htm",
"URL=http://mail.41.com/webmail/js/My97DatePicker/My97DatePicker/My97DatePicker.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
lr_start_transaction("login");
web_submit_data("redirect.php",
"Action=http://mail.41.com/webmail/src/redirect.php",
"Method=POST",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/login.php",
"Snapshot=t6.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=11", ENDITEM,
"Name=secretkey", "Value=abc+123", ENDITEM,
"Name=js_autodetect_results", "Value=0", ENDITEM,
"Name=just_logged_in", "Value=1", ENDITEM,
"Name=domain", "Value=41.com", ENDITEM,
EXTRARES,
"Url=/images/blue_bg_header.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_cn.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_hk.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/ico_en.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_leftbg.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_lefttop.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_receive.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_write.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_line_side.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_main.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_ico_language.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/blue_bg_mainleft.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/treeview-famfamfam-line.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/inbox_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/draft_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/sent_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/trash_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=../include/images/spam_folder.gif", "Referer=http://mail.41.com/webmail/src/webmail.php", ENDITEM,
"Url=/images/news_header.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=/images/news_footer.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../plugins/html_mail/fckeditor/editor/lang/zh-cn.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/cancel.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../js/My97DatePicker/My97DatePicker/lang/zh-cn.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/att_cn.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l0.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l1.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l2.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l3.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l4.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l5.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l6.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l7.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l8.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l9.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l10.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l11.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l12.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l13.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l14.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l15.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/uploadify/uploadify.swf", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../letter/l16.gif", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/style/jquery.autocomplete.css", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
"Url=../include/jquery.autocomplete.js", "Referer=http://mail.41.com/webmail/src/firstpage.php", ENDITEM,
LAST);
web_custom_request("get_init_addr.php",
"URL=http://mail.41.com/webmail/src/get_init_addr.php",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://mail.41.com/webmail/src/webmail.php",
"Snapshot=t7.inf",
"Mode=HTML",
"EncType=",
LAST);
lr_end_transaction("login",LR_AUTO);
return 0;
}
按F5运行时,回放日志就会报如下错误:
Fatal Error -32989: LoadLibrary 失败,返回代码=126 [MsgId: MERR-32989]
Fatal Error -26000: xfbLrwiWebInfraGlobalInitOK failed [MsgId: MERR-26000]
警告: 扩展 lrwreplaymain.dll 报告在调用函数 ExtPerProcessInitialize 时出现错误 -1
错误: 线程上下文: 调用驱动程序的服务失败。原因 – 线程上下文未在此线程上初始化。
请同行们帮帮忙哦,谢谢 |
|