Pressure testing method, apparatus, device, storage medium and product

By configuring benchmark test scripts to generate the first test script, the system automatically builds and simulates the stress test environment, solving the problem of low efficiency in stress testing in existing technologies and achieving a more efficient testing process.

CN116126699BActive Publication Date: 2026-07-10SOUNDAI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SOUNDAI TECH CO LTD
Filing Date
2022-12-28
Publication Date
2026-07-10

AI Technical Summary

Technical Problem

Existing stress testing technologies are inefficient, mainly because it takes a long time for testers to manually set up the application's runtime environment.

Method used

By obtaining the test configuration information of the target application, a benchmark test script is configured to generate the first test script. This script is then used to build a test environment on a stress testing device and simulate stress test indicators to perform tests, reducing manual intervention.

Benefits of technology

It improves the efficiency of stress testing, reduces the time required to set up the test environment, and enhances the accuracy and efficiency of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126699B_ABST
    Figure CN116126699B_ABST
Patent Text Reader

Abstract

The application provides a pressure test method, device, equipment, storage medium and product, and belongs to the technical field of software testing. The method comprises the following steps: obtaining first test configuration information of a target application program, wherein the first test configuration information comprises environment configuration information and first pressure configuration information; configuring a benchmark test script based on the first test configuration information to obtain a first test script, wherein the first test script comprises a building program and a first test program, the building object of the building program is a test environment corresponding to the environment configuration information, and the pressure test index of the first test program is a pressure test index corresponding to the first pressure configuration information; building a test environment of the target application program through the building program, simulating a pressure test index of the target application program through the first test program, and performing pressure test on the target application program in the test environment based on the pressure test index. The application can improve the efficiency of pressure test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software testing technology, and in particular to a stress testing method, apparatus, equipment, storage medium, and product. Background Technology

[0002] Before an application is put into use or before its load reaches its maximum limit, stress tests are performed to understand the application's reliability and stability. These reliability and stability can then be improved to reduce application downtime and losses caused by downtime.

[0003] In related technologies, testers need to set up the application's runtime environment on a test server and then run the application under long-term or heavy loads in that environment to test its reliability and stability. However, manually setting up the application by testers often takes a long time, resulting in low efficiency of stress testing. Summary of the Invention

[0004] This application provides a pressure testing method, apparatus, device, storage medium, and product, which can improve the efficiency of pressure testing. The technical solution is as follows:

[0005] On the one hand, a stress testing method is provided, the method comprising:

[0006] Obtain the first test configuration information of the target application, which includes environment configuration information and first stress configuration information;

[0007] Based on the first test configuration information, the benchmark test script is configured to obtain the first test script. The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information.

[0008] The test environment for the target application is built using the setup program. The stress test indicators of the target application are simulated using the first test program. Based on the stress test indicators, the target application is subjected to stress test in the test environment.

[0009] In one possible implementation, the step of building a test environment for the target application using the setup program, simulating stress test metrics of the target application using the first test program, and performing stress testing on the target application in the test environment based on the stress test metrics includes:

[0010] Based on the aforementioned setup procedure, a test environment for the target application is built in a stress testing device;

[0011] The first test procedure simulates the stress test indicators of the target application in the stress application device, so that the stress application device applies pressure to the stress test device based on the stress test indicators, and the stress test device is used to run the target application in the test environment based on the pressure applied by the stress application device, so as to achieve stress testing of the target application.

[0012] In another possible implementation, the method further includes:

[0013] Based on the device address, pressure test account, and password of the pressure application device, the system controls the pressure application device to establish a test connection with the pressure test device. The test connection is used by the pressure application device to apply pressure to the pressure test device based on the pressure test indicators.

[0014] In another possible implementation, the step of building a test environment for the target application in a stress testing device based on the setup program includes:

[0015] In the case where the target application is an application in a distributed system, based on the setup program, test environments for the target application are set up in multiple stress testing devices included in the distributed system.

[0016] The pressure application device is further configured to apply pressure to the plurality of pressure testing devices based on the pressure test indicators, and the plurality of pressure testing devices are configured to run the target application in the test environment based on the pressure applied by the pressure application device, so as to achieve stress testing of the target application.

[0017] In another possible implementation, the method further includes:

[0018] Obtain the stress test report of the target application, the stress test report including the stress performance indicators of the target application;

[0019] If the pressure performance indicators fail to meet the standards, the first test configuration information is modified to obtain the second test configuration information, which includes the environmental configuration information and the second pressure configuration information.

[0020] Based on the second test configuration information, the benchmark test script is configured to obtain a second test script. The test configuration information of the second test script is the second test configuration information, and the second test script includes the setup program and the second test program. The stress test index of the second test program is the stress test index corresponding to the second stress configuration information.

[0021] The test environment for the target application is built using the setup program. The second test program simulates the stress test indicators of the target application. Based on the stress test indicators, the target application is subjected to stress test in the test environment until a stress test report is obtained that meets the stress performance indicators.

[0022] In another possible implementation, the environment configuration information includes at least one of the following: interface address, request data, request method, request header, test steps, and device address of the stress-applying device.

[0023] The first stress configuration information includes at least one of the following: number of threads and execution duration;

[0024] Wherein, the interface address is the interface address between the pressure application device and the pressure testing device;

[0025] The requested data is the data requested by the target application;

[0026] The request method refers to the method of requesting data.

[0027] The request header is a request header that requests the requested data;

[0028] The testing steps are steps for stress testing the target application.

[0029] The pressure applying device is a device that applies pressure to the pressure testing device;

[0030] The number of threads refers to the number of threads that the target application runs simultaneously during the stress test.

[0031] The execution duration is the duration for which the pressure applying device applies pressure to the pressure testing device.

[0032] On the other hand, a pressure testing apparatus is provided, the apparatus comprising:

[0033] The first acquisition module is used to acquire the first test configuration information of the target application, the first test configuration information including environment configuration information and first stress configuration information;

[0034] The configuration module is used to configure the benchmark test script based on the first test configuration information to obtain the first test script. The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information.

[0035] The testing module is used to build a test environment for the target application through the setup program, simulate the stress test indicators of the target application through the first testing program, and perform stress tests on the target application in the test environment based on the stress test indicators.

[0036] In one possible implementation, the testing module is used to build a test environment for the target application in a stress testing device based on the setup program;

[0037] The first test procedure simulates the stress test indicators of the target application in the stress application device, so that the stress application device applies pressure to the stress test device based on the stress test indicators, and the stress test device is used to run the target application in the test environment based on the pressure applied by the stress application device, so as to achieve stress testing of the target application.

[0038] In another possible implementation, the device further includes:

[0039] The connection module is used to control the pressure application device to establish a test connection with the pressure testing device based on the device address, pressure test account and password of the pressure application device. The test connection is used by the pressure application device to apply pressure to the pressure testing device based on the pressure test indicators.

[0040] In another possible implementation, the testing module is used to build test environments for the target application in multiple stress testing devices included in the distributed system, based on the building program, when the target application is an application in a distributed system.

[0041] The pressure application device is further configured to apply pressure to the plurality of pressure testing devices based on the pressure test indicators, and the plurality of pressure testing devices are configured to run the target application in the test environment based on the pressure applied by the pressure application device, so as to achieve stress testing of the target application.

[0042] In another possible implementation, the device further includes:

[0043] The second acquisition module is used to acquire the stress test report of the target application, the stress test report including the stress performance indicators of the target application;

[0044] The modification module is used to modify the first test configuration information to obtain second test configuration information when the pressure performance index fails to meet the standard. The second test configuration information includes the environmental configuration information and the second pressure configuration information.

[0045] The configuration module is further configured to configure the benchmark test script based on the second test configuration information to obtain a second test script. The test configuration information of the second test script is the second test configuration information, and the second test script includes the setup program and the second test program. The stress test index of the second test program is the stress test index corresponding to the second stress configuration information.

[0046] The testing module is also used to build a test environment for the target application through the setup program, simulate the stress test indicators of the target application through the second testing program, and perform stress tests on the target application in the test environment based on the stress test indicators until a stress test report that meets the stress performance indicators is obtained.

[0047] In another possible implementation, the environment configuration information includes at least one of the following: interface address, request data, request method, request header, test steps, and device address of the stress-applying device.

[0048] The first stress configuration information includes at least one of the following: number of threads and execution duration;

[0049] Wherein, the interface address is the interface address between the pressure application device and the pressure testing device;

[0050] The requested data is the data requested by the target application;

[0051] The request method refers to the method of requesting data.

[0052] The request header is a request header that requests the requested data;

[0053] The testing steps are steps for stress testing the target application.

[0054] The pressure applying device is a device that applies pressure to the pressure testing device;

[0055] The number of threads refers to the number of threads that the target application runs simultaneously during the stress test.

[0056] The execution duration is the duration for which the pressure applying device applies pressure to the pressure testing device.

[0057] On the other hand, a control device is provided, the control device including one or more processors and one or more memories, the one or more memories storing at least one piece of program code, the at least one piece of program code being loaded and executed by the one or more processors to implement the stress testing method described in any of the above implementations.

[0058] On the other hand, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the at least one piece of program code being loaded and executed by a processor to implement the stress testing method described in any of the above implementations.

[0059] On the other hand, a computer program product is provided, the computer program product including computer program code stored in a computer-readable storage medium, a processor of a control device reading the computer program code from the computer-readable storage medium, the processor executing the computer program code, causing the control device to perform the stress testing method described in any of the above implementations.

[0060] In this embodiment of the application, a benchmark test script was developed. By configuring the benchmark test script with the first test configuration information of the target application, the obtained first test script can be equipped with the ability to build the test environment corresponding to the first test configuration information. Therefore, the test environment of the application can be built through the first test script, and then subsequent stress testing can be carried out. This eliminates the need for manual test environment building, reduces the time required for test environment building, and improves the efficiency of stress testing. Attached Figure Description

[0061] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0062] Figure 1 This is a schematic diagram of the implementation environment of a stress testing method provided in an embodiment of this application;

[0063] Figure 2 This is a flowchart of a stress testing method provided in an embodiment of this application;

[0064] Figure 3 This is a flowchart of another stress testing method provided in the embodiments of this application;

[0065] Figure 4 This is a flowchart of another stress testing method provided in the embodiments of this application;

[0066] Figure 5 This is a schematic diagram of a stress testing method provided in an embodiment of this application;

[0067] Figure 6 This is a block diagram of a pressure testing device provided in an embodiment of this application;

[0068] Figure 7 This is a structural block diagram of a control device provided in an embodiment of this application. Detailed Implementation

[0069] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0070] It should be noted that all information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application have been authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first test configuration information involved in this application was obtained with full authorization.

[0071] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0072] Figure 1 This is a schematic diagram of the implementation environment of a stress testing method provided in an embodiment of this application; see also Figure 1The implementation environment includes a control device 101, a pressure application device 102, and a pressure testing device 103. The control device 101, pressure application device 102, and pressure testing device 103 communicate with each other via wireless or wired communication methods. The control device 101 performs configuration operations related to the pressure test; for example, the control device 101 configures the test environment in the pressure testing device 103 and configures pressure test indicators in the pressure application device 102. The pressure application device 102 applies pressure to the pressure testing device 103 based on the pressure test indicators. The pressure testing device 103 performs pressure testing on the target application in the test environment based on the pressure applied by the pressure application device 102.

