TA的每日心情 | 奋斗 2017-4-18 15:25 |
---|
签到天数: 6 天 连续签到: 1 天 [LV.2]测试排长
|
4#
楼主 |
发表于 2005-9-9 15:41:05
|
只看该作者
Action()
{
web_set_max_html_param_len("1024");
web_url("192.168.2.2:8000",
"URL=http://192.168.2.2:8000/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/login_3_3.gif", ENDITEM,
LAST);
lr_think_time( 3 );
web_submit_form("loginAction.any",
"Snapshot=t2.inf",
ITEMDATA,
"Name=userName", "Value={帐号}", ENDITEM,
"Name=password", "Value={密码}", ENDITEM,
"Name=Submit", "Value=登录", ENDITEM,
EXTRARES,
"Url=/privateuser/images/zgdx_bg.gif", "Referer=http://192.168.2.2:8000/privateuser/head.htm", ENDITEM,
"Url=/privateuser/images/998_10.gif", "Referer=http://192.168.2.2:8000/privateuser/mainmid.htm", ENDITEM,
"Url=/privateuser/images/menu_bg_001.gif", "Referer=http://192.168.2.2:8000/privateuser/leftmenu.jsp", ENDITEM,
LAST);
web_url("privateContactGroupAction.any",
"URL=http://192.168.2.2:8000/privateuser/privatecontact/privateContactGroupAction.any?jump=privateGroupTree",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/leftmenu.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
/* Registering parameter(s) from source task id 0
// {groupId2} = "0"
// */
web_reg_save_param("groupId2",
"LB/IC=<input type=\"hidden\" name=\"groupId\" value=\"",
"RB/IC=\">",
"Ord=1",
"Search=body",
LAST);
web_url("userbusinessinfoAction.any",
"URL=http://192.168.2.2:8000/privateuser/privatecontact/userbusinessinfoAction.any?jump=privateUserUpdateInput&groupId=0",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/mainbody.htm",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_submit_data("privateContactGroupAction.any_2",
"Action=http://192.168.2.2:8000/privateuser/privatecontact/privateContactGroupAction.any",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/privatecontact/userbusinessinfoAction.any?jump=privateUserUpdateInput&groupId=0",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=jump", "Value=privateGroupAddInput", ENDITEM,
"Name=groupId", "Value={groupId2}", ENDITEM,
LAST);
lr_think_time( 4 );
web_submit_form("privateContactGroupAction.any_3",
"Snapshot=t6.inf",
ITEMDATA,
"Name=name", "Value=测试1", ENDITEM,
LAST);
web_url("privateContactGroupAction.any_4",
"URL=http://192.168.2.2:8000/privateuser/privatecontact/privateContactGroupAction.any?jump=privateGroupTree",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/leftmenu.jsp",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
/* Registering parameter(s) from source task id 0
// {groupId3} = "619"
// */
web_reg_save_param("groupId3",
"LB/IC=<input type=\"hidden\" name=\"groupId\" value=\"",
"RB/IC=\"/>",
"Ord=1",
"Search=body",
LAST);
lr_save_string("groupId3","{组名}");
web_url("privateContactAction.any",
"URL=http://192.168.2.2:8000/privateuser/privatecontact/privateContactAction.any?jump=privateContactAddInput&groupId={组名}&page=1&contactInfoType=31",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/privatecontact/privateContactGroupAction.any?jump=privateGroupAdd",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
lr_think_time( 9 );
web_submit_data("privateContactAction.any_2",
"Action=http://192.168.2.2:8000/privateuser/privatecontact/privateContactAction.any",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.2.2:8000/privateuser/privatecontact/privateContactAction.any?jump=privateContactAddInput&groupId={组名}&page=1&contactInfoType=31",
"Snapshot=t9.inf",
"Mode=HTML",
ITEMDATA,
"Name=jump", "Value=privateContactAdd", ENDITEM,
"Name=groupId", "Value={组名}", ENDITEM,
"Name=page", "Value=1", ENDITEM,
"Name=contactInfoType", "Value=31", ENDITEM,
"Name=code", "Value=1213", ENDITEM,
"Name=name", "Value=1313", ENDITEM,
"Name=alias", "Value=", ENDITEM,
"Name=position", "Value=", ENDITEM,
"Name=email", "Value=", ENDITEM,
"Name=postCode", "Value=333333", ENDITEM,
"Name=webPage", "Value=", ENDITEM,
"Name=companyName", "Value=ddd ", ENDITEM,
"Name=phone", "Value=", ENDITEM,
"Name=province", "Value=重庆", ENDITEM,
"Name=city", "Value=重庆", ENDITEM,
"Name=address", "Value=", ENDITEM,
"Name=fax", "Value=", ENDITEM,
"Name=mobile", "Value=", ENDITEM,
"Name=pas", "Value=057112345678", ENDITEM,
"Name=qq", "Value=", ENDITEM,
"Name=msn", "Value=", ENDITEM,
"Name=rever", "Value=1", ENDITEM,
LAST);
return 0;
[ Last edited by morpheues_12 on 2005-9-9 at 16:10 ] |
|