当前位置:网站首页>Performance test process and plan
Performance test process and plan
2022-07-06 20:43:00 【51CTO】
One 、 preparation
1、 System basic function verification
At what stage is the performance test suitable for implementation ? The entry point is very important ! generally speaking , Only after the system basic function test verification is completed 、 When the system tends to be stable , Performance testing will be carried out , Otherwise, performance testing is meaningless .
2、 Test team formation
According to the specific situation of the project , Set up a performance test for several people team, among DBA Is essential , Then you need one or more system developers ( Corresponding to the front end 、 Backstage, etc ), And performance test designers and analysts 、 Script development
And executives ; Before we start work , There should be some training for script developers and executors , Or it should be held by a person with relevant experience .
3、 Choice of tools
Integrated system design 、 Tool costs 、 Test the team's skills to consider , Choose the right test tool , At least we should meet the following points :
① Support for web( Here we use web System as an example ) System performance test , Support http and https agreement ;
② Tools running in Windows On the platform ;
③ Support for webserver、 front end 、 The performance counters of the database are monitored ;
4、 Pre business scenario analysis
In order to establish an intuitive understanding and analysis of system performance , Analyze the more important and commonly used business scenario modules of the system , Targeted analysis , Prepare for the next test plan design .
Two 、 test plan
The most important thing in the test plan phase is to analyze user scenarios , Determine system performance objectives .
1、 Performance test domain analysis
According to the background of the project , Business knowledge , Determine the problem points to be solved in this performance test ; Is to test whether the system can meet the needs of the actual runtime , Or what aspects of the current system restrict the performance of the system , perhaps , What systemic factors lead to
The system can't keep up with business development ? Identify test areas , Then analyze the specific problems .
2、 User scenario analysis and business modeling
According to the system business 、 User active time 、 Access frequency 、 Scene interaction and other aspects of the analysis , Organize a business scenario table , Of course, it's best for the user operation scenarios 、 The steps are described in detail , Provide the basis for test script development .
3、 Determine performance objectives
The application fields of this performance test have been determined before , The next step is to focus on specific areas , Determine performance objectives ( indicators ); It needs to communicate and negotiate with other business departments , And combined with the response time and other data of the current system , determine
Finally, we need to achieve the goals of response time and system resource utilization ; such as :
① The successful login response time of the request cannot exceed 2 second ;
② The response time of report review submission page cannot exceed 5 second ;
③ Upload of files 、 Download page response time should not exceed 8 second ;
④ Server's CPU The average utilization rate is less than 70%, Memory usage is less than 75%;
⑤ The response time and server resource usage of each business system are under different test environments , Changes of each index with load, etc ;
4、 Make the implementation time of the test plan
Preset the start and end time of each sub module of this performance test , Produce , Participants, etc .
Add picture comments , No more than 140 word ( Optional )
3、 ... and 、 Test script design and development
In the performance test , Test script design and development occupy a large proportion of time .
1、 Test environment design
The goal of this performance test is to verify the performance of the system in the actual operating environment , We also need to consider whether different hardware configurations will be an important factor restricting system performance ! So in the test environment , Multiple different test environments need to be deployed ,
Check the performance of the application system on different hardware configurations , The test results of the system under different configurations are analyzed , Get the best result ( The most suitable configuration for the current system ).
The configurations mentioned here are about the following types :
① database server
② application server
③ Load simulator
④ Software running environment , platform
Test environment test data , It can be determined according to the operation expectation of the system , For example, business scenarios that need to be tested , How often data is backed up and transferred , Which tables are involved in this business scenario , How to write data in each operation , Write several , How much
Test data to make the data in the test environment consistent, etc .
You can test data generation for the first time , Export it to local save , Import data before each test , consistency .
2、 Test scenario design
Through communication with the business department and past user operation habits , Determine the user's mode of operation , And the number of users in different scenarios , Operating frequency , Determine test indicators , And performance monitoring .
3、 Test case design
After confirming the test scenario , On the existing operation description of the system , Further improve the description of test cases that can be mapped into scripts , The use case is roughly as follows :
Use case number : Query form _xxx_x1( The naming is mainly based on business operation scenarios , Simple and easy to understand )
Use case conditions : User logged in 、 Have corresponding permissions, etc ...
Operation steps :
① Go to the corresponding page ......
② Query relevant data ......
③ Check export data ......
④ Modify the upload data ......
PS: The steps here are just an example , The details are described in the system business scenario ;
4、 Development and use of scripts and auxiliary tools
According to the use case description , You can use tools to record , Then modify it in the recorded script ; Like parameterization 、 relation 、 Checkpoints and so on , The final result makes the test script available , It can meet the test requirements ;
PS: personally , It is recommended to write your own script to implement the business operation scenario , This will greatly improve personal skills ; In a word : If you can write, never record !!!
Four 、 Test execution and management
At this stage , Just follow the business scenarios that have been designed before 、 Environment and test case scripts , Deployment environment , Just perform the test and record the results .
1、 Establish test environment
According to the previously designed test environment , Deploy the corresponding environment , Deployment by O & M or developers , Check , And carefully adjust , At the same time, keep the test environment clean and stable , Not affected by external factors .
2、 Execute test script
This is relatively simple , In a deployed test environment , According to the business scenario and number , Execute the test scripts we have designed in order .
3、 Record of test results
Depending on the tools used in the test , The results are recorded in different forms ; Now most performance testing tools provide relatively complete interface and graphical test results , Of course , For the resource usage of the server , You can use some counters or
Third party monitoring tools to record it , After performing the test , Sort out and analyze the results .
5、 ... and 、 Test and analysis
1、 System performance analysis of test environment
According to the test results we recorded before ( Chart 、 Curves, etc ), After calculation , Compare with the predetermined performance index , Determine whether we have achieved the results we need ; If not , View specific bottlenecks , Then, according to the specific data of the bottleneck point ,
Carry out specific situation specific analysis ( There are many factors that affect performance , This point , The analysis can be judged according to experience and data performance ).
2、 Analysis of the impact of hardware equipment on system performance
Because several different test environments have been designed before , Therefore, it can be analyzed according to the hardware resource usage diagram of different test environments , Determine that the bottleneck is the database server 、 Application server or something , Then targeted optimization and other operations .
3、 Analysis of other influencing factors
There are many factors that affect system performance , It can be analyzed from the scene that users can feel , Where is slower , Where the speed is OK , Here we can base on 2\5\8 Analyze it in principle ;
As for others, such as network bandwidth 、 Operation action 、 Storage pool 、 Thread realize 、 Server processing mechanism and a series of influencing factors , Specific analysis of specific problems , I won't describe them one by one here .
4、 Problems found in the test
During the execution of the performance test , Some functional deficiencies or defects may be found , And what needs to be optimized , This is also the advantage of performing multiple tests .
For more information on testing techniques, please pay attention to : Shenzhen duosurveyor software and Technical Service Co., Ltd
边栏推荐
- 1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
- Web security - payload
- SQL injection 2
- 使用.Net分析.Net达人挑战赛参与情况
- Database - how to get familiar with hundreds of tables of the project -navicat these unique skills, have you got it? (exclusive experience)
- Build your own application based on Google's open source tensorflow object detection API video object recognition system (IV)
- C language operators
- In line elements are transformed into block level elements, and display transformation and implicit transformation
- 强化学习-学习笔记5 | AlphaGo
- Special topic of rotor position estimation of permanent magnet synchronous motor -- Summary of position estimation of fundamental wave model
猜你喜欢
New database, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, Feishu multidimensional table, heipayun, Zhixin information, YuQue
Implementation of packaging video into MP4 format and storing it in TF Card
Leetcode question 283 Move zero
B-杰哥的树(状压树形dp)
Why do novices often fail to answer questions in the programming community, and even get ridiculed?
OAI 5G NR+USRP B210安装搭建
[diy] self designed Microsoft makecode arcade, official open source software and hardware
Learn to punch in Web
JMeter server resource indicator monitoring (CPU, memory, etc.)
[weekly pit] positive integer factorization prime factor + [solution] calculate the sum of prime numbers within 100
随机推荐
过程化sql在定义变量上与c语言中的变量定义有什么区别
Summary of different configurations of PHP Xdebug 3 and xdebug2
Function optimization and arrow function of ES6
知识图谱构建流程步骤详解
15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
Discussion on beegfs high availability mode
#yyds干货盘点#重新梳理箭头函数的this
Comment faire une radio personnalisée
Statistical inference: maximum likelihood estimation, Bayesian estimation and variance deviation decomposition
Unity makes AB package
PG基础篇--逻辑结构管理(事务)
解剖生理学复习题·VIII血液系统
Anaconda安裝後Jupyter launch 沒反應&網頁打開運行沒執行
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
(work record) March 11, 2020 to March 15, 2021
Distributed ID
Boder radius has four values, and boder radius exceeds four values
小孩子學什麼編程?
PHP online examination system version 4.0 source code computer + mobile terminal
看过很多教程,却依然写不好一个程序,怎么破?