A method and device for system pressure testing

Automated stress testing using real system data improves accuracy and reduces manual effort by generating stress testing data from actual system nodes, addressing manual data creation challenges and system change impacts.

CN111475395BActive Publication Date: 2025-07-15BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN201910069347.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-01-24
Publication Date
2025-07-15
Estimated Expiration
2039-01-24

AI Technical Summary

Technical Problem

In the prior art, system stress testing has the problem of manual order making workload and error-prone, the accuracy of pressure test data is difficult to guarantee, and business changes lead to high probability of order making errors.

Method used

By obtaining the real online data of the system to be tested, modifying and deleting the status of the pressure measurement node to generate pressure measurement data, and using cloud storage to manage pressure measurement data, automatically assemble the INSERT statement to generate pressure measurement scripts for stress testing.

Benefits of technology

It improves the accuracy of stress testing, reduces the workload of manual orders, and reduces the chance of errors caused by system business changes, ensuring that the pressure testing data is in line with the actual situation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111475395B_ABST
    Figure CN111475395B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and device for system pressure testing, relating to the field of computer technology. A specific embodiment of the method includes: obtaining online data of a system to be tested; according to determined pressure testing nodes, modifying the status of the pressure testing nodes in the online data and deleting the node data after the pressure testing nodes to obtain pressure testing data; and performing pressure testing on the system to be tested based on the pressure testing data. The pressure testing data in this method is generated based on the real data of the system, which is more in line with the actual situation, so it can improve the accuracy of pressure testing and greatly reduce the workload in the process of manually creating orders.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular, to a method and apparatus for system stress testing. Background Art

[0002] Performing stress testing on a system and determining stress test data are very important steps. In the prior art, due to the very complex logic of automatic order creation, the method of manual order creation is generally used to determine stress test data. For example, in a warehousing system, if the "location" logic (performing stress testing on the "location" node in the warehousing system) is to be stress-tested, the stress test data is created for the "location" node; if the "picking" logic is to be stress-tested, the stress test data is created for the "picking" node. For the very complex logic of automatic order creation, it is necessary to make business data conform to basic data during the order creation process. The automatic order creation tool belongs to this type of tool for simulating a system, and the difficulty and cost of its development and maintenance are relatively high.

[0003] For example, there are 100 warehouses and 1 million waves in the online warehousing system. The SKUs under each wave cannot have too much duplication. If the SKUs are duplicated, they will be located on the same inventory, which will affect the stress test results. For the 100 warehouses and 1 million waves in the warehousing system line, due to the limitations of manual work, through the method of manual order creation, it may only be possible to determine stress test data for one or several warehouses, which does not conform to the real scenario and thus leads to inaccurate stress testing. If stress test data is determined through an automatic order creation tool, if the requirements are continuously increased and modified, the order creation tool also needs to be continuously maintained. Especially for requirements with large structural modifications, the changes to the order creation tool will also be very large.

[0004] As can be seen from the above, the prior art has the following problems in the implementation process: the workload of manual order creation in a complex system is huge and prone to errors; before stress testing, it is impossible to detect the accuracy of the stress test data created manually. If there are errors in the stress test data, it can only be determined through the results when running the order; for a relatively complex system, if manual order creation is used, the obtained stress test data has a small dispersion degree, and the stress test results are not persuasive; and business changes will increase the probability of order creation errors by order creation personnel. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a method and apparatus for system stress testing, which can improve the accuracy of stress testing and greatly reduce the workload in the manual order creation process.

[0006] To achieve the above object, according to one aspect of the embodiments of the present invention, a method for system stress testing is provided.

[0007] The method for system pressure testing according to an embodiment of the present invention includes: obtaining online data of the system to be tested; modifying the status of the pressure testing node in the online data according to the determined pressure testing node, and deleting the node data after the pressure testing node to obtain pressure testing data; and performing a pressure test on the system to be tested based on the pressure testing data.

