|
Action1()
{
int i;
web_url("logon.jsp",
"URL=http://192.168.1.225/logon.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=/images/back.gif", ENDITEM,
"Url=/images/back2.gif", ENDITEM,
LAST);
lr_think_time( 2 );
web_submit_form("logon.logon.submit",
"Snapshot=t2.inf",
ITEMDATA,
"Name=userId", "Value=u", ENDITEM,
"Name=PWD", "Value=", ENDITEM,
"Name=Encoding", "Value=--中文简体--", ENDITEM,
"Name=Submit", "Value=登 录", ENDITEM,
EXTRARES,
"Url=/images/back2.gif", "Referer=http://192.168.1.225/logon.jsp", ENDITEM,
"Url=/images/back.gif", "Referer=http://192.168.1.225/logon.jsp", ENDITEM,
LAST);
lr_think_time( 6 );
web_add_cookie("nodestroe_in_cookie=true; DOMAIN=192.168.1.225");
web_add_cookie("node0=t; DOMAIN=192.168.1.225");
web_url("SMSMessage.SendSms.load");
"
lr_think_time( 9 );
for(i=1;i<5;i++)
{
web_submit_data("SMSMessage.SendSms.submit",
"Action=http://192.168.1.225/SMSMessage.SendSms.submit",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.1.225/SMSMessage.SendSms.load",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
"Name=actionType", "Value=send", ENDITEM,
"Name=userId", "Value=", ENDITEM,
"Name=msgRecipientsId", "Value=", ENDITEM,
"Name=taskId", "Value=", ENDITEM,
"Name=msgOrgId", "Value=", ENDITEM,
"Name=msgUserId", "Value=", ENDITEM,
"Name=msgGroupId", "Value=", ENDITEM,
"Name=selectedUser", "Value=", ENDITEM,
"Name=msgUser", "Value={tl}", ENDITEM,
"Name=msgSubject", "Value={tt}", ENDITEM,
"Name=priority", "Value=1", ENDITEM,
"Name=isReply", "Value=1", ENDITEM,
"Name=isMsgSuffix", "Value=1", ENDITEM,
"Name=sendType", "Value=0", ENDITEM,
"Name=msgContent", "Value=1222221", ENDITEM,
"Name=sendY", "Value=2006", ENDITEM,
"Name=sendM", "Value=01", ENDITEM,
"Name=sendD", "Value=11", ENDITEM,
"Name=sendH", "Value=16", ENDITEM,
"Name=sendMi", "Value=03", ENDITEM,
EXTRARES,
"Url=/images/btnPlus.gif", ENDITEM,
"Url=/images/btnMinus.gif", ENDITEM,
"Url=/images/backnew3.gif", ENDITEM,
"Url=/images/Channel.gif", ENDITEM,
"Url=/images/dotlinev.gif", ENDITEM,
"Url=/images/MENU.jpg", ENDITEM,
"Url=/images/Channel_Bg.gif", ENDITEM,
"Url=/images/btnMinus.gif", ENDITEM,
"Url=/images/appfolder.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/appfolder.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/btnPlus.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/app.gif", ENDITEM,
"Url=/images/btnPlus.gif", ENDITEM,
LAST);
}这是简要的程序的脚本。For语句上上楼的你说要改改成什么样的?写一下 |
|