Method and system for testing through bypass gateway

By automatically comparing the messages of the old and new systems through the bypass gateway, the problems of long test time and insufficient coverage of the new system in the existing technology are solved, and efficient and comprehensive automatic testing is realized to ensure the stability of the new system.

CN118740679APending Publication Date: 2024-10-01SHANGHAI PUDONG DEVELOPMENT BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410846223.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, new system testing requires coordinating personnel from all parties to prepare cases, test data, execute and compare test results, which results in a long test time and is prone to design defects, affecting system stability.

Method used

By automatically filtering and comparing messages from the old and new systems through the bypass gateway, the function of automatically verifying the new system's business logic processing is realized, ensuring test coverage and accurate results.

Benefits of technology

It greatly reduces test time, improves test coverage, ensures the stability of the new system after it is put into production, and avoids design defects and errors in manual testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740679A_ABST
    Figure CN118740679A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of data processing, in particular to a method and system for testing through a bypass gateway. Comprising the steps that a bus module obtains real transaction flow and sends the real transaction flow to a first system and a bypass gateway, then receives a first response message generated by the first system according to the real transaction flow and also sends the first response message to the bypass gateway, and then the bypass gateway processes the real transaction flow to generate forwarding transaction flow and sends the forwarding transaction flow to a second system; and then a second response message generated by the second system according to the forwarding transaction flow is obtained, the first response message and the second response message are sent to a comparison module for comparison, and a message comparison report is generated according to a comparison result. According to the embodiment of the invention, the messages in the new and old systems are compared in the bypass gateway, and the efficiency and integrity of new system testing are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of data processing technology, and more particularly to a method and system for testing through a bypass gateway. Background Art

[0002] In the current financial technology system, it is a very time-consuming and labor-intensive process to transform the core system from the original monolithic application to a distributed system, because the new system adopts an advanced distributed architecture system, generally using cloud technology as the technical base, and then using the industry's more mainstream technology stack to build the various technical platforms of the new system, which brings complexity to the architecture of the new system. At the same time, in order to avoid the impact on the surrounding systems during the construction process, the new system generally uses the original business processing logic. Therefore, in order to test the results of the new system processing requests, a large number of user acceptance tests are usually performed manually. During the test, the positive cases, negative cases, and boundary cases of the transaction are written according to the conventional test methods, and then the transaction processing data required for the test is pre-buried, and the expected results of the test are written. Finally, after the test is completed, the test results are compared. If the overall pass rate of the test can be achieved, the new system can be put into production and put into customer service, thus completing the switch between the old and new systems. However, the existing technology requires coordination of personnel from all parties to prepare cases, test data, execution, and comparison of test results, so that the test will take a long time. In addition, if the testers do not have a deep understanding of the business scenarios, the test case design is flawed, and the test coverage is not perfect, this will lead to unforeseen problems after the new system is put into production, affecting the stability of the system.

[0003] Currently, there is an urgent need for a method to complete system testing by automatically comparing messages, which can automatically verify the function of the new system in processing business logic. Summary of the invention

[0004] In order to solve the problem that the existing method of testing the results of new system processing requests requires coordination of personnel from all parties to prepare cases, test data, execute, and compare test results during the new system testing process, the embodiment of this specification provides a method and system for testing through a bypass gateway, which automatically filters the test data through the bypass gateway and transmits it to the new system for processing, and then compares the messages between the new and old systems in the bypass gateway, thereby achieving efficient and comprehensive automatic completion of the new system test.

[0005] In order to solve any of the above technical problems, the specific technical solutions of the embodiments of this specification are as follows:

[0006] On the one hand, an embodiment of this specification provides a method for testing through a bypass gateway, including:

[0007] The bus module obtains the real transaction flow and sends it to the first system and the bypass gateway, receives the first response message generated by the first system according to the real transaction flow and sends it to the bypass gateway;

[0008] The bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, and sends the forwarding transaction traffic to the second system;

[0009] The bypass gateway obtains a second response message generated by the second system according to the forwarded transaction traffic;

[0010] The bypass gateway sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result.

[0011] Furthermore, before the bus module obtains the real transaction flow and sends it to the first system and the bypass gateway, it also includes:

[0012] Generate traffic configuration, transaction configuration and comparison configuration according to target business;

