A system and method for non-inductive switching of a parallel synchronous test

By employing a system seamless switching method through parallel synchronous testing and using multiple verification methods, the seamless switching of the domestically produced system in the banking transaction and financial service system was ensured. This achieved verification of the stability and data accuracy of the old and new systems and solved the stability and reliability issues during the system migration process.

CN115328794BActive Publication Date: 2026-03-17CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-22
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

During the migration from old to new systems, how can we achieve a seamless transition and ensure the stability and data security of domestically produced systems? In particular, how can we verify the adapted application software and functional modules in banking transaction systems and financial service systems to ensure stable operation and normal functionality?

Method used

A seamless system switching method using parallel synchronous testing is adopted. By configuring the test list, generating comparison file packages, comparing virtual output with preset error thresholds, and adjusting decision switches, the output is ensured to meet the tolerance. The system switching is carried out step by step, and combined with multiple verification methods, flexible and efficient verification of the old and new systems is achieved.

Benefits of technology

It enables seamless switching between old and new systems, ensures the normal operation of downstream systems and data accuracy, provides an efficient data verification method between domestic and non-domestic platforms, and solves the stability and reliability issues during system migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328794B_ABST
    Figure CN115328794B_ABST
Patent Text Reader

Abstract

The present application relates to a kind of parallel synchronous test system non-inductive switching method and system, configuration test list and respectively using historical data and real-time running data to decide the switch mode hierarchical verification reliability of system to be enabled, by the switch design of tolerance and decision, both ensure that new platform system is verified in time effectively, also ensure the correctness of downstream system supply number, so that downstream operation and downstream system can maintain normal operation;Various verification methods are combined to implement, flexible and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of software testing and data processing technology, and in particular to a system and method for seamless switching of parallel synchronous testing. Background Technology

[0002] Currently, many organizations rely on foreign companies for their information systems, including operating systems, databases, basic software, and platform architectures. To ensure data and network security, and to break free from dependence on foreign technologies in the context of information technology innovation, the comprehensive development and replacement of IT infrastructure, basic software, application software, and information security has become a crucial component of the new infrastructure initiative. This will lead to the development of domestically produced operating systems, databases, middleware, and other IT infrastructure, which will help gradually establish an IT underlying architecture and standards based on independent technologies.

[0003] However, for some special key industries and application areas, such as banking transaction systems and financial service systems, on the one hand, the demand for domestically developed new systems is stronger due to data security considerations, and on the other hand, there are extremely high requirements for the stability and reliability of system migration and conversion. For example, there are strict requirements such as uninterrupted service during the handover between the new and old systems, seamless switching, and no impact on downstream use after the switch.

[0004] Compared to existing system technologies, newly developed domestic systems often use different technology stacks. Due to differences in basic structure and infrastructure, the various application software and functional modules running on the system and platform must also be adapted accordingly. In practical applications, how to conduct targeted verification of the adapted application software and functional modules to ensure their stable operation and normal functioning is the key to the success of the migration and conversion process between the old and new systems. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention proposes a seamless switching method and system for parallel synchronous testing. Through a switch-type design with tolerance and decision-making, it ensures both timely and effective verification of the new platform system and the correctness of data supplied by the downstream system, enabling downstream operations and the downstream system to maintain normal operation. It employs a combination of multiple verification methods, making it flexible, diverse, and efficient.

[0006] To achieve the above objectives, the technical solution adopted by the present invention includes:

[0007] A seamless switching method for parallel synchronous testing systems, characterized by comprising:

[0008] S1. Configure the test list, which includes preset key database tables and key files;

[0009] S2. Collect historical data files of the current system according to the test list and generate the first comparison file package;

[0010] S3. Deploy the system to be enabled, perform the first virtual run operation according to the test list, and generate the first virtual output;

[0011] S4. Use the first comparison file package to compare and determine whether the first virtual output meets the preset error threshold. When it is determined that the first virtual output does not meet the preset error threshold, the system switch is rejected and the first error report is fed back.

[0012] S5. When it is determined that the first virtual output meets the preset error threshold, the system to be enabled and the current system are connected to the data source at the same time, and the decision switch is configured with the default value. The decision switch includes the execution system selection condition corresponding to the task request. The default value is to select the current system as the execution system.

[0013] S6. Generate a second virtual output and a default output respectively using the task requests of the system to be enabled and the current system;

