Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19725811
  • 博文数量: 679
  • 博客积分: 10495
  • 博客等级: 上将
  • 技术积分: 9308
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-18 10:51
文章分类

全部博文(679)

文章存档

2012年(5)

2011年(38)

2010年(86)

2009年(145)

2008年(170)

2007年(165)

2006年(89)

分类: 项目管理

2009-09-30 07:45:39



2009-09-30

磁针石:xurongzhong#gmail.com

博客:oychw.cublog.cn


 

§3.3  实例:在线银行

       一家跨国银行因为网上银行用户增多,面临扩容压力。目的是为web、应用、数据库建立基准模型。

       系统组成:

1,  客户端:IE\Mozilla, Firefox, Opera, and Netscape.客户端不需要安装其他软件。

2,  中间层:2web服务器 Windows 2003 Server+IIS 6Microsoft's Network Load Balancing  (NLB),单台双核cpu的应用服务器。

3,  数据库:MS SQL 2005+MS SQL 2005

4,  网络:外网8M,内网千兆。系统和内网连接百兆。

系统目前在每天最繁忙的时候支持380个并发,主要为外网用户。每个用户登录证书和挑战/响应的安全问题。主要功能有:查看报表、付款、建立直接存款和长期订单、申请个人贷款。

 

需求:测试采用外包形式,用实际环境测试。要求并发1000用户。有10个比较关键的事务。输入账号是系列用户账号及密码。测试时必须对所有的写或更新操作进行回滚。采用渐进式施压。

测试环境的构建:用实际环境测试时在线用户可能会影响到测试结果、检查结果时要注意这些东东;反之也有影响。用4台做客户端,其中一台也是管理站。通过一系列代理服务器来避免单点过载。处于安全考虑,不能在目标机上安装任何监控工具,甚至不能远程登录。可以考虑使用: Microsoft's Performance monitor (Perfmon).

事务脚本化:

事务名称

描述

MiniStatement

登录,查看账单,注销

CustomStatement

登录,查看自定义账单,注销

ViewStandingOrders

登录,查看长期订单,注销

TextAlertCreateCancel

登录,创建或取消文本警报,注销

TransferBetweenOwnAccount

登录,个人账户之间转账,注销

BillPaymentCreate

登录,转账给他人,注销

BusMiniStatement

登陆,为指定账号生成账单,注销

BusCustomStatement

登陆,为指定账号生成自定义账单,注销

BusTransferBetweenOwnAccounts

登录,个人账户内转账$ 5.00,注销

BusBillPaymentCreate

登录,转账$ 5.00给指定账号,注销

 

 

 

虚拟用户注入:

事务

开始虚拟用户数

注入用户间隔

目标虚拟用户数

MiniStatement

1

4s

416

CustomStatement

1

26s

69

ViewStandingOrders

1

26 seconds

69

TextAlertCreateCancel

1

2 minutes 18 seconds

13

TransferBetweenOwnAccounts

1

12 seconds

145

BillPaymentCreate

1

8 seconds

225

BusMiniStatement

1

55 seconds

33

BusCustomStatement

1

7 minutes 30 seconds

4

BusTransferBetweenOwnAccounts

1

3 minutes

10

BusBillPaymentCreate

1

1 minute 52 seconds

16

 

§3.4  实例:呼叫中心

       客户端:胖客户端模式,使用VB书写,有2个版本:一个针对呼叫中心操作员,一个针对区域测试中心。公众用户可以使用浏览器。

       服务器:2台负载均衡的Windows 2003 Server

       数据库:MS SQL+Windows 2003 Server.

       网络架构:

 

       最大100个并发,1,500 transactions per 24-hour

       需求:5个关键事务,呼叫数据格式:Call-center use IDs。数据类型:100 users, 20 sets of credential

       网络监控:using packet level "sniffer"

 

事务名称

描述

DriverBookingSearch

Login, search for first available driver booking slots, logout.

FindSlotFirstAvailable

Login, search for first available vehicle booking slots, logout.

FindVRN

Login, find vehicle by registration number, logout.

SearchForAppointment

Login, find appointment by appointment ID number, logout

VehicleBooking

Login, make a vehicle booking, logout.

阅读(3376) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~