Search

CN-115776691-B - Batch comparison automatic test method and system for business system

CN115776691BCN 115776691 BCN115776691 BCN 115776691BCN-115776691-B

Abstract

The invention discloses a batch comparison automatic test method and system for a business system, and relates to the technical field of data test, wherein the method comprises the steps of constructing a flow engine, pre-configuring a flow engine test flow, and executing the following test process according to the test flow, namely cleaning historical data information according to a test environment; generating test data, verifying the accuracy and the integrity of the test data, operating and starting an old system to test the old system which is started normally, tracking the data processing process of the old system in real time, backing up the processing result, cleaning the test environment again, updating and deploying a new system, operating and starting the new system to test the new system which is started normally, tracking the data processing process of the new system in real time, backing up the processing result, comparing the processing results of the old system and the new system in batches, and generating a new and old system data difference comparison report. By the technical scheme, the probability of manual operation errors is greatly reduced, and the testing efficiency is improved.

Inventors

  • LIU SHENGTENG

Assignees

  • 北京思特奇信息技术股份有限公司

Dates

Publication Date
20260512
Application Date
20221013

Claims (6)

  1. 1. The batch comparison automatic test method for the business system is characterized by comprising the following steps of: constructing a flow engine, pre-configuring a test flow of the flow engine aiming at a service system, and executing the following test process according to the test flow: According to the selected test environment, cleaning historical data information of the test environment; generating test data required by the test, and verifying the accuracy and the integrity of the test data; operating and starting an old system, and testing the old system which is started normally by using the test data; tracking the data processing process of the old system in real time, and backing up the processing result of the old system; Cleaning the test environment again, and updating and deploying a new system; Running and starting a new system, and testing the new system which is started normally by using the test data; Tracking the data processing process of the new system in real time, and backing up the processing result of the new system; performing batch comparison on the processing results of the old system and the new system to generate a new and old system data difference comparison report; The test data comprises data and service data, and in the process of verifying the accuracy and the integrity of the test data, if the accuracy and the integrity of the test data are verified successfully, the next operation is executed, and if the verification fails, new test data are reconstructed and generated; Before the old system is tested by using the test data and before the new system is tested by using the test data, performing system verification on the old system and the new system after starting, if the verification results in normal system starting, executing a test process, and if the verification results in system starting failure, restarting a starting function until the verification system is started normally; in the process of tracking the data processing of the old system or the new system in real time, if processing abnormality or error exists, regenerating new test data and retesting the system; And in the batch comparison, judging whether the data volume in the old system is completely consistent with the data volume in the new system, the old system is absent, the new system is absent and the new system is consistent with the data in the old system or not in the new system in the generated data difference comparison report.
  2. 2. A batch alignment automated testing system for a business system, wherein the batch alignment automated testing method for a business system of claim 1 is applied, comprising: the flow engine configuration module is used for constructing a flow engine, pre-configuring a test flow of the flow engine aiming at a business system, and executing the following test process according to the test flow: The historical data cleaning module is used for cleaning historical data information of the test environment according to the selected test environment; the test data generation module is used for generating test data required by the test and verifying the accuracy and the integrity of the test data; the old system operation test module is used for operating and starting the old system and testing the old system which is started normally by using the test data; The old system test tracking module is used for tracking the data processing process of the old system in real time and backing up the processing result of the old system; the new system updating and deploying module is used for cleaning the test environment again and updating and deploying a new system; The new system operation test module is used for operating and starting the new system and testing the new system which is started normally by utilizing the test data; the new system test tracking module is used for tracking the data processing process of the new system in real time and backing up the processing result of the new system; and the new and old batch comparison module is used for carrying out batch comparison on the processing results of the old system and the new system and generating a new and old system data difference comparison report.
  3. 3. The automated testing system for batch comparison of business systems of claim 2, wherein the test data generation module performs a next operation if the accuracy and integrity of the test data is verified successfully in verifying the accuracy and integrity of the test data, and reconfigures to generate new test data if the verification fails.
  4. 4. The batch comparison automatic test system for business systems according to claim 2, wherein the old system operation test module and the new system operation test module respectively perform system verification on the old system and the new system after starting before the system is tested by using the test data, if the verification results in normal system starting, the test process is executed, and if the verification results in failure of system starting, the starting function is restarted until the verification system is started normally.
  5. 5. The automated testing system for batch comparison of business systems according to claim 2, wherein the old system test tracking module and the new system test tracking module re-generate new test data and re-test the system if there is a processing exception or error during the real-time tracking data processing.
  6. 6. The automated test system for batch alignment of business systems of claim 2, wherein the old and new batch alignment modules generate data difference alignment reports that determine whether the old system is completely consistent with the new system in data volume, the new system is absent from the old system, the old system is absent from the new system, and the new system is consistent with the old system in data volume.

