A software product performance testing method

By defining virtual service nodes and management nodes in multiple physical servers, a distributed system is formed, which solves the problems of low efficiency of performance testing methods and single management functions in the existing technology, and realizes efficient software product performance testing.

CN109656830BActive Publication Date: 2024-09-20ISOFT INFRASTRUCTURE SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811583875.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-24
Publication Date
2024-09-20
Estimated Expiration
2038-12-24

AI Technical Summary

Technical Problem

Performance testing methods in the existing technology, including the physical machine patchwork method and the virtual machine product simulation method, have problems such as high testing cost, low efficiency, limited number of virtual machines, and single management functions, and cannot meet the needs of software product performance testing.

Method used

By defining virtual service nodes in multiple physical servers, a distributed system is formed, and management nodes are used for system management and configuration. The client performs stress testing, uses test agent tools to simulate concurrent processes, and data collection nodes collect test results.

Benefits of technology

A sufficient number of virtual service nodes are virtualized in multiple physical servers to meet performance testing requirements, improve testing efficiency and management efficiency, and reduce testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN109656830B
    Figure CN109656830B
Patent Text Reader

Abstract

The present invention discloses a method for software product performance testing, including: step S1, providing a plurality of physical servers; step S2, defining a predetermined number of virtual service nodes in the plurality of physical servers, and making all the virtual service nodes form a distributed system; step S3, deploying a system to be tested in the distributed system; step S4, providing a plurality of clients, making all the clients connect to the system to be tested, so as to perform stress testing on the system to be tested. Compared with the prior art, the beneficial effect of the present invention is that the present invention is based on virtualization technology, and can virtualize a sufficient number of virtual service nodes in a plurality of physical servers, which can fully meet the performance testing requirements of software products. Moreover, the present invention can effectively control each virtual service node in real time, can monitor the operating status of the system to be tested in real time, improve the efficiency of performance testing, and reduce the cost of performance testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a software product performance testing method based on virtualization technology. Background Art

[0002] In recent years, with the rapid development of the Internet and mobile Internet, smart phones, tablet computers and various mobile Internet devices have become widely popular. People have become accustomed to installing a large number of software applications on smart terminals, especially some practical application software, such as chat tools, which have been favored by the majority of users. Due to the large user base, these application software have high requirements for the software itself and the performance of the backend server, so software developers usually need to perform corresponding performance tests on the software and the backend server to ensure the best user experience.

[0003] However, the performance testing methods in the prior art usually adopt two performance testing methods: physical machine patchwork method and virtual machine product simulation method. The so-called physical machine patchwork method refers to simulating the test environment by patching together a sufficient number of physical machines to meet the performance testing needs. This performance testing method requires the use of a large number of physical machines, has a long preparatory work, high testing cost, low testing efficiency, and poor practicality.

[0004] The so-called virtual machine product simulation method refers to using virtualization products to simulate a certain number of virtual machines on a server to replace physical machines for performance testing. However, virtualization products in the prior art only support simulating multiple virtual machines on a server. However, the number of virtual machines that can be virtualized on a single server is limited, which usually cannot meet the actual performance testing requirements. In addition, virtualization products in the prior art have single functions and cannot effectively manage each virtual machine. Summary of the invention

[0005] In view of the above-mentioned technical problems, the purpose of the present invention is to provide a software product performance testing method based on virtualization testing technology to solve the above-mentioned technical problems.

[0006] The technical solution adopted by the present invention to solve the technical problem is to provide a software product performance testing method, comprising the following steps:

[0007] Step S1, providing a plurality of physical servers;

[0008] Step S2, defining a predetermined number of virtual service nodes in the plurality of physical servers, and making all the virtual service nodes form a distributed system;

[0009] Step S3, deploying the system to be tested in the distributed system;

[0010] Step S4: provide a plurality of clients, so that all the clients are connected to the system to be tested, so as to perform a stress test on the system to be tested.

[0011] Preferably, in step S2, a management node is further provided. The management node is installed in an independent physical server and connected to each of the virtual service nodes to manage the distributed system.

[0012] Preferably, the management node provides a configuration interface, and the configuration interface provides system parameters of the distributed system.

[0013] Preferably, in step S2, a remote client node is further provided, wherein the remote client node is installed in an independent physical device and is used to log in to the management node and access the configuration interface.

[0014] Preferably, in step S4, a plurality of test scenarios are provided, and a stress test is performed on the system to be tested according to the plurality of test scenarios.

[0015] Preferably, the test scenario is implemented through a test script, and the test script is deployed in each of the clients.

[0016] Preferably, in step S4, each of the clients performs a stress test on the system to be tested by simulating a plurality of concurrent processes.

[0017] Preferably, each of the clients simulates a plurality of concurrent processes through a test agent tool.

[0018] Preferably, in step S4, a data collection node is provided, and the collection node is arranged on an independent physical device and connected to each of the virtual service nodes to collect the test results of the distributed system.

[0019] Preferably, in step S4, the client is connected to the system to be tested via a C / S architecture.

[0020] Compared with the prior art, the beneficial effect of the present invention is that, based on virtualization technology, the present invention can virtualize a sufficient number of virtual service nodes in multiple physical servers, which can fully meet the performance testing requirements of software products. Moreover, the present invention can effectively manage and control each virtual service node in real time, can monitor the operating status of the system to be tested in real time, improve the efficiency of performance testing, and reduce the cost of performance testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a step diagram of a software product performance testing method provided by an embodiment of the present invention;

