A logistics system test method, device, equipment and storage medium

By synchronizing the basic and operational data of the first system to the system under test in the logistics system, and comparing inventory and message data, the problem of poor sample data validity in existing testing schemes is solved, achieving more efficient testing and verification, and ensuring the accuracy and reliability of system switching.

CN115481020BActive Publication Date: 2026-01-09ZHEJIANG XITUMENG DIGITAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211062360.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2026-01-09
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In existing logistics system testing schemes, the validity and coverage of test sample data are poor, resulting in insufficient testing performance and accuracy of new systems, and situations where functions or data types are not tested are prone to occur.

Method used

By acquiring the basic and operational data of the first system, synchronizing it to the second system to be tested, and comparing the inventory and message data between the two, the test results of the logistics system are determined, ensuring data consistency to verify the feasibility of system switching.

Benefits of technology

This improved the performance and accuracy of logistics system testing, ensuring the accuracy of functions and data before the switchover and reducing the occurrence of go-live issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115481020B_ABST
    Figure CN115481020B_ABST
Patent Text Reader

Abstract

The application discloses a logistics system test method, device, equipment and storage medium. The method comprises the following steps: acquiring basic data in a first system and operation data corresponding to operation behaviors of operating the first system, synchronizing the basic data and the operation data to a second system, acquiring first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data, comparing the first inventory data and the second inventory data to obtain an inventory comparison result, and determining a test result of the logistics system based on the inventory comparison result, so that the test performance and test precision of the logistics system to be tested can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computer processing, and in particular to a logistics system testing method, device, equipment and storage medium. BACKGROUND

[0002] A logistics system such as a logistics execution system (LES) or a warehouse management system (WMS) is an important information technology means for producing and managing logistics information, and has been widely used in discrete manufacturing industries such as electronic production and automobile manufacturing. When the logistics system needs to be optimized and upgraded or switched, two independent systems with overlapping functions will be involved. The original system has basic data and incremental data generated daily, and the new system only has system functions without basic data and incremental data.

[0003] The existing test scheme mainly uses simulation generated sample data to test the new system to be tested, and verifies whether the new system switching is feasible by comparing the difference between the output result of the sample data and the expected target of the sample data. If the test is passed, the new system is put online. The test sample data of the existing test scheme is poor in effectiveness and low in coverage, and it is easy to have some functions not tested or some data types not tested, thereby reducing the performance and test accuracy of the new system testing. SUMMARY

[0004] The embodiments of the present application provide a logistics system testing method, device, equipment and storage medium, which can improve the test performance and test accuracy of the logistics system to be tested.

[0005] In one aspect, the embodiments of the present application provide a logistics system testing method, which comprises:

[0006] Obtaining basic data in a first system and operation data corresponding to operation behaviors of operating the first system; the first system is a system running in a production environment, and the second system is a system to be tested;

[0007] Synchronizing the basic data and the operation data to the second system;

[0008] Obtaining first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data;

[0009] Comparing the first inventory data and the second inventory data to obtain an inventory comparison result;

[0010] Based on the inventory comparison result, determining a test result of the logistics system.

[0011] Further, the method further comprises:

[0012] In a case that the first system receives the input message data sent by the external system, obtaining the input message data and first output message data determined by the first system based on the input message data;

[0013] Synchronizing the input message data to the second system;

[0014] Obtaining second output message data determined by the second system based on the synchronized input message data;

[0015] Comparing the first output message data and the second output message data to obtain a message comparison result;

[0016] Correspondingly, based on the inventory comparison result, determining a test result of the logistics system, comprising:

[0017] Based on the inventory comparison result and the message comparison result, determining a test result of the logistics system.

[0018] Further, in a case that the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and the message comparison result indicates that the first message data and the second message data are consistent, determining that the test result is a result that the second system passes the test and verification;

[0019] Correspondingly, after determining the test result of the logistics system based on the inventory comparison result and the message comparison result, the method further comprises:

[0020] Switching the first system to the second system.

[0021] Further, before obtaining the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system, the method further comprises:

[0022] Obtaining a calling request sent by the first system to a calling interface in the second system;

[0023] Sending the calling request to the second system;

[0024] Receiving a calling result returned by the second system in response to the calling request;

