|
各位大哥,我对在线书店进行测试,脚本只包含登陆,搜索书名。其中将搜索书名作为一个事务。transaction response time测试结果为:action1_transaction avg:9.827 ; seacrh avg:0.3 action1_transaction 包含那些事务,为什么如此长。请大家赐教!!我的脚本如下:
#include "as_web.h"
Action1()
{
web_url("home",
"URL=http://10.10.10.10:8080/tpcw/home",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_think_time( 4 );
web_image("Search",
"Alt=Search",
"Snapshot=t2.inf",
LAST);
lr_think_time( 4 );
lr_rendezvous("search");
lr_start_transaction("search");
web_submit_form("execute_search",
"Snapshot=t3.inf",
ITEMDATA,
"Name=search_type", "Value=Title", ENDITEM,
"Name=search_string", "Value={title}", ENDITEM,
"Name=Search.x", "Value=96", ENDITEM,
"Name=Search.y", "Value=20", ENDITEM,
LAST);
lr_end_transaction("search", LR_AUTO);
lr_rendezvous("search");
return 0;
} |
|