|
Action()
{
web_set_max_html_param_len("1024");
web_reg_find("Text=login()",
"SaveCount=para_count",
LAST);
web_url("Login.aspx",
"URL=http://192.168.8.254:8081/Login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"URL=/images/login/denglu1.gif", ENDITEM,
LAST);
if (atoi(lr_eval_string("{para_count}"))>0)
lr_output_message("Login on succesful!");
else{
web_url("Logout.aspx",
"URL=http://192.168.8.254:8081/Logout.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t20.inf",
"Mode=HTML",
LAST);
}
web_custom_request("OAOnLineUserRefresh.ashx",
"URL=http://192.168.8.254:8081/OAOnLineUserRefresh.ashx",
"Method=POST",
"Resource=1",
"Referer=http://192.168.8.254:8081/Login.aspx",
"EncType=",
LAST);
lr_start_transaction("Login");
web_custom_request("ASP.login_aspx,App_Web_2qpzm-wx.ashx",
"URL=http://192.168.8.254:8081/ajax/ASP.login_aspx,App_Web_2qpzm-wx.ashx?_method=AjaxLoginDo&_session=rw",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.8.254:8081/Login.aspx",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=",
"Body=txtUserName={Username}\r\n"//
"txtpassword=123456\r\n"
"imagevalue=",
LAST);
web_reg_find("Text={Username}",
"SaveCount=para",
LAST);
web_url("index.aspx",
"URL=http://192.168.8.254:8081/index.aspx?url=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t4.inf",
"Mode=HTML",
EXTRARES,
"URL=/js/img/loading2.gif", "Referer=http://192.168.8.254:8081/index.aspx?url=", ENDITEM,
"URL=/images/icon_search.gif", "Referer=http://192.168.8.254:8081/index.aspx?url=", ENDITEM,
"URL=/WebResource.axd?d=Y38x_xvT-IzDbsT_4OeAw9NT3ndbfSR5f6wXSSj1vUAFbBmNOF_Sv9hmTWKci_bhH9rAV0V0QfhXpPgmkUlkdL7f0p41&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=v7m3vTuLHS6RPqrZEgRoeDikkBSK2oK7NJei17_d8hw-HmQkVfup-Hoxqe0svQ-oFaODte_NDbEx6OYaHsFdvPXXw3E1&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/ScriptResource.axd?d=s18AYaRxfUCdj1YfIt1pkgur7uJGMvXr2GT05AiyFWGOl6L0701V_pS2va0nZJs0WXG45OWOvTFqqnS0qpE-AJzsX1ILEgNemV8amxbfHECWzT1STVQY9wlNVCaA4xFCyM6gthtBFczgv_YbrIaNOMSsRxRCjN5w-2bc8ZGzoNhaxVIU0&t=634232792610937500", "Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=", ENDITEM,
"URL=/WebResource.axd?d=NtRF4sDb43B6Q7ZmROgQkYqWcSP7SK1ctwwaI2AR8IDW5J_Kfn53J_s-KrTH72Oxl-iSDo4_0Wu2lYIld4SDdsliwws1&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=zLZnfy5WJaTa_Xyli3uNxvWNujsd8cWanGIa9nxtesx_uJwJAWbtheWzY3oxY3kuW30_ShkRTCAdZW-hyUYDooQ8la6Bi7MzBDY5csXcrszur6uQ0&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=px9_RcHs7Rthif1dJNjTJkhOE-W0QSu7Woz0cPqZsgNyE5yIegQNuzEvtv-n1gj6dsN-p-g2htR-WrrLAzH85kDNtEAOodNR_u2SoafiT8R-oBG-0&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=Oh7zuy-DaaCbBS6sWOnOsLz-lqg6FoHW71ZKHQ2OWWljI_shfjv-RPlPFhtNgY8X0VPZsWoLfCZruQWTg82JW3LmwNh7a5m8FatbDM5-7s31esNn0&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=iE-5H_3NX-K-A6ZyYr-2FWzfKWOGsKuSYarhsaZLpq9e2WdZqO70gH67iGyDvw2UxBiEqljeJRaF8qYQ64eSVVg6Pl-gav_0-BM9wB9h4-bfNnB10&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=eaN2qy-YFPnelWJnvFWo1I3uEYcWB1hN0Zp7pABEijEjLRgKlHd1SgwHydlGz29u81K6ePqpwqdrPhzauIvM0xajOFgee951mzy30h5ZsE2qkgJN0&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/WebResource.axd?d=9Uy8RlpqcPy8ufckh1RucOYtBOltAy78-VHyRN_78xELAu4pB5ZD8Z2hDsxzOeWCTpshOL8pzJU8-ymPuFih-DNqAO9_QI8y6Tm2VP63R28ORemm0&t=634238567198125000", "Referer=http://192.168.8.254:8081/admin_menu.aspx", ENDITEM,
"URL=/ScriptResource.axd?d=F7-tTB7LX0xgogWLv9ebSbdRUNUambwFiAdMmhjTj3OpGq6hjaUYPKuob0AHIxHETOuG_Hz5PRqMibaBtG43SEYGd1E-hqw-wUOfRL4CHKDEes-MG46mkt6GCT5ppySoA-dKx-_RmsoaiAKaAvF4oahCc5UZxtQxpkhflY2FnngT2ZLK0&t=634232792610937500", "Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=", ENDITEM,
"URL=/images/tag_bai.jpg", "Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=", ENDITEM,
"URL=/images/tag_bg.jpg", "Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=", ENDITEM,
"URL=/images/tag_bg2.gif", "Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=", ENDITEM,
LAST);
if (atoi(lr_eval_string("{para}"))==0)
lr_error_message("LoginFaile=%s",lr_eval_string("{Username}"));
lr_end_transaction("Login",LR_AUTO);
web_custom_request("OAOnLineUserRefresh.ashx_2",
"URL=http://192.168.8.254:8081/OAOnLineUserRefresh.ashx",
"Method=POST",
"Resource=1",
"Referer=http://192.168.8.254:8081/index.aspx?url=",
"EncType=",
LAST);
web_url("GetDataByLoginUser.asmx",
"URL=http://192.168.8.254/WebService/GetDataByLoginUser.asmx?wsdl",
"Resource=0",
"RecContentType=text/xml",
"Referer=http://192.168.8.254:8081/WorkBench_Welcome.aspx?openurl=",
"Snapshot=t5.inf",
"Mode=HTML",
LAST); |
|