|
还是不对,参数化的时候,需要把所有的value=...都参数化吗?
Action()
{
lr_rendezvous("集合点");
lr_start_transaction("打开页面");
web_url(" www.126.com",
"URL= http://www.126.com/",
"Resource=0",
"RecContentType=text ml",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url= ", ENDITEM,
"Url= ", ENDITEM,
"Url= http://mimg.126.net/p/dm3style/js/0906031436/engine1.js", ENDITEM,
"Url= ", ENDITEM,
LAST);
lr_end_transaction("打开页面", LR_AUTO);
lr_think_time(8);
lr_start_transaction("登陆");
web_submit_data("login.jsp",
"Action= http://reg.163.com/login.jsp?typ ... ge%3D0%26style%3D-1",
"Method=POST",
"RecContentType=text ml",
"Referer= http://www.126.com/",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=domain", "Value=126.com", ENDITEM,
"Name=language", "Value=0", ENDITEM,
"Name=bCookie", "Value=", ENDITEM,
"Name=username", "Value={mailname}", ENDITEM,
"Name=savelogin", "Value=", ENDITEM,
"Name=user", "Value={user}", ENDITEM,
"Name=password", "Value={passwd}", ENDITEM,
"Name=style", "Value=-1", ENDITEM,
"Name=enter.x", "Value=登 录", ENDITEM,
LAST);
lr_end_transaction("登陆", LR_AUTO);
return 0;
}
我就把username、user、password参数化了。。。。大家帮我看看对不对啊~? |
|