预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共12页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

服务器系统的性能测试 PAGEII 服务器系统的性能测试 摘要: 软件测试是软件开发过程的重要组成部分,是用来确认一个程序的品质或性能是否符合开发之前所提出的一些要求。软件测试的目的,第一是确认软件的质量,其一方面是确认软件做了你所期望的事情,另一方面是确认软件以正确的方式来做了这个事件。第二是提供信息,比如提供给开发人员或程序经理的反馈信息,为风险评估所准备的信息。第三软件测试不仅是在测试软件产品的本身,而且还包括软件开发的过程。如果一个软件产品开发完成之后发现了很多问题,这说明此软件开发过程很可能是有缺陷的。本文就海量服务器的性能做用户登录的压力测试,设计此测试程序只是一个简单的多线程和网络程序,不用涉及线程同步和高级的网络模型就能达到测试目的。在测试程序实现过程中用到了WinSockAPI和多线程的有关知识及SQLServer数据库,文中介绍了一般的测试流程、简单常用的测试方法和网络聊天程序的服务器工作模式。重点是测试大量用户同时登录服务器时服务器所能承受的压力状况,该思想可用于大量基于TCP/IP或UDP协议的网络服务器。 式中的ω代表频率。 关键词:测试流程、性能测试、WinSockAPI、服务器 Abstract: Thesoftwaretestingistheimportantcomponentofsoftwaredeveloping,isusedtoconfirmwhetheraprocedurequalityorperformanceconformtosomerequestsproposedbeforethedevelopment.Thepurposeofthesoftwaretesting:first,confirmingthequalityofsoftware.Ontheonehand,softwarehasdonewhichyouexpected;second,confirmingsoftwarehasdonewhatyouwantedbythecorrectway.Second,Thesecondistoprovidetheinformation.Forexample,feedbackinformationforriskassessment.tothedevelopmentpersonnelorproceduremanager.Thethird,softwaretestingistotestnotonlythesoftwareproductitself,butalsotheprocessofthesoftwaredevelopment.Iftherearemanyproblemsaftersoftwaredevelopment,theprocessofsoftwaredevelopmentislikelytobedefective.Wemakesthepressuretestingaboutthemagnanimousserverperformancewhentheusersregisteronthisarticle,anddesignthistestingprogrammetobeasimplemultithreadingandthenetworkprocedure.Itcanachievethetestgoalanddoesnotneedtoinvolvelineregulationsynchronizationandthehigh-levelnetworkmodel.Inthetestprocess,weusedWinSockAPIandtheknowledgeaboutmulti-threadandtheSQLserverdatabase.UsedWinSockAPIandthemulti-threadrelatedknowledgeandtheSQLserverdatabaseinthetestorderrealizationprocess.Inthearticleweintroducedthegeneraltestingflow,thesimpleandcommonlytestingmethodandtheworkingpatternofnetworkchatprocedureserver.Thekeypointistotestthepressureconditionwhenalotofuserssimultaneouslyregistertheserver,wecanusethisthoughtinnetworkserversbasedonTCP/IPortheUDPagreement. Keywords:flowoftesting,abili