Pressure test evaluation method, apparatus, device, medium, and program product

By using an automated stress testing evaluation method, which utilizes target data tables and core business-related data for evaluation, the problem of low efficiency in existing stress testing technologies is solved, and efficient and accurate stress testing evaluation is achieved.

CN114817074BActive Publication Date: 2025-11-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210616000.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-11-11
Estimated Expiration
2042-05-31

Smart Images

  • Figure CN114817074B_ABST
    Figure CN114817074B_ABST
Patent Text Reader

Abstract

This disclosure provides a stress testing assessment method, apparatus, equipment, medium, and program product, relating to the field of computer technology and applicable to the financial technology field. The stress testing assessment method includes: determining the program type result of the program to be tested; and, if the program type result includes a first target program and / or a second target program, determining the stress testing assessment result of the program to be tested as: conducting a stress test; wherein, the relevant data of the first target program during runtime is stored in a target data table, the target data table being determined based on the comparison result of the table data volume and a comparison threshold, and the second target program is related to core business operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, specifically to the field of software testing technology, and more specifically to a stress testing and evaluation method, apparatus, equipment, medium, and program product. Background Technology

[0002] Stress testing is a method for determining system stability. It is typically conducted outside the system's normal operating range to examine its functional limits and identify potential problems. Generally, it involves continuously applying "stress" to the server to determine the system's bottlenecks or unacceptable performance points, thereby obtaining the maximum service level the system can provide.

[0003] In existing technologies, whether or not to conduct stress tests is determined by relevant professionals, which is inefficient. Summary of the Invention

[0004] In view of the above problems, this disclosure provides a pressure testing evaluation method, apparatus, equipment, medium and procedure product with higher pressure testing evaluation efficiency.

[0005] According to a first aspect of this disclosure, a stress testing method is provided, comprising: determining the program type result of the program to be tested; and, if the program type result includes a first target program and / or a second target program, determining the stress test evaluation result of the program to be tested as: performing a stress test; wherein, the relevant data of the first target program during runtime is stored in a target data table, the target data table is determined based on the comparison result of the table data volume and a comparison threshold, and the second target program is related to core business.

[0006] According to embodiments of this disclosure, determining the program type result of the program to be tested includes: comparing a data table related to the runtime of the program to be tested with a target data table to obtain a first type result; comparing the program to be tested with a second target program to obtain a second type result; and determining the program type result based on the first type result and the second type result.

[0007] The stress test evaluation method according to embodiments of the present disclosure further includes: determining a target program set based on at least one of a first target program and a second target program; and updating the target program set based on the changed first target program and the changed second target program in response to a change in at least one of the first target program and the second target program.

[0008] The stress test evaluation method according to embodiments of the present disclosure further includes: recording at least one of the information of the target data table and the information of the core business to the target form; and updating the target form according to the changed information of the target data table and the changed information of the core business in response to a change in at least one of the information of the target data table and the core business.

[0009] The stress test evaluation method according to the embodiments of this disclosure further includes: when the stress test evaluation result of the program to be tested is: under stress test, visually displaying the relevant content of the program to be tested, wherein the relevant content of the program to be tested includes the program to be tested, the target form, and the content related to the program to be tested in the target assembly.

[0010] The stress test evaluation method according to the embodiments of this disclosure further includes: in response to the stress test evaluation result of the program to be tested, performing a stress test on the program to be tested.

[0011] The stress test evaluation method according to the embodiments of this disclosure further includes: collecting the amount of table data of a data table related to the operation of the program under test according to the collection parameters, wherein the collection parameters include at least one of the following: collection frequency, database to which the data table belongs, and application to which the data table belongs.

[0012] According to embodiments of this disclosure, the first target program includes a database program, and the second target program includes a basic function program.