[0073] The target application can be any application to be stress tested; for example, the target application can be an elevator application, a health service application, a game application, or a social application, etc. In this embodiment of the application, the target application is not specifically limited.

[0074] It should be noted that the target application can be an application in a distributed system or an application in a non-distributed system; if the target application is an application in a distributed system, the implementation environment includes multiple stress testing devices 103, that is, the number of stress testing devices 103 in the implementation environment is one or more.

[0075] Another point to note is that stress testing can also be called strength testing or load testing.

[0076] The control device 101 can be configured as a terminal, which can be a mobile phone, tablet, laptop, desktop computer, intelligent voice interaction device, vehicle control device 101, etc., but is not limited to these. The pressure application device 102 and the pressure testing device 103 can be configured as servers. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0077] Figure 2 This is a flowchart of a stress testing method provided in an embodiment of this application, wherein the execution subject of the method is a control device; see also Figure 2 The method includes:

[0078] Step 201: Obtain the first test configuration information of the target application, which includes environment configuration information and first stress configuration information.

[0079] The control device displays a configuration interface for inputting the first test configuration information for the target application. Testers can input this first test configuration information into the interface; the control device then retrieves this information. The first test configuration information includes environment configuration information and first stress configuration information. The environment configuration information is used to configure the test environment for the target application, and the first stress configuration information is used to configure the stress test metrics for the target application.

[0080] Step 202: Based on the first test configuration information, configure the benchmark test script to obtain the first test script.

[0081] The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information.

[0082] Testers pre-program a test script. For ease of distinction, this test script is referred to as the benchmark test script. The benchmark test script has empty test configuration information. By configuring the benchmark test script, a first test script that meets the test requirements can be obtained. The programming language of the benchmark test script can be Python (a computer design language), or it can be C, C++, or VB, etc. In this embodiment, the programming language of the benchmark test script is not specifically limited.

[0083] Step 203: Build a test environment for the target application using a setup program, simulate stress test metrics for the target application using a first test program, and perform stress tests on the target application in the test environment based on the stress test metrics.

[0084] The control device builds a test environment for the target application in the test device by setting up a program; it simulates the stress test indicators of the target application in the stress application device by using a first test program; the stress application device applies pressure to the stress test device based on the stress application indicators; and the stress test device performs stress testing on the target application in the test environment based on the pressure applied by the stress application device.

[0085] In this embodiment of the application, a benchmark test script was developed. By configuring the benchmark test script with the first test configuration information of the target application, the obtained first test script can be equipped with the ability to build the test environment corresponding to the first test configuration information. Therefore, the test environment of the application can be built through the first test script, and then subsequent stress testing can be carried out. This eliminates the need for manual test environment building, reduces the time required for test environment building, and improves the efficiency of stress testing.

[0086] Figure 3 This is a flowchart of a stress testing method provided in an embodiment of this application; see also Figure 3 The method includes:

[0087] Step 301: The control device obtains the first test configuration information of the target application, which includes environment configuration information and first stress configuration information.

[0088] The control device displays a configuration interface for inputting the first test configuration information for the target application. Testers can input this first test configuration information into the interface; the control device then retrieves this information. The first test configuration information includes environment configuration information and first stress configuration information. The environment configuration information is used to configure the test environment for the target application, and the first stress configuration information is used to configure the stress test metrics for the target application.

[0089] The environment configuration information includes at least one of the following: interface address, request data, request method, request headers, test steps, and the device address of the stress application device. The interface address is the interface address between the stress application device and the stress testing device. The request data is the data requested by the target application; for example, if the target application is an elevator application, the requested data is elevator scheduling data; or, if the target application is a health service application, the requested data is the user's health service information. The request method is the method used to request the data; for example, the request method is GET or POST. The request headers are the request headers for the requested data; for example, the request headers can be Accept (data type received), Accept-Language (language received), Accept-Encoding (encoding method of the target application), Connection (long connection or short connection), etc. The test steps are the steps for stress testing the target application; for example, if the target application is an elevator application, the test steps include triggering multiple scheduling requests to the elevator application, such as requesting to schedule the elevator to the 3rd floor, requesting to schedule the elevator to the 4th floor, requesting to schedule the elevator to the 6th floor, etc. The stress application device is the device that applies stress to the stress testing device.

[0090] The first stress configuration information includes at least one of the following: number of threads and execution duration; the number of threads is the number of threads that the target application runs simultaneously during the stress test; the execution duration is the duration for which the stress-applying device applies stress to the stress-testing device.

[0091] Step 302: The control device configures the benchmark test script based on the first test configuration information to obtain the first test script.

[0092] The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information.

[0093] Testers pre-program a test script. For ease of distinction, this test script is referred to as the benchmark test script. The benchmark test script has empty test configuration information. By configuring the benchmark test script, a first test script that meets the test requirements can be obtained. The programming language of the benchmark test script can be Python (a computer design language), or it can be C, C++, or VB, etc. In this embodiment, the programming language of the benchmark test script is not specifically limited.

[0094] In this embodiment, a benchmark test script is developed. The benchmark test script is configured using the first test configuration information of the target application, enabling it to build the test environment corresponding to the first test configuration information. Compared with related technologies using open-source or custom-developed stress testing tools, this method eliminates the need for frequent tool parameter configuration and modification, as well as the need to maintain the tool's test script and perform secondary development of the test tool. Furthermore, in this embodiment, the test configuration and test script are separated, facilitating test configuration maintenance, improving the efficiency and accuracy of stress testing, and saving significant manpower and time.

[0095] Step 303: The control device builds the test environment for the target application in the stress testing device based on the setup program.

[0096] The first implementation method is as follows: the control device sends a first test script to the stress testing device; the stress testing device receives the first test script and builds the test environment of the target application based on the setup program in the first test script.