[0008] Optionally, after modifying the status of the pressure testing node in the online data according to the determined pressure testing node, and deleting the node data after the pressure testing node to obtain pressure testing data, the method further includes: determining the key value of the pressure testing data according to the dimension information of the preset cloud storage; and uploading the pressure testing data to the cloud storage based on the key value.

[0009] Optionally, the step of uploading the pressure testing data to the cloud storage includes: assembling the INSERT statement of the pressure testing data according to the status information of the pressure testing data; and performing cloud storage on the INSERT statement by means of the key value.

[0010] Optionally, after performing a pressure test on the system to be tested based on the pressure testing data, the method further includes: adding a completion identifier to the pressure testing data.

[0011] To achieve the above object, according to another aspect of the embodiments of the present invention, there is provided an apparatus for system pressure testing.

[0012] The apparatus for system pressure testing according to an embodiment of the present invention includes:

[0013] An online data acquisition module, configured to obtain online data of the system to be tested;

[0014] A pressure testing data acquisition module, configured to modify the status of the pressure testing node in the online data according to the determined pressure testing node, and delete the node data after the pressure testing node to obtain pressure testing data;

[0015] A testing module, configured to perform a pressure test on the system to be tested based on the pressure testing data.

[0016] Optionally, the apparatus for system pressure testing according to an embodiment of the present invention further includes a storage module, configured to determine the key value of the pressure testing data according to the dimension information of the preset cloud storage; and upload the pressure testing data to the cloud storage based on the key value.

[0017] Optionally, the storage module is further configured to assemble the INSERT statement of the pressure testing data according to the status information of the pressure testing data; and perform cloud storage on the INSERT statement by means of the key value.

[0018] Optionally, the device for system pressure testing according to an embodiment of the present invention further includes an end mark adding module, configured to add an end mark to the pressure testing data.

[0019] To achieve the above object, according to another aspect of the embodiments of the present invention, an electronic device is provided.

[0020] The electronic device according to an embodiment of the present invention includes: one or more processors; a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the method for system pressure testing as described in any one of the above.

[0021] To achieve the above object, according to another aspect of the embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method for system pressure testing as described in any one of the above.

[0022] One embodiment of the above invention has the following advantages or beneficial effects: Based on the real data on the system line, the pressure testing data is determined. Among them, since the online data obtained is generally completed data, which includes all node data in the system, the status of the pressure testing nodes in the online data is modified according to the pressure testing nodes, and the node data after the pressure testing nodes is deleted, that is, the pressure testing data required for this pressure test is obtained. This pressure testing data is generated based on the real data of the system and is more in line with the actual situation, so it will improve the accuracy of the pressure test and greatly reduce the workload in the process of manually creating orders.

[0023] The further effects of the above non-conventional optional methods will be described in conjunction with specific embodiments below. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings are used to better understand the present invention and do not constitute an improper limitation to the present invention. Among them:

[0025] Figure 1 is a schematic diagram of the main process of the method for system pressure testing according to an embodiment of the present invention;

[0026] Figure 2 is a schematic diagram of the storage of pressure testing data according to an embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of obtaining pressure testing data based on cloud storage according to an embodiment of the present invention;

[0028] Figure 4 is a schematic diagram of the main modules of the device for system pressure testing according to an embodiment of the present invention;

[0029] Figure 5It is an exemplary system architecture diagram to which the embodiments of the present invention can be applied;

[0030] Figure 6 It is a schematic structural diagram of a computer system of a terminal device or a server suitable for implementing the embodiments of the present invention. Detailed implementation manners

[0031] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings. Various details of the embodiments of the present invention are included to facilitate understanding, and they should be considered merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted below.

[0032] Figure 1 It is a schematic diagram of the main process of the method for system stress testing according to the embodiments of the present invention. As Figure 1 shown, the method for system stress testing according to the embodiments of the present invention mainly includes:

[0033] Step S101: Obtain the online data of the system to be tested. This online data is the data that the system to be tested runs normally, so it is the real data of the system. Moreover, in the embodiments of the present invention, the obtained online data is completed data, that is, the online data includes the node data of all nodes of the system to be tested. For example, for a warehousing system, its all nodes are in sequence: positioning → dispatching → picking → verification → shipping. Then the obtained online data has gone through each of the above nodes. This online data is not only real but also has completed the entire process of the system to be tested, and its correctness can be known, thereby ensuring the correctness of the subsequent obtained stress test data. Therefore, the stress test data can be not checked, reducing the workload of generating stress test data in the stress test and improving the accuracy of the stress test.

[0034] Step S102: According to the determined stress test node, modify the status of the stress test node in the online data and delete the node data after the stress test node to obtain the stress test data. Among them, the stress test node is the node in the system to be tested that needs to be stress tested. For example, all nodes in a warehousing system: positioning → dispatching → picking → verification → shipping. If it is necessary to perform stress testing on the "picking" node in this warehousing system, then this "picking" node is the stress test node. When determining the stress test node, it can be specified manually or by system default, data analysis, etc.

[0035] Moreover, the stress test data is the data obtained from stress testing on determined stress test nodes. When obtaining the stress test data, the status of the stress test nodes is modified. Since the online data of the system under test is the real data including all nodes of the system (historical data of the normal operation of the system), the data of the nodes after the stress test nodes in the online data is deleted, and then the stress test data of the stress test nodes is obtained. For example, for the above-mentioned warehousing system, if the "order picking" node is the stress test node, after obtaining the online data of the warehousing system, the status of the "order picking" node is adaptively modified, and the data of the nodes after the "order picking" node is deleted, that is, the data of the "rechecking" and "shipping" nodes is deleted, and then the test data of the "order picking" node is obtained. In the embodiments of the present invention, the stress test data is generated based on the real data of the system, which is more in line with the actual situation, so the accuracy of the stress test will be improved. Moreover, by automatically reading the completed data on the system online through code logic and automatically creating orders in a rollback manner, the problem of human error in manual order creation is solved, and the workload in the manual order creation process is greatly reduced.

[0036] Specifically, the process of data rollback at least includes: modifying the node status, deleting some associated relationship fields, and discarding the sub-table data generated in the subsequent process. For example, for the wave table, when rolling back to the to-be-located state, the wave_status field is modified to 1, where "1" represents the "to-be-located" state. Moreover, the corresponding relationship between the field and the status is: 1 to-be-located, 2 to-be-supplemented, 3 located, 4 invalidated, 5 dispatched, 99 initial, 98 locating. And the INSERT statements of the stress test data are all assembled by code. Just change the status value to 1. The completed data will generate subsequent table data. For example, the collection order table is generated after the location is completed, and this table does not need to be imported. If you want to restore to the located state, just change the wave_status field of the generated INSERT statement to 3. Since the collection order table is generated after the location is completed, when the node status is changed to the located state at this time, the collection order and the collection order detail table need to be imported at this time.

[0037] Figure 2 It is a schematic diagram of the storage of stress test data according to the embodiments of the present invention. After step S102, according to the preset dimension information of cloud storage, the key value of the stress test data is determined; based on the key value, the stress test data is uploaded to the cloud storage. As Figure 2 shown, after generating the stress test data based on the online data obtained from the online, the stress test data is uploaded to the cloud storage. Then, when stress testing the stress test node again, the required stress test data can be directly obtained from the cloud storage, and the obtained stress test data is put into the stress test database.

[0038] During the process of uploading the stress test data to the cloud storage, according to the status information of the stress test data, assemble the INSERT statement of the stress test data; store the INSERT statement in the cloud storage in the form of key values. Further assemble the online data obtained through select into an INSERT statement, and generate a stress test script for stress testing. Among them, the stress test script is the input parameter of the stress test method. For example, the input parameter of the positioning method can be the wave number, which has been assembled when assembling the INSERT statement and can be assembled into the stress test script at the same time. Cloud storage refers to a system that combines a large number of different types of storage devices in the network through application software such as cluster applications, network technologies, or distributed file systems to work together and provide data storage and business access functions to the outside world.