Description

Batch comparison automatic test method and system for business system Technical Field The invention relates to the technical field of data testing, in particular to a batch comparison automatic testing method for a business system and a batch comparison automatic testing system for the business system. Background At present, after the telecommunication industry goes through the rapid development of 3G and 4G technologies, the 5G technology is also rapidly punched on a commercial scale, the service of a 5G-era telecommunication system is more complex, and the requirements on test quality and efficiency are higher and higher in the service popularization process of new requirements. Meanwhile, the system has zero tolerance to faults and problems, any requirement configuration and program modification are required, and before the system is on line, the system is subjected to complete functional regression test and comprehensive service scene test, and in order to achieve the full coverage of the service scene test, the comparison test of the system before and after upgrading of a large amount of service scene data is required. To ensure zero failure and problems after the system is brought on-line. Because the batch comparison test data volume is large, the processing flow is long, the manual operation problem is more, the workload is large and the time is long, an efficient and accurate automatic batch comparison test method is urgently needed to solve the pain point problem. Disclosure of Invention Aiming at the problems, the invention provides a batch comparison automatic test method and system for a business system, wherein a batch comparison test flow is configured through a flow engine, the old system and the new system are respectively tested by utilizing test data, and the test results of the new system and the old system are subjected to batch comparison, so that a test report is automatically generated, the customization of the test flow, the automation of data and ticket construction and the intellectualization of the test result report are realized, the probability of manual operation errors is greatly reduced, and the test efficiency is greatly improved. In order to achieve the above purpose, the present invention provides a batch comparison automation test method for a business system, which comprises: constructing a flow engine, pre-configuring a test flow of the flow engine aiming at a service system, and executing the following test process according to the test flow: According to the selected test environment, cleaning historical data information of the test environment; generating test data required by the test, and verifying the accuracy and the integrity of the test data; operating and starting an old system, and testing the old system which is started normally by using the test data; tracking the data processing process of the old system in real time, and backing up the processing result of the old system; Cleaning the test environment again, and updating and deploying a new system; Running and starting a new system, and testing the new system which is started normally by using the test data; Tracking the data processing process of the new system in real time, and backing up the processing result of the new system; and carrying out batch comparison on the processing results of the old system and the new system, and generating a new and old system data difference comparison report. In the above technical solution, preferably, the test data includes data and service data, and in the process of verifying accuracy and integrity of the test data, if the accuracy and integrity of the test data are verified successfully, the next operation is executed, and if verification fails, new test data are reconstructed and generated. In the above technical solution, preferably, before the old system is tested by using the test data and before the new system is tested by using the test data, system verification is performed on the old system and the new system after the start, if the verification results in that the system is started normally, a test process is executed, and if the verification results in that the system is started normally, the start function is restarted until the verification system is started normally. In the above technical solution, preferably, in the process of tracking the data processing of the old system or the new system in real time, if there is a processing abnormality or error, new test data is regenerated and the system is retested. In the above technical solution, preferably, in the batch comparison, in the generated data difference comparison report, it is determined whether the data amounts in the old system and the new system are completely consistent, there is no old system in the new system, and there is no new system in the new system, and whether the data amounts in the new system and the old system are consistent. The invention also provides a batch comparison auto