当前位置:网站首页>Performance test process and plan
Performance test process and plan
2022-07-07 18:07:00 【Multi surveyor 111】
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 ). For more information on testing techniques, please pay attention to : Shenzhen duosurveyor software and Technical Service Co., Ltd
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 .
边栏推荐
- Interviewer: why is the page too laggy and how to solve it? [test interview question sharing]
- [re understand the communication model] the application of reactor mode in redis and Kafka
- js拉下帷幕js特效显示层
- Robot engineering lifelong learning and work plan-2022-
- 测试3个月,成功入职 “字节”,我的面试心得总结
- 科学家首次观察到“电子漩涡” 有助于设计出更高效的电子产品
- Deep learning machine learning various data sets summary address
- Vscode three configuration files about C language
- 性能测试过程和计划
- 青年时代历练和职业发展
猜你喜欢
yolo训练过程中批量导入requirments.txt中所需要的包
Taffydb open source JS database
JS pull down the curtain JS special effect display layer
TaffyDB开源的JS数据库
Introduction to OTA technology of Internet of things
Chapter 3 business function development (to remember account and password)
备份阿里云实例-oss-browser
[tpm2.0 principle and Application guide] Chapter 5, 7 and 8
Use onedns to perfectly solve the optimization problem of office network
用存储过程、定时器、触发器来解决数据分析问题
随机推荐
Introduction to OTA technology of Internet of things
如何在软件研发阶段落地安全实践
手机版像素小鸟游js戏代码
Tips of this week 135: test the contract instead of implementation
Function and usage of calendar view component
Chapter 3 business function development (to remember account and password)
[deep learning] 3 minutes introduction
Show progress bar above window
Chapter 2 build CRM project development environment (database design)
上市十天就下线过万台,欧尚Z6产品实力备受点赞
Machine vision (1) - Overview
Pytorch中自制数据集进行Dataset重写
Notification is the notification displayed in the status bar of the phone
The report of the state of world food security and nutrition was released: the number of hungry people in the world increased to 828million in 2021
Use seven methods to enhance all the images in a folder
Ten thousand words nanny level long article -- offline installation guide for datahub of LinkedIn metadata management platform
自动化测试:Robot FrameWork框架大家都想知道的实用技巧
Target detection 1 -- actual operation of Yolo data annotation and script for converting XML to TXT file
手撕Nacos源码(先撕客户端源码)
备份阿里云实例-oss-browser