[0014] S7. Compare and determine whether the second virtual output meets the preset tolerance amount compared with the default output. If it is determined that the second virtual output does not meet the preset tolerance amount compared with the default output, refuse the system switch and provide a second error report, and use the default output as the output result.

[0015] S8. When it is determined that the second virtual output meets the preset tolerance amount compared with the default output, the decision switch is changed to select the system to be enabled as the execution system, and the second virtual output is used as the output result.

[0016] S9. Feedback output for task requests.

[0017] Furthermore, the method also includes:

[0018] S10. Switch the system based on the number of decision switches that have been changed.

[0019] Furthermore, step S10 includes the following sub-steps:

[0020] S101. Count the total number of decision switches that have been changed;

[0021] S102. Determine whether the total number exceeds the preset switching threshold. When the total number exceeds the preset switching threshold, accept the system switch and send back the first switching report.

[0022] S103. When it is determined that the total number does not exceed the preset switching threshold, the system switch is rejected and a second switching report is fed back. The second switching report includes the task request information corresponding to the decision switch that has not been changed.

[0023] Furthermore, the execution of the first virtual run operation based on the test list includes:

[0024] Use the system to be enabled to select and execute the corresponding partial task requests from the test list;

[0025] Alternatively, use the system to be enabled to select and execute all task requests corresponding to the test list.

[0026] Furthermore, the step of simultaneously connecting the system to be enabled and the current system to the data source includes copying the data content retrieved by the current system from the data source and synchronizing it to the system to be enabled.

[0027] Further, step S6 includes:

[0028] Based on the task request, the current system retrieves the corresponding data content from the data source and executes the process to generate default output.

[0029] And, based on the task request, use the system to be enabled to copy the data content called from the data source by the current system and execute to generate a second virtual output.

[0030] This invention also relates to a seamless switching system for parallel synchronous testing, connecting a system to be activated and the current system, characterized in that it includes:

[0031] The test list management module is used to configure the test list;

[0032] The historical data management module is used to collect historical data files of the current system based on the test list and generate the first comparison file package;

[0033] The first judgment module is used to use the first comparison file package to compare and judge whether the first virtual output meets the preset error threshold.

[0034] The decision management module is used to configure and adjust decision switches;

[0035] The second judgment module is used to compare and judge whether the second virtual output meets the preset tolerance amount compared with the default output.

[0036] The present invention also relates to a computer-readable storage medium, characterized in that the storage medium stores a computer program, which, when executed by a processor, implements the above-described method.

[0037] The present invention also relates to an electronic device, characterized in that it includes a processor and a memory;

[0038] The memory is used to store the test list and the first comparison file package;

[0039] The processor is configured to execute the above method by invoking the test list and the first comparison file package.

[0040] The present invention also relates to a computer program product, including a computer program and / or instructions, characterized in that the computer program and / or instructions, when executed by a processor, implement the steps of the above-described method.

[0041] The beneficial effects of this invention are as follows:

[0042] The system and method for seamless switching of parallel synchronous testing described in this invention, through a switch-type design of tolerance and decision-making, ensures both timely and effective verification of the new platform system and the correctness of data supplied by the downstream system, enabling downstream operations and downstream systems to maintain normal operation. The system employs a combination of multiple verification methods, which are flexible, diverse, and efficient, providing an efficient method for verifying the accuracy of data between domestic and non-domestic platforms, and solving the data verification problem between existing technology platforms and new technology platforms after full domestic production. Attached Figure Description

[0043] Figure 1 This is a schematic diagram of the system seamless switching method for parallel synchronous testing according to the present invention.

[0044] Figure 2 This is a schematic diagram of the seamless switching system structure for parallel synchronous testing of the present invention. Detailed Implementation

[0045] To better understand the content of this invention, a detailed description will be provided in conjunction with the accompanying drawings and embodiments.

[0046] The first aspect of this invention relates to a process flow as follows: Figure 1 The system's seamless switching method for parallel synchronous testing, as shown, includes:

[0047] S1. Configure the test list, which includes preset key database tables and key files.

[0048] In practice, this can be achieved by defining a data range (hereinafter referred to as the whitelist) that will run on the new platform (the system to be enabled) and a list of data that needs to be verified. A whitelist table is stored in the database (database sharding and table partitioning), and a whitelist file is generated based on this.

[0049] S2. Collect historical data files of the current system based on the test list and generate the first comparison file package.

[0050] Data from the old platform (current system) is filtered using a whitelist. Specifically, key tables in the database are filtered using a whitelist table to generate data files; key files within the database are filtered using a whitelist file to generate data files.