[0039] Figure 3 It is a schematic diagram of obtaining stress test data based on cloud storage according to an embodiment of the present invention. Using the cloud storage method can stress test the same process multiple times. That is, when stress testing this stress test node again, the stress test data can be directly obtained from the cloud storage, as Figure 3 shown. If the stress test data of this stress test node exists in the cloud storage, there is no need to obtain data from the online data and further analyze and roll back the online data, avoiding the problem of repeatedly generating stress test data during the stress test process.

[0040] The cloud storage of the stress test data can be carried out according to the definition of the cloud storage KEY. For example, the definition of KEY is: system name (such as laswms) + node (such as start review) + document type (such as sales out). Among them, for the node of "start review", there are generally 4 document types: sales out, internal distribution out, return to factory out, and spare parts out. Among them, the business scenario of stress testing "sales out" is relatively common. Storing stress test data by document type is relatively flexible. The data has been prepared in various dimensions on the cloud. Using the system / node / document type as the KEY, you can directly download the stress test data through the KEY to stress test a certain link.

[0041] A cycle can be set to automatically execute the generation of stress test data to the cloud storage by the WORKER and import it into the stress test database, and then automatic stress testing can be carried out, so that stress testing can be carried out usually and without investing too many personnel, enhancing the system stability. The table structure of the worker is as shown in the following table:

[0042] id primary key system_name system name to_flow stress testing link bill_type document type exec_count execution times is_success success or failure cloud_key cloud storage KEY

[0043] Step S103: Based on the stress test data, perform stress testing on the system to be tested.

[0044] In the prior art, creating a stress test script for stress testing is extremely troublesome. It requires manually counting business order numbers in the library, placing these business order numbers in EXCEL for adjustment, and then manually creating a stress test script. Since multiple order numbers need to have a corresponding relationship and cannot be disordered, if the input parameters are multiple order numbers, the difficulty of creating a stress test script at this time is even greater. Moreover, during e-commerce festivals such as "618" or "Double 11", almost all systems have stress testing requirements. Each business system conducts its own system stress testing separately. Their goals are to generate reasonable stress test data and correct stress test scripts, and the methods are almost the same. However, in the prior art, there is no unified management stress test system to generate stress test data and stress test scripts, which increases a lot of repetitive work.

[0045] In the embodiments of the present invention, an INSERT statement for assembling stress test data is used, and stress test script data is generated at the same time. The code will organize stress test data and organize stress test scripts through different nodes. Different stress test nodes assemble different stress test scripts.

[0046] After performing a stress test on the system to be tested based on the stress test data, a completion flag is added to the stress test data. The bottom data for the stress test can be generated through this completion flag. The bottom data is a large amount of data stored in the database according to the business logic except for the database dictionary table before the stress test. These data can be regarded as garbage data because they have no actual impact on the business logic of the system, but have a great impact on the performance of the system. During the stress test process, the bottom data needs to be generated according to the actual situation. The bottom data and the dirty data are the data that has already been processed. It is impossible for the business tables to be empty during stress testing. There should be some processed data in them to conform to the real scenario.

[0047] Because it is a batch execution of the system, the processing of the bottom data and the dirty data for stress testing is very easy to operate. Since the same data may be used for stress testing multiple times, and the general business primary key is the association relationship between tables, there will be conflicts when importing multiple times. At this time, a one-key completion data function can be developed. What needs to be done is to add a unique number (completion flag) to the business order numbers of all stress test libraries. This number represents the completion of this time, and all data becomes bottom data. Moreover, if there is too much bottom data, it can be deleted in batches with one key according to this order number.

[0048] In an embodiment of the present invention, stress test data is determined based on real data on the system line. Among them, since the online data obtained is generally completed data, which includes all node data in the system, the status of the stress test nodes in the online data is modified according to the stress test nodes, and the node data after the stress test nodes is deleted, that is, the stress test data required for this stress test is obtained. This stress test data is generated based on the real data of the system and is more in line with the actual situation, so it will improve the accuracy of the stress test and greatly reduce the workload in the process of manually creating orders. It solves the problem that the workload of manually creating orders in a complex system is huge and prone to errors. And, the stress test data for creating orders is generated based on real data, so its errors cannot be detected. At the same time, changes in the system business will not increase the error probability of creating orders in the embodiment of the present invention.