[0013] The traffic configuration is sent to a bypass gateway, the transaction configuration is sent to the second system, and the comparison configuration is sent to a comparison module.

[0014] Furthermore, the bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, further comprising:

[0015] The bypass gateway identifies, screens and reduces the real transaction traffic according to the traffic configuration;

[0016] The forwarding transaction traffic is generated according to the real transaction traffic after the identification, screening and flow reduction processing.

[0017] Furthermore, the bypass gateway identifies, screens and reduces the real transaction traffic according to the traffic configuration, further comprising:

[0018] Identify and delete invalid requests and duplicate requests in the real transaction traffic;

[0019] The business category of the target business is determined, and the real transaction flow that is different from the business category of the target business is reduced.

[0020] Furthermore, the bypass gateway obtains the second response message generated by the second system according to the forwarded transaction traffic, further comprising:

[0021] The second system identifies the forwarding transaction traffic according to the transaction configuration;

[0022] The forwarding transaction traffic required by the target business is identified and processed to generate the second response message.

[0023] Furthermore, the comparison module further includes:

[0024] Matching according to the unique identifiers of the first response message and the second response message and the comparison configuration;

[0025] Perform path comparison on each field name in the first response message and the second response message with the same unique identifier;

[0026] If the path comparison results are the same, the actual field values ​​are compared and the comparison result is generated.

[0027] Furthermore, matching according to the unique identifiers of the first response message and the second response message and the comparison configuration further includes:

[0028] Identify a unique identifier of the second response message according to the comparison configuration;

[0029] identifying, in the first response message, the first response message corresponding to the second response message according to the unique identifier;

[0030] Determining whether the second response message needs to be compared according to the target service;

[0031] If the second response message needs to be compared, field filtering is performed to delete the timestamps in the first response message and the second response message.

[0032] On the other hand, an embodiment of the present specification further provides a system for testing through a bypass gateway, the device comprising:

[0033] The bus module is used to obtain the real transaction flow and send it to the first system and the bypass gateway, receive the first response message generated by the first system according to the real transaction flow and send it to the bypass gateway;

[0034] The bypass gateway is used to process the real transaction traffic to generate forwarding transaction traffic and send it to the second system;

[0035] The second system is used to generate a second response message according to the forwarded transaction traffic;

[0036] The bypass gateway obtains the second response message, sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result.

[0037] On the other hand, an embodiment of the present specification further provides a computer device, including a memory, a processor, and a computer program stored in the memory, and the processor implements the above method when executing the computer program.

[0038] On the other hand, an embodiment of the present specification further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0039] Using the embodiments of this specification, in order to be able to use real transaction data to test the new system during the new system test, the bus module obtains the real transaction traffic and sends it to the first system and the bypass gateway at the same time, so as to ensure that the transaction traffic used for testing in the bypass gateway comes from the real transaction traffic, and then the first response message generated by the first system according to the real transaction traffic is received and sent to the bypass gateway, so as to obtain all the messages generated by the first system according to the real transaction traffic, and ensure that a message response result corresponding to one can be found in the process of testing the second system, so as to perform a comparison; then the bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, and sends it to the second system. In the process of forwarding by the bypass gateway, the real transaction traffic needs to be processed, and some transaction traffic that does not need to be performed by the second system is filtered out, and then the processed forwarding transaction traffic is sent to the second system, and the second response message generated by the second system according to the forwarding transaction traffic is obtained; then the bypass gateway sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result. By comparing the real messages between the new and old systems, we were able to verify the correctness of the new system's business logic, thus ensuring the stability of the new system when it goes into production. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a schematic diagram of a system for implementing a method for testing through a bypass gateway in an embodiment of this specification;

[0042] Figure 2 The figure is a flow chart of a method for testing through a bypass gateway according to an embodiment of the present specification;

[0043] Figure 3The figure shows a flow chart of generating a configuration according to a target service in an embodiment of this specification;

[0044] Figure 4 It is a schematic diagram of the process of processing the real transaction flow to generate forwarding transaction flow in the embodiment of this specification;

[0045] Figure 5 The figure is a schematic diagram of the process of generating a second response message according to the forwarding transaction flow by the second system in the embodiment of this specification;

[0046] Figure 6 The figure is a schematic diagram of the flow chart of the comparison performed by the comparison module in the embodiment of this specification;