[0025] In a case that the calling result indicates that the calling interface is successfully called, performing the operation of obtaining the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system.

[0026] Further, obtaining the calling request sent by the first system to the calling interface in the second system comprises:

[0027] Obtaining the calling request sent by the first system to the calling interface in the second system according to a predetermined time period.

[0028] Further, the base data and the operation data are synchronized to the second system, including:

[0029] synchronizing the base data to the second system;

[0030] obtaining the synchronized base data in the second system;

[0031] comparing the base data in the first system and the synchronized base data in the second system to obtain an initial comparison result;

[0032] in a case where the initial comparison result indicates that the base data in the first system and the synchronized base data in the second system are consistent, obtaining a first terminal corresponding to the first system, and operation data corresponding to an operation behavior of the first system;

[0033] sending a data operation instruction to the second system, so that a second terminal corresponding to the second system operates the second system based on the operation behavior in response to the data operation instruction to obtain synchronized operation data.

[0034] In another aspect, a logistics system testing device is provided, and the device includes:

[0035] a first obtaining module, configured to obtain base data in a first system and operation data corresponding to an operation behavior of the first system; the first system is a system running in a production environment, and the second system is a system to be tested;

[0036] a first synchronization module, configured to synchronize the base data and the operation data to the second system;

[0037] a second obtaining module, configured to obtain first inventory data determined by the first system based on the base data and the operation data, and second inventory data determined by the second system based on the synchronized base data and synchronized operation data;

[0038] a first comparison module, configured to compare the first inventory data and the second inventory data to obtain an inventory comparison result;

[0039] a first determining module, configured to determine a testing result of the logistics system based on the inventory comparison result.

[0040] Further, the device further includes:

[0041] a third obtaining module, configured to, in a case where it is monitored that the first system receives input message data sent by an external system, obtain the input message data and first output message data determined by the first system based on the input message data;

[0042] a second synchronization module, configured to synchronize the input message data to the second system;

[0043] a fourth obtaining module, configured to obtain second output message data determined by the second system based on the synchronized input message data;

[0044] a second comparing module, configured to compare the first output message data and the second output message data to obtain a message comparison result;

[0045] Correspondingly, the first determining module is further configured to determine a test result of the logistics system based on the inventory comparison result and the message comparison result.

[0046] In an aspect, a device is provided, which includes a processor and a memory, the memory storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the logistics system test method as described above.

[0047] In another aspect, a computer readable storage medium is provided, the storage medium storing at least one instruction, at least one program, a code set or an instruction set, the at least one instruction, the at least one program, the code set or the instruction set being loaded and executed by the processor to implement the logistics system test method as described above.

[0048] The logistics system test method, the device, the equipment and the storage medium provided by the embodiments of the present application have the following technical effects:

[0049] The embodiments of the present application obtain the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system, synchronize the basic data and the operation data to the second system, obtain the first inventory data determined by the first system based on the basic data and the operation data, and the second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data, compare the first inventory data and the second inventory data to obtain the inventory comparison result, and determine the test result of the logistics system based on the inventory comparison result, which can improve the test performance and the test accuracy of the logistics system to be tested. BRIEF DESCRIPTION OF DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0051] Figure 1 is a schematic diagram of an application environment provided by the embodiments of the present application;

[0052] Figure 2 is a flowchart of a logistics system test method provided by the embodiments of the present application;

[0053] Figure 3 is a flowchart of an interface calling method provided by an embodiment of the present application;

[0054] Figure 4 is a flowchart of a basic data and operation data synchronization method provided by an embodiment of the present application;

[0055] Figure 5 is a flowchart of a test result determination method of a logistics system provided by an embodiment of the present application;

[0056] Figure 6 is a flowchart of a logistics system test method provided by an embodiment of the present application;

[0057] Figure 7 is a flowchart of a test result determination method of a logistics system provided by an embodiment of the present application;

[0058] Figure 8 is a flowchart of a logistics system test method provided by an embodiment of the present application;

[0059] Figure 9 is a structural diagram of a logistics system test device provided by an embodiment of the present application;

[0060] Figure 10 is a structural diagram of a logistics system test device provided by an embodiment of the present application;

