求助,LR录制上传文件动作的时候就挂掉
大概界面是这样的,选择的协议是web(http/html)协议。一点击这个浏览。IE8就关闭了。Action()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 3
// {Siebel_Analytic_ViewState2} = "/wEPDwUJMjA4NTkzMTcyZGSsiaXmT7guBP3hY/O1HbvRivSwWy9G/E2hIHTuQRdbTg=="
// */
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=http://192.168.1.85/Login/Login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=../Styles/reset.css", ENDITEM,
"Url=../Styles/960.css", ENDITEM,
"Url=../images/icons/spech_bubbles.png", ENDITEM,
"Url=../images/icons/post_card.png", ENDITEM,
"Url=../images/icons/create_write.png", ENDITEM,
"Url=../images/basic/arrow_mainnav.png", ENDITEM,
"Url=../images/basic/bg-content.png", ENDITEM,
LAST);
lr_think_time(18);
web_url("Checkcode.aspx",
"URL=http://192.168.1.85/Login/Checkcode.aspx?checkCode=88Y4",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
web_submit_data("CheckSubmit.aspx",
"Action=http://192.168.1.85/Login/CheckSubmit.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
"EncodeAtSign=YES",
ITEMDATA,
"Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
"Name=password", "Value=vol0227", ENDITEM,
"Name=checkcode", "Value=88Y4", ENDITEM,
"Name=type", "Value=login", ENDITEM,
LAST);
lr_think_time(6);
web_url("CheckImage.aspx",
"URL=http://192.168.1.85/Login/CheckImage.aspx?time=Mon%20Dec%2019%2014:39:11%20UTC+0800%202011",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
lr_think_time(7);
web_url("Checkcode.aspx_2",
"URL=http://192.168.1.85/Login/Checkcode.aspx?checkCode=UR2T",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_submit_data("CheckSubmit.aspx_2",
"Action=http://192.168.1.85/Login/CheckSubmit.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t6.inf",
"Mode=HTML",
"EncodeAtSign=YES",
ITEMDATA,
"Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
"Name=password", "Value=vol0227", ENDITEM,
"Name=checkcode", "Value=UR2T", ENDITEM,
"Name=type", "Value=login", ENDITEM,
LAST);
web_submit_data("Login.aspx_2",
"Action=http://192.168.1.85/Login/Login.aspx",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.85/Login/Login.aspx",
"Snapshot=t7.inf",
"Mode=HTML",
ITEMDATA,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
"Name=email", "Value=xiuju_lan@sina.cn", ENDITEM,
"Name=password", "Value=vol0227", ENDITEM,
"Name=checkcode", "Value=UR2T", ENDITEM,
EXTRARES,
"Url=../images/icons/create_PDF.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/s-upload.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/copylink.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/copy.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/upload.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/refresh.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/test.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/open.gif", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../Styles/ui-lightness/jquery.ui.core.css", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/icons/trashcan.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/DownArrow-14pt.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
"Url=../images/basic/arrow-close.png", "Referer=http://192.168.1.85/forms/forms.aspx", ENDITEM,
LAST);
web_url("FormManager_Test.aspx",
"URL=http://192.168.1.85/forms/FormManager_Test.aspx?time=1324276759682",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85/forms/forms.aspx",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_url("showforms.aspx",
"URL=http://192.168.1.85/forms/showforms.aspx?page=1&sortexp=2&sortdirect=1&pagesize=10&time=1324276760150",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.1.85/forms/forms.aspx",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
return 0;
}
这个是整段的action脚本
页:
[1]