[0047] Figure 7 The figure is a schematic diagram of the flow chart of the comparison performed by the comparison module in the embodiment of this specification;

[0048] Figure 8 The figure shows a schematic diagram of a system structure for testing through a bypass gateway in an embodiment of this specification;

[0049] Fig. 9 The figure is a schematic diagram of the structure of a computer device in an embodiment of the present specification.

[0050]

Description of reference numerals

[0051] 101. Bus module;

[0052] 102. System 1;

[0053] 103. Bypass gateway;

[0054] 104. Second system;

[0055] 801, bus module;

[0056] 802, first system;

[0057] 803, bypass gateway;

[0058] 804, second system;

[0059] 805, comparison module;

[0060] 902. Computer equipment;

[0061] 904. Processing equipment;

[0062] 906. Storage resources;

[0063] 908, driving mechanism;

[0064] 910, input / output module;

[0065] 912. Input device;

[0066] 914. Output device;

[0067] 916. Presentation equipment;

[0068] 918. Graphical user interface;

[0069] 920, network interface;

[0070] 922, communication link;

[0071] 924. Communication bus. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of this specification.

[0073] It should be noted that the terms "first", "second", etc. in the description and claims of the embodiments of this specification and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of this specification described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, device, product or equipment that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0074] It should be noted that the acquisition, storage, use, and processing of data in the technical solutions of the embodiments of this specification comply with the relevant provisions of national laws and regulations.

[0075] It should be noted that in the embodiments of this specification, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.

[0076] like Figure 1The diagram is a schematic diagram of an implementation system of an image tampering detection method in an embodiment of the present specification, including a bus module 101, a first system 102, a bypass gateway 103, and a second system 104. The bus module 101, the first system 102, the bypass gateway 103, and the second system 104 can communicate with each other through a network, and the network can include a local area network (LAN), a wide area network (WAN), the Internet, or a combination thereof, and is connected to a website, a user device (such as a computing device), and a backend system.

[0077] The user can input real transaction traffic to the first system 102 and the bypass gateway 103 through the bus module 101. The bypass gateway 103 deploys a program for processing the real transaction traffic, identifies and screens it, reduces the flow to generate forwarding transaction traffic, and then sends it to the second system 104 to generate a response message of the second system. The bypass gateway 103 also includes a message comparison module, which compares the response message of the first system received with the response message of the second system, and obtains a comparison result between the response result of the second system to the transaction traffic and the correct corresponding result.

[0078] Finally, the bypass gateway 103 can provide a report of the comparison result to the user through the bus module 101. Optionally, the bypass gateway 103 can be a node of a cloud computing system (not shown in the figure), or each server can be a separate cloud computing system, including multiple computers interconnected by a network and working as a distributed processing system.

[0079] In addition, it should be noted that Figure 1 What is shown is only an application environment provided by the embodiment of this specification. In actual application, other scenarios may also be included, and this specification does not limit them.

[0080] In view of the problems existing in the prior art, the embodiments of this specification provide a method for testing through a bypass gateway, which tests a new system through the bypass gateway and generates a test result report. Figure 2 The flowchart of a method for testing through a bypass gateway in an embodiment of this specification is shown. This figure describes the process of tampering detection of an image to be detected. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only order of execution. When the system or device product is executed in practice, it can be executed in the order of the method shown in the embodiment or the accompanying drawings or in parallel.

[0081] Specific as Figure 2 As shown, the method may include:

[0082] Step 201: The bus module obtains real transaction traffic and sends it to the first system and the bypass gateway, receives a first response message generated by the first system according to the real transaction traffic and sends it to the bypass gateway;

[0083] Step 202: the bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, and sends it to the second system;

[0084] Step 203: the bypass gateway obtains a second response message generated by the second system according to the forwarded transaction traffic;

[0085] Step 204: The bypass gateway sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result.

