Test method and device, storage medium and electronic equipment
By extracting and replaying the original order message data corresponding to the difference items in the data comparison system, accurately checking whether the difference items are successfully repaired in the second system, solving the problem that the difference items cannot be guaranteed to be successfully repaired after the difference items are repaired in the prior art, and achieving high-accurate difference item repair and regression testing.
Patent Information
- Application Number
- CN202311635467.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
In the prior art, after the difference item is repaired, it is impossible to guarantee 100% whether the difference item is completely repaired, and there is a risk of repair failure.
By checking whether there are differences in the message data of the first and second systems corresponding to the order in the data comparison system, extracting the original order message data corresponding to the difference item, performing traffic replay to generate playback message data, and comparing whether there are differences in the first message data and the playback message data, so as to accurately regress whether the difference problem is successfully fixed.
Ensure the accuracy and completeness of the differential item repair, avoid the risk of repair failure, and improve the quality of system switching.
Smart Images

Figure CN120067220A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing, and particularly to a testing method, apparatus, storage medium, and electronic device. Background Art
[0002] At the organizational level, it is often necessary to integrate two systems A and B. To ensure the quality of system switching, it is necessary to compare the differences in the core capability points of systems A and B to detect whether there are any difference items, and then repair the difference items.
[0003] After the repair of the difference items is completed, to ensure the success of the repair, it is also necessary to test whether the difference items still exist. In the prior art, it is usually to continuously observe the future traffic. If the difference does not appear during the observation period, it is considered that the difference problem is closed-loop and the difference items have been repaired.
[0004] However, this method has drawbacks because the traffic of the business scenario that generates the difference items may not appear during the observation period, and it is actually impossible to guarantee 100% that the repair of the difference items is completed.
[0005] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0006] The purpose of the present disclosure is to provide a testing method, apparatus, storage medium, and electronic device, aiming to solve the problem that it cannot accurately return whether the difference items are successfully repaired.
[0007] Other features and advantages of the present disclosure will become apparent through the following detailed description, or be learned in part through the practice of the present disclosure.
[0008] According to one aspect of the embodiments of the present disclosure, a testing method is provided, including:
[0009] When a data comparison system detects a difference item between the first message data of the first system corresponding to an order and the second message data of the second system, the second system repairs the system based on the difference item;
[0010] Extract the first message data corresponding to the order with the difference item and the original order placement message data; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference item;
[0011] Replay the original order placement message data in the second system to obtain replay message data;
[0012] The data comparison system checks whether there are the difference items between the first message data and the playback message data.
[0013] According to some embodiments of the present disclosure, based on the foregoing solution, before the second system repairs the system based on the difference items, the method further includes:
[0014] Recording the first result data of the first system, and recording the original traffic data of the data comparison system for comparing the first message data and the second message data;
[0015] Storing the first result data and the original traffic data into the original database.
[0016] According to some embodiments of the present disclosure, based on the foregoing solution, the extraction of the first message data and the original order placement message data corresponding to the order with the difference items includes:
[0017] Obtaining the order number of the order with the difference items;
[0018] Extracting the first message data and the original order placement message data from the original database based on the order number.
[0019] According to some embodiments of the present disclosure, based on the foregoing solution, after storing the first result data and the original traffic data into the original database, the method further includes:
[0020] Periodically converting the first result data in the original database into carry-over first result data, and converting the original traffic data into carry-over original traffic data;
[0021] Storing the carry-over first result data and the carry-over original traffic data into the carry-over database.
[0022] According to some embodiments of the present disclosure, based on the foregoing solution, the extraction of the first message data and the original order placement message data corresponding to the order with the difference items includes:
[0023] Obtaining the order number of the order with the difference items;
[0024] Querying whether there are the first message data and the original order placement message data in the original database based on the order number;
[0025] When they exist, extracting the first message data and the original order placement message data from the original database based on the order number;
[0026] In the absence, obtain the first message data and the original order placement message data from the carry-over database based on the order number.
[0027] According to some embodiments of the present disclosure, based on the foregoing solution, the extracting the first message data and the original order placement message data from the carry-over database based on the order number includes:
[0028] Extract the carry-over first message data corresponding to the difference item from the carry-over first result data based on the order number;
[0029] Convert the carry-over first message data into the first message data; and
[0030] Extract the carry-over original order placement message data corresponding to the difference item from the carry-over original traffic data based on the order number;
[0031] Convert the carry-over original order placement message data into the original order placement message data.
[0032] According to some embodiments of the present disclosure, based on the foregoing solution, the performing traffic replay of the original order placement message data in the second system to obtain replay message data includes:
[0033] Perform traffic replay of the original order placement message data through the order adaptation layer of the second system to obtain replay data;
[0034] Send the replay data to the order center to perform order fulfillment according to the replay data to obtain the replay message data.
[0035] According to some embodiments of the present disclosure, based on the foregoing solution, when the data comparison system checks that there is the difference item between the first message data and the replay message data, the method further includes:
[0036] The second system performs system repair again based on the difference item.
[0037] According to some embodiments of the present disclosure, based on the foregoing solution, when the data comparison system checks that there is no such difference item between the first message data and the replay message data, the method further includes:
[0038] Delete the carry-over first message data and the carry-over original order placement message data corresponding to the order in the carry-over database.
[0039] According to a second aspect of the embodiments of the present disclosure, there is provided a testing device, including:
[0040] A repair module, configured to, when the data comparison system detects that there are difference items between the first message data of the first system corresponding to an order and the second message data of the second system, the second system performs system repair based on the difference items;
[0041] An extraction module, configured to extract the first message data corresponding to the order with the difference items and the original order placement message data; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference items;
[0042] A playback module, configured to perform traffic playback of the original order placement message data in the second system to obtain playback message data;
[0043] A test module, configured to test whether there are the difference items between the first message data and the playback message data by the data comparison system.
[0044] According to a third aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the test method in the above embodiments is implemented.
[0045] According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: one or more processors; a storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the test method in the above embodiments.
[0046] The exemplary embodiments of the present disclosure may have some or all of the following beneficial effects:
[0047] In the technical solutions provided by some embodiments of the present disclosure, after the difference items are repaired, the original order placement message data corresponding to the difference items is obtained, that is, the traffic data when the data comparison system detects the difference items, and then the original order placement message data is subjected to traffic playback in the second system to obtain playback message data, and then it is detected whether there are still difference items between the first message data of the first system and the playback message data of the second system after the difference items are repaired, so as to accurately return whether the difference problem is successfully repaired, and ensure the accuracy of the difference in problem repair between the two systems.
[0048] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts. In the drawings:
[0050] Figure 1 Schematically shows a flowchart of a testing method in the prior art;
[0051] Figure 2 Schematically shows a flowchart of a testing method in an exemplary embodiment of the present disclosure;
[0052] Figure 3 Schematically shows a flowchart of a differential item repair regression in an exemplary embodiment of the present disclosure;
[0053] Figure 4 Schematically shows a flowchart of recording traffic retention in an exemplary embodiment of the present disclosure.
[0054] Reference;
[0055] Figure 5 Schematically shows a schematic diagram of the composition of a testing device in an exemplary embodiment of the present disclosure;
[0056] Figure 6 Schematically shows a schematic diagram of a computer-readable storage medium in an exemplary embodiment of the present disclosure;
[0057] Figure 7 Schematically shows a schematic diagram of the structure of a computer system of an electronic device in an exemplary embodiment of the present disclosure. Detailed implementation manners
[0058] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.
[0059] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will realize that the technical solutions of the present disclosure can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be used. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present disclosure.
[0060] The block diagrams shown in the drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0061] The flowcharts shown in the drawings are only illustrative descriptions, not necessarily including all contents and operations / steps, nor necessarily executed in the described order. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined. Therefore, the actual execution order may change according to the actual situation.
[0062] Figure 1 Schematically shows a flowchart of a testing method in the prior art. Refer to Figure 1 As shown, the processing results of the first system and the second system are respectively produced in the form of MQ, including the lower warehouse message, the feedback message, and the lower allocation message. The data comparison system reply consumes the MQ message to perform data comparison to obtain the difference items, and stores the difference items in the warehouse and allocation dimensions in the database. Then the second system repairs the difference items, and observes whether the difference still exists in the subsequent traffic. If not, the difference repair is closed-loop, indicating that the repair is successful. If it exists, the second system continues to repair.
[0063] This method strongly depends on the fact that the same business scenario traffic must appear during the future difference comparison. Since the traffic data with differences may not appear during the observation period, it cannot ensure that the differences are definitely repaired successfully.
[0064] Therefore, the present disclosure provides a testing method, aiming to solve the defects in the prior art. The implementation details of the technical solutions of the embodiments of the present disclosure are elaborated in detail below.
[0065] Figure 2 Schematically shows a flowchart of a testing method in an exemplary embodiment of the present disclosure. As Figure 2 shown, the testing method includes steps S1 to S4:
[0066] Step S1, when the data comparison system detects a difference item between the first message data of the first system corresponding to the order and the second message data of the second system, the second system repairs the system based on the difference item;
[0067] Step S2, extract the first message data corresponding to the order with the difference item and the original order placement message data; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference item;
[0068] Step S3: Perform traffic replay on the original order placement message data in the second system to obtain replay message data.
[0069] Step S4: The data comparison system checks whether there are the difference items between the first message data and the replay message data.
[0070] In the technical solutions provided in some embodiments of the present disclosure, after repairing the difference items, obtain the original order placement message data corresponding to the difference items, that is, the traffic data when the data comparison system checks that there are the difference items, and then perform traffic replay on the original order placement message data in the second system to obtain replay message data, and further detect whether there are still difference items between the first message data of the first system and the replay message data of the second system after repairing the difference items, so as to accurately return whether the difference problem is successfully repaired and ensure the accuracy of the difference in problem repair between the two systems.
[0071] Before introducing the test method, first introduce the specific application scenario. In the method provided by the present disclosure, the first system (denoted as system A) is the initial logistics platform, such as ECLP (Electronic Commerce Logistics Platform), and the second system (denoted as system B) is the logistics platform that reconstructs the logistics side architecture, and the logistics side is divided into a transaction middle platform, a business fulfillment layer, and an execution system. Through: customer → place an order → execute order fulfillment → order result → customer → settlement, a closed loop is formed at the transaction and fulfillment levels.
[0072] AB systems perform fulfillment on multiple orders simultaneously and use the same original traffic data. System A generates first result data, including first message data (denoted as A data) for each order, such as including warehousing message data, feedback message data, and distribution message data. System B generates second result data, including second message data (denoted as B data) for each order, which is similar to the content of the first message data, except that the fulfillment systems are different.
[0073] Next, each step of the test method in this exemplary embodiment will be described in more detail with reference to the accompanying drawings and embodiments.
[0074] In step S1, when the data comparison system checks that there are difference items between the first message data of the first system corresponding to the order and the second message data of the second system, the second system repairs the system based on the difference items.
[0075] Specifically, data points can be pre-embedded at the entry points of the core capabilities of the first system and the second system. For example, it includes the core capabilities of warehousing, distribution, and feedback under the fulfillment layer. The results processed by the first system and the second system are respectively produced in the form of MQ (Message Queue) messages, that is, the first result data corresponding to the first system is obtained, including the first message data of each order, and the second result data corresponding to the second system is obtained, including the second message data of each order.
[0076] The replay data comparison system consumes MQ messages to associate the processing results of the first system and the second system according to the order number, that is, compares the first message data and the second message data, including the differences in the core capabilities of warehousing, distribution, and feedback under the fulfillment layer, and checks whether there are differences in the fields of the message data.
[0077] When the replay system detects a difference item between the first message data and the second message data corresponding to a certain order, the second system repairs itself according to the content of the difference item. After the repair, steps S2 to S4 will perform regression testing on the difference repair.
[0078] In step S2, the first message data corresponding to the order with the difference item and the original order placement message data are extracted; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference item.
[0079] In an embodiment of the present disclosure, before the second system repairs the system based on the difference item, the method further includes: recording the first result data of the first system, and recording the original traffic data of the data comparison system comparing the first message data and the second message data; storing the first result data and the original traffic data in the original database.
[0080] Specifically, when the replay data comparison system checks for difference items, all the first result data generated by the first system and the original traffic data during the comparison can be recorded and stored in the database for subsequent regression testing of difference item repair.
[0081] In this way, the extraction of the first message data and the original order placement message data in step S2 specifically includes the following steps: obtaining the order number of the order with the difference item; extracting the first message data and the original order placement message data from the original database based on the order number.
[0082] Since the recorded data is directly stored in the database, it can be directly queried and extracted from the original database according to the order number.
[0083] Based on the above method, the first message data and the original order message data are stored in the database, and then the data is extracted from the original database, avoiding the disadvantage that the data may not be extracted from the server log due to the limited retention time of the server log.
[0084] In one embodiment of the present disclosure, after storing the first result data and the original traffic data in the original database, the method further includes: periodically carrying forward the first result data in the original database into carried-forward first result data, and carrying forward the original traffic data into carried-forward original traffic data; storing the carried-forward first result data and the carried-forward original traffic data in the carry-forward database.
[0085] Specifically, if all recorded data is stored in the original database, the generated data is huge, while the database resources are limited. Therefore, the data can be carried forward regularly to reduce the resource consumption of the original database.
[0086] After the data is carried forward, the extracting of the first message data and the original order message data corresponding to the order with the difference item includes: obtaining the order number of the order with the difference item; querying whether the first message data and the original order message data exist in the original database based on the order number; if they exist, extracting the first message data and the original order message data from the original database based on the order number; if they do not exist, acquiring the first message data and the original order message data from the carried-forward database based on the order number.
[0087] Specifically, first query in the original database according to the order number. If the data to be extracted exists (the first message data corresponding to the order and the original order message data), extract it directly. If not, the data to be extracted needs to be obtained from the carry-over database.
[0088] Among them, extracting the first message data and the original order message data from the carry-over database based on the order number includes: extracting the carry-over first message data corresponding to the difference item from the carry-over first result data based on the order number; converting the carry-over first message data into the first message data; and extracting the carry-over original order message data corresponding to the difference item from the carry-over original flow data based on the order number; converting the carry-over original order message data into the original order message data.
[0089] Since the settlement database stores the data after the carry-over, it is necessary to convert the carry-over data back to obtain the data to be extracted.
[0090] In step S3, the original order placement message data is subjected to traffic replay in the second system to obtain replay message data.
[0091] Specifically, the process of generating the replay message data is actually the same as the process of generating the second message data before. Specifically, it includes the following steps: The original order placement message data is subjected to traffic replay through the order adaptation layer of the second system to obtain replay data; the replay data is sent to the order center to perform order fulfillment according to the replay data to obtain the replay message data.
[0092] Among them, the second system uses the original traffic data for traffic replay in the order adaptation layer, and then performs order fulfillment through the order center to finally obtain the replay message data.
[0093] In step S4, the data comparison system checks whether there is such a difference item between the first message data and the replay message data.
[0094] Specifically, the first message data is the data after order fulfillment of the first system, and the replay message data is the data after order fulfillment of the second system after the difference item is repaired. The replay data comparison system compares the first message data and the replay message data, and then tests whether there is a difference item.
[0095] In an embodiment of the present disclosure, when the data comparison system checks that there is such a difference item between the first message data and the replay message data, the method further includes: the second system repairs the system again based on the difference item.
[0096] Specifically, if there are still difference items in the execution results of the first system and the second system during the regression test, then the second system can repair the system again, and then repeat the difference item regression test to verify whether the repair is successful, and finally achieve a closed loop of the difference item. Figure 3 Schematically shows a flowchart of a difference item repair regression in an exemplary embodiment of the present disclosure.
[0097] Step S301, Replay - comparison (data comparison system) compares to obtain difference items;
[0098] Step S302, the second system repairs the difference items;
[0099] Step S303, determine whether the original traffic is carried forward; if not carried forward, execute step S304, if carried forward, execute step S305;
[0100] Step S304, extract data from the original database A;
[0101] Step S305, extract data from the carried - forward database B;
[0102] Step S306, performing data conversion after extracting the data;
[0103] Step S307, obtaining first message data through database A or database B;
[0104] Step S308, obtaining the original order message data through database A or database B;
[0105] Step S309, using the original order message data to perform traffic playback;
[0106] Step S310, reaching the order adaptation layer;
[0107] Step S311, arriving at the order center;
[0108] Step S312, performing order fulfillment;
[0109] Step S313, finally obtaining new warehouse and distribution messages as playback posting data;
[0110] Step S314, Replay-compare and re-consume the first message data and replay the sent message data;
[0111] Step S315, obtaining a comparison result;
[0112] Step S316, determining whether the difference item in the comparison result still exists, if not, executing step S317, if yes, executing step S318;
[0113] Step S317, the closed loop ends;
[0114] Step S318, repair the difference items again.
[0115] In one embodiment of the present disclosure, when the data comparison system checks that there is no difference between the first message data and the playback message data, the method further includes: deleting the carry-over first message data and the carry-over original order message data corresponding to the order in the carry-over database.
[0116] Specifically, relevant data without any difference items can be deleted, thereby saving database resources. Figure 4 The following schematically shows a flow chart of recording traffic retention in an exemplary embodiment of the present disclosure. Figure 4 As shown, the second system first performs traffic playback, and the recording results are processed by the order adaptation layer, then reach the order center, and finally complete the order fulfillment; at the same time, the order adaptation layer stores the original traffic in database A, and then regularly transfers the data in database A and stores it in database B, and finally deletes the difference items when the difference is repaired.
[0117] Figure 5Schematically shows a schematic diagram of the composition of a test device in an exemplary embodiment of the present disclosure, as Figure 5 shown, the test device 500 may include a repair module 501, an extraction module 502, a playback module 503, and a test module 504. Among them:
[0118] The repair module 501 is used for when the data comparison system detects that there are difference items between the first message data of the first system corresponding to the order and the second message data of the second system, the second system performs system repair based on the difference items;
[0119] The extraction module 502 is used for extracting the first message data corresponding to the order with the difference items and the original order placement message data; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference items;
[0120] The playback module 503 is used for performing traffic playback of the original order placement message data in the second system to obtain playback message data;
[0121] The test module 504 is used for the data comparison system to check whether there are the difference items between the first message data and the playback message data.
[0122] According to an exemplary embodiment of the present disclosure, the test device 500 further includes a storage module, which is used for recording the first result data of the first system, and recording the original traffic data of the data comparison system for comparing the first message data and the second message data; storing the first result data and the original traffic data in the original database.
[0123] According to an exemplary embodiment of the present disclosure, the extraction module 502 is used for obtaining the order number of the order with the difference items; extracting the first message data and the original order placement message data from the original database based on the order number.
[0124] According to an exemplary embodiment of the present disclosure, the test device 500 further includes a carry-over module, which is used for after storing the first result data and the original traffic data in the original database, periodically carrying over the first result data in the original database into carry-over first result data, and carrying over the original traffic data into carry-over original traffic data; storing the carry-over first result data and the carry-over original traffic data in the carry-over database.
[0125] According to an exemplary embodiment of the present disclosure, the extraction module 502 is further configured to obtain the order number of the order with the difference item; query in the original database based on the order number whether there is the first message data and the original order placement message data; when they exist, extract the first message data and the original order placement message data from the original database based on the order number; when they do not exist, obtain the first message data and the original order placement message data from the carry-over database based on the order number.
[0126] According to an exemplary embodiment of the present disclosure, the extraction module 502 is further configured to extract the carry-over first message data corresponding to the difference item from the carry-over first result data based on the order number; convert the carry-over first message data into the first message data; and extract the carry-over original order placement message data corresponding to the difference item from the carry-over original traffic data based on the order number; convert the carry-over original order placement message data into the original order placement message data.
[0127] According to an exemplary embodiment of the present disclosure, the playback module 503 is configured to perform traffic playback on the original order placement message data through the order adaptation layer of the second system to obtain playback data; send the playback data to the order center to perform order fulfillment according to the playback data to obtain the playback message data.
[0128] According to an exemplary embodiment of the present disclosure, when the data comparison system checks that there is the difference item between the first message data and the playback message data, the test device 500 is further configured to cause the second system to perform system repair again based on the difference item.
[0129] According to an exemplary embodiment of the present disclosure, when the data comparison system checks that there is no such difference item between the first message data and the playback message data, the test device 500 is further configured to delete the carry-over first message data and the carry-over original order placement message data corresponding to the order in the carry-over database.
[0130] The specific details of each module in the above-mentioned test device 500 have been described in detail in the corresponding test method, and thus will not be elaborated herein.
[0131] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0132] In an exemplary embodiment of the present disclosure, a storage medium capable of implementing the above method is also provided. Figure 6 A schematic diagram schematically showing a computer-readable storage medium in an exemplary embodiment of the present disclosure is as Figure 6 shown, which describes a program product 600 for implementing the above method according to an embodiment of the present disclosure. It may be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a mobile phone. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium may be any tangible medium that contains or stores a program, and the program can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0133] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided. Figure 7 A schematic diagram of the structure of a computer system of an electronic device in an exemplary embodiment of the present disclosure is schematically shown.
[0134] It should be noted that Figure 7 the computer system 700 of the shown electronic device is only an example and should not impose any limitation on the functions and usage scope of the embodiments of the present disclosure.
[0135] As Figure 7 shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage section 708 into the random access memory (RAM) 703. In the RAM 703, various programs and data required for system operation are also stored. The CPU 701, ROM 702, and RAM 703 are connected to each other through a bus 704. The input / output (I / O) interface 705 is also connected to the bus 704.
[0136] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as required. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is installed on the drive 710 as required so that a computer program read therefrom is installed into the storage section 708 as required.
[0137] Specifically, according to an embodiment of the present disclosure, the processes described below with reference to the flowcharts can be implemented as computer software programs. For example, an embodiment of the present disclosure includes a computer program product that includes a computer program carried on a computer-readable medium, the computer program including program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709 and / or installed from the removable medium 711. When the computer program is executed by a central processing unit (CPU) 701, various functions defined in the system of the present disclosure are performed.
[0138] It should be noted that the computer-readable medium shown in the embodiments of the present disclosure can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A 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 a computer-readable storage medium can include, but are not limited to: an electrical connection with 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), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries 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. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, and this 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 a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0139] 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 disclosure. In this regard, each block in a flowchart or block diagram can represent a module, a program segment, or a part of code, and the above module, program segment, or part of code contains one or more executable instructions for implementing a 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, and the combination of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0140] The units involved in the embodiments described in this disclosure can be implemented in software or in hardware, and the described units can also be provided in a processor. Among them, the names of these units do not, in some cases, constitute a limitation on the unit itself.
[0141] As another aspect, the present disclosure also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the methods described in the above embodiments.
[0142] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0143] From the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software or by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (such as a personal computer, a server, a touch terminal, or a network device, etc.) to execute the methods according to the embodiments of the present disclosure.
[0144] After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily conceive of other embodiments of the present disclosure. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed by the present disclosure.
[0145] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
Claims
1. A testing method, characterized in that, it includes: When the data comparison system detects a difference item between the first message data of the first system corresponding to an order and the second message data of the second system, the second system repairs the system based on the difference item; Extract the first message data corresponding to the order with the difference item and the original order placement message data; wherein, the original order placement message data is the original traffic data corresponding to the order when the data comparison system detects the difference item; Perform traffic playback of the original order placement message data in the second system to obtain playback message data; The data comparison system checks whether there is the difference item between the first message data and the playback message data.
2. The testing method according to claim 1, characterized in that, Before the second system repairs the system based on the difference item, the method further includes: Record the first result data of the first system, and record the original traffic data of the data comparison system for comparing the first message data and the second message data; Store the first result data and the original traffic data in the original database.
3. The testing method according to claim 2, characterized in that, The extraction of the first message data and the original order placement message data corresponding to the order with the difference item includes: Obtain the order number of the order with the difference item; Extract the first message data and the original order placement message data from the original database based on the order number.
4. The testing method according to claim 2, characterized in that, After storing the first result data and the original traffic data in the original database, the method further includes: Periodically convert the first result data in the original database into carry - over first result data, and convert the original traffic data into carry - over original traffic data; Store the carry - over first result data and the carry - over original traffic data in the carry - over database.
5. The testing method according to claim 4, characterized in that, The extraction of the first message data and the original order placement message data corresponding to the order with the difference item includes: Obtain the order number of the order with the difference item; Query in the original database based on the order number whether there is the first message data and the original order placement message data; When they exist, extract the first message data and the original order placement message data from the original database based on the order number; When they do not exist, obtain the first message data and the original order placement message data from the carry - over database based on the order number.
6. The testing method according to claim 5, characterized in that, The extraction of the first message data and the original order placement message data from the carry - over database based on the order number includes: Extract the carry - over first message data corresponding to the difference item from the carry - over first result data based on the order number; Convert the carry - over first message data into the first message data; and Extract the carry-over original order message data corresponding to the difference item from the carry-over original traffic data based on the order number; Convert the carry-over original order message data into the original order message data.
7. The testing method according to claim 1, wherein, the step of performing traffic replay on the original order message data in the second system to obtain replay message data includes: Performing traffic replay on the original order message data through the order adaptation layer of the second system to obtain replay data; Sending the replay data to the order center to perform order fulfillment based on the replay data to obtain the replay message data.
8. The testing method according to claim 1, wherein, when the data comparison system checks that there is the difference item between the first message data and the replay message data, the method further includes: The second system performs system repair again based on the difference item.
9. The testing method according to claim 4, wherein, when the data comparison system checks that there is no such difference item between the first message data and the replay message data, the method further includes: Deleting the carry-over first message data and the carry-over original order message data corresponding to the order in the carry-over database.
10. A testing device, wherein, it includes: A repair module, configured to, when the data comparison system checks that there is a difference item between the first message data of the first system corresponding to an order and the second message data of the second system, the second system performs system repair based on the difference item; An extraction module, configured to extract the first message data and the original order message data corresponding to the order with the difference item; wherein, the original order message data is the original traffic data corresponding to the order when the data comparison system checks the difference item; A replay module, configured to perform traffic replay on the original order message data in the second system to obtain replay message data; A testing module, configured to the data comparison system checks whether there is the difference item between the first message data and the replay message data.
11. A computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the testing method according to any one of claims 1 to 9 is implemented.
12. An electronic device, wherein, it includes: One or more processors; A storage device, configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the testing method according to any one of claims 1 to 9.