|
5#
楼主 |
发表于 2007-5-24 11:45:12
|
只看该作者
我把脚本贴上来
前三个是我自己关联的,后两个是自动关联的
Action()
{
web_reg_save_param("fileName","LB=input type=\"hidden\" name=\"fileName\" value=","RB=>",LAST);
web_reg_save_param("lt","LB=input type=\"hidden\" name=\"lt\" value=","RB=>",LAST);
web_url("scm",
"URL=http://192.168.1.11:8080/scm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_rendezvous("loggingin");
lr_start_transaction("logging in");
web_reg_save_param("ticket","LB=ticket=","RB=>",LAST);
// [WCSPARAM WCSParam_Diff1 4 html] Parameter {WCSParam_Diff1} created by Correlation Studio
web_reg_save_param( "WCSParam_Diff1", "LB=<", "RB=>", "Ord=1", "Search=Body", "RelFrameId=1", LAST );
// [WCSPARAM WCSParam_Diff2 4 head] Parameter {WCSParam_Diff2} created by Correlation Studio
web_reg_save_param( "WCSParam_Diff2", "LB=html>\n<", "RB=>", "Ord=1", "Search=Body", "RelFrameId=1", LAST );
web_submit_data("login",
"Action=https://www.seekcall.com:8443/cas/login?service=http%3A%2F%2F192.168.1.11%3A8080%2Fscm%2F",
"Method=POST",
"RecContentType=text/html",
"Referer=https://www.seekcall.com:8443/cas/login?service=http%3A%2F%2F192.168.1.11%3A8080%2Fscm%2F",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=fileName", "Value={fileName}", ENDITEM,
"Name=lt", "Value={lt}", ENDITEM,
"Name=username", "Value=xs80$#*@$it01", ENDITEM,
"Name=companyCode", "Value=it01", ENDITEM,
"Name=uname", "Value={wgxsry_name}", ENDITEM,
"Name=password", "Value={wgxsry_password}", ENDITEM,
"Name=validateCode", "Value=16888", ENDITEM,
LAST);
web_url("scm_2",
"URL=http://192.168.1.11:8080/scm/?ticket={ticket}",
"Resource=0",
"RecContentType=text/{WCSParam_Diff1}",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
web_url("authentication.action",
"URL=http://192.168.1.11:8080/scm/authentication.action",
"Resource=0",
"RecContentType=text/{WCSParam_Diff1}",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"Url=web/newPage/images/guideThreeBg.jpg", ENDITEM,
"Url=web/newPage/images/sideContentsFootimg.jpg", ENDITEM,
"Url=web/newPage/images/sideContentsBg.jpg", ENDITEM,
"Url=web/newPage/images/{WCSParam_Diff2}BgLine.jpg", ENDITEM,
"Url=web/newPage/images/oneMenuleft.gif", ENDITEM,
"Url=web/newPage/images/oneMenuOnclickright.gif", ENDITEM,
"Url=web/newPage/images/oneMenuOnclickleft.gif", ENDITEM,
"Url=web/newPage/images/ahover.gif", ENDITEM,
"Url=web/newPage/images/sideLayoutTitle.jpg", ENDITEM,
"Url=web/newPage/images/sideLumpTitle.jpg", ENDITEM,
"Url=web/newPage/images/logo.jpg", ENDITEM,
"Url=web/newPage/images/oneMenuright.gif", ENDITEM,
LAST);
web_find("web_find",
"RightOf=20",
"What=07",
LAST);
lr_end_transaction("logging in", LR_AUTO);
return 0; |
|