[0061] Figure 11 is a hardware structural diagram of a server of a logistics system test method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0062] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0063] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and in the above description of the drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or server including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0064] Referring to Figure 1 , Figure 1 is a schematic diagram of an application environment provided by an embodiment of the present application, which includes a first system, a first terminal, a second system, a second terminal and an external system, wherein the first system is a system running in a production environment, the second system is a system to be tested, the first system corresponds to the first terminal, the second system corresponds to the second terminal, the second system runs in parallel with the first system, the external system is a system having an association relationship with the first system, and the first system can perform message data transmission with the external system.

[0065] In an optional embodiment, the embodiments of the present application further include a background management system, which can be used to acquire data in the first system and synchronize the acquired data in the first system to the second system, and can also be used to acquire the synchronized data in the second system, and can also be used to compare the data difference between the data in the first system and the synchronized data in the second system, etc.

[0066] In an optional embodiment, the business functions of the second system and the first system can be completely the same, or partially the same.

[0067] In an optional embodiment, the first terminal is used to operate the operation behavior of the first system to obtain operation data corresponding to the operation behavior of the first system, and the second terminal is used to operate the operation behavior of the second system to obtain operation data corresponding to the operation behavior of the second system.

[0068] In an alternative embodiment, the external system can include upstream systems and downstream systems, wherein the upstream systems can include Enterprise Resource Planning (ERP), Manufacturing Execution System (MES), Supplier Relationship Management (SRM), Quality Management System (QMS), etc., and the downstream systems can include Warehouse Control System (WCS), Picking to light (PTL), etc.

[0069] In an alternative embodiment, the first terminal is configured to acquire data from the external system and enter the first system, and the second terminal is configured to acquire data from the external system and enter the second system. The first terminal and the second terminal can be a Personal Digital Assistant (PDA), including an industrial PDA and a consumer PDA, specifically, a barcode scanner, an RFID reader / writer, a POS machine, etc., or a smart phone, a computer, etc.

[0070] The following describes a specific embodiment of a logistics system test method provided by the present application. The embodiment is directed to testing and verifying the same business functions of the first system in the second system, Figure 2 is a flowchart of a logistics system test method provided by an embodiment of the present application. The present specification provides method operation steps as in the embodiment or flowchart, but more or fewer operation steps can be included based on conventional or non-creative labor. The order of steps listed in the embodiment is only one of the many execution modes of the execution order of the steps, and does not represent the only execution order. In actual system or server product execution, the method order shown in the embodiment can be executed in sequence or in parallel (for example, in a parallel processor or multi-threaded processing environment). The steps S201-S205 and their sub-steps listed in the embodiment are based on the background management system, specifically as shown in Figure 2 The logistics test method can include:

[0071] S201: acquiring basic data in the first system and operation data corresponding to operation behaviors of operating the first system, wherein the first system is a system running in a production environment, and the second system is a system to be tested.

[0072] Figure 3 is a flowchart of an interface calling method provided by an embodiment of the present application, as Figure 3As shown in the embodiments of this application, before obtaining the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system, the logistics system testing method further includes:

[0073] S301: Obtain the call request sent by the first system to the calling interface in the second system.

[0074] In this embodiment, the backend receives call requests from the first system to the interface in the second system, sent according to a predetermined time period. The call request is determined by the first system based on a scheduled task. The scheduled task in the first system generates the call request to the interface in the second system according to a predetermined time period and sends the call request to the backend.

[0075] Specifically, the backend has a preset deadline. Within the preset deadline, the backend receives call requests from the first system to the API in the second system, sent according to a preset time period. The preset deadline may exceed the preset time period, which can be gradually extended based on the stability and accuracy of the second system's operation.

[0076] In one alternative implementation, the call request sent by the first system to the calling interface in the second system may also be sent by the first terminal corresponding to the first system.

[0077] Specifically, the scheduled time period can be determined according to the work and rest rhythm, and can be 12 hours, 24 hours, or even a week, etc.

[0078] S302: Send the call request to the second system.

[0079] Specifically, the call requests obtained at predetermined time intervals will be sent to the second system.

[0080] In one alternative implementation, the call request obtained at a predetermined time period may be sent to the second terminal corresponding to the second system.

