vuser_init()
{
web_set_max_html_param_len("1024");
/* Registering parameter(s) from source task id 122
// {JSESSIONID3} = "939304D9DC8D0AF3784CBACCB8B33A35"
// */
web_reg_save_param("JSESSIONID3",
"LB/IC=jsessionid=",
"RB/IC=\"",
"Ord=1",
"Search=body",
"RelFrameId=1",
LAST);
web_set_sockets_option("SSL_VERSION","TLS");
web_url("login",
"URL=https://×**.300.cn/CAS/login",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
EXTRARES,
"Url=enterprise-cloud.jpg", ENDITEM,
"Url=icon-all.png", ENDITEM,
LAST);
web_submit_form("login;jsessionid={JSESSIONID3}", //都是录制的,要注意选中此处的,然后右键>Replace with a Parameter>将参数名改为JSESSIONID3>OK.
"Snapshot=t6.inf",
ITEMDATA,
"Name=username", "Value=********", ENDITEM,
"Name=password", "Value=********", ENDITEM,
EXTRARES,
"Url=images/confirm.gif", ENDITEM,
LAST);
return 0;
}