[0013] A second aspect of this disclosure provides a stress test evaluation apparatus, comprising: a program type result determination module and a stress test evaluation result determination module. The program type result determination module is used to determine the program type result of the program to be tested; the stress test evaluation result determination module is used to determine the stress test evaluation result of the program to be tested as follows: stress test to be performed when the program type result includes a first target program and / or a second target program; wherein, the relevant data of the first target program during runtime is stored in a target data table, the target data table is determined based on the comparison result of the table data volume and a comparison threshold, and the second target program is related to core business.

[0014] A third aspect of this disclosure provides an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors cause the one or more processors to perform the methods of embodiments of this disclosure.

[0015] A fourth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the methods of embodiments of this disclosure.

[0016] A fifth aspect of this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the methods of embodiments of this disclosure. Attached Figure Description

[0017] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0018] Figure 1 The illustration schematically depicts application scenarios of pressure testing and evaluation methods, apparatus, devices, media, and procedures according to embodiments of this disclosure.

[0019] Figure 2 A flowchart illustrating a stress test evaluation method according to an embodiment of the present disclosure is shown schematically.

[0020] Figure 3 A flowchart illustrating operation S210 according to an embodiment of the present disclosure is shown schematically.

[0021] Figure 4 A flowchart illustrating a stress test evaluation method according to yet another embodiment of the present disclosure is shown schematically;

[0022] Figure 5 A flowchart illustrating a stress test evaluation method according to yet another embodiment of the present disclosure is shown schematically;

[0023] Figure 6 A schematic diagram of a pressure testing and evaluation apparatus according to an embodiment of the present disclosure is shown.

[0024] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing a stress test evaluation method according to an embodiment of the present disclosure. Detailed Implementation

[0025] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0026] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0027] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0028] When using expressions such as "at least one of A, B, and C", they should generally be interpreted in accordance with the meaning that is commonly understood by a person skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, a system having A alone, a system having B alone, a system having C alone, a system having A and B, a system having A and C, a system having B and C, and / or a system having A, B, and C, etc.).

[0029] Whether a program, interface, or transaction needs load testing is primarily assessed manually by the system architect or development manager. During the overall project design or detailed design phase, indicators such as future business transaction volume, concurrency, and response time are evaluated through surveys or forecasts to comprehensively determine whether load testing is necessary. Then, by submitting the corresponding load testing element table, specialized testers conduct stress testing or fatigue testing using load testing tools.

[0030] On the one hand, given the current strong demand and rapid iteration, project cycles are often short, and the time allotted for project team members to conduct load testing and evaluation is very limited. At the same time, there are a large number of existing changes or new features that need to be load tested and evaluated, resulting in a large workload. Under limited time, only important top transactions can be evaluated, which can easily lead to omissions and production problems.

[0031] On the other hand, program stress testing and evaluation require human input. First, the evaluators need to have an in-depth understanding of the project background, the overall system structure, and the upstream and downstream interactions. Then, they need to assess the necessity of stress testing through research or estimation. Therefore, there is a problem of large human resource cost investment, and at the same time, certain ability requirements are placed on the evaluators.

[0032] On the other hand, whether a function or program needs to be stress tested largely depends on the experience and personal maturity of the evaluators. There are shortcomings in the evaluation of cross-professional systems, and automated evaluation cannot be achieved.

[0033] It should be noted that the stress testing evaluation method and apparatus of this disclosure can be used in the financial field, or in any field other than the financial field. This disclosure does not limit the application field of the stress testing method and apparatus.

[0034] In the technical solution disclosed herein, the collection, storage, use, processing, transmission, provision, disclosure, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.

[0035] The embodiments of this disclosure provide a stress test evaluation method, including: determining the program type result of the program to be tested; and when the program type result includes a first target program and / or a second target program, determining the stress test evaluation result of the program to be tested as: performing a stress test; wherein, the relevant data of the first target program during runtime is stored in a target data table, the target data table is determined based on the comparison result of the table data volume and a comparison threshold, and the second target program is related to core business.

