|
3#
楼主 |
发表于 2006-2-21 09:31:17
|
只看该作者
#include "as_web.h"
Action()
{
web_url("10.10.80.33",
"URL=http://10.10.80.33/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/portal/images/bg.gif", ENDITEM,
"Url=/portal/images/title_bottom.gif", ENDITEM,
"Url=/portal/images/tl9000.gif", ENDITEM,
"Url=/portal/images/login0.gif", ENDITEM,
"Url=/portal/images/index_10.gif", ENDITEM,
"Url=/portal/images/line.gif", ENDITEM,
LAST);
lr_think_time( 1 );
web_submit_form("login",
"Snapshot=t2.inf",
ITEMDATA,
"Name=account", "Value=yujin", ENDITEM,
"Name=password", "Value=111111", ENDITEM,
"Name=x", "Value=0", ENDITEM,
"Name=y", "Value=0", ENDITEM,
EXTRARES,
"Url=/portal/images/bg.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/title_bottom.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/tl9000.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/index_10.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/line.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/managerheader.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/managerbottom.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
"Url=/portal/images/login0.gif", "Referer=http://10.10.80.33/main.jsp", ENDITEM,
LAST);
web_url("loginseasonal.jsp",
"URL=http://10.10.80.33/loginseasonal.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.10.80.33/main.jsp",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_submit_form("login_2",
"Snapshot=t4.inf",
ITEMDATA,
LAST);
web_url("seasonal",
"URL=http://10.10.80.33/seasonal",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.10.80.33/main.jsp",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=/portal/images/bg.gif", "Referer=http://10.10.80.33/seasonal/title.jsp", ENDITEM,
"Url=/images/webmanage_02.gif", "Referer=http://10.10.80.33/seasonal/title.jsp", ENDITEM,
LAST);
web_link(" ÷ ( )",
"Text= ÷ ( )",
"Snapshot=t6.inf",
EXTRARES,
"Url=images/zq_title_02.gif", "Referer=http://10.10.80.33/seasonalsys/title.jsp", ENDITEM,
"Url=images/manage-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/request-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/plan-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/integration_search-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/report-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/item-1.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
"Url=images/item.gif", "Referer=http://10.10.80.33/seasonalsys/left.jsp", ENDITEM,
LAST);
web_link(" д",
"Text= д",
"Snapshot=t7.inf",
LAST);
lr_start_transaction("今日计划填写");
web_url("frame.jsp",
"URL=http://10.10.80.33/seasonalsys/frame.jsp?globe.target=exec/fastadditem.jsp&itemId=552&planId={PlanID}&dayPlanId={DayPlanId}&endDate=2005-12-08%2023:59:59&starDate=2005-12-08%2000:00:00&appointPlanId={AppointPlanId}&planNum={planNum}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
lr_think_time( 4 );
web_url("itemExec",
"URL=http://10.10.80.33/seasonalsys/itemExec?type=fastItemExec&FILLER_ID=171&ITEM_ID=552&MONTH_PLAN_ID={PlanID}&DAY_PLAN_ID={DayPlanId}&APPOINT_PLAN_ID={AppointPlanId}&TL9K_AMOUNT={planNum}&FILLER=%D3%E0%BD%F7&USER_ID=171&DO_DATE=2005-12-08&EXCEL_UPLOAD_DATE_click=&EXCEL_UPLOAD_DATE_minmax=%3A&DO_TIME=13%3A39&ITEM_DATE=2005-12-08+13%3A39%3A00&imageField.x=43&imageField.y=11",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.10.80.33/seasonalsys/exec/fastadditem.jsp?globe.target=exec/fastadditem.jsp&itemId=552&planId={PlanID}&dayPlanId={DayPlanId}&endDate=2005-12-08%2023:59:59&starDate=2005-12-08%2000:00:00&appointPlanId={AppointPlanId}&planNum={planNum}",
"Snapshot=t9.inf",
"Mode=HTML",
LAST);
web_submit_data("resquery.jsp",
"Action=http://10.10.80.33/seasonalsys/resquery/resquery.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://10.10.80.33/seasonalsys/resquery/resquery.jsp?globe.queryname=zq_appoint_item_exec&globe.action=query&state_id_key=1:5&ITEM_DATE1=2005-12-08&ITEM_DATE2=2005-12-08&ITEM_DATE=2005-12-08",
"Snapshot=t10.inf",
"Mode=HTML",
ITEMDATA,
"Name=item_date", "Value=2005-12-08", ENDITEM,
"Name=globe.action", "Value=query", ENDITEM,
"Name=globe.queryname", "Value=zq_appoint_item_exec", ENDITEM,
"Name=item_date2", "Value=2005-12-08", ENDITEM,
"Name=state_id_key", "Value=1:5", ENDITEM,
"Name=item_date1", "Value=2005-12-08", ENDITEM,
LAST);
lr_end_transaction("今日计划填写", LR_AUTO);
web_url("login_3",
"URL=http://10.10.80.33/login",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.10.80.33/seasonalsys/title.jsp",
"Snapshot=t11.inf",
"Mode=HTML",
EXTRARES,
"Url=/portal/images/bg.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
"Url=/portal/images/title_bottom.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
"Url=/portal/images/tl9000.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
"Url=/portal/images/login0.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
"Url=/portal/images/index_10.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
"Url=/portal/images/line.gif", "Referer=http://10.10.80.33/index.jsp", ENDITEM,
LAST);
lr_think_time( 5 );
web_url("login_4",
"URL=http://10.10.80.33/seasonalsys/login",
"Resource=0",
"RecContentType=text/html",
"Referer=http://10.10.80.33/index.jsp",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
return 0;
} |
|