|
录制了一个登录过程,其中包含以下的一段submit,执行到这里就过不去,请教是什么原因?注掉就可以了。
全部脚本如下,带颜色的是不能执行的代码:
Action()
{
lr_start_transaction("OA登陆");
web_custom_request("http.do",
"URL=http://10.122.176.119/http.do",
"Method=POST",
"Resource=0",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"Body=_MSC_CMD_=USR&action=login&relogin=false&mscver=V2.9.4.BUILD.03.101213.79968&phonemodel=Windows||||Microsoft|&appid=BGPBKK&appver=1.0&partnerid=DHVN&screensize=768*700&cellid=&lac=&username=%E8%8B%8F%E4%BC%9F&password=1qaz1qaz",
LAST);
web_submit_data("http.do_2",
"Action=http://10.122.176.119/http.do",
"Method=POST",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=_MSC_CMD_", "Value=ALT", ENDITEM,
"Name=lac", "Value=", ENDITEM,
"Name=cellid", "Value=", ENDITEM,
LAST);
web_custom_request("http.do_3",
"URL=http://10.122.176.119/http.do",
"Method=POST",
"Resource=0",
"RecContentType=application/vnd.dh-msc",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"Body=_MSC_CMD_=QRY&action=bs-transfer@mdp&url=http://10.122.176.119:8080/gephq02apd10/PC/main.html",
LAST);
lr_end_transaction("OA登陆",LR_AUTO);
return 0;
} |
|