web压力测试实验报告.docx
《web压力测试实验报告.docx》由会员分享,可在线阅读,更多相关《web压力测试实验报告.docx(11页珍藏版)》请在冰豆网上搜索。
web压力测试实验报告
软件测试实验报告
实验题目:
web压力测试实验
成
绩
评语:
教师:
年月日
班级:
030513
学号:
03051235
姓名:
陆义良
地点:
EⅡ-508
时间:
2008年5月16日
实验目的:
一、理解web压力测试概念
二、熟练运用WAS(webapplicationstresstool)软件进行web压力测试
实验内容:
一、WAS软件安装
二、设计测试方案
三、使用WAS软件进行测试
四、分析测试报告,寻找被测网站的最大负载量
实验设备:
一、WAS软件
二、联网的计算机
脚本报告:
脚本1报告:
Overview
======================================================================
Reportname:
2008-5-1616:
01:
08
Runon:
2008-5-1616:
01:
08
Runlength:
00:
24:
13
WebApplicationStressToolVersion:
oftestclients:
1
Numberofhits:
11899
RequestsperSecond:
SocketStatistics
--------------------------------------------------------------------------------
SocketConnects:
12310
TotalBytesSent(inKB):
BytesSentRate(inKB/s):
TotalBytesRecv(inKB):
BytesRecvRate(inKB/s):
SocketErrors
--------------------------------------------------------------------------------
Connect:
49332
Send:
0
Recv:
46
Timeouts:
20
RDSResults
--------------------------------------------------------------------------------
SuccessfulQueries:
0
ScriptSettings
======================================================================
Server:
ofthreads:
500
Testlength:
00:
22:
00
Warmup:
00:
01:
00
Cooldown:
00:
01:
00
UseRandomDelay:
No
FollowRedirects:
Yes
MaxRedirectDepth:
15
Clientsusedintest
======================================================================
localhost
Clientsnotusedintest
ResultCodes
CodeDescriptionCount
======================================================================
200OK11897
NAHTTPresultcodenotgiven2
PageSummary
PageHitsTTFBAvgTTLBAvgAuthQuery
======================================================================
GET/5955NoNo
GET/5944NoNo
脚本2报告:
Overview
======================================================================
Reportname:
2008-5-1616:
34:
24
Runon:
2008-5-1616:
34:
24
Runlength:
00:
22:
12
WebApplicationStressToolVersion:
oftestclients:
1
Numberofhits:
123235
RequestsperSecond:
SocketStatistics
--------------------------------------------------------------------------------
SocketConnects:
123283
TotalBytesSent(inKB):
BytesSentRate(inKB/s):
TotalBytesRecv(inKB):
BytesRecvRate(inKB/s):
SocketErrors
--------------------------------------------------------------------------------
Connect:
3426
Send:
0
Recv:
17819
Timeouts:
0
RDSResults
--------------------------------------------------------------------------------
SuccessfulQueries:
0
ScriptSettings
======================================================================
Server:
ofthreads:
500
Testlength:
00:
20:
00
Warmup:
00:
01:
00
Cooldown:
00:
01:
00
UseRandomDelay:
No
FollowRedirects:
Yes
MaxRedirectDepth:
15
Clientsusedintest
======================================================================
localhost
Clientsnotusedintest
ResultCodes
CodeDescriptionCount
======================================================================
200OK105414
500InternalServerError2
NAHTTPresultcodenotgiven17819
PageSummary
PageHitsTTFBAvgTTLBAvgAuthQuery
======================================================================
GET/61879NoNo
GET/61356NoNo
脚本3报告:
Overview
======================================================================
Reportname:
2008-5-1617:
06:
21
Runon:
2008-5-1617:
06:
21
Runlength:
00:
22:
07
WebApplicationStressToolVersion:
oftestclients:
1
Numberofhits:
67632
RequestsperSecond:
SocketStatistics
--------------------------------------------------------------------------------
SocketConnects:
67585
TotalBytesSent(inKB):
BytesSentRate(inKB/s):
TotalBytesRecv(inKB):
BytesRecvRate(inKB/s):
SocketErrors
--------------------------------------------------------------------------------
Connect:
15995
Send:
0
Recv:
170
Timeouts:
0
RDSResults
--------------------------------------------------------------------------------
SuccessfulQueries:
0
ScriptSettings
======================================================================
Server:
ofthreads:
500
Testlength:
00:
20:
00
Warmup:
00:
01:
00
Cooldown:
00:
01:
00
UseRandomDelay:
No
FollowRedirects:
Yes
MaxRedirectDepth:
15
Clientsusedintest
======================================================================
localhost
Clientsnotusedintest
======================================================================
ResultCodes
CodeDescriptionCount
======================================================================
200OK67462
NAHTTPresultcodenotgiven170
PageSummary
PageHitsTTFBAvgTTLBAvgAuthQuery
======================================================================
GET/11267NoNo
GET/11257NoNo
GET/11293NoNo
GET/11292NoNo
GET/11270NoNo
GET/11253NoNo
附录:
脚本3截图
心得体会:
进行压力测试是指实际破坏一个Web应用系统,测试系统的反映。
压力测试是测试系统的限制和故障恢复能力,也就是测试Web应用系统会不会崩溃,在什么情况下会崩溃。
黑客常常提供错误的数据负载,直到Web应用系统崩溃,接着当系统重新启动时获得存取权。