[0081] S303: Receive the call result returned by the second system in response to the call request.

[0082] In this embodiment of the application, the call result returned by the second system in response to the call request can be a successful call result returned by the call interface of the second system when the call is successful, and / or an abnormal call result returned when the call is abnormal.

[0083] In one alternative implementation, the second system may only return the abnormal call result when the calling interface is called abnormally, and not return the successful call result when the calling interface is called successfully.

[0084] In an alternative embodiment, the calling result returned by the second system in response to the calling request can also be returned by a second terminal corresponding to the second system.

[0085] S304: Determine whether the calling result indicates that the calling of the calling interface is successful. If yes, go to step S305; if no, go to step S306.

[0086] In the embodiments of the present application, when the abnormal calling result returned by the second system is received, it is determined that the calling result indicates that the calling of the calling interface is abnormal, and when the successful calling result returned by the second system is received, it is determined that the calling result indicates that the calling of the calling interface is successful.

[0087] In an alternative embodiment, when the abnormal calling result returned by the second system is received, it is determined that the calling result indicates that the calling of the calling interface is abnormal, and when the abnormal calling result returned by the second system is not received, it is determined that the calling result indicates that the calling of the calling interface is successful.

[0088] S305: In the case where the calling result indicates that the calling of the calling interface is successful, perform the operation of obtaining the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system.

[0089] In the embodiments of the present application, the basic data in the first system is taken as the opening inventory data in the first system in the current test period.

[0090] S306: In the case where the calling result indicates that the calling of the calling interface is abnormal, end the test process and perform the second system verification and correction.

[0091] In this way, the calling request for the second system sent by the first system within the predetermined deadline and with the predetermined time period can realize the periodic test verification of the logistics system, and improve the accuracy and flexibility of the logistics system test.

[0092] S202: Synchronize the basic data and the operation data to the second system.

[0093] Figure 4 is a flowchart of a basic data and operation data synchronization method provided by the embodiments of the present application, as shown in Figure 4 In the embodiments of the present application, synchronizing the basic data and the operation data to the second system can include:

[0094] S401: Synchronize the basic data to the second system.

[0095] S402: Obtain the synchronized basic data in the second system.

[0096] In the embodiments of the present application, the synchronized basic data in the second system is used as the initial inventory data in the second system in the current test period.

[0097] S403: Compare the basic data in the first system with the synchronized basic data in the second system to obtain an initial comparison result.

[0098] Specifically, the initial comparison result can indicate that the basic data in the first system is consistent with the synchronized basic data in the second system, or that the basic data in the first system is inconsistent with the synchronized basic data in the second system. In other words, the initial comparison result can be the difference between the initial inventory data in the first system and the initial inventory data in the second system.

[0099] S404: Determine whether the initial comparison result indicates that the basic data in the first system is consistent with the synchronized basic data in the second system. If yes, go to step S405; if no, go to step S406.

[0100] S405: In the case where the initial comparison result indicates that the basic data in the first system is consistent with the synchronized basic data in the second system, obtain the first terminal corresponding to the first system, and the operation data corresponding to the operation behavior of the first terminal operating the first system.

[0101] In the embodiments of the present application, the operation behavior of the first terminal operating the first system can be warehouse-in scanning, warehouse-out scanning, and other operations. Of course, it can also include other operations that the first terminal can perform. The operation data can include purchase orders, quality inspection sheets, and other data. Specifically, the purchase orders, quality inspection sheets, and other data can come from an external system.

[0102] In the embodiments of the present application, in the case where the initial comparison result indicates that the basic data in the first system is consistent with the synchronized basic data in the second system, the data operation instruction corresponding to the operation behavior of the first terminal operating the first system can also be obtained.

[0103] S406: In the case where the initial comparison result indicates that the basic data in the first system is inconsistent with the synchronized basic data in the second system, end the test process and perform second system verification and correction.

[0104] Specifically, the calling interface of the second system and the synchronized basic data can be verified.

[0105] S407: Send a data operation instruction to the second system, so that the second terminal corresponding to the second system operates the second system based on the operation behavior corresponding to the data operation instruction, to obtain synchronized operation data.