[0049] Figure 4 It is a schematic diagram of the main modules of the device for system stress testing according to an embodiment of the present invention, as Figure 4 shown, the device 400 for system stress testing according to an embodiment of the present invention includes an online data acquisition module 401, a stress test data acquisition module 402, and a test module 403.

[0050] The online data acquisition module 401 is used to acquire the online data of the system to be tested.

[0051] The stress test data acquisition module 402 is used to modify the status of the stress test nodes in the online data according to the determined stress test nodes, and delete the node data after the stress test nodes to obtain the stress test data.

[0052] The test module 403 is used to perform a stress test on the system to be tested based on the stress test data.

[0053] The device for system stress testing according to an embodiment of the present invention further includes a storage module. After the stress test data acquisition module modifies the status of the stress test nodes in the online data according to the determined stress test nodes and deletes the node data after the stress test nodes to obtain the stress test data, the storage module determines the key value of the stress test data according to the preset dimension information of cloud storage; and uploads the stress test data to cloud storage based on the key value. The storage module is also used to assemble the INSERT statement of the stress test data according to the status information of the stress test data; and perform cloud storage on the INSERT statement in the form of a key value.

[0054] The device for system stress testing according to an embodiment of the present invention further includes a completion mark adding module. After the test module performs a stress test on the system to be tested based on the stress test data, the adding module adds a completion mark to the stress test data.

[0055] In an embodiment of the present invention, stress test data is determined based on real data on the system line. Among them, since the online data obtained is generally completed data, which includes all node data in the system, the status of the stress test nodes in the online data is modified according to the stress test nodes, and the node data after the stress test nodes is deleted, that is, the stress test data required for this stress test is obtained. This stress test data is generated based on the real data of the system and is more in line with the actual situation, so it will improve the accuracy of the stress test and greatly reduce the workload in the process of manually creating orders. It solves the problem that the manual order creation workload in a complex system is huge and prone to errors. Moreover, the stress test data for order creation is generated based on real data, so its errors cannot be detected. At the same time, changes in the system business will not increase the error probability of order creation in the embodiment of the present invention.

[0056] Figure 5 FIG. 500 shows an exemplary system architecture to which the method for system stress testing or the apparatus for system stress testing according to an embodiment of the present invention can be applied.

[0057] As Figure 5 shown, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 is used to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. The network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.

[0058] Users can use the terminal devices 501, 502, 503 to interact with the server 505 through the network 504 to receive or send messages, etc. Various communication client applications may be installed on the terminal devices 501, 502, 503, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0059] The terminal devices 501, 502, 503 may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, and desktop computers, etc.

[0060] The server 505 may be a server providing various services, such as a background management server (only as an example) that supports shopping websites browsed by users using the terminal devices 501, 502, 503. The background management server may analyze and process data such as product information query requests received, and feedback the processing results to the terminal devices.

[0061] It should be noted that the method for system stress testing provided by the embodiments of the present invention is generally executed by the server 505. Correspondingly, the device for system stress testing is generally arranged in the server 505.

[0062] It should be understood that Figure 5 the number of terminal devices, networks, and servers in

[0063] Reference will now be made to Figure 6 , which shows a schematic structural diagram of a computer system 600 of a terminal device suitable for implementing the embodiments of the present invention. Figure 6 The terminal device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiments of the present invention.

[0064] As Figure 6 shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage section 608 into the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other via a bus 604. The input / output (I / O) interface 605 is also connected to the bus 604.

[0065] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a 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, a 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 magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed so that a computer program read from it can be installed into the storage section 608 as needed.

[0066] In particular, according to the embodiments disclosed in the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present invention include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above functions defined in the system of the present invention are executed.