[0097] In this embodiment, the control device directly sends the first test script to the stress testing device, which then parses the setup program from the first test script and builds the test environment based on the setup program. This distributes the pressure on the control device to the stress testing device, reducing the pressure on the control device.

[0098] The second implementation method is as follows: The control device parses the setup program from the first test script and sends the setup program to the stress testing device; the stress testing device receives the setup program and builds the test environment of the target application based on the setup program.

[0099] In this embodiment, the control device only sends the setup program in the first test script to the stress testing device, and does not need to send the entire first test script to the stress testing device, thereby reducing the amount of information transmitted and improving transmission efficiency.

[0100] Step 304: The control device simulates the stress test parameters of the target application in the pressure application device through the first test procedure.

[0101] The stress test metrics include at least one of the number of threads and the execution time; for example, if the stress test metrics include the number of threads and the number of threads is 3, then the control device simulates 3 threads in the stress application device through the first test program; as another example, if the stress test metrics include the execution time and the execution time is 20 minutes, then the control device simulates a 20-minute stress test in the stress application device through the first test program.

[0102] The first implementation method is as follows: the control device sends a first test script to the pressure application device; the pressure application device receives the first test script and simulates the stress test indicators of the target application based on the first test program in the first test script.

[0103] In this embodiment, the control device directly sends the first test script to the pressure application device, which then parses the first test program from the first test script and simulates the stress test indicators of the target application based on the first test program. This distributes the pressure of the control device to the pressure application device, thereby reducing the pressure on the control device.

[0104] The second implementation method is as follows: the control device parses the first test program from the first test script and sends the first test program to the pressure application device; the pressure application device receives the first test program and simulates the stress test indicators of the target application based on the first test program.

[0105] In this embodiment, the control device only sends the first test program in the first test script to the stress testing device, and does not need to send the entire first test script to the stress testing device, thereby reducing the amount of information transmitted and improving transmission efficiency.

[0106] Step 305: The pressure application device applies pressure to the pressure testing device based on the pressure test parameters.

[0107] For example, if the stress test metric includes the number of threads and the number of threads is 3, then the stress application device sends 3 request data streams to the stress test device simultaneously; or if the stress test metric includes the execution time and the execution time is 20 minutes, then the stress application device applies pressure to the stress test device for 20 minutes.

[0108] Before applying pressure to the pressure testing device based on pressure test indicators, a test connection needs to be established between the pressure applying device and the pressure testing device. This test connection is used by the pressure applying device to apply pressure to the pressure testing device based on the pressure test indicators. The process of establishing this test connection includes: the control device controlling the pressure applying device to establish a test connection with the pressure testing device based on the device address, pressure test account, and password of the pressure applying device. The device address of the pressure applying device can be its IP (Internet Protocol Address).

[0109] In this embodiment, the control device establishes a test connection between the pressure application device and the pressure testing device by using a pressure test account and password, which can improve security.

[0110] Step 306: The stress testing equipment runs the target application in the test environment based on the pressure applied by the stress application equipment to achieve stress testing of the target application.

[0111] For example, if the stress test metric includes the number of threads, and the number of threads is 3, then the stress test device processes 3 requests simultaneously in the test environment. As another example, if the stress test metric includes execution time, and the execution time is 20 minutes, then the stress test device continuously runs the target application in the test environment for 20 minutes.

[0112] Step 307: The stress testing equipment acquires a stress test report of the target application, which includes stress performance metrics of the target application.

[0113] Stress performance metrics include at least one of TPS (Throughput), response time to requested data, and error rate in responding to requested data.

[0114] Step 308: The pressure testing equipment sends the pressure test report to the control equipment.

[0115] After receiving the pressure test report, the pressure testing equipment sends the pressure test report to the control equipment, which then analyzes the pressure test report.

[0116] Step 309: The control device receives the pressure test report. If the pressure performance index fails to meet the standard, it modifies the first test configuration information to obtain the second test configuration information.

[0117] For example, pressure performance indicators include TPS (Transactions Per Second). If the TPS is less than a preset value, the control equipment determines that the TPS is substandard; if the TPS is not less than the preset value, the control equipment determines that the TPS is up to standard. Another example is the response time to requested data. If the response time exceeds a preset time, the control equipment determines that the response time is substandard; if the response time does not exceed the preset time, the control equipment determines that the response time is up to standard. Yet another example is the error rate in responding to requested data. If the error rate exceeds a preset error rate, the control equipment determines that the error rate is substandard; if the error rate does not exceed the preset error rate, the control equipment determines that the error rate is up to standard.

[0118] It should be noted that when the pressure performance index includes multiple indicators, if each indicator meets the standard, the control equipment determines that the pressure performance index meets the standard; if any one of the multiple indicators fails to meet the standard, the control equipment determines that the pressure performance index fails to meet the standard.

[0119] Another point to note is that if the pressure performance indicator fails to meet the standard, the control device can modify the environmental information and the first pressure configuration information in the first test configuration information, or it can only modify the first pressure configuration information in the first test configuration information. In this embodiment, the example of the control device only modifying the first pressure configuration information in the first test configuration information is used for illustration; therefore, the second test configuration information includes the environmental configuration information and the second pressure configuration information.

[0120] Another point to note is that after obtaining the pressure test report, the pressure testing equipment may not necessarily send it to the control equipment. Instead, the pressure test includes determining whether the pressure performance indicators meet the standards; sending a determination result to the control equipment, indicating whether the pressure performance indicators meet or do not meet the standards. The control equipment receives the determination result. If the determination result indicates that the pressure performance indicators meet the standards, the pressure test process ends; if the determination result indicates that the pressure performance indicators do not meet the standards, the first test configuration information is modified to obtain the second test configuration information, and then step 309 is executed.

[0121] Step 310: The control device configures the benchmark test script based on the second test configuration information to obtain the second test script.

