|
4#
楼主 |
发表于 2005-11-8 09:39:53
|
只看该作者
哦,好的,那我把运行的脚本给大家看看
Action()
{
web_reg_find("Text=Welcome",
LAST);
web_set_max_html_param_len("2088");
web_url("signin.aspx",
"URL=http://wq/bcmis/signin.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=images/sj.jpg", ENDITEM,
"URL=images/di_signin.jpg", ENDITEM,
"URL=images/bt_di.jpg", ENDITEM,
"URL=images/button_di.jpg", ENDITEM,
LAST);
web_reg_find("Text=Welcome",
LAST);
web_submit_form("signin.aspx_2",
"Snapshot=t2.inf",
ITEMDATA,
"Name=uid", "Value=admin", ENDITEM,
"Name=pwd", "Value=123", ENDITEM,
"Name=Button2", "Value=Login", ENDITEM,
EXTRARES,
"URL=images/title1.jpg", "Referer=http://wq/bcmis/Index.aspx", ENDITEM,
"URL=images/succeed.jpg", "Referer=http://wq/bcmis/Page/Secceed.aspx", ENDITEM,
LAST);
web_reg_find("Text=Menu",
LAST);
web_url("menu.aspx",
"URL=http://wq/bcmis/Page/menu.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wq/bcmis/Index.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"URL=../Images/base.gif", ENDITEM,
"URL=../Images/plus.gif", ENDITEM,
"URL=../Images/folder.gif", ENDITEM,
"URL=../Images/line.gif", ENDITEM,
"URL=../Images/join.gif", ENDITEM,
"URL=../Images/page.gif", ENDITEM,
"URL=../Images/joinbottom.gif", ENDITEM,
"URL=../Images/plusBottom.gif", ENDITEM,
"URL=../Images/empty.gif", ENDITEM,
"URL=../Images/folderopen.gif", ENDITEM,
"URL=../Images/minus.gif", ENDITEM,
LAST);
web_reg_find("Text=Query_Appoint_Examinee",
LAST);
/* Registering parameter(s) from source task id 34
// {Siebel_Analytic_ViewState7} = "dDwtMTA4NTQ0NTk4NTt0PDtsPGk8MT47PjtsPHQ8O2w8aTwxND47aTw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E2OzIwMDUtMDctMjM7MjAwNS0wOC0wNjsyMDA1LTA4LTEzOzIwMDUtMDgtMjA7MjAwNS0wOS0wMzsyMDA1LTA5LTEwOzIwMDUtMDktMTc7MjAwNS0xMC0xNTsyMDA1LTEwLTIyOzIwMDUtMTAtMjk7MjAwNS0xMS0xMjsyMDA1LTExLTE5OzIwMDUtMTEtMjY7MjAwNS0xMi0wMzsyMDA1LTEyLTEwOzIwMDUtMTItMTc7Pj47Pjs7Pjt0PHQ8cDxwPGw8RGF0YU1lbWJlcjtEYXRhVGV4dEZpZWxkO0RhdGFWYWx1ZUZpZWxkOz47bDxUZXN0Q2VudGVyO0pjO0tkZG07Pj47Pjt0PGk8MzE+O0A8QUxMO0JlaWppbmc7Q2hhbmdjaHVuO0NoYW5nc2hhO0NoZW5nZHU7Q2hvbmdxaW5nO0RhbGlhbjtGdXpob3U7R3Vhbmd6aG91O0hhaWtvdTtIYW5nemhvdTtIYXJiaW47SGVmZWk7SmluYW47SlVTVDtLdW5taW5nO05hbmppbmc7TmFubmluZztOaW5nQm87T3RoZXI7UWluZ2RhbztTaGFuZ2hhaTtTaGVueWFuZztTaGVuemhlbjtTSUxDO1RpYW5KaW47VXJ1bXFpO1d1aGFuO1hpYW1lbjtYaWFuO1poZW5nemhvdTs+O0A8XGU7MTsxMzsxMTsyNTsyNDs0OzIwOzE4OzIyOzE2OzM7MTc7NjsxMDAwMzsyNjsxNTsyMzsxMDAwMjswOzc7MTQ7NTsxOTsxMDAwMTsyOzk7MTI7MjE7ODsxMDs+Pjs+Ozs+Oz4+Oz4+O2w8QUxMQk9YOz4+tdo/MoK72m3nOddMvaTfjbR4I38="
// */
web_reg_save_param("Siebel_Analytic_ViewState7",
"LB/IC=ViewState\" value=\"",
"RB/IC=\"",
"Ord=1",
"RelFrameId=1",
"Search=Body",
LAST);
web_url("query_appoint_examinee.aspx",
"URL=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://wq/bcmis/Page/menu.aspx",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"URL=../Script/NameSpaces/Js.js", "Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1", ENDITEM,
"URL=../Script/System/Object.js", "Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1", ENDITEM,
"URL=../Script/System/HTML.js", "Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1", ENDITEM,
"URL=../Script/Grid/Grid.js", "Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1", ENDITEM,
"URL=../Images/Currow.gif", "Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1", ENDITEM,
LAST);
lr_rendezvous("集合点1");
lr_start_transaction("表单提交开始");
web_reg_find("Text=Query_Appoint_Examinee",
LAST);
web_submit_data("query_appoint_examinee.aspx_2",
"Action=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1",
"Method=POST",
"RecContentType=text/html",
"Referer=http://wq/bcmis/page/query_appoint_examinee.aspx?first=1",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=__EVENTTARGET", "Value=", ENDITEM,
"Name=__EVENTARGUMENT", "Value=", ENDITEM,
"Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState7}", ENDITEM,
"Name=name", "Value=", ENDITEM,
"Name=family", "Value=", ENDITEM,
"Name=neeaUser", "Value=", ENDITEM,
"Name=neeaTest", "Value=", ENDITEM,
"Name=candidate", "Value=", ENDITEM,
"Name=sessionDate", "Value=2005-01-22", ENDITEM,
"Name=year_start", "Value=2005", ENDITEM,
"Name=month_start", "Value=11", ENDITEM,
"Name=date_start", "Value=7", ENDITEM,
"Name=finalDate_start", "Value=20051107", ENDITEM,
"Name=testCenter", "Value=1", ENDITEM,
"Name=address", "Value=", ENDITEM,
"Name=Submit1", "Value=Query", ENDITEM,
EXTRARES,
"URL=../Images/bt_di.jpg", "Referer=http://wq/bcmis/page/Query_Appoint_Examinee.aspx", ENDITEM,
LAST);
lr_end_transaction("表单提交结束", LR_AUTO);
return 0;
}
我现在还不太会看脚本,脚本是录制的也没改过,我开始事务和结束事务都添加了啊 |
|