[0036] The stress test evaluation method disclosed in this embodiment can perform automated stress test evaluation, without relying on the expert experience of professional personnel, thus lowering the technical entry barrier for stress test evaluation and requiring less human resource investment. Furthermore, the stress test evaluation is based on core business logic and the amount of data in the underlying data tables, making the stress test evaluation more accurate and efficient.

[0037] Figure 1 The diagram illustrates an application scenario of the stress test evaluation method according to an embodiment of the present disclosure.

[0038] like Figure 1 As shown, application scenario 100 according to this embodiment may include terminal devices 101, 102, and 103, network 104, and server 105. Network 104 is used as a medium to provide a communication link between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.

[0039] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0040] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0041] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using terminal devices 101, 102, and 103 (for example only). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0042] It should be noted that the stress testing and evaluation method provided in this embodiment can generally be executed by server 105. Correspondingly, the stress testing and evaluation device provided in this embodiment can generally be located in server 105. The stress testing and evaluation method provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105. Correspondingly, the stress testing and evaluation device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105.

[0043] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0044] The following will be based on Figure 1 The described scene, through Figures 2-5 The stress testing method according to the embodiments of this disclosure will be described in detail.

[0045] Figure 2 A flowchart illustrating a stress test evaluation method according to an embodiment of the present disclosure is shown schematically.

[0046] like Figure 2 As shown, the stress test evaluation method 200 of this embodiment includes operations S210 to S220.

[0047] In operation S210, the program type of the program to be tested is determined.

[0048] In operation S220, if the program type result includes the first target program and / or the second target program, the stress test evaluation result of the program to be tested is determined as: stress test to be performed.

[0049] The relevant data of the first target program during runtime is stored in the target data table, which is determined based on the comparison results of the table data volume and the comparison threshold. The second target program is related to the core business.

[0050] The table data volume can be understood as the amount of data in the data table. For example, if 100,000 records are stored in a certain data table, then the table data volume is 100,000.

[0051] The target data table can be understood as a data table whose data volume is greater than the comparison threshold.

[0052] For example, the comparison threshold Th can be a value between 1 million and 8 million. Taking a comparison threshold Th of 5 million as an example, if there are three data tables DS1, DS2 and DS3, where data table DS1 has 7.21 million data entries, data table DS2 has 3 million data entries, and data table DS3 has 0.2 million data entries, then data table DS1 can be determined as a target data table.

[0053] Core business can be understood as the important business defined by actual application scenarios.

[0054] For example, a list of target data tables with a data volume greater than the comparison threshold can be obtained based on the comparison result of the table data volume and the comparison threshold, and the target data table can be determined from the list of target data tables.

[0055] It should be understood that the operation S220, "when the program type result includes the first target program and / or the second target program, determining the stress test evaluation result of the program to be tested as: perform stress test," can specifically include the following three schemes. To clearly illustrate the stress test evaluation method of this disclosure embodiment, the following three schemes will be distinguished and described separately:

[0056] 1) If the program type result includes the first target program, the stress test evaluation result of the program to be tested is determined as: stress test to be performed.

[0057] 2) If the program type result includes the second target program, the stress test evaluation result of the program to be tested is determined as: stress test to be performed.

[0058] 3) If the program type result includes the first target program and / or the second target program, the stress test evaluation result of the program to be tested is determined as: stress test is performed.

[0059] Regarding the above scheme 1), the following will illustrate the technical principle of the stress test evaluation method of this disclosure, which can efficiently evaluate whether to conduct a stress test.

[0060] For example, when a user performs an operation on the application side, the backend may involve a series of processes such as requesting, processing, and storing data. All of these processes involve storing data in a database, specifically in a data table. The size of the data table affects stress test evaluation metrics such as transaction volume, concurrency, and response time (the size of the data table is negatively correlated with transaction volume, concurrency, and response time). Compared to other data tables, the target data table has a larger size, and the size of the target data table is negatively correlated with evaluation metrics. Therefore, when the program under test includes a first target program related to the target data table, the program under test needs to undergo stress testing.

[0061] Regarding option 2 above:

[0062] Core business logic is also crucial for the application. A situation may arise where the data volume of tables related to the core business is less than a comparison threshold, but a secondary target program related to the core business directly impacts its successful completion. Therefore, when the program under test includes a secondary target program related to the core business, the program under test needs to undergo stress testing.

[0063] The above scheme 3) can be combined with and refer to the descriptions of scheme 1) and scheme 2), and will not be repeated here.

[0064] In summary, the stress test evaluation method of this disclosure can perform automated stress test evaluation, without relying on the expert experience of professional personnel, thus lowering the technical entry barrier for stress test evaluation and requiring less human resource investment. Furthermore, since the stress test evaluation is based on core business logic and the amount of data in the underlying data tables, the stress test evaluation is more accurate and has higher efficiency.

[0065] Figure 3 A flowchart illustrating the results of determining the program type of a program to be tested using a stress test evaluation method according to another embodiment of the present disclosure is shown.

[0066] like Figure 3 As shown, for example, the specific example of determining the program type result of operation S210 can be implemented using the following embodiment.

[0067] In operation S11, the data table related to the running of the program to be tested is compared with the target data table to obtain the first type of result.

[0068] For example, the identifier of the data table related to the running of the program to be detected can be compared with the identifier of the target data table. If the identifiers are the same, the first category result of the program to be detected can be determined to include the first target program.

[0069] In operation S12, the program to be tested is compared with the second target program to obtain the second type of result.

[0070] For example, the program to be detected can be compared line by line with the second target program. When the program to be detected includes the second target program, the second type result of the program to be detected can be determined to include the second target program.

[0071] In operation S13, the program type result is determined based on the first type result and the second type result.

[0072] The stress testing method of this disclosure, by comparing the data table related to the runtime of the program under test with the target data table, can reflect whether the program under test includes the first target program; by comparing the program under test with the second target program, can reflect whether the program under test includes the first target program. The program type result obtained based on the first type result and the second type result is more comprehensive.

[0073] Figure 4 A schematic diagram of a pressure testing method 300 according to yet another embodiment of the present disclosure is shown.

[0074] like Figure 4 As shown, the stress testing method 300 according to another embodiment of the present disclosure may include, for example, operations S330 to S340.

[0075] In operation S330, a target program set is determined based on at least one of the first target program and the second target program.

[0076] In operation S340, in response to at least one change in the first target program and the second target program, the target program set is updated according to the changed first target program and the changed second target program.

[0077] For example, at least one of the first target program and the second target program can be used as an existing asset for comparison with the program to be tested, making the stress test evaluation method of this disclosure more flexible when performing stress test evaluation on the program to be tested. In cases such as version iteration, the first target program and the second target program may change. The stress test evaluation method of this disclosure can integrate at least one of the first target program and the second target program through the target program set and maintain the changes of the first target program and the second target program, making the stress test evaluation method of this disclosure have good scalability and higher stress test evaluation efficiency.

[0078] For example, core transactions can be identified based on core assets to obtain core business processes, and then second target programs related to these core business processes can be derived. Alternatively, core transactions can be identified based on application-side white papers to obtain core business processes, and then second target programs related to these core business processes can be derived. Application-side white papers may include, for example, the functions, menus, and operation indexes of the application system.

[0079] Core assets can be understood as important assets, such as important functions or important transactions.

[0080] For example, operations S330 to S340 may be performed after operation S220.

[0081] Figure 5 A flowchart illustrating a stress testing method according to yet another embodiment of the present disclosure is shown.

[0082] like Figure 5 As shown, the stress testing method 400 according to another embodiment of the present disclosure may include: operation S450 to operation S460.

[0083] In operation S450, at least one of the information from the target data table and the core business information is recorded into the target form.

[0084] In operation S460, in response to at least one change in the information of the target data table or the information of the core business, the target form is updated based on the changed information of the target data table or the changed information of the core business.

