|
本帖最后由 jiachang 于 2010-9-26 17:11 编辑
录制的脚本:登录后直接修改密码,点击“更改口令”,回放时提示错误如下:
Action.c(46): Error -27995: Requested link ("Text=更改口令") not found [MsgId: MERR-27995]
Action.c(46): web_link("更改口令") highest severity level was "ERROR", 0 body bytes, 0 header bytes [MsgId: MMSG-26388]
界面显示如下:
代码如下:
-
- web_set_max_html_param_len("1024");
- /* Registering parameter(s) from source task id 7
- // {Siebel_Analytic_ViewState2} = "/wEPDwULLTE5MzA2NTM1MDFkZMhW7tsMnr72dyQw1EWe9oRnEdQl"
- // */
- 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://10.1.16.89/LibraryMS/Login.aspx",
- "Resource=0",
- "RecContentType=text/html",
- "Referer=",
- "Snapshot=t1.inf",
- "Mode=HTML",
- LAST);
- web_submit_data("Login.aspx_2",
- "Action=http://10.1.16.89/LibraryMS/Login.aspx",
- "Method=POST",
- "RecContentType=text/html",
- "Referer=http://10.1.16.89/LibraryMS/Login.aspx",
- "Snapshot=t2.inf",
- "Mode=HTML",
- ITEMDATA,
- "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
- "Name=txtAdmin", "Value=tsoft", ENDITEM,
- "Name=txtPwd", "Value=111", ENDITEM,
- "Name=txtCode", "Value=", ENDITEM,
- "Name=btnLogin", "Value=登录", ENDITEM,
- "Name=__EVENTVALIDATION", "Value=/wEWBgLH06DZCwKN8+WYBgKd+7qdDgLChPzDDQKC3IeGDAKQ9M/rBTMz5cP3aLfsQzbX86Jne1ixRdMJ", ENDITEM,
- EXTRARES,
- "Url=WebResource.axd?d=sQsZ8AfHHfX5j7Lh0K2vYg2&t=633936346575142915", "Referer=http://10.1.16.89/LibraryMS/Default.aspx", ENDITEM,
- "Url=WebResource.axd?d=kEe3vR9BO-LC5GNwMzINFw2&t=633936346575142915", "Referer=http://10.1.16.89/LibraryMS/Default.aspx", ENDITEM,
- LAST);
- web_link("更改口令",
- "Text=更改口令",
- "Ordinal=4",
- "Snapshot=t3.inf",
- EXTRARES,
- "Url=../WebResource.axd?d=AUCc6fLBJoCdTIAVjKbpLdUfGRT6i7o6BYHSrPmxia81&t=633936346575142915","Referer=http://10.1.16.89/libraryMS/Common/ChanagePwd.aspx",ENDITEM,
- "Url=../images/genggaimima.gif","Referer=http://10.1.16.89/libraryMS/Common/ChanagePwd.aspx",ENDITEM,
- LAST);
- return 0;
复制代码 |
|