[0086] Using the embodiments of this specification, in order to be able to use real transaction data to test the new system during the new system test, the bus module obtains the real transaction traffic and sends it to the first system and the bypass gateway at the same time, so as to ensure that the transaction traffic used for testing in the bypass gateway comes from the real transaction traffic, and then the first response message generated by the first system according to the real transaction traffic is received and sent to the bypass gateway, so as to obtain all the messages generated by the first system according to the real transaction traffic, and ensure that a message response result corresponding to one can be found in the process of testing the second system, so as to perform a comparison; then the bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, and sends it to the second system. In the process of forwarding by the bypass gateway, the real transaction traffic needs to be processed, and some transaction traffic that does not need to be performed by the second system is filtered out, and then the processed forwarding transaction traffic is sent to the second system, and the second response message generated by the second system according to the forwarding transaction traffic is obtained; then the bypass gateway sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result. By comparing the real messages between the new and old systems, we were able to verify the correctness of the new system's business logic, thus ensuring the stability of the new system when it goes into production.

[0087] In the embodiment of this specification, in order to solve the problem of new system processing transactions online, it is necessary to verify the correctness and stability of the new system. In the embodiment of this specification, a bypass gateway service is added, which receives a real flow of an existing old system bypassed by the enterprise service bus, and then sends the flow to the new system for processing. A comparison module and targeted tests of the target business are also added. The comparison module can compare the response messages of the new and old systems in real time and view the results of the comparison. At the same time, it supports downloading the comparison result files within a certain period of time, which is convenient for developers and business personnel to view the results of the transactions processed by the new and old systems until all transactions are compared. The function of the new system to process business logic is verified. The message comparison process in the present invention includes three processes: the new and old systems are respectively connected to the real transaction flow, and then the message comparison process is performed; the bypass gateway reads the flow configuration strategy and forwards the bypassed flow to the new system for processing; the comparison module reads the comparison configuration strategy, consumes all messages in the message queue, and finally summarizes the comparison results.

[0088] According to an embodiment of the present specification, in order to enable the second system to perform targeted testing according to the target service, such as Figure 3 As shown, before the bus module obtains the real transaction flow and sends it to the first system and the bypass gateway, it also includes:

[0089] Step 301: Generate traffic configuration, transaction configuration and comparison configuration according to the target business;

[0090] Step 302: Send the traffic configuration to the bypass gateway, send the transaction configuration to the second system, and send the comparison configuration to the comparison module.

[0091] In the embodiments of the present specification, during the testing of a new system, the relevant real transaction traffic of the target business can be selected according to the specific business content, so as to realize targeted testing of the second system. Therefore, the bypass gateway is required to generate traffic configuration, transaction configuration and comparison configuration according to the target business, wherein the traffic configuration is used to reduce the real transaction traffic sent by the bus module in the bypass gateway, thereby reducing the amount of data of the forwarded transaction traffic sent to the second system; the transaction configuration is used to provide the second system with a specific transaction traffic to respond to according to the transaction content involved in the target business when responding to the forwarded transaction traffic; and the comparison configuration assists in matching and comparing the response messages of the two systems in the comparison module, so as to realize targeted testing according to the target business.

[0092] According to an embodiment of the present specification, in order to realize that the bypass gateway reduces the real transaction traffic sent from the bus module, such as Figure 4As shown, the bypass gateway processes the real transaction traffic to generate forwarding transaction traffic further including:

[0093] Step 401: the bypass gateway identifies, screens and reduces the real transaction traffic according to the traffic configuration;

[0094] Specifically, the identification, screening and flow reduction processing further includes:

[0095] Step 402: Identify and delete invalid requests and duplicate requests in the real transaction flow;

[0096] Step 403: Determine the business category of the target business, and reduce the real transaction traffic that is different from the business category of the target business.

[0097] Step 404: Generate the forwarded transaction traffic according to the real transaction traffic after the identification, screening and traffic reduction processing.

[0098] In the embodiments of the present specification, the bypass gateway first identifies and deletes invalid requests and duplicate requests in the real transaction traffic, so as to avoid the second system having to respond to invalid requests or duplicate requests, resulting in excessive data volume and reducing the efficiency of comparison; at the same time, the real transaction traffic can be initially reduced according to the business category of the target business. For example, if the business category is private transactions, the bypass gateway can reduce the flow of public transactions in the real transaction traffic; or select a preset amount of transaction traffic from all the real transaction traffic and forward it to the second system, thereby reducing the transaction traffic that the second system needs to process.

