|
帮忙看下这段脚本有什么问题,实际是没有真正登录上服务器,请教怎么解决一下啊,先谢过了
Action()
{
web_url("iotsso.rkcloud.cn",
"URL=https://iotsso.rkcloud.cn/",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
//Correlation comment - Do not change!Original value='LT-135-ngAxrbSuld7W5sb6Lr7gDz2ckXeGUz' Name ='CorrelationParameter_1'
web_reg_save_param_ex(
"ParamName=CorrelationParameter_1",
"LB= value=\"",
"RB=\" ",
SEARCH_FILTERS,
"Scope=Body",
"IgnoreRedirections=Yes",
"RequestUrl=*/login*",
LAST);
web_url("butt_login.jpg",
"URL=https://iotsso.rkcloud.cn/home",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=https://iotsso.rkcloud.cn/",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_start_transaction("login");
web_submit_data("login",
"Action=https://iotsso.rkcloud.cn/cas/login?service=http%3A%2F%2Fiot.rkcloud.cn%2Fj_spring_cas_security_check",
"Method=POST",
"EncodeAtSign=YES",
"TargetFrame=",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=username", "Value=iotadmin@intel.com", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=lt", "Value={CorrelationParameter_1}", ENDITEM,
"Name=execution", "Value=e1s1", ENDITEM,
"Name=_eventId", "Value=submit", ENDITEM,
"Name=x", "Value=73", ENDITEM,
"Name=y", "Value=15", ENDITEM,
LAST);
lr_end_transaction("login", LR_AUTO);
lr_think_time(8);
web_url("butt_degnlu_login.jpg",
"URL=http://iot.rkcloud.cn/intel/admin",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/;jsessionid=AAF6528B716A8BAF96265BFDB188BCB4",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"URL=../casauth/invoke.js", ENDITEM,
"URL=../common/banner/?t=0.7172612986042944", ENDITEM,
"URL=../wgt/tenant/onlineUser/ajax/getData?num=10", "Referer=http://iot.rkcloud.cn/wgt/tenant/onlineUser", ENDITEM,
"URL=../wgt/tenant/deviceDataChart/ajax/deviceDataInfo?type=day", "Referer=http://iot.rkcloud.cn/wgt/tenant/deviceDataChart", ENDITEM,
"URL=../wgt/tenant/deviceTypeChart/ajax/deviceTypeInfo", "Referer=http://iot.rkcloud.cn/wgt/tenant/deviceTypeChart", ENDITEM,
LAST);
web_find("web_find",
"What=杰克",
LAST);
web_url("frameProxy",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.6547082791665605",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/tenantInfo",
"Snapshot=t5.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_2",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.5198000115669448",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/onlineUser",
"Snapshot=t6.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_3",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.40863390709409364",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/onlineUser",
"Snapshot=t7.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_4",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.08237723006687447",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/deviceTypeChart",
"Snapshot=t8.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_5",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.016437929716466737",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/appLink",
"Snapshot=t9.inf",
"Mode=HTML",
EXTRARES,
"URL=../wgt/tenant/alarmDataChart/ajax/alarmData", "Referer=http://iot.rkcloud.cn/wgt/tenant/alarmDataChart", ENDITEM,
LAST);
web_url("frameProxy_6",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.6570035314066323",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/alarmDataChart",
"Snapshot=t10.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_7",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.709217612812775",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/opLog",
"Snapshot=t11.inf",
"Mode=HTML",
LAST);
web_url("frameProxy_8",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.06307672151651567",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/deviceDataChart",
"Snapshot=t12.inf",
"Mode=HTML",
LAST);
/* web_url("tenantData",
"URL=http://iot.rkcloud.cn/wgt/tenant/tenantData",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/intel/admin",
"Snapshot=t13.inf",
"Mode=HTML",
LAST);
*/
web_url("frameProxy_9",
"URL=http://iot.rkcloud.cn/common/frameProxy?t=0.6798932130572582",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/wgt/tenant/tenantData",
"Snapshot=t14.inf",
"Mode=HTML",
EXTRARES,
"URL=../static/css/images/ui-bg_flat_75_ffffff_40x100.png", "Referer=http://iot.rkcloud.cn/static/css/jquery-ui-1.9.2.custom.min.css", ENDITEM,
LAST);
web_add_cookie("JSESSIONID=C0749B2D75DF6B34EF9B6D568E119916; DOMAIN=iotsso.rkcloud.cn");
web_url("doLogout",
"URL=http://iot.rkcloud.cn/doLogout",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://iot.rkcloud.cn/intel/admin",
"Snapshot=t15.inf",
"Mode=HTML",
LAST);
return 0;
} |
|