关于CAS 的概念,见链接
需要增加4个关联函数,初次加载页面时取cookie和it1,输入账号密码点击登录时,取ticketGrantingTicketId和it2
实际上前后台完成两次校验,
//Correlation comment - Do not change!Original value='_cCAEABC83-C990-F50E-E1D5-47A39DBBFC49_k2E4795DE-DF9E-C968-290C-2B8D1317CD15' Name ='IT1' web_reg_save_param_ex( "ParamName=IT1", "LB=name="lt" value="", "RB=" ", SEARCH_FILTERS, "Scope=All", "IgnoreRedirections=Yes", "RequestUrl=*/login*", LAST); //Correlation comment - Do not change!Original value='WTWmM4E2SfD1vDXVWTL0H8nYlWyY5FeHhTtubbrQiSWPySdSD5wc!-32010790' Name ='Cookie' web_reg_save_param_ex( "ParamName=Cookie", "LB=Set-Cookie: CASCOOKIENAME=", "RB=; path", SEARCH_FILTERS, "Scope=All", "IgnoreRedirections=Yes", "RequestUrl=*/login*", LAST); web_url("main.jsp", "URL=http://{UrlAddress}/pcis//core/main.jsp", "Resource=0", "RecContentType=text/html", "Referer=", "Snapshot=t13.inf", "Mode=HTML", EXTRARES, "URL=/cas/images/bg_all.jpg", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM, "URL=/cas/images/loding-bd.png", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM, "URL=/cas/images/bt_button.jpg", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", ENDITEM, LAST); lr_think_time(5); //Correlation comment - Do not change!Original value='_cCAEABC83-C990-F50E-E1D5-47A39DBBFC49_k4F470861-B210-38CC-8694-49DC53CAAFE3' Name ='IT2' web_reg_save_param_ex( "ParamName=IT2", "LB=name="lt" value="", "RB=" ", SEARCH_FILTERS, "Scope=All", "RequestUrl=*/login;CASCOOKIENAME={Cookie}*", LAST); //Correlation comment - Do not change!Original value='TGT-554-gbf7fAR41apOcy4YG1cnZ9WyYiyOcN6O0Z6d4rJOUmbaw6fYZZ-cas' Name ='Cookie' web_reg_save_param_ex( "ParamName=TGT", "LB=Set-Cookie: CASTGC=", "RB=; path", SEARCH_FILTERS, "Scope=All", "RequestUrl=*/login;CASCOOKIENAME={Cookie}*", LAST); web_submit_data("login;CASCOOKIENAME={Cookie}", "Action=http://{UrlAddress}/cas/login;CASCOOKIENAME={Cookie}?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", "Method=POST", "RecContentType=text/html", "Referer=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", "Snapshot=t14.inf", "Mode=HTML", ITEMDATA, "Name=username", "Value=137100039", ENDITEM, "Name=pwd", "Value=11", ENDITEM, "Name=password", "Value=6512bd43d9caa6e02c990b0a82652dca", ENDITEM, "Name=Submit", "Value=", ENDITEM, "Name=lt", "Value={IT1}", ENDITEM, "Name=_eventId", "Value=submit", ENDITEM, "Name=mac", "Value=", ENDITEM, "Name=ip", "Value=10.28.1.108", ENDITEM, LAST); web_submit_data("login", "Action=http://{UrlAddress}/cas/login?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", "Method=POST", "RecContentType=text/html", "Referer=http://{UrlAddress}/cas/login;CASCOOKIENAME={Cookie}?service=http%3A%2F%2F{UrlAddress}%2Fpcis%2Fj_spring_security_check", "Snapshot=t15.inf", "Mode=HTML", ITEMDATA, "Name=username", "Value=137100039", ENDITEM, "Name=pwd", "Value=11", ENDITEM, "Name=password", "Value=6512bd43d9caa6e02c990b0a82652dca", ENDITEM, "Name=ticketGrantingTicketId", "Value={TGT}", ENDITEM, "Name=CASOPDPT", "Value=37", ENDITEM, "Name=Submit", "Value=", ENDITEM, "Name=lt", "Value={IT2}", ENDITEM, "Name=_eventId", "Value=submit", ENDITEM, "Name=mac", "Value=", ENDITEM, "Name=ip", "Value=10.28.1.108", ENDITEM, EXTRARES, "URL=../pcis/core/skin/default/blue_skin/left.gif", "Referer=http://{UrlAddress}/pcis/core/leftup.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/zs_header_03.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_03.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_02.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_07.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_09.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_11.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/header_13.gif", "Referer=http://{UrlAddress}/pcis/core/header.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/main_40.gif", "Referer=http://{UrlAddress}/pcis/core/bottom.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/images/leftmenubg.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp", ENDITEM, "URL=../pcis/core/skin/default/blue_skin/menubg.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp", ENDITEM, LAST); web_add_cookie("00000000webfx-tree-object-3=1; DOMAIN={UrlAddress}"); web_url("left.jsp", "URL=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", "Resource=0", "RecContentType=text/html", "Referer=http://{UrlAddress}/pcis/core/header.jsp", "Snapshot=t16.inf", "Mode=HTML", EXTRARES, "URL=skin/default/blue_skin/images/main_21.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/down.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/I.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/icon.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/T.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/L.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/skin1_left_3.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/up.gif", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, "URL=skin/default/blue_skin/images/blank.png", "Referer=http://{UrlAddress}/pcis/core/left.jsp?opCde=015", ENDITEM, LAST);