[0022] Figure 2It is a schematic diagram of the structure of the distributed system in step S2 of the software product performance testing method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0025] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, but they are not intended to limit the present invention.

[0026] The present invention provides a method for testing the performance of a software product. Figure 1 and Figure 2 , including the following steps:

[0027] Step S1, providing a plurality of physical servers 2;

[0028] Step S2, defining a predetermined number of virtual service nodes in a plurality of physical servers 2, and making all virtual service nodes form a distributed system;

[0029] Step S3, deploying the system to be tested 3 in the distributed system;

[0030] Step S4: provide a plurality of clients, so that all the clients are connected to the system to be tested 3 to perform a stress test on the system to be tested 3.

[0031] The above technical solution overcomes the defect of the prior art of piecing together physical machines or pure virtual machines for stress testing by defining multiple virtual service nodes in multiple physical servers 2 and making all virtual service nodes form a distributed system.

[0032] In a preferred solution of an embodiment of the present invention, in step S2, a management node 1 is further provided. The management node 1 is installed in an independent physical server and connected to each virtual service node 2 to manage the distributed system.

[0033] In the above technical solution, the management node 1 can manage each virtual service node, so as to achieve batch definition, startup and maintenance of virtual service nodes. The management of virtual service nodes by the management node 1 includes establishing a distributed system on the virtual service node, adding and reducing virtual service nodes in the distributed system, deploying the system to be tested in the distributed system, adjusting the network structure between virtual service nodes, etc. By setting the management node 1, the operation and maintenance time of the operator for each virtual service node can be reduced.

[0034] On the basis of the above technical solution, further, the management node 1 can provide a configuration interface, and the configuration interface provides system parameters of the distributed system.

[0035] In a preferred solution of the embodiment of the present invention, in step S2, a remote client node 4 is further provided. The remote client node 4 is installed in an independent physical device and is used to log in to the management node 1 and access the configuration interface.

[0036] The remote client node 4 logs in and accesses the configuration interface in the management node 1, so that the operator can remotely manage the distributed system established on the virtual service node. Preferably, the physical device of the remote client node 4 can be connected to the management node 2 through a dedicated network, the Internet, or a mobile network. Further preferably, the physical device can be a computer or a mobile terminal.

[0037] Based on the above technical solution, further, in step S4, multiple test scenarios are provided, and stress testing is performed on the system to be tested 3 according to the multiple test scenarios. The test scenarios are implemented by test scripts, and the test scripts are deployed in each client.

[0038] In the above technical solution, as a preferred implementation, a client management node can be provided, which connects to each client and manages the clients in a unified manner, such as managing the number of clients, the actions of the clients, etc. Optionally, the above client can be an actual device, or a client virtualized in the form of a virtual system, or a client action simulated in the form of a process simulation. The client management node deploys the test script to each client, and controls each client to test the system to be tested according to the content of the test script.

[0039] On the basis of the above technical solution, further, in step S4, each client performs a stress test on the system to be tested 3 by simulating a plurality of concurrent processes.

[0040] Each client simulates multiple concurrent processes through a test agent tool. The test agent tool can be selected from the JMeter performance testing tool existing in the prior art.

[0041] In a preferred solution of an embodiment of the present invention, in step S4, a data collection node is provided. The collection node is set on an independent physical device and connected to each virtual service node to collect test results of the distributed system.

[0042] In step S4, the client connects to the system to be tested 3 via the C / S architecture.

[0043] In summary, the present invention is based on virtualization technology and can virtualize a sufficient number of virtual service nodes 2 in multiple physical servers, which can fully meet the performance testing requirements of software products. Moreover, the present invention can effectively manage and control each virtual service node in real time, and can monitor the operating status of the system to be tested 3 in real time, thereby improving the efficiency of performance testing and reducing the cost of performance testing.

[0044] The above description is only a preferred embodiment of the present invention, and does not limit the implementation mode and protection scope of the present invention. For those skilled in the art, it should be aware that all solutions obtained by equivalent substitutions and obvious changes made using the description and illustrations of the present invention should be included in the protection scope of the present invention.

Claims

1. A software product performance testing method, characterized in that: The following steps are involved: Step S1, providing a plurality of physical servers; Step S2, defining a predetermined number of virtual service nodes in the plurality of physical servers, and making all the virtual service nodes form a distributed system; Step S3, deploying a system to be tested in the distributed system; Step S4, providing a plurality of clients, making all the clients connect to the system to be tested, so as to perform stress testing on the system to be tested; In the step S2, a management node is further provided, the management node is installed in an independent physical server and connected to each of the virtual service nodes to manage the distributed system; The management node provides a configuration interface, and the configuration interface provides system parameters of the distributed system; In the step S2, a remote client node is further provided, and the remote client node is installed in an independent physical device, for logging into the management node and accessing the configuration interface; in the step S4, multiple test scenarios are provided, and stress testing is performed on the system to be tested according to the multiple test scenarios; The test scenario is implemented by a test script, and the test script is deployed in each of the clients; In step S4, each of the clients performs a stress test on the system to be tested by simulating a plurality of concurrent processes; Each of the clients simulates a plurality of concurrent processes through a test agent tool; in the step S4, a data collection node is provided, the collection node is set on an independent physical device and connected to each of the virtual service nodes to collect the test results of the distributed system; The client is an actual device, or a client virtualized in the form of a virtual system, or a client action simulated in the form of a process simulation. The client management node deploys the test script to each client, and controls each client to test the system under test according to the content of the test script.

2. The software product performance testing method according to claim 1, characterized in that: In the step S4, the client is connected to the system to be tested via a C / S architecture.