[0099] According to an embodiment of the present specification, in order to enable the second system to select specific transaction traffic to respond to when responding to the forwarded transaction traffic according to the transaction content involved in the target business, such as Figure 5 As shown, the bypass gateway obtains the second response message generated by the second system according to the forwarding transaction traffic further including:

[0100] Step 501: the second system identifies the forwarding transaction traffic according to the transaction configuration;

[0101] Step 502: Identify and process the forwarding transaction traffic required by the target business to generate the second response message.

[0102] Specifically, after receiving the forwarded transaction traffic, the second system will determine the transaction traffic related to the target business in the forwarded transaction traffic according to the target business, and respond to this part of the transaction traffic, thereby realizing targeted system testing.

[0103] According to an embodiment of the present specification, in order to match and compare the response messages of the two systems, as shown in FIG. Figure 6 As shown, the comparison module further includes:

[0104] Step 601: matching according to the unique identifiers of the first response message and the second response message and the comparison configuration;

[0105] Step 602: perform path comparison on each field name in the first response message and the second response message with the same unique identifier;

[0106] Step 603: If the path comparison results are the same, the actual field values ​​are compared and the comparison results are generated.

[0107] According to an embodiment of the present specification, the first response message is a response message generated by the first system based on the full amount of real transaction traffic, while the second response message is a response message generated by the second system based on the reduced and filtered forwarded transaction traffic. Therefore, in the process of comparison, it is necessary to find the content corresponding to the second response message from the first response message for comparison. Figure 7 As shown, matching according to the unique identifier of the first response message, the second response message and the comparison configuration further includes:

[0108] Step 701: Identify the unique identifier of the second response message according to the comparison configuration;

[0109] Step 702: Identify the first response message corresponding to the second response message in the first response message according to the unique identifier;

[0110] Step 703: Determine whether the second response message needs to be compared according to the target service;

[0111] Step 704: If the second response message needs to be compared, field filtering is performed to delete the timestamps in the first response message and the second response message.

[0112] Based on the same inventive concept, the embodiment of this specification also provides a device for comparing messages through a bypass gateway, such as Figure 8 As shown, including:

[0113] The bus module 801 is used to obtain the real transaction flow and send it to the first system 802 and the bypass gateway 803, receive the first response message generated by the first system 802 according to the real transaction flow and send it to the bypass gateway 803;

[0114] The bypass gateway 803 is used to process the real transaction traffic to generate forwarding transaction traffic and send it to the second system 804;

[0115] The second system 804 is used to generate a second response message according to the forwarded transaction traffic;

[0116] The bypass gateway 803 obtains the second response message, sends the first response message and the second response message to the comparison module 805 for comparison, and generates a message comparison report according to the comparison result.

[0117] Since the principle of solving the problem by the above device is similar to that of the above method, the implementation of the above device can refer to the implementation of the above method, and the repeated parts will not be repeated.

[0118] like Fig. 9 The structure diagram of the computer device of the embodiment of this specification is shown. The first system and the second system in the embodiment of this specification can be the computer device in this embodiment, and the method of the embodiment of this specification is executed. The computer device 902 may include one or more processing devices 904, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 902 may also include any storage resource 906, which is used to store any kind of information such as code, settings, data, etc. Non-limiting, for example, the storage resource 906 may include any one or more combinations of the following: any type of RAM, any type of ROM, flash memory device, hard disk, optical disk, etc. More generally, any storage resource can use any technology to store information. Further, any storage resource can provide volatile or non-volatile retention of information. Further, any storage resource can represent a fixed or removable component of the computer device 902. In one case, when the processing device 904 executes an associated instruction stored in any storage resource or a combination of storage resources, the computer device 902 can perform any operation of the associated instruction. The computer device 902 also includes one or more drive mechanisms 908 for interacting with any storage resources, such as a hard disk drive mechanism, an optical disk drive mechanism, and the like.

[0119] The computer device 902 may also include an input / output module 910 (I / O) for receiving various inputs (via input devices 912) and for providing various outputs (via output devices 914). A specific output mechanism may include a presentation device 916 and an associated graphical user interface (GUI) 918. In other embodiments, the input / output module 910 (I / O), the input device 912, and the output device 914 may not be included, and the computer device 902 may be used as a computer device in a network. The computer device 902 may also include one or more network interfaces 920 for exchanging data with other devices via one or more communication links 922. One or more communication buses 924 couple the components described above together.

