Web系统的性能测试技术研究
2021-10-24张辉
张辉



摘要: 为保证网络服务质量,对Web系统进行性能测试,成为企业在软件测试工作中重要的环节。从Web体系的架构及特点出发,对Web系统性能测试的要求、场景、指标、流程、策略以及测试用例设计等内容进行分析,研究性能测试的方法,采用测试工具JMeter进行了Web系统的性能测试。结果表明,对Web系统进行性能测试有助于找出系统中存在的问题,为系统进一步优化提供依据。
关键词: 性能测试; Web系统; 软件测试; JMeter
中图分类号:TP3 文献标识码:A 文章编号:1006-8228(2021)10-28-04
Research on performance testing technology of Web system
Zhang Hui
(Gaobo School of software, Nanning University, Nanning, Guangxi 530001, China)
Absrtact: In order to ensure the quality of network service, the performance test of Web system has become an important part in the software testing work of enterprises. Starting from the architecture and characteristics of the Web system, this paper analyzes the requirements, scenarios, indicators, processes, strategies and test case design etc. of the Web system performance test, studies the testing methods, and carries on the performance testing to Web system by using the test tool JMeter. The results show that the performance test of web system is helpful to find out the problems existed in the system and provides a basis for further optimization of the system.
Key words: performance test; Web system; software testing; JMeter
0 引言
隨着Web服务的发展,网络用户数量日渐增多,用户与系统产生的交互场景及软件产生的数据量也日益增加,Web服务器必须能够快速响应用户请求。为了及时解决Web系统所面临的问题,利用性能测试技术对系统进行有效测试,以分析系统是否满足用户对软件在功能和性能上的需求,验证系统的各项性能指标是否达到用户的目标,以便于发现系统存在的瓶颈。
1 Web体系架构
由于Web系统是分布式系统,采用并发、多用户结构,Web系统使用的用户数量更高,受众群体更广。Web系统采用多层体系构架,系统只需根据计算机浏览器,就可以实现软件的功能。Web系统主要采用表示层、业务逻辑层、数据访问层三层架构。三层架构的操作界面主要由计算机浏览器来实现完成,一部分事务管理逻辑在前端完成,关键事务管理逻辑性则在服务端完成。
三层架构执行严格的分层方式,数据访问层只有被业务逻辑层访问,业务逻辑层只有被网页显示层访问,用户根据表示层将信息传输给业务逻辑层,业务逻辑层进行处理有关业务流程标准,并根据数据访问层访问数据库查询得到数据信息,然后将反馈回来的数据在页面显示层进行显示输出[1]。……