[0067] It should be noted that the computer-readable medium shown in the present invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present invention, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries the computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0068] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code, and the above-mentioned module, segment of a program, or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as combinations of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0069] The modules described in the embodiments of the present invention can be implemented in software or in hardware. The described modules can also be provided in a processor. For example, it can be described as: a processor includes an online data acquisition module, a stress test data acquisition module, and a test module. Among them, the names of these modules do not constitute a limitation on the module itself in some cases. For example, the online data acquisition module can also be described as "a module for acquiring online data of the system to be tested".

[0070] As another aspect, the present invention also provides a computer-readable medium, which can be included in the device described in the above embodiments; or can exist separately without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by the device, the device includes: acquiring online data of the system to be tested; according to the determined stress test nodes, modifying the states of the stress test nodes in the online data and deleting the node data after the stress test nodes to obtain stress test data; and performing a stress test on the system to be tested based on the stress test data.

[0071] In an embodiment of the present invention, stress test data is determined based on real data on the system line. Among them, since the online data obtained is generally completed data, which includes all node data in the system, the status of the stress test nodes in the online data is modified according to the stress test nodes, and the node data after the stress test nodes is deleted, that is, the stress test data required for this stress test is obtained. This stress test data is generated based on the real data of the system and is more in line with the actual situation, so it will improve the accuracy of the stress test and greatly reduce the workload in the process of manually creating orders. It solves the problem that the workload of manually creating orders for complex systems is huge and prone to errors. Moreover, since the stress test data for creating orders is generated based on real data, its errors cannot be detected. At the same time, changes in the system business will not increase the error probability of creating orders in the embodiment of the present invention.

[0072] The above specific implementation manners do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A method for system pressure testing, characterized in that, Including: Obtain the online data of the system to be tested; The online data is the historical data of the system running normally; According to the determined stress test node, modify the status of the stress test node in the online data, and delete the node data after the stress test node, including deleting the associated relationship field and discarding the sub-table data generated by the subsequent process, to obtain stress test data; The stress test data is the data for performing a stress test on the stress test node; Based on the stress test data, perform a stress test on the stress test node in the system to be tested; After obtaining the stress test data, it further includes: determining the key value of the stress test data according to the preset dimension information of cloud storage, including: system name, node, document type; based on the key value, upload the stress test data to the cloud storage; wherein, a cycle is formulated to automatically execute using WORKER to generate stress test data to the cloud storage and import it into the stress test database.

2. The method according to claim 1, wherein The step of uploading the stress test data to the cloud storage includes: Assemble the INSERT statement of the stress test data according to the status information of the stress test data; Store the INSERT statement in the cloud storage in the way of key value.

3. The method according to claim 1, wherein After performing a stress test on the system to be tested based on the stress test data, it further includes: Add a completion mark to the stress test data.

4. A device for system pressure testing, characterized in that, Including: An online data acquisition module for obtaining the online data of the system to be tested; the online data is the historical data of the system running normally; A stress test data acquisition module for modifying the status of the stress test node in the online data according to the determined stress test node, and deleting the node data after the stress test node, including deleting the associated relationship field and discarding the sub-table data generated by the subsequent process, to obtain stress test data; The stress test data is the data for performing a stress test on the stress test node; A test module for performing a stress test on the stress test node in the system to be tested based on the stress test data; The device further includes a storage module for determining the key value of the stress test data according to the preset dimension information of cloud storage, including: system name, node, document type; based on the key value, upload the stress test data to the cloud storage; wherein, a cycle is formulated to automatically execute using WORKER to generate stress test data to the cloud storage and import it into the stress test database.

5. The device according to claim 4, wherein The storage module is further used to assemble the INSERT statement of the stress test data according to the status information of the stress test data; store the INSERT statement in the cloud storage in the way of key value.

6. The device according to claim 4, characterized in that It further includes a completion mark adding module for adding a completion mark to the stress test data.

7. An electronic device, characterized in that, Including: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1-3.

8. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method described in any one of claims 1-3.

Citation Information

Patent Citations

  • Pressure test method, device and apparatus and medium

    CN109165168A