|
我录制的是登录,然后在登录以后,为登录的当前用户:admin 做了一个文本检查点,把用户都参数化了。第一个迭代通过了,第二次报错,看如下错误。
userName参数化内容:
用户名 密码
admin admin
lingceshi lingceshi
lingceshi1 lingceshi1
web_reg_find("Fail=NotFound",
"Search=Body",
"SaveCount=LoginCount",
"Text={userName}",
LAST);
if (atoi(lr_eval_string("{LoginCount}"))>0)
{
lr_end_transaction("LoginTransaction",LR_PASS);
}
else
{
lr_end_transaction("LoginTransaction",LR_FAIL);
Login.c(162): web_concurrent_end was successful, 8537 body bytes, 907 header bytes [MsgId: MMSG-26386]
Login.c(166): Notify: Parameter Substitution: parameter "userName" = "lingceshi"
Login.c(166): Registering web_reg_find was successful [MsgId: MMSG-26390]
Login.c(173): Error -26366: "Text=lingceshi" not found for web_reg_find [MsgId: MERR-26366]
Login.c(173): Notify: Saving Parameter "LoginCount = 0"
Login.c(173): web_url("dashboard.do") highest severity level was "ERROR", 12153 body bytes, 175 header bytes, 20 chunking overhead bytes [MsgId: MMSG-26387]
Login.c(173): Notify: Transaction "LoginTransaction" ended with "Fail" status (Duration: 0.5546 Wasted Time: 0.0001).
Ending action Login. |
|