[0051] Preferably, the aforementioned historical data files are compressed into a first comparison file package to facilitate content transfer.

[0052] S3. Deploy the system to be enabled, execute the first virtual run operation according to the test list, and generate the first virtual output. Preferably, based on the actual system switching needs and the estimated testing difficulty of the system to be enabled, you can choose to use the system to be enabled to select and execute some of the task requests corresponding to the test list, or use the system to be enabled to select and execute all the task requests corresponding to the test list.

[0053] When the first comparison file package is generated by selecting the packaging and compression method, it needs to be decompressed and deployed in the corresponding storage on the new platform.

[0054] S4. Use the first comparison file package to compare and determine whether the first virtual output meets the preset error threshold. If it is determined that the first virtual output does not meet the preset error threshold, refuse system switching and send out the first error report.

[0055] Under the condition of simulating normal task execution, the data in the data list is exported daily in a simulated manner on the new platform (database tables are unloaded, and data files are copied).

[0056] When determining whether the first virtual output meets the preset error threshold, different comparison judgment methods can be selected according to the amount of output data and statistics can be performed separately. For example, for files with a large amount of data, a distributed comparison tool is used to compare and generate the first difference result and the first difference count; for files with a small amount of data, the data is sorted and then compared using a diff tool to generate the second difference result and the second difference count; for files that are not in the above situation, after sorting, a separately developed comparison tool is used to compare and generate the third difference result and the third difference count.

[0057] The comparison and evaluation of the first virtual output is the first level of verification for the system to be enabled. Historical data is used to verify whether the system can correctly handle various task requests under near-real-world usage scenarios. Correspondingly, the first error report specifies the details of the failed task requests and the corresponding historical data used, allowing technical personnel to identify problems in the system and perform appropriate debugging.

[0058] S5. When it is determined that the first virtual output meets the preset error threshold, the data content called by the current system from the data source is copied and synchronized to the system to be enabled. The system to be enabled and the current system are connected to the data source at the same time. The decision switch is configured with the default value. The decision switch includes the execution system selection condition corresponding to the task request. The default value is to select the current system as the execution system.

[0059] Preferably, a switch file is established for data usage based on specific task requests, serving as the decision switch. A new decision task is created daily along with tasks automatically scheduled by the system. A data list file is created for verification as needed, with each file representing one decision task. Subsequent jobs merge the data according to the decision switch settings before proceeding with subsequent operations.

[0060] S6. Generate a second virtual output and a default output corresponding to the task request executed by the system to be enabled and the current system, respectively. With both the system to be enabled and the current system connected to the data source, first, according to the task request, use the current system to retrieve the corresponding data content from the data source and execute it to generate the default output, thus achieving normal execution of the task request. Then, according to the task request, use the system to be enabled to copy the data content retrieved by the current system from the data source and execute it to generate the second virtual output.

[0061] S7. Compare and determine whether the second virtual output meets the preset tolerance amount compared with the default output. If it is determined that the second virtual output does not meet the preset tolerance amount compared with the default output, refuse the system switch and provide a second error report, and use the default output as the output result.

[0062] The judgment and comparison of the second virtual output is a second-level verification of the output content that can meet the task feedback requirements, after the system to be activated is deemed to basically meet the needs of the application scenario. This is a stability guarantee for the system switching operation.

[0063] Preferably, a tolerance configuration file is created for the data list that needs to be compared. Each day, based on the comparison results, the system looks up the tolerance amount for the corresponding task in the tolerance configuration file. Tasks with discrepancies exceeding the tolerance amount are considered failed, and the system automatically issues an alarm message. The relevant technical personnel then analyze the problem and assess the impact.

[0064] The second error report provides specific details that differ from the first error report, including the current system's execution logs, enabling technicians to debug and modify the system to be enabled based on the specific information.

[0065] S8. When it is determined that the second virtual output meets the preset tolerance compared with the default output, the decision switch is changed to select the system to be enabled as the execution system, and the second virtual output is used as the output result.

[0066] If necessary, technical personnel can assess the impact and manually modify the decision switch file. The decision switch configuration file is also configured according to the task. The decision switch is located by task name in the configuration file; if it is on, data from the domestic platform is used; if it is off, non-domestic data continues to be used.

[0067] S9. Feedback output for task requests.