[0106] Specifically, the first terminal and the second terminal are the same terminal device, and the operation behavior of the first terminal and the operation behavior of the second terminal in response to the data operation instruction are the same operation behavior.

[0107] For example, when the first terminal and the second terminal are bar code scanners, the first system interacts with the warehouse physical bar code through the first terminal in a scanning operation behavior, and correspondingly, the second system interacts with the warehouse physical bar code through the second terminal in the same scanning operation behavior.

[0108] Specifically, the warehouse physical bar code can be a bar code on a container such as a box or a pallet, and the warehouse physical bar code can come from an upstream system in an external system.

[0109] In this way, real-time data in the production process can be obtained from the upstream system as test data, so that the test data has good effectiveness for test verification, high coverage for function verification, and can solve the problem of subjective selection of test data samples and the problem of omission of target functions and target data categories in the creation process of test data samples in the prior art.

[0110] Specifically, the warehouse physical bar code interacting with the first terminal and the warehouse physical bar code interacting with the second terminal have the same encoding format. If the encoding formats of the warehouse physical bar code interacting with the first terminal and the warehouse physical bar code interacting with the second terminal are different, one of the two warehouse physical bar codes needs to be mapped and converted in the bar code format.

[0111] In this way, the embodiment of the present application can realize double-terminal parallel synchronous operation of the first terminal corresponding to the first system and the second terminal corresponding to the second system on the basis of parallel running of the first system and the second system, reduce the risk of data entry errors, and improve the system test accuracy and test efficiency.

[0112] S203: Obtain first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data.

[0113] S204: Compare the first inventory data and the second inventory data to obtain an inventory comparison result.

[0114] The inventory comparison result can include two cases, one indicating that the first inventory data and the second inventory data are consistent, and the other indicating that the first inventory data and the second inventory data are inconsistent.

[0115] S205: Determine a test result of the logistics system based on the inventory comparison result.

[0116] Figure 5is a flowchart of a method for determining a test result of a logistics system provided by an embodiment of the present application, as shown in Figure 5 In the embodiment of the present application, based on the inventory comparison result, the test result of the logistics system can be determined, which can include:

[0117] S501: Based on the inventory comparison result, it is determined whether the first inventory data and the second inventory data are consistent according to the inventory comparison result. If yes, go to step S502; if no, go to step S503.

[0118] S502: In the case where the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, the test result is determined as the result of passing the internal function test of the second system.

[0119] S503: In the case where the inventory comparison result indicates that the first inventory data and the second inventory data are inconsistent, the test result is determined as the result of failing the internal function test of the second system.

[0120] The embodiment of the present application measures whether the second inventory data of the second system running in parallel with the first system is accurate by taking the first inventory data of the first system in the production environment as the comparison benchmark, which can solve the problems of importing a large amount of actual data and evaluating and calculating the inventory comparison data, and effectively verifies the accuracy of the internal function of the second system to be tested by determining the test result of the logistics system by comparing the first inventory data and the second inventory data.

[0121] Figure 6 is a flowchart of a logistics system test method provided by an embodiment of the present application, as shown in Figure 6 In the embodiment of the present application, the logistics test method can further include:

[0122] S601: In the case where it is monitored that the first system receives the input message data sent by the external system, the input message data and the first output message data determined by the first system based on the input message data are obtained.

[0123] In the embodiment of the present application, the input message data received by the first system can be sent by the upstream system or the downstream system. That is, the input message data received by the first system includes forward data and reverse data. In order to improve the robustness of the logistics system test, the input message data received by the first system can also include abnormal data.

[0124] S602: The input message data is synchronized to the second system.

[0125] S603: The second output message data determined by the second system based on the synchronized input message data is obtained.

[0126] In the embodiment of the present application, the second system determines that the second output message data is not sent to the external system, or the second system sends the second output message data for truncation processing.

[0127] S604: Compare the first output message data and the second output message data to obtain a message comparison result.

[0128] The message comparison result can include two cases, one is to indicate that the first output message data and the second output message data are consistent; the other is to indicate that the first output message data and the second output message data are inconsistent.

[0129] Based on the message comparison result, it can be judged whether the message comparison result indicates that the first output message data and the second output data are consistent:

[0130] In the case where the message comparison result indicates that the first output message data and the second output message data are consistent, it is determined that the test result is the result that the association relationship test of the second system and the external system passes;