[0120] The communication link 922 may be implemented in any manner, for example, through a local area network, a wide area network (e.g., the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 922 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0121] The embodiments of the present specification also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0122] The embodiments of the present specification also provide a computer-readable instruction, wherein when a processor executes the instruction, the program therein causes the processor to execute the above method.

[0123] It should be understood that in the various embodiments of the present specification, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present specification.

[0124] It should also be understood that in the embodiments of this specification, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the embodiments of this specification generally indicates that the associated objects before and after are in an "or" relationship.

[0125] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this specification can be implemented with electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of this specification.

[0126] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0127] In the several embodiments provided in the embodiments of this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be mechanical or other forms of connection.

[0128] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of this specification.

[0129] In addition, each functional unit in each embodiment of the present specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0130] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of this specification is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0131] The embodiments of this specification use specific embodiments to illustrate the principles and implementation methods of the embodiments of this specification. The description of the above embodiments is only used to help understand the methods and core ideas of the embodiments of this specification. At the same time, for those skilled in the art, according to the ideas of the embodiments of this specification, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the embodiments of this specification.

Claims

1. A method for testing by bypassing a gateway, characterized in that: The method comprises: The bus module obtains the real transaction flow and sends it to the first system and the bypass gateway, receives the first response message generated by the first system according to the real transaction flow and sends it to the bypass gateway; The bypass gateway processes the real transaction traffic to generate forwarding transaction traffic, and sends the forwarding transaction traffic to the second system; The bypass gateway obtains a second response message generated by the second system according to the forwarded transaction traffic; The bypass gateway sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result.

2. The method for testing through a bypass gateway according to claim 1, characterized in that: Before the bus module obtains the real transaction flow and sends it to the first system and the bypass gateway, it also includes: Generate traffic configuration, transaction configuration and comparison configuration according to target business; The traffic configuration is sent to a bypass gateway, the transaction configuration is sent to the second system, and the comparison configuration is sent to a comparison module.

3. The method for testing through a bypass gateway according to claim 2, characterized in that: The bypass gateway further processes the real transaction traffic to generate forwarding transaction traffic, The bypass gateway identifies, screens and reduces the real transaction traffic according to the traffic configuration; The forwarding transaction traffic is generated according to the real transaction traffic after the identification, screening and flow reduction processing.

4. The method for testing through a bypass gateway according to claim 3, characterized in that: The bypass gateway further includes: identifying, screening and reducing the real transaction traffic according to the traffic configuration, Identify and delete invalid requests and duplicate requests in the real transaction traffic; The business category of the target business is determined, and the real transaction flow that is different from the business category of the target business is reduced.

5. The method for testing through a bypass gateway according to claim 2, characterized in that: The bypass gateway further obtains the second response message generated by the second system according to the forwarded transaction traffic, including: The second system identifies the forwarding transaction traffic according to the transaction configuration; The forwarding transaction traffic required by the target business is identified and processed to generate the second response message.

6. The method for testing through a bypass gateway according to claim 2, characterized in that: The comparison module further comprises: Matching according to the unique identifiers of the first response message and the second response message and the comparison configuration; Perform path comparison on each field name in the first response message and the second response message with the same unique identifier; If the path comparison results are the same, the actual field values ​​are compared and the comparison result is generated.

7. The method for testing through a bypass gateway according to claim 6, characterized in that: Matching according to the unique identifier of the first response message, the second response message and the comparison configuration further includes: Identify a unique identifier of the second response message according to the comparison configuration; identifying, in the first response message, the first response message corresponding to the second response message according to the unique identifier; Determining whether the second response message needs to be compared according to the target service; If the second response message needs to be compared, field filtering is performed to delete the timestamps in the first response message and the second response message.

8. A system for testing via a bypass gateway, characterized in that: The system comprises, The bus module is used to obtain the real transaction flow and send it to the first system and the bypass gateway, receive the first response message generated by the first system according to the real transaction flow and send it to the bypass gateway; The bypass gateway is used to process the real transaction traffic to generate forwarding transaction traffic and send it to the second system; The second system is used to generate a second response message according to the forwarded transaction traffic; The bypass gateway obtains the second response message, sends the first response message and the second response message to the comparison module for comparison, and generates a message comparison report according to the comparison result.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.