[0068] Since all feedback outputs have been tolerance-verified, downstream users will not be aware of whether the outputs are generated by the current system or the system to be enabled, thus achieving a seamless switch.

[0069] S10. Perform system switching based on the number of changed decision switches. Specifically, this includes the following steps: S101. Count the total number of changed decision switches; S102. Determine if the total number exceeds a preset switching threshold. If the total number exceeds the preset switching threshold, accept the system switch and provide a first switching report; S103. If the total number does not exceed the preset switching threshold, reject the system switch and provide a second switching report. The second switching report includes task request information corresponding to the unchanged decision switches.

[0070] Another aspect of the present invention relates to a seamless switching system for parallel synchronous testing, the structure of which is as follows: Figure 2 As shown, it includes:

[0071] The test list management module is used to configure the test list;

[0072] The historical data management module is used to collect historical data files of the current system based on the test list and generate the first comparison file package;

[0073] The first judgment module is used to use the first comparison file package to compare and judge whether the first virtual output meets the preset error threshold.

[0074] The decision management module is used to configure and adjust decision switches;

[0075] The second judgment module is used to compare and judge whether the second virtual output meets the preset tolerance amount compared with the default output.

[0076] By using this system, the aforementioned computational processing methods can be executed and the corresponding technical effects can be achieved.

[0077] Embodiments of the present invention also provide a computer-readable storage medium capable of implementing all the steps of the methods in the above embodiments, wherein the computer-readable storage medium stores a computer program that, when executed by a processor, implements all the steps of the methods in the above embodiments.

[0078] Embodiments of the present invention also provide an electronic device for performing the above-described method. As an implementation device for the method, the electronic device includes at least a processor and a memory. In particular, the memory stores data and related computer programs required for performing the method, such as a test list and a first comparison file package. The processor calls the data and programs in the memory to execute all the steps of the method and obtain the corresponding technical effect.

[0079] Preferably, the electronic device may include a bus architecture, which may include any number of interconnected buses and bridges. The bus will include various circuits linked together by one or more processors and memories. The bus may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface between the bus and the receiver and transmitter. The receiver and transmitter may be the same element, i.e., a transceiver, providing a unit for communicating with various other systems over a transmission medium. The processor is responsible for managing the bus and general processing, while the memory may be used to store data used by the processor during operation.

[0080] Additionally, the electronic device may further include components such as a communication module, an input unit, an audio processor, a display, and a power supply. The processor (or controller, operating control) used may include a microprocessor or other processor device and / or logic device, which receives input and controls the operation of various components of the electronic device; the memory may be one or more of a buffer, flash memory, hard drive, removable media, volatile memory, non-volatile memory, or other suitable devices, which can store the aforementioned data information, and may also store programs for executing the information, and the processor can execute the program stored in the memory to achieve information storage or processing, etc.; the input unit is used to provide input to the processor, for example, it can be a button or touch input device; the power supply is used to provide power to the electronic device; the display is used to display images and text, for example, it can be an LCD display. The communication module is a transmitter / receiver that transmits and receives signals via an antenna. The communication module (transmitter / receiver) is coupled to the processor to provide input signals and receive output signals, which can be the same as in conventional mobile communication terminals. Based on different communication technologies, multiple communication modules can be incorporated into the same electronic device, such as cellular network modules, Bluetooth modules, and / or wireless LAN modules. The communication module (transmitter / receiver) is also coupled to a speaker and microphone via an audio processor to provide audio output through the speaker and receive audio input from the microphone, thereby enabling typical telecommunications functions. The audio processor can include any suitable buffer, decoder, amplifier, etc. Furthermore, the audio processor is coupled to a central processing unit, enabling on-device recording via the microphone and on-device playback of stored sound via the speaker.

[0081] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0082] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.

[0083] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0084] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the functions specified in one or more boxes. Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the invention.

