The most detailed in the whole network, performance test - test method summary (pressure/load) super detailed


foreword

Concurrency/Load/Pressure Understanding

Load test: Make the system reach the bottleneck by continuously increasing the pressure, and provide reference data for tuning

Stress test:
Stability stress test: Under different given conditions (such as memory usage, how many requests are in a certain period of time, etc.), the processing and response capabilities of the system (here will consider the fault tolerance of the system, recovery ability)

Destructive stress test: pressurize continuously until the system crashes and hangs up to find out where the system's maximum capacity is

Concurrency test: A simple understanding is that there are a large number of requests to be processed in a short period of time in business scenarios, which generally appear in login or some important modules and buttons.

pressure test

Definition: When the system is in a certain saturated state, such as CPU, memory, etc., the session capacity that the system can handle, and whether the system will encounter errors

Features:
The main purpose of this method is to check the performance of the application when the system is under pressure;
this method keeps the use of system resources at a certain level by increasing the access pressure, and checks the performance of the application at this time. The focus is on the generation of error messages , the response time of the system to the application, etc.

This method generally uses methods such as simulated load to make the resource usage of the system reach a higher level.

load test

Definition: Increasing stress on the system under test until performance metrics (such as response time) exceed expectations or some resource usage is saturated. The processing limit of the system can be found to provide data for system tuning

Features:
The main purpose of this method is to find the limit of system processing capability;
this method is carried out in a given test environment, and usually needs to consider the business pressure and typical scenarios of the system under test;
this method is generally used to understand the performance capacity of the system, Or use it with performance tuning;

Performance capacity: how many concurrent users the system can allow while ensuring a certain response time

Acceptance Performance Test

Definition: To verify the capability status of a system under certain conditions

Features:
The main purpose of this method is to verify whether the system has the capabilities claimed by the system;
the method includes: determining the user scenario, giving performance indicators that need attention, test execution, and test analysis.
This method needs to know the typical scenario of the system under test in advance, and has a definite performance goal;
this method requires to be carried out in a definite environment;

configuration test

Definition: Through the adjustment of the software and hardware environment of the system under test, understand the degree of impact of various environments on system performance, so as to find the optimal allocation principle of various system resources

Features:
The main purpose of this method is to understand the degree of influence of various factors on system performance, so as to determine the most worthwhile tuning operation; this method is
generally carried out after a preliminary understanding of the system performance status, and needs to be performed in a certain environment , operating steps and stress conditions;
this method is generally used for performance tuning and planning capabilities;

concurrency test

Definition: Simulate whether there are deadlocks or other performance problems when multiple users access the same application, module or data record concurrently

Features:
The main purpose of this method is to discover the possible concurrent access problems in the system;
this method mainly focuses on the possible concurrency problems in the system.
For example: memory leaks, thread locks and resource contention issues

This method can be used at various stages of development and requires the cooperation and support of relevant testing tools
Common tools:
commercial software loadrunner: complete and powerful functions, large memory footprint, requires a
fee Assist in completing some daily testing tasks

reliability test

Definition: Apply a certain business pressure to the system, let it run continuously for a period of time, and test whether it can run stably under this condition

Features:
The main purpose of this method is to verify whether the system supports long-term stable operation;
this method needs to be operated under pressure for a period of time;
during the test, it is necessary to pay attention to the operation of the system;
for example: memory usage or other resource usage and response Whether the time has changed significantly

Failover test

Design for systems with redundant backups and load balancing
Definition: To detect whether the system can continue to be used if a partial system failure occurs

Features:
The main purpose of this method is to verify whether the system can continue to be used under partial failure;
this method needs to point out: "how many user accesses can be supported" and "what emergency measures to take" when a problem occurs;

Generally, this type of test is only required for systems that have clear indicators for the continuous operation of the system

Please add a picture description

The following is the most complete software test engineer learning knowledge architecture system diagram in 2023 that I compiled

1. From entry to mastery of Python programming

Please add a picture description

2. Interface automation project actual combat

Please add a picture description

3. Actual Combat of Web Automation Project

Please add a picture description

4. Actual Combat of App Automation Project

Please add a picture description

5. Resume of first-tier manufacturers

Please add a picture description

6. Test and develop DevOps system

Please add a picture description

7. Commonly used automated testing tools

Please add a picture description

Eight, JMeter performance test

Please add a picture description

9. Summary (little surprise at the end)

Success is not accidental, but the result of persistent efforts. Every effort will be rewarded, and every sweat will be fragrant. Don't be afraid of difficulties, don't stop, as long as you persevere, you will be able to create your own brilliance! come on!

Every effort is an accumulation, and every struggle is a growth. No matter how difficult the road ahead is, as long as you have a dream in your heart and pursue it bravely, you will be able to surpass yourself and create your own brilliance! Believe in yourself, persevere, success will belong to you! come on!

As long as you persevere, success is not far away; as long as you work hard, glory is in front of you. No matter what difficulties and challenges you encounter, you must go forward bravely, believe in yourself, and you will be able to achieve extraordinary achievements! come on!

Guess you like

Origin blog.csdn.net/m0_70102063/article/details/131379839