TA的每日心情 | 奋斗 2015-5-29 11:16 |
---|
签到天数: 32 天 连续签到: 1 天 [LV.5]测试团长
|
问题1,http是无状态的,lr只要检测到有页面返回就认为是通过;所以需要添加检查点,是吗?
问题2,使用图形界面添加了检查点后,web_reg_find函数自动生成在提交操作的前面(如下),即开始事务后面,这样会不会影响事务响应时间?
lr_start_transaction("login");
web_reg_find("Search=Body",
"Text=Welcome,",
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={temp}", ENDITEM,
"Name=username", "Value={user_info}", ENDITEM,
"Name=password", "Value={user_pwd}", ENDITEM,
"Name=JSFormSubmit", "Value=on", ENDITEM,
"Name=login.x", "Value=68", ENDITEM,
"Name=login.y", "Value=13", ENDITEM,
LAST);
lr_end_transaction("login", LR_AUTO); |
|