[0085] The above description is merely a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A system non-inductive switching method of parallel synchronous testing, characterized in that, The method comprises the following steps: S1, configuring a test list, wherein the test list comprises preset database key tables and key files; S2, collecting historical data files of a current system according to the test list, and generating a first comparison file package; S3, deploying a system to be started, performing a first virtual running operation according to the test list, and generating a first virtual output; S4, comparing and judging whether the first virtual output meets a preset error threshold by using the first comparison file package, and when it is judged that the first virtual output does not meet the preset error threshold, rejecting system switching and feeding back a first error report; S5, when it is judged that the first virtual output meets the preset error threshold, connecting the system to be started and the current system to a data source at the same time, and configuring a decision switch with a default value, wherein the decision switch comprises an execution system selection condition corresponding to a task request, and the default value is to select the current system as an execution system; S6, respectively using the system to be started and the current system to execute a task request to generate a second virtual output and a default output; S7, comparing and judging whether the second virtual output meets a preset tolerance compared with the default output, and when it is judged that the second virtual output does not meet the preset tolerance compared with the default output, rejecting system switching and feeding back a second error report, and taking the default output as an output result; S8, when it is judged that the second virtual output meets the preset tolerance compared with the default output, changing the decision switch to select the system to be started as the execution system, and taking the second virtual output as the output result; S9, feeding back an output result to the task request; The method further comprises the following steps: S10, switching the system according to the number of changed decision switches; The step S10 comprises the following steps: S101, counting the total number of changed decision switches; S102, judging whether the total number exceeds a preset switching threshold, and when it is judged that the total number exceeds the preset switching threshold, accepting system switching and feeding back a first switching report; S103, when it is judged that the total number does not exceed the preset switching threshold, rejecting system switching and feeding back a second switching report, wherein the second switching report comprises task request information corresponding to the decision switch which is not changed.

2. The method of claim 1, wherein, The step of performing the first virtual running operation according to the test list comprises the following steps: using the system to be started to execute part of task requests corresponding to the test list; or, using the system to be started to execute all task requests corresponding to the test list. The step of connecting the system to be started and the current system to the data source at the same time comprises the following step:

3. The method of claim 1, wherein, copying data content called by the current system from the data source and synchronizing the data content to the system to be started.

4. The method of claim 3, wherein, The step S6 comprises the following steps: using the current system to call corresponding data content from the data source according to the task request and execute to generate the default output; and using the system to be started to copy the data content called by the current system from the data source according to the task request and execute to generate the second virtual output. The system comprises the following modules:

5. A system for non-inductive switching of a parallel synchronous test, connecting a system to be activated and a current system, characterized in that a test list management module, configured to configure a test list, wherein the test list comprises preset database key tables and key files; a historical data management module, configured to collect historical data files of a current system according to the test list, and generate a first comparison file package; ​ The first judging module is configured to determine whether the first virtual output meets a preset error threshold by using the first comparison file package. When it is determined that the first virtual output does not meet the preset error threshold, the system switching is rejected and a first error report is fed back. When it is determined that the first virtual output meets the preset error threshold, the standby system and the current system are simultaneously connected with the data source, and a decision switch is configured with a default value. The decision switch includes an execution system selection condition corresponding to a task request. The default value is to select the current system as an execution system. The decision management module is configured to configure and adjust the decision switch. The decision management module is further configured to perform system switching according to the number of the decision switches that have been changed, count the total number of the decision switches that have been changed, determine whether the total number exceeds a preset switching threshold, accept the system switching and feed back a first switching report when it is determined that the total number exceeds the preset switching threshold, and reject the system switching and feed back a second switching report when it is determined that the total number does not exceed the preset switching threshold. The second switching report includes task request information corresponding to the decision switches that have not been changed. The second judging module is configured to determine whether the second virtual output meets a preset tolerance amount compared with a default output. When it is determined that the second virtual output does not meet the preset tolerance amount compared with the default output, the system switching is rejected and a second error report is fed back. The default output is used as an output result. When it is determined that the second virtual output meets the preset tolerance amount compared with the default output, the decision switch is changed to select the standby system as the execution system, and the second virtual output is used as the output result. The system is further configured to deploy the standby system, perform a first virtual running operation according to a test list, generate a first virtual output, and generate a second virtual output and a default output corresponding to a task request by using the standby system and the current system respectively. The system is further configured to feed back an output result to the task request.

6. A computer-readable storage medium, characterized in that, The storage medium has a computer program stored thereon. The computer program is executed by the processor to implement the method in any one of claims 1 to 4.

7. An electronic device, comprising: The system includes a processor and a memory. The memory is configured to store a test list and a first comparison file package. The processor is configured to implement the method in any one of claims 1 to 4 by calling the test list and the first comparison file package.

8. A computer program product comprising computer programs and / or instructions, characterized in that, The computer program and / or instructions are executed by the processor to implement the steps of the method in any one of claims 1 to 4.

Citation Information

Patent Citations

  • System reconstruction method and device and electronic equipment

    CN112015469A

  • Batch switching method and system based on white list

    CN114036165A