[0131] In the case where the message comparison result indicates that the first output message data and the second output message data are inconsistent, it is determined that the test result is the result that the association relationship test of the second system and the external system fails.

[0132] Correspondingly, in step S205, based on the inventory comparison result, the test result of the logistics system is determined, including:

[0133] Based on the inventory comparison result and the message comparison result, the test result of the logistics system is determined.

[0134] Figure 7 is a flowchart of a test result determination method of a logistics system provided by the embodiment of the present application, as shown in Figure 7 In the embodiment of the present application, based on the inventory comparison result and the message comparison result, the test result of the logistics system is determined, which can include:

[0135] S701: Based on the inventory comparison result and the message comparison result, it is judged whether the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and whether the message comparison result indicates that the first output message data and the second output message data are consistent;

[0136] If the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and the message comparison result indicates that the first output message data and the second output message data are consistent, go to step S702;

[0137] If the inventory comparison result indicates that the first inventory data and the second inventory data are inconsistent, and / or the message comparison result indicates that the first output message data and the second output message data are inconsistent, go to step S703.

[0138] S702: In the case that the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and the message comparison result indicates that the first output message data and the second output message data are consistent, it is determined that the test result is a result of the second system test verification passing.

[0139] In other words, in the case that the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and the message comparison result indicates that the first output message data and the second output message data are consistent, it is determined that the internal function test of the second system to be tested and the association relationship test with the external system pass, and the final test result is a result of the second system test verification passing.

[0140] S703: In the case that the inventory comparison result indicates that the first inventory data and the second inventory data are inconsistent, and / or the message comparison result indicates that the first output message data and the second output message data are inconsistent, it is determined that the test result is a result of the second system test verification failing.

[0141] The embodiment of the present application measures whether the second inventory data of the second system running in parallel with the first system is accurate by taking the first inventory data of the first system in the production environment as a comparison benchmark, and measures whether the second output message data of the second system is accurate by taking the first output message data of the first system as a comparison benchmark, thereby verifying the accuracy of the internal function of the second system to be tested, and verifying the accuracy of the association relationship between the function of the second system and the external system.

[0142] Figure 8 is a flowchart of a logistics system test method provided by the embodiment of the present application, as shown in Figure 8 After determining the test result of the logistics system, the logistics test method can further include:

[0143] S801: It is determined whether the test result is verified to pass, if yes, go to step S802; if no, go to step S803.

[0144] S802: In the case that the test result is the second system test verification passing, the first system is switched to the second system.

[0145] S803: In the case that the test result is the second system test verification failing, the first system is maintained, the test flow is ended, and the second system is verified and corrected.

[0146] The test verification method of parallel running of the double systems and parallel operation of the double terminals can maximize simulation of actual operation conditions of the second system to be tested after being put into operation, and can intuitively compare the inventory data difference and the message data difference between the first system running in the production environment and the second system to be tested, so that the conclusion of determining whether to go online according to the test result is more persuasive and reasonable, online problems are reduced, and the production is avoided from being affected.

[0147] The embodiment of the application further provides a logistics system testing device, Figure 9 is a structural schematic diagram of a logistics system testing device provided by the embodiment of the application, as Figure 9 shown, the device comprises:

[0148] The first acquisition module 901 is configured to acquire basic data in the first system and operation data corresponding to operation behaviors of operating the first system; the first system is a system running in a production environment, and the second system is a system to be tested.

[0149] The first synchronization module 902 is configured to synchronize the basic data and the operation data to the second system.

[0150] The second acquisition module 903 is configured to acquire first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data.

[0151] The first comparison module 904 is configured to compare the first inventory data and the second inventory data to obtain an inventory comparison result.

[0152] The first determination module 905 is configured to determine a test result of the logistics system based on the inventory comparison result.

[0153] In the embodiment of the application, as Figure 10 shown, Figure 10 is a structural schematic diagram of a logistics system testing device provided by the embodiment of the application, the device further comprises:

[0154] The third acquisition module 1001 is configured to acquire input message data and first output message data determined by the first system based on the input message data in a case where it is monitored that the first system receives the input message data sent by an external system.