[0122] The test configuration information of the second test script is the second test configuration information, and the second test script includes a setup program and a second test program. The stress test indicators of the second test program are the stress test indicators corresponding to the second stress configuration information.

[0123] Step 311: The control device builds a test environment for the target application through a setup program, simulates the stress test indicators of the target application through a second test program, and performs stress tests on the target application in the test environment based on the stress test indicators until a stress test report is obtained that meets the stress performance indicators.

[0124] The implementation process of this step is similar to steps 303-306, where the control device builds a test environment for the target application through a setup program, simulates the stress test indicators of the target application through the first test program, and performs stress tests on the target application in the test environment based on the stress test indicators. Therefore, it will not be described again here.

[0125] In this embodiment of the application, a benchmark test script was developed. By configuring the benchmark test script with the first test configuration information of the target application, the obtained first test script can be equipped with the ability to build the test environment corresponding to the first test configuration information. Therefore, the test environment of the application can be built through the first test script, and then subsequent stress testing can be carried out. This eliminates the need for manual test environment building, reduces the time required for test environment building, and improves the efficiency of stress testing.

[0126] Figure 4 This is a flowchart of a stress testing method provided in an embodiment of this application; see also Figure 4 The method includes:

[0127] Step 401: The control device obtains the first test configuration information of the target application, which includes environment configuration information and first stress configuration information.

[0128] For example, see Figure 5 The tester inputs the first test configuration information into the control device.

[0129] Step 402: The control device configures the benchmark test script based on the first test configuration information to obtain the first test script.

[0130] It should be noted that steps 401-402 are the same as steps 301-302, and will not be repeated here. For example, see [link to previous section]. Figure 5 The control device generates a second test script.

[0131] Another point to note is that after the control device receives the first test script, it determines whether the target application is an application in a distributed system. If the target application is an application in a distributed system, step 403 is executed; if the target application is not an application in a distributed system, steps 303-311 in the above embodiment can be executed. For example, see [link to previous section]. Figure 5 The control device determines whether the target application is an application in a distributed system.

[0132] The control device stores a set of identifiers for applications in the distributed system. If the identifier set includes the program identifier of the target application, the control device determines that the target application is an application in the distributed system. If the identifier set does not include the program identifier of the target application, the control device determines that the target application is not an application in the distributed system.

[0133] Step 403: When the target application is an application in a distributed system, the control device builds the test environment of the target application in multiple stress test devices included in the distributed system based on the setup program.

[0134] The test environments in multiple stress testing devices can be the same or different; in this embodiment, the example of multiple stress testing devices having the same test environment is used for illustration. Accordingly, the steps for the control device to build the test environment of the target application in each of the multiple stress testing devices included in the distributed system based on the setup program can be as follows:

[0135] The control device sends a first test script to multiple stress testing devices; each stress testing device receives the first test script and, based on the setup procedure in the first test script, sets up a test environment for the target application; or,

[0136] The control device parses the setup program from the first test script and sends the setup program to multiple stress testing devices; each stress testing device receives the setup program and builds the test environment for the target application based on the setup program.

[0137] For example, see continue. Figure 5 When the target application is an application in a distributed system, the control device controls the pressure application device to establish test connections with multiple stress testing devices, and then builds a test environment on multiple stress testing devices.

[0138] Step 404: The control device simulates the stress test parameters of the target application in the pressure application device through the first test procedure.

[0139] It should be noted that this step is the same as step 304, and will not be repeated here.

[0140] See also Figure 5 The control device sends a first test script to the pressure application device, which receives the first test script and simulates the stress test indicators of the target application based on the first test script.

[0141] Step 405: The pressure application device applies pressure to multiple pressure testing devices based on the pressure test indicators.

[0142] The pressure applied by the pressure applying device to multiple pressure testing devices can be the same or different. The first implementation method is: the pressure applied by the pressure applying device to multiple pressure testing devices is the same. Then, the step of the pressure applying device applying pressure to multiple pressure testing devices based on the pressure testing index can be: for any pressure testing device, the pressure applying device applies pressure to the pressure testing device based on the pressure testing index, and this process is the same as step 305, which will not be repeated here.

[0143] The second implementation method is as follows: If the pressure applied by the pressure applying device to multiple pressure testing devices is different, the step of the pressure applying device applying pressure to multiple pressure testing devices based on the pressure testing index can be as follows: For any pressure testing device, the pressure applying device applies pressure to the pressure testing device based on the pressure testing index corresponding to the pressure testing device.

[0144] For example, multiple stress testing devices are designated as a first stress testing device and a second stress testing device. If the stress testing metric for the first stress testing device includes 2 threads, then the stress applying device will simultaneously send 2 request data streams to the first stress testing device. If the stress testing metric for the second stress testing device includes 4 threads, then the stress applying device will simultaneously send 4 request data streams to the second stress testing device.

[0145] Step 406: Multiple stress testing devices run the target application in the test environment based on the pressure applied by the stress application device to achieve stress testing of the target application.

[0146] For any stress testing device, the stress testing device runs the target application in the test environment based on the pressure applied by the pressure applying device to achieve stress testing of the target application, and this process is the same as step 306, and will not be described again here.

[0147] For example, a first stress testing device runs the target application in a test environment based on the pressure applied by a stress applying device to achieve stress testing of the target application. A second stress testing device runs the target application in a test environment based on the pressure applied by a stress applying device to achieve stress testing of the target application.

[0148] Step 407: Multiple stress testing devices acquire stress test reports for the target application, which include stress performance metrics of the target application.

[0149] For example, a first stress testing device acquires a first stress test report of the target application, which includes stress performance metrics obtained by the target application under stress testing on the first stress testing device. A second stress testing device acquires a second stress test report of the target application, which includes stress performance metrics obtained by the target application under stress testing on the second stress testing device.

