|
问题描述:
测试网站首页单页能承受的最大并发数是多少?
LR设置:
我首先录制了一个单脚本,很简单的一个脚本,就是登入网站的一个页面,如下,我插入了一个集合点,目的就是使得并发用户能够同时输入这个网址,达到并发的目的,其次,我插入了事物,目的就是后面分析时,能够进行页面分解分析,找出问题的瓶颈,脚本如下:
Action()
{
lr_rendezvous("start");
lr_start_transaction("start");
web_url("192.168.1.10",
"URL=http://192.168.1.10/",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=http://www.google-analytics.com/ga.js", ENDITEM,
"Url=/images/content/index/images/Jmain2.jpg", ENDITEM,
"Url=http://www.google-analytics.com/__utm.gif?utmwv=4.3&utmn=308863990&utmhn=192.168.1.10&utmcs=gb2312&utmsr=1024x768&utmsc=32-bit&utmul=zh-cn&utmje=1&utmfl=10.0%20r12&utmdt=%E5%BB%BA%E8%AE%BE%E5%B7%A5%E7%A8%8B%E6%A0%87%E5%87%86%E5%9C%A8%E7%BA%BF&utmhid=1087780424&utmr=-&utmp=/&utmac=UA-3871035-1&utmcc=__utma%3D81135191.213793144646461570.1234170195.1234251905.1234399839.4%3B%2B__utmz%3D81135191.1234170195.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B", ENDITEM,
"Url=/images/content/index/images/Jmain21.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_12.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_3.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_14.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_20.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_19.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_9.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_5.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_17.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_11.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_16.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_6.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_7.jpg", ENDITEM,
"Url=/images/content/index/images/Jmain_18.jpg", ENDITEM,
LAST);
web_url("signin.htm",
"URL=http://toolbar.live.com/signin.htm",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_end_transaction("start", LR_AUTO);
return 0;
}
场景是这样设置的:
1、run mode: run util complete
2、同时初始化所有用户
顺便请教大家,这三个选项都有什么区别啊?
3、同时加载所有用户
4、集合点:当所有用户都到达集合点时释放用户
运行场景后,测出能够并发15个,如果把网址改为网站域名,即从外网访问的话,测出来的结果却是最大并发5个,这两个数据有差别,这我知道,可是我该以哪个数据为准呢?
2、我想请教大家的是,场景的这种设置正确吗?我有点怀疑。
请大家帮忙看下!非常感谢!!!
[ 本帖最后由 navy2008 于 2009-2-12 11:23 编辑 ] |
|