[0155] The second synchronization module 1002 is configured to synchronize the input message data to the second system.

[0156] The fourth acquisition module 1003 is configured to acquire second output message data determined by the second system based on the synchronized input message data.

[0157] The second comparison module 1004 is configured to compare the first output message data and the second output message data to obtain a message comparison result.

[0158] Correspondingly, the first determination module 905 is further configured to determine a test result of the logistics system based on the inventory comparison result and the message comparison result.

[0159] The logistics system test device and the logistics system test method in the embodiments of the present application are based on the same application concept.

[0160] The method in the embodiments of the present application can be executed in a computer terminal, a server or a similar operation device. Taking the case of running on a server, Figure 11 is a hardware structure block diagram of a server of a logistics system test method provided by the embodiments of the present application. As shown in the figure, Figure 11 the server 1100 can have great differences due to different configurations or performances, and can include one or more central processing units (CPU) 1110 (the processor 1110 can include but is not limited to a microprocessor MCU or a programmable logic device FPGA processing device), a memory 1130 for storing data, one or more storage media 1120 (such as one or more mass storage devices) for storing application programs 1123 or data 1122. Among them, the memory 1130 and the storage medium 1120 can be temporary storage or persistent storage. The program stored in the storage medium 1120 can include one or more modules, each of which can include a series of instruction operations in the server. Further, the central processing unit 1110 can be configured to communicate with the storage medium 1120 and execute a series of instruction operations in the storage medium 1120 on the server 1100. The server 1100 can also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input and output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server TM , Mac OS X TM , Unix TM , Linux, FreeBSD, etc.

[0161] The input / output interface 1140 can be configured to receive or transmit data via a network. Examples of the network can include a wireless network provided by a communication provider of the server 1100. In an example, the input / output interface 1140 includes a network interface controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In an example, the input / output interface 1140 can be a radio frequency (RF) module configured to communicate with the Internet through a wireless manner.

[0162] Those skilled in the art can understand that Figure 11 The structure shown is only schematic, and does not limit the structure of the electronic device. For example, the server 1100 can further include more or less components than those shown, or have a different configuration of components than those shown. Figure 11 The structure shown is only schematic, and does not limit the structure of the electronic device. For example, the server 1100 can further include more or less components than those shown, or have a different configuration of components than those shown. Figure 11 The structure shown is only schematic, and does not limit the structure of the electronic device. For example, the server 1100 can further include more or less components than those shown, or have a different configuration of components than those shown.

[0163] The embodiments of the present application also provide a storage medium, which can be arranged in a server to save at least one instruction, at least one program, a code set or an instruction set related to the spread spectrum signal transmission method or the spread spectrum signal reception method in the method embodiments, and the at least one instruction, the at least one program, the code set or the instruction set are loaded and executed by the processor to implement the above-mentioned logistics system test method.

[0164] Optionally, in the present embodiment, the storage medium can be located in at least one of a plurality of network servers in a computer network. Optionally, in the present embodiment, the storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.

[0165] It can be seen from the embodiments of the logistics system test method, device, equipment and storage medium provided in the application that, in the embodiments of the application, the base data in the first system and operation data corresponding to an operation behavior of operating the first system are acquired, the base data and the operation data are synchronized to the second system, first inventory data determined by the first system based on the base data and the operation data is acquired, second inventory data determined by the second system based on the synchronized base data and the synchronized operation data is acquired, the first inventory data and the second inventory data are compared, an inventory comparison result is obtained, in the case where it is monitored that the first system receives input message data sent by an external system, the input message data and first output message data determined by the first system based on the input message data are acquired, the input message data is synchronized to the second system, second output message data determined by the second system based on the synchronized input message data is acquired, the first output message data and the second output message data are compared, message comparison result is obtained, and the test result of the logistics system is determined based on the inventory comparison result and the message comparison result, which can effectively verify the accuracy of the internal function of the logistics system to be tested and the accuracy of the association with the external system, and improve the test performance and test precision of the logistics system to be tested.

[0166] It should be noted that the above-mentioned embodiments of the application are in the order of description only, and do not represent the advantages and disadvantages of the embodiments. The above describes a specific embodiment of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-task processing and parallel processing are possible or can be advantageous.