[0150] It should be noted that the processes by which the first pressure testing device obtains the first pressure test report and the second pressure testing device obtains the second pressure test report are the same as those in step 307, and will not be repeated here.

[0151] For example, see continue. Figure 5 Multiple stress testing devices generate test reports, which include TPS, response time, and error rate.

[0152] Step 408: Multiple pressure testing devices send the pressure test report to the control device.

[0153] For example, the first pressure testing device sends a first pressure test report to the control device. The second pressure testing device sends a second pressure test report to the control device, and this process is the same as step 308, so it will not be described again here.

[0154] Step 409: The control device receives pressure test reports from multiple pressure testing devices and determines the target pressure testing device based on the pressure test reports from multiple pressure testing devices.

[0155] The target pressure testing equipment is a pressure testing equipment whose pressure performance indicators do not meet the standards.

[0156] Step 410: Control the device to modify the first test configuration information to obtain the second test configuration information.

[0157] For example, the control device receives a first pressure test report and a second pressure test report; if the pressure performance indicators included in the first pressure test report are not up to standard, or if the pressure performance indicators included in the second pressure test report are not up to standard, the first test configuration information is modified to obtain the second test configuration information.

[0158] It should be noted that the process of the control device modifying the first test configuration information to obtain the second test configuration information is the same as step 309, and will not be repeated here.

[0159] For example, see continue. Figure 5 If any stress test report fails to meet the requirements, the tester will re-enter the test configuration information. For ease of distinction, the test configuration information re-entered by the tester will be referred to as the second test configuration information.

[0160] Step 411: The control device configures the benchmark test script based on the second test configuration information to obtain the second test script.

[0161] It should be noted that this step is the same as step 310, and will not be repeated here.

[0162] Step 412: The control device performs stress tests on the target application in the target stress test device using the second test script until a stress test report showing that the stress performance indicators meet the standards is obtained.

[0163] The control device builds a test environment for the target application in the target stress test device by setting up a program. Through a second test program, it simulates the stress test indicators of the target application in the stress application device. The stress application device applies pressure to the target stress test device based on the stress test indicators. The target application device performs stress test on the target application in the test environment based on the pressure applied by the stress application device until a stress test report is obtained that meets the stress performance indicators.

[0164] For example, if the pressure performance indicators included in the first test report do not meet the standards, the control device will build a test environment for the target application in the first pressure test device by setting up a program, and simulate the pressure test indicators of the target application in the pressure application device by using a second test program. The pressure application device will apply pressure to the first pressure test device based on the pressure test indicators. The first pressure test device will run the target application in the test environment based on the pressure applied by the pressure application device to achieve the pressure test of the target application.

[0165] It should be noted that in this step, the control device may not rebuild the test environment of the target application in the first stress test device, but only simulate the stress test indicators of the target application in the application device through the second test program, thereby reducing operations and improving the efficiency of stress testing.

[0166] In this embodiment of the application, a benchmark test script was developed. By configuring the benchmark test script with the first test configuration information of the target application, the obtained first test script can be equipped with the ability to build the test environment corresponding to the first test configuration information. Therefore, the test environment of the application can be built through the first test script, and then subsequent stress testing can be carried out. This eliminates the need for manual test environment building, reduces the time required for test environment building, and improves the efficiency of stress testing.

[0167] Figure 6 This is a block diagram of a pressure testing device provided in an embodiment of this application. The device includes:

[0168] The first acquisition module 601 is used to acquire the first test configuration information of the target application, the first test configuration information including environment configuration information and first stress configuration information;

[0169] The configuration module 602 is used to configure the benchmark test script based on the first test configuration information to obtain the first test script. The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information.

[0170] The test module 603 is used to build a test environment for the target application through a build program, simulate the stress test indicators of the target application through a first test program, and perform stress tests on the target application in the test environment based on the stress test indicators.

[0171] In one possible implementation, test module 603 is used to build a test environment for the target application in a stress testing device based on the build program;

[0172] The first test procedure simulates the stress test indicators of the target application in the stress application device, so that the stress application device applies pressure to the stress test device based on the stress test indicators, and the stress test device is used to run the target application in the test environment based on the pressure applied by the stress application device, so as to achieve stress testing of the target application.

[0173] In another possible implementation, the device also includes:

[0174] The connection module is used to control the pressure application device to establish a test connection with the pressure testing device based on the device address, pressure test account and password of the pressure application device. The test connection is used by the pressure application device to apply pressure to the pressure testing device based on the pressure test indicators.

[0175] In another possible implementation, test module 603 is used to build test environments for the target application in multiple stress test devices included in the distributed system, based on the build program, when the target application is an application in a distributed system.

[0176] The pressure application device is also used to apply pressure to multiple pressure testing devices based on pressure test indicators, and the multiple pressure testing devices are used to run the target application in the test environment based on the pressure applied by the pressure application device, so as to achieve stress testing of the target application.

[0177] In another possible implementation, the device also includes:

[0178] The second acquisition module is used to acquire the stress test report of the target application, which includes the stress performance indicators of the target application.

[0179] The modification module is used to modify the first test configuration information to obtain the second test configuration information when the pressure performance indicators fail to meet the standards. The second test configuration information includes environmental configuration information and second pressure configuration information.

[0180] The configuration module 602 is also used to configure the benchmark test script based on the second test configuration information to obtain the second test script. The test configuration information of the second test script is the second test configuration information, and the second test script includes a setup program and a second test program. The stress test index of the second test program is the stress test index corresponding to the second stress configuration information.

[0181] The test module 603 is also used to build a test environment for the target application through a build program, simulate the stress test indicators of the target application through a second test program, and perform stress tests on the target application in the test environment based on the stress test indicators until a stress test report is obtained that meets the stress performance indicators.