[0085] According to the stress test evaluation method of this disclosure, whether the program to be tested should be stress tested is related to whether the program to be tested involves core business and target data table. The stress test method of this disclosure can integrate at least one of the information of the target data table and the information of the core business through the target form, and maintain the changes of the information of the target data table and the information of the core business, so that the stress test evaluation method of this disclosure has good scalability and higher stress test evaluation efficiency.

[0086] For example, operations S450 to S460 may be executed after operation S220. Operations S450 to S460 may also be executed after operation S340 or before operation S330.

[0087] For example, the code scanning component of the Devops pipeline can be used to scan the code of the program to be detected submitted by Git, and by combining the target form and the target assembly, it can be determined whether the program to be detected includes a first target program and a second target program.

[0088] DevOps (a combination of Development and Operations) is a collective term for a set of processes, methods, and systems used to facilitate communication, collaboration, and integration between development (application / software engineering), technical operations, and quality assurance (QA) departments. It is a culture, movement, or practice that emphasizes communication and collaboration between software developers (Dev) and IT operations professionals (Ops). By automating software delivery and architecture change processes, it aims to make building, testing, and releasing software faster, more frequent, and more reliable.

[0089] Git is an open-source distributed version control system that can efficiently and quickly handle version management for projects ranging from very small to very large. It was developed by Linus Torvalds to help manage the development of the Linux kernel. Unlike commonly used version control tools such as CVS and Subversion, it uses a distributed repository approach, eliminating the need for server-side software support and making the distribution and exchange of source code extremely convenient.

[0090] According to another embodiment of the present disclosure, the stress testing method may include: when the stress test evaluation result of the program to be tested is: under stress test conditions, visually displaying the relevant content of the program to be tested.

[0091] The relevant content of the program to be tested includes the program to be tested, the target form, and the content related to the program to be tested in the target assembly.

[0092] According to the stress test evaluation method of this disclosure, when the stress test evaluation result of the program to be tested is: stress test is required, the program to be tested needs to be stress tested. By visualizing the relevant content of the program to be tested, the stress test evaluation method of this disclosure has a visualization effect. For example, after the stress test evaluation, it is determined that the program to be tested needs to be stress tested. Relevant personnel can intuitively understand the relevant content of the program to be tested through the visual display. When the stress test evaluation method of this disclosure automatically evaluates whether the program to be tested needs to be stress tested, relevant personnel can intervene in some cases, so that the stress test evaluation method of this disclosure can adapt to various application scenarios and has higher stress test evaluation efficiency.

[0093] According to another embodiment of the stress test evaluation method of this disclosure, it may further include: in response to the stress test evaluation result of the program to be tested being: performing a stress test on the program to be tested.

[0094] For example, the stress test evaluation result of the program under test can be as follows: perform stress test, and link the stress test tool to perform stress test on the program under test.

[0095] The stress test evaluation method according to the embodiments of this disclosure can automatically perform stress tests on the program under test based on the stress test evaluation results of the program under test, thus having higher stress test efficiency.

[0096] According to another embodiment of the stress test evaluation method of this disclosure, it may further include: collecting the amount of table data of the data table related to the running of the program to be tested according to the collection parameters.

[0097] The data acquisition parameters include at least one of the following: acquisition frequency, the database to which the data table belongs, and the application to which the data table belongs.

[0098] It should be noted that the amount of data in the data table changes in real time. Therefore, the stress test evaluation method of this disclosure embodiment can collect the amount of data in the data table according to the collection frequency to improve the efficiency of data collection.

[0099] For example, the sampling frequency could be: once per week.

[0100] Applications may not be limited to using only one type of database for data storage; different types of databases may differ in various aspects, such as the method of collecting table data. Therefore, the stress test evaluation method of this disclosure can improve the efficiency of table data collection by distinguishing between different types of databases and adapting to different types of databases for table data collection.

[0101] For example, JDBC (Java Database Connectivity) can be used to periodically access different types of databases (Oracle, MySQL) of various applications at a collection frequency. By accessing the performance views of different types of databases, the amount of table data in the data tables of the application's production environment can be collected.

