TA的每日心情 | 慵懒 2016-6-11 19:40 |
---|
签到天数: 6 天 连续签到: 1 天 [LV.2]测试排长
|
LoadRunner11,自带购票系统设置文本检查点,一直报错。。。
具体报错信息如下:
submit.c(22): Continuing after Error -26366: "Text=testuser" not found for web_reg_find [MsgId: MERR-26366]
具体代码如下:
submit()
{
lr_think_time(107);/*用户的思考时间*/
lr_rendezvous("loginRendezvous");/*设置登录提交操作的集合点*/
lr_start_transaction("cofirm_message");/*事务点(1.直接写 2.工具 3.insert)*/
/*另一种写法
"RightOf= ",
"LeftOf=,",
"What=Welcome",
*/
web_reg_find("Fail=NotFound",
"Search=Body",
"Text={username}",
LAST);
web_submit_data("login.pl",
"Action=http://127.0.0.1:1080/WebTours/login.pl",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:1080/WebTours/nav.pl?in=home",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=userSession", "Value=118252.940299716zAiczDfpzVzzzzzHDztQfpiVDH", ENDITEM,
"Name=username", "Value={username}", ENDITEM,
"Name=password", "Value={pwd}", ENDITEM,
"Name=JSFormSubmit", "Value=off", ENDITEM,
"Name=login.x", "Value=58", ENDITEM,
"Name=login.y", "Value=6", ENDITEM,
LAST);
lr_end_transaction("cofirm_message", LR_AUTO);
lr_log_message("用户名:%s", lr_eval_string("{username}"));/*输出用户名*/
/* if(strcmp(lr_eval_string("{count}"),0)==0)
lr_log_message("登录失败!");
else
lr_log_message("登录成功!");
*/
return 0;
}
|
|