[0167] Each of the embodiments in the specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the difference from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiments.

[0168] Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be completed by hardware, or by program instructing relevant hardware to complete, and the program can be stored in a computer readable storage medium. The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk.

[0169] The above only describes the preferred embodiments of the present application and is not used to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims

1. A method of testing a logistics system, characterized by, The method comprises: obtaining basic data in a first system and operation data corresponding to an operation behavior of operating the first system; the first system is a system running in a production environment; synchronizing the basic data to a second system, and obtaining synchronized basic data in the second system; the second system is a system to be tested; in a case where the basic data in the first system and the synchronized basic data in the second system are consistent, obtaining a first terminal corresponding to the first system, and the operation data corresponding to the operation behavior of operating the first system; sending a data operation instruction to the second system, so that a second terminal corresponding to the second system operates the second system based on the operation behavior in response to the data operation instruction, to obtain synchronized operation data; obtaining first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data; comparing the first inventory data and the second inventory data to obtain an inventory comparison result; in a case where it is monitored that the first system receives input message data sent by an external system, obtaining the input message data and first output message data determined by the first system based on the input message data; synchronizing the input message data to the second system; obtaining second output message data determined by the second system based on the synchronized input message data; comparing the first output message data and the second output message data to obtain a message comparison result; determining a test result of a logistics system based on the inventory comparison result and the message comparison result.

2. The method of claim 1, wherein, The determination of the test result of the logistics system based on the inventory comparison result and the message comparison result comprises: in a case where the inventory comparison result indicates that the first inventory data and the second inventory data are consistent, and the message comparison result indicates that the first output message data and the second output message data are consistent, determining that the test result is a result of passing the test and verification of the second system; correspondingly, after the determination of the test result of the logistics system based on the inventory comparison result and the message comparison result, the method further comprises: switching the first system to the second system.

3. The method of claim 1, wherein, Before the obtaining of the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system, the method further comprises: obtaining a calling request sent by the first system to a calling interface in the second system; sending the calling request to the second system; receiving a calling result returned by the second system in response to the calling request; in a case where the calling result indicates that the calling interface is successfully called, performing the operation of obtaining the basic data in the first system and the operation data corresponding to the operation behavior of operating the first system.

4. The method of claim 3, wherein, The obtaining of the calling request sent by the first system to the calling interface in the second system comprises: obtaining the calling request sent by the first system to the calling interface in the second system at a predetermined time period.

5. A logistics system testing apparatus characterized by comprising: The device comprises: A first acquisition module is configured to acquire basic data in a first system and operation data corresponding to an operation behavior of operating the first system; the first system is a system running in a production environment; A first synchronization module is configured to synchronize the basic data to a second system, and acquire synchronized basic data in the second system; the second system is a system to be tested; in a case where the basic data in the first system and the synchronized basic data in the second system are consistent, the first terminal corresponding to the first system is acquired, the operation data corresponding to the operation behavior of operating the first system is acquired, a data operation instruction is sent to the second system, so that the second terminal corresponding to the second system, in response to the data operation instruction, operates the second system based on the operation behavior, and obtains synchronized operation data; A second acquisition module is configured to acquire first inventory data determined by the first system based on the basic data and the operation data, and second inventory data determined by the second system based on the synchronized basic data and the synchronized operation data; A first comparison module is configured to compare the first inventory data and the second inventory data to obtain an inventory comparison result; A third acquisition module is configured to acquire input message data sent by an external system and first output message data determined by the first system based on the input message data in a case where it is monitored that the first system receives the input message data; A second synchronization module is configured to synchronize the input message data to the second system; A fourth acquisition module is configured to acquire second output message data determined by the second system based on the synchronized input message data; A second comparison module is configured to compare the first output message data and the second output message data to obtain a message comparison result; A first determination module is configured to determine a test result of a logistics system based on the inventory comparison result and the message comparison result.

6. An apparatus, comprising: The device comprises a processor and a memory, and the memory stores at least one instruction, at least one program, a code set or an instruction set, which are loaded and executed by the processor to implement the logistics system test method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, a code set or an instruction set, which are loaded and executed by the processor to implement the logistics system test method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Inventory data synchronization method and inventory data synchronization module

    CN112231331A