[0182] In another possible implementation, the environment configuration information includes at least one of the following: interface address, request data, request method, request header, test steps, and device address of the stress-applying device.

[0183] The first stress configuration information includes at least one of the following: number of threads and execution duration;

[0184] The interface address is the interface address between the pressure application device and the pressure testing device.

[0185] The requested data is the data requested by the target application;

[0186] The request method is the method of requesting data;

[0187] The request header is the header that requests the data in this request;

[0188] The testing steps are the steps for stress testing the target application;

[0189] Pressure application equipment is a device that applies pressure to pressure testing equipment;

[0190] The number of threads refers to the number of threads that the target application runs simultaneously during the stress test.

[0191] The execution duration is the duration during which the pressure applying device applies pressure to the pressure testing device.

[0192] In this embodiment of the application, a benchmark test script was developed. By configuring the benchmark test script with the first test configuration information of the target application, the obtained first test script can be equipped with the ability to build the test environment corresponding to the first test configuration information. Therefore, the test environment of the application can be built through the first test script, and then subsequent stress testing can be carried out. This eliminates the need for manual test environment building, reduces the time required for test environment building, and improves the efficiency of stress testing.

[0193] It should be noted that the pressure testing device provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the electronic device can be divided into different functional modules to complete all or part of the functions described above. In addition, the pressure testing device and the pressure testing method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0194] Figure 7 The diagram illustrates a structural block diagram of a control device 700 provided in an exemplary embodiment of the present invention. The control device 700 may be a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. The control device 700 may also be referred to as a user device, portable terminal, laptop terminal, desktop terminal, or other names.

[0195] Typically, the control device 700 includes a processor 701 and a memory 702.

[0196] Processor 701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0197] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 702 are used to store at least one instruction, which is executed by the processor 701 to implement the stress testing method provided in the method embodiments of this application.

[0198] In some embodiments, the control device 700 may also optionally include a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, and a power supply 708.

[0199] Peripheral device interface 703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 701 and memory 702. In some embodiments, processor 701, memory 702 and peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 701, memory 702 and peripheral device interface 703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0200] The radio frequency (RF) circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 704 can communicate with other control devices via at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 704 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0201] Display screen 705 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 705 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 701 for processing. In this case, display screen 705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 705, which serves as the front panel of the control device 700; in other embodiments, there may be at least two display screens 705, respectively disposed on different surfaces of the control device 700 or in a folded design; in still other embodiments, display screen 705 may be a flexible display screen, disposed on a curved or folded surface of the control device 700. Furthermore, display screen 705 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. Display screen 705 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).

[0202] The camera assembly 706 is used to acquire images or videos. Optionally, the camera assembly 706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the control device, and the rear-facing camera is located on the back of the control device. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 706 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0203] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 701 for processing, or input to the radio frequency circuit 704 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the control device 700. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert the electrical signals from the processor 701 or the radio frequency circuit 704 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 707 may also include a headphone jack.

[0204] Power supply 708 is used to supply power to the various components in control device 700. Power supply 708 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 708 includes a rechargeable battery, the rechargeable battery can support wired or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0205] In some embodiments, the control device 700 further includes one or more sensors 709. The one or more sensors 709 include, but are not limited to, an acceleration sensor 710, a gyroscope sensor 711, a pressure sensor 712, an optical sensor 713, and a proximity sensor 714.

[0206] Accelerometer 710 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established by control device 700. For example, accelerometer 710 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 701 can control display screen 705 to display the user interface in either a landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 710. Accelerometer 710 can also be used for games or for acquiring user motion data.

[0207] The gyroscope sensor 711 can detect the orientation and rotation angle of the control device 700. The gyroscope sensor 711, in conjunction with the accelerometer sensor 710, can collect 3D motion data from the user on the control device 700. Based on the data collected by the gyroscope sensor 711, the processor 701 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0208] The pressure sensor 712 can be disposed on the side bezel of the control device 700 and / or the lower layer of the display screen 705. When the pressure sensor 712 is disposed on the side bezel of the control device 700, it can detect the user's grip signal on the control device 700, and the processor 701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is disposed on the lower layer of the display screen 705, the processor 701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 705. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0209] An optical sensor 713 is used to collect ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 705 is increased; when the ambient light intensity is low, the display brightness of the display screen 705 is decreased. In another embodiment, the processor 701 can also dynamically adjust the shooting parameters of the camera assembly 706 based on the ambient light intensity collected by the optical sensor 713.

[0210] The proximity sensor 714, also known as a distance sensor, is typically mounted on the front panel of the control device 700. The proximity sensor 714 is used to detect the distance between the user and the front of the control device 700. In one embodiment, when the proximity sensor 714 detects that the distance between the user and the front of the control device 700 is gradually decreasing, the processor 701 controls the display screen 705 to switch from a screen-on state to a screen-off state; when the proximity sensor 714 detects that the distance between the user and the front of the control device 700 is gradually increasing, the processor 701 controls the display screen 705 to switch from a screen-off state to a screen-on state.

[0211] Those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on the control device 700, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0212] This application also provides a computer-readable storage medium storing at least one line of program code, which is loaded and executed by a processor to implement the stress testing method described in any of the above implementations. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, and optical data storage devices.

[0213] This application also provides a computer program product, which includes computer program code stored in a computer-readable storage medium. The processor of the electronic device reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the electronic device to perform the stress testing method of any of the above implementations.

[0214] In some embodiments, the computer program product involved in the present application can be deployed on an electronic device for execution, or executed on multiple electronic devices located in one location, or executed on multiple electronic devices distributed in multiple locations and interconnected through a communication network. Multiple electronic devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.

