TA的每日心情 | 奋斗 2016-1-20 09:04 |
---|
签到天数: 6 天 连续签到: 3 天 [LV.2]测试排长
|
我用户名密码密码参数化了3组,第一组和第三组是正确的,第二组是错误的;现在运行出来第一组 login failed,第二组和第三组是login pass!!我非常纳闷 纠结了好久这个问题
login()
{
lr_rendezvous("login_together");
lr_think_time(78);
web_submit_data("login",
"Action=http://10.10.1.212:5980/syzksitepro/actions/examinee/login",
"Method=POST",
"RecContentType=text/json",
"Referer=http://10.10.1.212:5980/syzksitepro/actions/home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=idCard", "Value={idCard}", ENDITEM,
"Name=password", "Value={password}", ENDITEM,
"Name=captchaCode", "Value=abcd", ENDITEM,
LAST);
lr_start_transaction("login");
web_reg_find("Text=author","Savecount=para_count",LAST);
if (atoi(lr_eval_string("{para_count}"))>0)
lr_output_message("login Pass!");
else
lr_output_message("login Failed");
web_url("index",
"URL=http://10.10.1.212:5980/syzksitepro/actions/secured/examinee/index",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
EXTRARES,
"Url=/syzksitepro/staticmedia/css/bootstrap/img/glyphicons-halflings.png", ENDITEM,
LAST);
lr_end_transaction("login", LR_AUTO);
return 0;
}
|
|