[0102] For example, in the stress test evaluation method according to the embodiments of this disclosure, the first target program may include a database program, and the second target program may include a basic function program.

[0103] For example, the route planning function used in navigation software can be understood as a business function used to implement route planning. The route planning function needs to determine the location. For example, the positioning function can be understood as a basic function corresponding to the route planning function.

[0104] Based on the above-described stress testing and evaluation method, this disclosure also provides a stress testing and evaluation apparatus. The following will be combined with... Figure 6 The device is described in detail.

[0105] Figure 6 A schematic block diagram of a pressure testing and evaluation apparatus according to an embodiment of the present disclosure is shown.

[0106] like Figure 6 As shown, the pressure test evaluation device 500 of this embodiment includes a program type result determination module 510 and a pressure test evaluation result determination module 520.

[0107] The program type result determination module 510 is used to determine the program type result of the program to be tested.

[0108] The stress test evaluation result determination module 520 is used to determine the stress test evaluation result of the program to be tested as follows when the program type result includes a first target program and / or a second target program: stress test to be performed; wherein, the relevant data of the first target program during runtime is stored in the target data table, and the target data table is determined based on the comparison result of the table data volume and the comparison threshold, and the second target program is related to the core business.

[0109] According to embodiments of this disclosure, the program type result determination module includes:

[0110] The first type of result determination submodule is used to compare the data table related to the runtime of the program to be tested with the target data table to obtain the first type of result;

[0111] The second-type result determination submodule is used to compare the program to be detected with the second target program to obtain the second-type result; and

[0112] The program type result determination submodule is used to determine the program type result based on the first type result and the second type result.

[0113] The stress test evaluation apparatus according to embodiments of the present disclosure further includes: a target program set determination module and a target program set update module.

[0114] The target program assembly determination module is used to determine the target program assembly based on at least one of the first target program and the second target program.

[0115] The target assembly update module is used to update the target assembly in response to at least one change in the first target program and the second target program, based on the changed first target program and the changed second target program.

[0116] The stress test evaluation apparatus according to embodiments of the present disclosure further includes: a target form determination module and a target form update module.

[0117] The target form determination module is used to record at least one of the information from the target data table and the core business information into the target form.

[0118] The target form update module is used to update the target form in response to at least one change in the information of the target data table or the information of the core business.

[0119] The stress test evaluation apparatus according to embodiments of the present disclosure further includes a visualization module.

[0120] The visualization module is used to visualize the relevant content of the program under test when the stress test evaluation results are as follows: Under the condition of stress test, the relevant content of the program under test includes the program under test, the target form, and the content related to the program under test in the target program assembly.

[0121] The stress testing and evaluation apparatus according to embodiments of the present disclosure further includes a stress testing module.

[0122] The stress testing module is used in response to the stress test evaluation results of the program under test: perform stress testing on the program under test.

[0123] The stress testing and evaluation apparatus according to embodiments of the present disclosure further includes: a table data acquisition module.

[0124] The table data volume acquisition module is used to collect the table data volume of the relevant data tables of the program under test according to the acquisition parameters. The acquisition parameters include at least one of the following: acquisition frequency, database to which the data table belongs, and application to which the data table belongs.

[0125] According to embodiments of this disclosure, the first target program includes a database program, and the second target program includes a basic function program.

[0126] It should be noted that each module of the stress test evaluation device in this embodiment can perform the various operations corresponding to the stress test evaluation method in the above embodiments, which will not be repeated here.

[0127] Figure 7 A block diagram schematically illustrates an electronic device suitable for implementing a stress test evaluation method according to an embodiment of the present disclosure.

[0128] like Figure 7As shown, an electronic device 600 according to an embodiment of this disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage portion 608 into a random access memory (RAM) 603. The processor 601 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 601 may also include onboard memory for caching purposes. The processor 601 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of this disclosure.