[0215] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A pressure testing method, characterized in that, The method includes: Obtain the first test configuration information of the target application entered in the configuration interface. The first test configuration information includes environment configuration information for configuring the test environment of the target application and first stress configuration information for configuring the stress test indicators of the target application. The environment configuration information includes at least one of the following: interface address, request data, request method, request header, test steps, and device address of the stress application device; the interface address is the interface address between the stress application device and the stress testing device; the request data is the data requested by the target application; the request method is the method of requesting the requested data; the request header is the request header of the requested data; the test steps are the steps of stress testing the target application; and the stress application device is the device that applies pressure to the stress testing device. Based on the first test configuration information, the benchmark test script with empty test configuration information is configured to obtain the first test script. The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up for the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information. After obtaining the first test script, determine whether the target application is an application in a distributed system; If the target application is an application in a distributed system, then based on the setup program, test environments for the target application are set up in multiple stress testing devices included in the distributed system, and the test environments in the multiple stress testing devices are identical; through the first test program, stress test indicators of the target application are simulated in the stress application device, so that the stress application device applies stress to the multiple stress testing devices respectively, and the multiple stress testing devices perform stress tests on the target application in the test environment based on the stress applied by the stress application device; the stress applied by the stress application device to the multiple stress testing devices is different; Obtain pressure test reports from the plurality of pressure test devices, including pressure performance metrics of the target application, and identify the target pressure test device whose pressure performance metrics do not meet the standards. If the pressure performance index fails to meet the standard, modify the first pressure configuration information in the first test configuration information to obtain second test configuration information that includes the environmental configuration information and the second pressure configuration information. Based on the second test configuration information, the benchmark test script is configured to obtain a second test script. The test configuration information of the second test script is the second test configuration information, and the second test script includes the setup program and the second test program. The stress test index of the second test program is the stress test index corresponding to the second stress configuration information. The second test procedure simulates the stress test indicators of the target application. Based on the stress test indicators, the target application is subjected to stress test in the target stress test equipment until a stress test report is obtained that meets the stress performance indicators.

2. The method according to claim 1, characterized in that, The pressure testing equipment is used to run the target application in the test environment based on the pressure applied by the pressure applying device, so as to achieve a pressure test on the target application.

3. The method according to claim 2, characterized in that, The method further includes: Based on the device address, pressure test account, and password of the pressure application device, the system controls the pressure application device to establish a test connection with the pressure test device. The test connection is used by the pressure application device to apply pressure to the pressure test device based on the pressure test indicators.

4. The method according to claim 2, characterized in that, In the case where the target application is an application in a distributed system, the plurality of stress testing devices are used to run the target application in the test environment based on the stress applied by the stress applying device, so as to achieve stress testing on the target application.

5. The method according to claim 1, characterized in that, The first stress configuration information includes at least one of the following: number of threads and execution duration; The number of threads refers to the number of threads that the target application runs simultaneously during the stress test. The execution duration is the duration for which the pressure applying device applies pressure to the pressure testing device.

6. A pressure testing device, characterized in that, The device includes: The first acquisition module is used to acquire the first test configuration information of the target application entered in the configuration interface. The first test configuration information includes environment configuration information for configuring the test environment of the target application and first stress configuration information for configuring the stress test indicators of the target application. The environment configuration information includes at least one of the following: interface address, request data, request method, request header, test steps, and device address of the stress application device; the interface address is the interface address between the stress application device and the stress testing device; the request data is the data requested by the target application; the request method is the method of requesting the requested data; the request header is the request header of the requested data; the test steps are the steps of stress testing the target application; and the stress application device is the device that applies pressure to the stress testing device. The configuration module is used to configure the benchmark test script with empty test configuration information based on the first test configuration information to obtain the first test script. The test configuration information of the first test script is the first test configuration information, and the first test script includes a setup program and a first test program. The setup program is set up to the test environment corresponding to the environment configuration information, and the stress test index of the first test program is the stress test index corresponding to the first stress configuration information. The module is used to perform the following steps: after obtaining the first test script, it determines whether the target application is an application in a distributed system; The testing module is used to, if the target application is an application in a distributed system, build test environments for the target application in multiple stress testing devices included in the distributed system based on the building program. The test environments in the multiple stress testing devices are identical. Through the first testing program, stress testing metrics of the target application are simulated in the stress application devices, so that the stress application devices apply stress to the multiple stress testing devices respectively. The multiple stress testing devices perform stress testing on the target application in the test environment based on the stress applied by the stress application devices. The stress applied by the stress application devices to the multiple stress testing devices is different. The second acquisition module is used to acquire pressure test reports of the multiple pressure testing devices, including pressure performance indicators of the target application, and to identify the target pressure testing device whose pressure performance indicators do not meet the standards. The modification module is used to modify the first pressure configuration information in the first test configuration information when the pressure performance index fails to meet the standard, so as to obtain second test configuration information including the environmental configuration information and the second pressure configuration information. The configuration module is further configured to configure the benchmark test script based on the second test configuration information to obtain a second test script. The test configuration information of the second test script is the second test configuration information, and the second test script includes the setup program and the second test program. The stress test index of the second test program is the stress test index corresponding to the second stress configuration information. The testing module is further configured to simulate the stress test indicators of the target application through the second testing program, and perform stress tests on the target application in the target stress testing equipment based on the stress test indicators until a stress test report in which the stress performance indicators meet the standards is obtained.

7. A control device, characterized in that, The control device includes one or more processors and one or more memories, wherein at least one piece of program code is stored in the one or more memories, and the at least one piece of program code is loaded and executed by the one or more processors to implement the stress testing method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The storage medium stores at least one piece of program code, which is loaded and executed by a processor to implement the stress testing method as described in any one of claims 1 to 5.

9. A computer program product, characterized in that, The computer program product includes computer program code stored in a computer-readable storage medium. The processor of the control device reads the computer program code from the computer-readable storage medium and executes the computer program code, causing the control device to perform the stress testing method as described in any one of claims 1 to 5.