|
我录制了一个网站的登录操作,在点击登录按钮之前添加加事务,完全进入页面之后结束事务(在这个过程中没有人为做任何操作)。这个事务中间为什么会产生了一个思考时间呢?(见脚本中的lr_think_time( 5 );) 我感觉这个思考时间不是操作中用户的思考时间,而是系统在等待服务器反应时的时间(在等待系统加载子菜单的时间),如果是这样的话我该如何处理它呢?
#include "web_api.h"
Action()
{
lr_start_transaction("登陆");
web_submit_data("j_unieap_security_check.do",
"Action=http://172.16.2.1:7001/wrn/j_unieap_security_check.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.2.1:7001/wrn/login.do?method=admin_login",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=j_username", "Value=130103010017", ENDITEM,
"Name=j_password", "Value=12321323", ENDITEM,
EXTRARES,
"Url=wrn/pages/menu/files/top_bg.gif", "Referer=http://172.16.2.1:7001/wrn/wrn/rootmenu.do", ENDITEM,
"Url=wrn/pages/menu/files/top_bg2.gif", "Referer=http://172.16.2.1:7001/wrn/wrn/rootmenu.do", ENDITEM,
"Url=wrn/pages/menu/files/bgbar.gif", "Referer=http://172.16.2.1:7001/wrn/wrn/rootmenu.do", ENDITEM,
"Url=wrn/pages/menu/files/seperator.gif", "Referer=http://172.16.2.1:7001/wrn/wrn/rootmenu.do", ENDITEM,
LAST);
lr_think_time( 5 );
web_url("childmenu.do",
"URL=http://172.16.2.1:7001/wrn/wrn/childmenu.do?parentName=lgxx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://172.16.2.1:7001/wrn/wrn/pages/index.jsp",
"Snapshot=t4.inf",
"Mode=HTML",
LAST);
web_submit_data("controller.do",
"Action=http://172.16.2.1:7001/wrn/wrn/controller.do?location=/wrn/gcgzls.do?method=txxx&menuName=gcgzltxxx&remove=",
"Method=POST",
"RecContentType=text/html",
"Referer=http://172.16.2.1:7001/wrn/wrn/childmenu.do?parentName=lgxx",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_submit_form("gcgzls.do",
"Snapshot=t6.inf",
ITEMDATA,
EXTRARES,
"Url=css/messages.css", "Referer=http://172.16.2.1:7001/wrn/wrn/gcgzls.do?method=txxx&menuName=gcgzltxxx", ENDITEM,
"Url=css/tabstyle.css", "Referer=http://172.16.2.1:7001/wrn/wrn/gcgzls.do?method=txxx&menuName=gcgzltxxx", ENDITEM,
"Url=images/arrow_off.png", "Referer=http://172.16.2.1:7001/wrn/wrn/gcgzls.do?method=txxx&menuName=gcgzltxxx", ENDITEM,
LAST);
lr_end_transaction("登陆", LR_AUTO);
return 0;
} |
|