[0129] RAM 603 stores various programs and data required for the operation of electronic device 600. Processor 601, ROM 602, and RAM 603 are interconnected via bus 604. Processor 601 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 602 and / or RAM 603. It should be noted that the programs may also be stored in one or more memories other than ROM 602 and RAM 603. Processor 601 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0130] According to embodiments of this disclosure, the electronic device 600 may further include an input / output (I / O) interface 605, which is also connected to a bus 604. The electronic device 600 may also include one or more of the following components connected to the I / O interface 605: an input section 606 including a keyboard, mouse, etc.; an output section 607 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 610 as needed so that computer programs read from it can be installed into the storage section 608 as needed.

[0131] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0132] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 602 and / or RAM 603 and / or one or more memories other than ROM 602 and RAM 603 described above.

[0133] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to enable the computer system to implement the stress testing and evaluation methods provided in the embodiments of this disclosure.

[0134] When the computer program is executed by the processor 601, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0135] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 609, and / or installed from the removable medium 611. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0136] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the processor 601, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0137] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0138] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0139] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0140] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A stress test evaluation method, comprising: The data table related to the running of the program to be detected is compared with the target data table to obtain the first type of result. The target data table is a data table whose data volume is greater than the comparison threshold. The data related to the running of the first target program is stored in the target data table. The program to be tested is compared with the second target program to obtain a second type of result; the second target program is related to the core business. as well as Based on the first type of result and the second type of result, determine the program type result of the program to be detected; as well as If the program type result includes a first target program and / or a second target program, the stress test evaluation result of the program to be tested is determined as: stress test to be performed; The method further includes: Record at least one of the information from the target data table and the information from the core business into the target form; wherein, the information from the core business includes the second target program related to the core business; In response to at least one change in the information of the target data table or the information of the core business, the target form is updated according to the changed information of the target data table or the changed information of the core business.

2. The method according to claim 1, further comprising: A target program set is determined based on at least one of the first target program and the second target program; as well as In response to at least one change to the first target program or the second target program, the target program set is updated according to the changed first target program or the changed second target program.

3. The method according to claim 1, further comprising: The stress test evaluation result of the program to be tested is as follows: under stress test, the relevant content of the program to be tested is visualized, wherein the relevant content of the program to be tested includes the program to be tested, the target form, and the content related to the program to be tested in the target program assembly.

4. The method according to any one of claims 1-3, further comprising: In response to the stress test evaluation result of the program under test, the following action is taken: stress test is performed on the program under test.

5. The method according to any one of claims 1-3, further comprising: The amount of table data related to the running of the program to be tested is collected according to the collection parameters, which include at least one of the following: collection frequency, the database to which the data table belongs, and the application to which the data table belongs.

6. The method according to any one of claims 1-3, wherein, The first target program includes a database program, and the second target program includes a basic function program.

7. A pressure testing and evaluation device, comprising: The target form determination module is used to record at least one of the information from the target data table and the information from the core business into the target form; wherein, the information from the core business includes a second target program related to the core business; The target form update module is used to update the target form in response to at least one change in the information of the target data table and the information of the core business, based on the changed information of the target data table and the changed information of the core business. The program type result determination module is used for: The data table related to the running of the program to be detected is compared with the target data table to obtain the first type of result. The target data table is a data table whose data volume is greater than the comparison threshold. The data related to the running of the first target program is stored in the target data table. The program to be tested is compared with the second target program to obtain a second type of result; the second target program is related to core business; and Based on the first type of result and the second type of result, determine the program type result of the program to be detected; and The stress test evaluation result determination module is used to determine the stress test evaluation result of the program to be tested as follows when the program type result includes a first target program and / or a second target program: stress test is performed; wherein, the relevant data of the first target program during runtime is stored in a target data table, the target data table is determined based on the comparison result of the table data volume and the comparison threshold, and the second target program is related to the core business.

8. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 6.

10. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Mobile terminal application software testing method and device and electronic equipment

    CN113704121A

  • Pressure testing method, device and system, server and medium

    CN113778851A