Complete performance testing process

First, the preparatory work

Performance testing carried out at what stage? In general, in the case of the system under test has been completed functional testing, system stabilized, will conduct performance tests.

1. Assemble the test team

  • According to the actual situation of the system under test, the formation of a performance testing team, team members include: developers, operation and maintenance, DBA, and testing personnel.

2. Performance needs research

  • Performance requirements research work is generally responsible for performance testers, product managers, developers, operation and maintenance personnel with the completion.
  • System performance requirements research online environment, including performance requirements, reliability requirements, maintainability demand.
  • Research system-related information, such as hardware configuration parameters, system architecture and deployment methods.
  • Research business scene information, such as critical business logic and process flow, a list of transactions, trading volume information, distribution and other business.

3. Select Tools

  • Integrated system design, tooling costs, testing the skills of the team to consider, select the appropriate test tools.
  • Pressure measurement tools: JMeter, Loadrunner, Locust and so on.
  • Monitoring tools: nmon, lepus, jvisualvm, prometheus, grafana and so on.

Second, the performance test plan

1. Analyze performance testing background

According to the project background and knowledge of the business to determine the performance testing of this problem to be solved. Common situations are:

  • For a new system, you need endurance test system.
  • For the operation of the system can not meet the actual demand, the need to identify performance bottlenecks.
  • Added a new business, we need to re-evaluate the capacity of the system.
  • The system architecture has been adjusted, it is necessary to re-evaluate the capacity of the system.

2. Analysis of User Scenarios

According to the analysis of all aspects of the business system, user activity time, frequency of visits, and other interactive scenes, sorting business scenarios, provide the basis for a test script development.

3. Identify performance targets

For specific business functions point to develop the desired performance goals. Which requires communication and consultation and other business sectors, as well as the response time of the current system in conjunction with other data, to determine the final we need to achieve response time and system resource usage and other targets.

4. Develop an implementation plan performance test

According to the time schedule of the project team, planned start and end time of this performance test, participants, output and the like.

Third, the performance test design

1. Test Environment Design

Different software and hardware configurations will restrict the overall system performance, so the need to deploy a number of different test environments, in different hardware configuration on the performance check application system, and the test results were different configurations of the system analysis, the most excellent results. There is need to focus on database servers, application servers, software operating environment.

2. Test scene design

According to business characteristics of the system under test, and by business and communication, and user habits in the past to determine the mode of user habits, as well as the number of different user scenarios, the number of operations to determine the test indicators, and performance monitoring.

3. test case design

According to the design of test scenarios, write test cases. Core case comprising: using Example number, with the title Examples, preconditions, the steps, the test data, expected results, the actual result and the like.

4. Write test scripts

According to the test case and tool selection, preparation of test data, writing test scripts.

Fourth, the performance test execution

1. Deploy test environment

General deployment environment by developers or operation and maintenance, and resource coordination.

2. Perform a test script

It has been deployed in a test environment, according to the business scenarios and test cases, in order to implement our already designed test scripts.

3. Performance monitoring and recording

The selected test tool and monitoring tool for monitoring and recording the performance index during the measurement of the pressure.

V. Performance Measurement and Analysis

  • Analysis under different test environments, performance indicators and the expected hardware performance comparison to determine whether the results we need. For not achieve the desired targets, analyze specific bottleneck points.
  • Analysis under different test environments, analyze performance application server, database server and middleware components.
  • During the performance tests, you may find that the presence of defects or deficiencies of certain functions, and where it is needed optimization.

Six tuning performance testing

  1. Identify problems: Identify performance problems based on the results of performance analysis.
  2. Analysis of the problem: be the cause of problems based on detailed analysis of specific issues identified.
  3. Determine the adjustment goals and solutions.
  4. Test solution: swap system after excellent test again.
  5. Tuning results analysis: analysis of the results of tuning has reached the intended target.

Seven, performance and summary reports

  • To process and summarize the results of performance tests
  • Write performance test report
Published 682 original articles · won praise 1391 · Views 1.71 million +

Guess you like

Origin blog.csdn.net/itcast_cn/article/details/105389439