Account tracking test method and related equipment for financial infrastructure system
By using the business replay method to conduct accounting testing in the financial infrastructure system, the problem of test comprehensiveness and accuracy caused by manual operations is solved, efficient and accurate test result feedback is achieved, and labor costs are reduced.
Patent Information
- Application Number
- CN202410153725.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-02
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-02-02
AI Technical Summary
The accounting testing of financial infrastructure systems relies on manual operations, resulting in poor comprehensiveness and accuracy, low efficiency, and a lot of manpower.
By simulating business scenarios in the production environment in the system to be put into production, using the business playback method, the playback business data set and the actual business data set are generated for data comparison, test results are generated, and feedback is given to users through the reporting platform.
It reduces manual operations, reduces labor costs, improves test efficiency and comprehensiveness, expands test scale, can simulate real production scenarios, and improves test accuracy and timeliness.
Smart Images

Figure CN118093384B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of testing technology, and in particular to an account tracking testing method and related equipment for a financial infrastructure system. Background Art
[0002] The financial infrastructure system is an important component of the financial market infrastructure, such as the clearing and settlement system of the bond market. In the system transformation scenario of the financial infrastructure system, before the new version of the financial infrastructure system is put into production, it is necessary to conduct an account tracking test on the system to be put into production to conduct quality inspection on the system to be put into production and simulate the actual system load after going online to the greatest extent.
[0003] At present, the account tracking test process of the financial infrastructure system is mainly performed manually, that is, the testers manually simulate the business processes in the predetermined business scenarios in the financial infrastructure system to be put into production to perform account tracking tests on the system to be put into production.
[0004] In actual business scenarios, the business system of financial infrastructure systems is very large and complex. The existing account tracking test method relies on manual operation, and the business scenarios of manual simulation execution are very limited, making it difficult to ensure the comprehensiveness and accuracy of account tracking tests. Secondly, the account tracking test process requires a lot of manpower, the test efficiency is low, and the test scale is relatively limited. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides an account tracking test method for a financial infrastructure system to solve the problem that the existing account tracking test relies on manual operation and has limited executable business scenarios, resulting in poor comprehensiveness and accuracy of the test and low test efficiency.
[0006] The embodiment of the present invention also provides an account tracking test device for a financial infrastructure system to ensure the actual implementation and application of the above method.
[0007] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0008] A method for tracking accounts of a financial infrastructure system, comprising:
[0009] In the case where it is necessary to conduct an account tracking test on the system to be put into production, when the system to be put into production is in the daytime state of the target business day, determine the test business corresponding to the target business day; the test business is the business actually processed by the current production system in the production environment;
[0010] Determine the business input data and data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared;
[0011] Based on the business input data, replaying the test business in the system to be put into production;
[0012] Determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production during the business playback process when the test business is processed;
[0013] Determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment;
[0014] Performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result;
[0015] The data comparison result is used as the test result corresponding to the test service, and the test result is fed back to the user.
[0016] Optionally, the method described above, based on the business input data, replaying the test business in the system to be put into production includes:
[0017] Determine a target business pipeline task corresponding to the test business among a plurality of pre-built business pipeline tasks;
[0018] The business input data is used as input data of the target business pipeline task, and the target business pipeline task is executed to perform business playback on the test business in the system to be put into production.
[0019] In the above method, optionally, the step of determining the playback service data set includes:
[0020] Determining, in a system database of the system to be put into production, a first business data set corresponding to the test business;
[0021] For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the first business data set, and using the business data as the playback business data corresponding to the data object to be compared;
[0022] The playback service data set is composed of the playback service data corresponding to each of the data objects to be compared.
[0023] In the above method, optionally, the determining of the actual business data set includes:
[0024] Determining a second business data set corresponding to the test business in a pre-built production system backup database;
[0025] For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the second business data set, and using the business data as the actual business data corresponding to the data object to be compared;
[0026] The actual business data set is composed of actual business data corresponding to each of the data objects to be compared.
[0027] In the above method, optionally, performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result includes:
[0028] For each of the data objects to be compared, index matching processing is performed on the playback service data and the actual service data corresponding to the data object to be compared, so as to obtain an index matching result corresponding to the data object to be compared;
[0029] For each of the data objects to be compared, if the index matching result corresponding to the data object to be compared indicates that the index matching fails, the index matching result is used as the matching result corresponding to the data object to be compared; if the index matching result corresponding to the data object to be compared indicates that the index matching succeeds, the data object to be compared is used as the first data object;
[0030] For each of the first data objects, performing data state comparison processing on the playback business data and the actual business data corresponding to the first data object to obtain a state comparison result corresponding to the first data object;
[0031] For each of the first data objects, if the state comparison result corresponding to the first data object indicates that the state comparison fails, the index matching result and the state comparison result corresponding to the first data object are used as the comparison result corresponding to the first data object; if the state comparison result corresponding to the first data object indicates that the state comparison succeeds, the first data object is used as the second data object;
[0032] For each of the second data objects, performing detailed data comparison processing on the playback business data and the actual business data corresponding to the second data object to obtain a detailed comparison result corresponding to the second data object, and using the detailed comparison result, index matching result and status comparison result corresponding to the second data object as the comparison result corresponding to the second data object;
[0033] The data comparison result is composed of the comparison results corresponding to each of the to-be-compared data objects in the data object set.
[0034] The above method may optionally include performing detailed data comparison processing on the playback business data and actual business data corresponding to the second data object to obtain a detailed comparison result corresponding to the second data object, including:
[0035] Determine each to-be-compared data element corresponding to the second data object;
[0036] Determine, in the playback service data corresponding to the second data object, playback detail data corresponding to each of the to-be-compared data elements;
[0037] Determine, in the actual business data corresponding to the second data object, the actual detailed data corresponding to each of the data elements to be compared;
[0038] For each of the data elements to be compared, performing data comparison processing on the playback detailed data and the actual detailed data corresponding to the data element to be compared, and obtaining the element comparison result corresponding to the data element to be compared;
[0039] According to the comparison results of each of the elements, the detailed comparison result corresponding to the second data object is determined.
[0040] In the above method, optionally, the feeding back the test result to the user includes:
[0041] Generate statistical charts and detailed data tables corresponding to the test results based on the constructed reporting platform;
[0042] The statistical charts and the detailed data tables are displayed through the front-end interface of the reporting platform to provide feedback of the test results to the user.
[0043] An account tracking test device for a financial infrastructure system, comprising:
[0044] The first determining unit is used to determine the test business corresponding to the target business day when the system to be put into production is in the daytime state of the target business day, if it is necessary to perform an account tracking test on the system to be put into production; the test business is the business actually processed by the current system in production environment;
[0045] A second determination unit, configured to determine the business input data and a data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared;
[0046] A service playback unit, configured to perform service playback on the test service in the system to be put into production based on the service input data;
[0047] A third determining unit is used to determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production performing business processing on the test business during the business playback process;
[0048] A fourth determination unit is used to determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment;
[0049] A data comparison unit, used for performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result;
[0050] The result feedback unit is used to use the data comparison result as the test result corresponding to the test service and feed back the test result to the user.
[0051] A storage medium, comprising stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned account tracking test method for the financial infrastructure system.
[0052] An electronic device includes a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the account tracking test method of the financial infrastructure system as described above.
[0053] A method for account tracking testing of a financial infrastructure system provided based on the above-mentioned embodiment of the present invention includes: in the case where it is necessary to perform account tracking testing on a system to be put into production, when the system to be put into production is in the daytime state of a target business day, determining the test business corresponding to the target business day; the test business is the business actually processed by the current system in production in a production environment; determining the business input data and data object set corresponding to the test business; the data object set includes multiple data objects to be compared; based on the business input data, replaying the test business in the system to be put into production; determining a playback business data set; the playback business data set includes the playback business data corresponding to each data object to be compared, and each playback business data is the business data generated by the system to be put into production performing business processing on the test business during the business playback process; determining an actual business data set; the actual business data set includes the actual business data corresponding to each data object to be compared; each actual business data is the business data generated by the current system in production performing business processing on the test business; performing data comparison processing on the playback business data set and the actual business data set to obtain a data comparison result; using the data comparison result as the test result corresponding to the test business, and feeding back the test result to a user. By applying the method provided in the embodiment of the present invention, the system to be put into production can be replayed to perform account tracking test, which can reduce manual operations in the account tracking test process, which is conducive to reducing labor costs, improving test efficiency and expanding the test scale. Secondly, during the test process, the real business in the production environment is replayed, which can simulate various business scenarios in real production scenarios, which is conducive to improving the comprehensiveness and accuracy of the account tracking test. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0055] Figure 1 A method flow chart of an account tracking test method for a financial infrastructure system provided by an embodiment of the present invention;
[0056] Figure 2 An example diagram of the platform architecture of an account tracking test platform provided in an embodiment of the present invention;
[0057] Figure 3 An example diagram of an operating framework of an account tracking test platform provided in an embodiment of the present invention;
[0058] Figure 4 An example diagram of an account tracking test process provided by an embodiment of the present invention;
[0059] Figure 5 A schematic diagram of the structure of an account tracking test device for a financial infrastructure system provided by an embodiment of the present invention;
[0060] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0062] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0063] The embodiment of the present invention provides an account tracking test method for a financial infrastructure system. The method can be applied to an account tracking test platform, and the execution subject can be a server of the platform. The method flow chart of the method is as follows: Figure 1 As shown, including:
[0064] S101: When it is necessary to perform an account tracking test on a system to be put into production, when the system to be put into production is in a daytime state of a target business day, determining a test business corresponding to the target business day; the test business is a business actually processed by the current system in production environment;
[0065] The method provided in the embodiment of the present invention is applied to the account tracking test scenario of the financial infrastructure system. Before the new version of the financial infrastructure system is put into production, the new version of the system is used as the system to be put into production. The system to be put into production is the version of the financial infrastructure system to be put into production. The account tracking test is performed on it through the account tracking test platform. It is understandable that when performing the account tracking test on the system to be put into production, a corresponding test environment needs to be built, and the system to be put into production will run in the test environment.
[0066] In the method provided by the embodiment of the present invention, the business data used for the account tracking test of the system to be put into production comes from the actual production environment, that is, during the account tracking test, the business that needs to be played back in the system to be put into production every business day is the business actually processed by the current production system in the production environment. The current production system is the current production version system of the financial infrastructure system, that is, the system that currently undertakes business processing work in the production environment.
[0067] The method provided in the embodiment of the present invention can adopt a non-real-time account tracking method, formulate a test plan through the business data of the business day that has been completed in the production environment, and perform account tracking test. Specifically, the tester can configure the test plan in the account tracking test platform in advance, such as setting the account tracking test business cycle, the business to be processed on each business day (that is, the business operation that needs to be replayed), and the data objects that need to be compared for various businesses. Perform account tracking test according to the test plan.
[0068] In the case of adopting a non-real-time account tracking method, when the system to be put into production is in a test environment for account tracking testing, the account tracking testing platform can, based on the pre-configured test plan, conduct account tracking testing on the system to be put into production according to the business operations that need to be replayed on each business day when the test environment is in the test environment. Specifically, when the system to be put into production enters a certain business day in the test environment, the current business day is regarded as the target business day. When the system to be put into production enters the daytime state of the target business day, the platform can determine the business that needs to be replayed in the system to be put into production on the target business day according to the pre-configured test plan, and use the business as the test business corresponding to the target business day. It can be understood that the test business is the business that has actually been processed by the current production system. Specifically, the test business can be the business processed by the current production system on the target business day in the production environment.
[0069] The method provided by the embodiment of the present invention can also adopt a real-time account tracking method. When the production environment is in the process of the current business day, the account tracking test is performed through the business generated in real time in the current business day of the production environment. Specifically, the tester can pre-set the data objects that need to be compared for various types of business, and configure the test environment and the production environment to be in the same time scene, and use the current business day as the target business day. When a new business is generated in the production environment, the test platform can be triggered in real time to use the business as a test business and perform account tracking tests on the business.
[0070] S102: Determine the business input data and data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared;
[0071] In the method provided in the embodiment of the present invention, the business input data refers to the input data of the current test business, and is also the input data in the business processing process of the business in the actual production scenario, such as the input instruction information and other data. In the case of adopting a non-real-time account tracking method, the relevant business data of the business used for account tracking testing in the production environment can be backed up in advance and stored as test data. The platform can obtain the business input data corresponding to the current test business from the stored test data. In the case of adopting a real-time account tracking method, the platform can obtain the business input data corresponding to the current test business from the system database of the current production system.
[0072] In the method provided by the embodiment of the present invention, the tester can pre-configure the data objects required for comparison during the test of various types of services, that is, the data objects to be compared. The platform can obtain the various data objects to be compared corresponding to the current test service from the pre-configured information according to the service type of the current test service, thereby obtaining the data object set corresponding to the current test service.
[0073] S103: Based on the business input data, replay the test business in the system to be put into production;
[0074] In the method provided by the embodiment of the present invention, the platform can use the business input data corresponding to the current test business as business input, initiate the current test business to the system to be put into production in the test environment, and replay the test business in the system to be put into production, even if the system to be put into production processes the business.
[0075] S104: Determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production performing business processing on the test business during the business playback process;
[0076] In the method provided by the embodiment of the present invention, when the system business data is stable, for example, when the system to be put into production enters the end-of-day state of the target business day or at other time points when it can be determined that the system business data is in a stable state, the platform can obtain the business data generated by the system to be put into production for business processing of the test business. Specifically, it is necessary to obtain the business data corresponding to each data object to be compared, and use the obtained business data as the playback business data corresponding to the corresponding data object to be compared, thereby obtaining the playback business data set.
[0077] S105: Determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment;
[0078] In the method provided in the embodiment of the present invention, the platform can obtain the business data generated by the current production system when processing the test business. Specifically, it is necessary to obtain the business data corresponding to each data object to be compared, and use the obtained business data as the actual business data corresponding to the corresponding data object to be compared. It can be understood that each actual business data in the actual business data set is also data obtained when the business data about the test business in the current production system is in a stable state. When a non-real-time account tracking method is adopted, the actual business data can be obtained from the stored test data. If a real-time account tracking method is adopted, the actual business data can be obtained from the system database of the current production system.
[0079] S106: performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result;
[0080] In the method provided by the embodiment of the present invention, the platform can perform data comparison processing on the playback business data set and the actual business data set based on the pre-set data comparison strategy, that is, compare the playback business data in the playback business data set with the actual business data in the actual business data set to obtain the data comparison result. That is, for the current test business, it is determined whether the processing result of the system to be put into production is consistent with the processing result of the current production system. The data comparison result may include the comparison of each business data, such as the comparison of the playback business data corresponding to each data object to be compared with the actual business data.
[0081] S107: Using the data comparison result as the test result corresponding to the test service, and feeding back the test result to the user.
[0082] In the method provided by the embodiment of the present invention, the platform will use the data comparison result of the playback service data set and the actual service data set as the test result of the current test service, and feedback the test result to the user in a predetermined display form through the front-end page. The user can check and analyze the inconsistent data items in the data comparison result.
[0083] It should be noted that in the actual account tracking test process, multiple test businesses usually need to be tested in one business day, that is, there are usually multiple test businesses corresponding to the target business day, and each test business can be processed according to the method provided in the embodiment of the present invention. In general, when the target business day is in the daytime state, each test business corresponding to the target business day is played back in the system to be put into production, and the processing results of each test business by the system to be put into production are compared with the processing results of each test business by the current production system in the production environment, so as to realize the account tracking test of the target business day.
[0084] Based on the method provided by the embodiment of the present invention, when it is necessary to perform an account tracking test on the system to be put into production, when the system to be put into production is in the daytime state of the target business day, determine the test business corresponding to the target business day; the test business is the business actually processed by the current production system in the production environment; determine the business input data and each data object to be compared corresponding to the test business; based on the business input data, replay the test business in the system to be put into production; determine a replayed business data set, which includes the replayed business data corresponding to each data object to be compared, and the replayed business data is the business data generated by the system to be put into production performing business processing on the test business during the business playback process; determine an actual business data set, which includes the actual business data corresponding to each data object to be compared; the actual business data is the business data generated by the current production system performing business processing on the test business in the production environment; perform data comparison processing on the replayed business data set and the actual business data set to obtain a data comparison result; use the data comparison result as the test result corresponding to the test business, and feedback the test result to the user. By applying the method provided by the embodiment of the present invention, the system to be put into production can be tested by business playback, which can reduce manual operations in the process of account tracking test, which is conducive to reducing labor costs, improving test efficiency and expanding the scale of testing. Secondly, during the test process, the real business in the production environment is played back, which can simulate various business scenarios in real production scenarios, which is conducive to improving the comprehensiveness and accuracy of the account tracking test. In addition, a real-time account tracking test method can be implemented, which is conducive to improving the timeliness of the test.
[0085] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of replaying the test business in the system to be put into production based on the business input data mentioned in step S103 includes:
[0086] Determine a target business pipeline task corresponding to the test business among a plurality of pre-built business pipeline tasks;
[0087] In the method provided in the embodiment of the present invention, the platform performs business playback based on the pipeline tool, such as configuring the business pipeline through Jenkins to achieve business playback. Jenkins is an existing continuous integration tool and will not be introduced in detail here.
[0088] In the method provided by the embodiment of the present invention, multiple business pipeline tasks can be pre-built according to actual test requirements, that is, each business pipeline task can be used to execute a type of business process, and the business pipeline task contains one or more nodes corresponding to the business process, and each node defines the business operation to be triggered by the node. Through the operations performed by each node, the business of the corresponding business process can be replayed in the system to be put into production. According to the business type of the current test business, the platform can find a business pipeline task that matches the current test business in each pre-built business pipeline task, and use the business pipeline task as the target business pipeline task.
[0089] The business input data is used as input data of the target business pipeline task, and the target business pipeline task is executed to perform business playback on the test business in the system to be put into production.
[0090] In the method provided by the embodiment of the present invention, the platform can use the business input data corresponding to the current test business as the input data of the target business pipeline task, thereby triggering the execution process of the target business pipeline task. After the target business pipeline task starts to execute, the business operations of each node will be executed in sequence, such as assembling business instructions based on the instruction information in the business input data, and sending the business instructions to the server of the system to be put into production. Based on the operation of each node in the target business pipeline task on the system to be put into production, the test business can be replayed in the system to be put into production, that is, the system to be put into production is prompted to perform business processing on the test business and obtain the corresponding business processing results.
[0091] Based on the method provided by the embodiment of the present invention, business playback is realized based on the pipeline. By configuring corresponding pipeline tasks for various test businesses, business playback of various test businesses can be performed automatically. The pipeline tasks can flexibly change the business processes they implement by adjusting the nodes, which is conducive to improving the flexibility and convenience of the test work.
[0092] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of determining the playback service data set mentioned in step S104 includes:
[0093] Determining, in a system database of the system to be put into production, a first business data set corresponding to the test business;
[0094] In the method provided by the embodiment of the present invention, the platform can determine various business data corresponding to the test business in the system database of the system to be put into production, that is, various business data generated during the process of the system to be put into production processing the test business, and use these business data as the first business data set.
[0095] For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the first business data set, and using the business data as the playback business data corresponding to the data object to be compared;
[0096] The playback service data set is composed of the playback service data corresponding to each of the data objects to be compared.
[0097] In the method provided by the embodiment of the present invention, for each data object to be compared, the platform can match the business type of each business data in the first business data set with the data object to be compared, find the business data matching the data object to be compared, and use the business data as the playback business data corresponding to the data object to be compared. The playback business data corresponding to each data object to be compared is obtained from the system database of the system to be put into production, and the playback business data set is composed of each playback business data.
[0098] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of determining the actual business data set mentioned in step S105 includes:
[0099] Determining a second business data set corresponding to the test business in a pre-built production system backup database;
[0100] The method provided in the embodiment of the present invention adopts a non-real-time tracking method, that is, testing is performed through the business of the completed business day in the production environment. The tester can pre-build a production system backup database, perform data backup on the system database of the current production system in the production environment as needed, and store the business data required for the test in the production system backup database. In the production system backup database, the platform can determine the various business data corresponding to the test business, that is, in the production environment, the various business data generated in the process of the current production system processing the test business, and use these business data as the second business data set.
[0101] For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the second business data set, and using the business data as the actual business data corresponding to the data object to be compared;
[0102] The actual business data set is composed of actual business data corresponding to each of the data objects to be compared.
[0103] In the method provided by the embodiment of the present invention, for each data object to be compared, the platform can match the business type of each business data in the second business data with the data object to be compared, find the business data matching the data object to be compared, and use the business data as the actual business data corresponding to the data object to be compared. The actual business data corresponding to each data object to be compared is obtained from the production system backup database, and the actual business data set is composed of each actual business data.
[0104] Based on the method provided in the embodiment of the present invention, the required business data is stored in a manner of building a backup database, which can avoid directly accessing the system database of the current production system during testing, which is beneficial to ensuring the data security of the current production system, and can also realize account tracking testing in scenarios where there are restrictions on reading data of the production system.
[0105] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of performing data comparison processing on the playback service data set and the actual service data set mentioned in step S106 to obtain the data comparison result includes:
[0106] For each of the data objects to be compared, index matching processing is performed on the playback service data and the actual service data corresponding to the data object to be compared, so as to obtain an index matching result corresponding to the data object to be compared;
[0107] In the method provided in the embodiment of the present invention, each business data will be defined with a primary key value corresponding to the business data, and the primary key value is a business-level identifier that can be used to identify the business data. Under normal circumstances, the primary key value of the system to be put into production and the current production system for business data representing the same content is the same.
[0108] In the method provided by the embodiment of the present invention, in the process of comparing the playback business data set and the actual business data set, the business data is first index matched. Specifically, for each data object to be compared, the corresponding playback business data and its corresponding actual business data are index matched, that is, the primary key value corresponding to the playback business data is compared with the primary key value of the actual business data. If the primary key values of the two are the same, it is considered that the index match of the playback business data and the actual business data is successful. If the primary key values of the two are different, it is considered that the index match of the playback business data and the actual business data fails, and the index matching results of the two are used as the index matching results corresponding to the data object to be compared.
[0109] For each of the data objects to be compared, if the index matching result corresponding to the data object to be compared indicates that the index matching fails, the index matching result is used as the matching result corresponding to the data object to be compared; if the index matching result corresponding to the data object to be compared indicates that the index matching succeeds, the data object to be compared is used as the first data object;
[0110] In the method provided by the embodiment of the present invention, if the index matching result corresponding to the data object to be compared indicates that the index matching fails, the index matching result is used as the final matching result, the data matching process of the data object to be compared is terminated, and the playback business data and the actual business data corresponding to the data object to be compared are no longer subjected to subsequent data processing. If the index matching result corresponding to the data object to be compared indicates that the index matching is successful, the data object to be compared is marked as the first data object, and the playback business data and the actual business data corresponding to the data object to be compared are further processed.
[0111] For each of the first data objects, performing data state comparison processing on the playback business data and the actual business data corresponding to the first data object to obtain a state comparison result corresponding to the first data object;
[0112] In the method provided by the embodiment of the present invention, for the business data with successful index matching, it is necessary to compare the data status, that is, to compare whether the data status of the playback business data and the actual business data are the same. For example, if a certain data object to be compared is a data object about instructions, then the data status comparison of its playback business data and actual business data can be to compare whether the instruction status is the same. Specifically, for each data object to be compared with a successful index matching, that is, the first data object, the data status of the playback business data corresponding to the data object to be compared and the data status of the actual business data corresponding to the data object to be compared are compared. If the data status of the two is the same, it is considered that the status comparison of the two is successful. If the data status of the two is different, it is considered that the status comparison of the two has failed, and the status comparison result of the playback business data and the actual business data is used as the status comparison result corresponding to the data object to be compared.
[0113] For each of the first data objects, if the state comparison result corresponding to the first data object indicates that the state comparison fails, the index matching result and the state comparison result corresponding to the first data object are used as the comparison result corresponding to the first data object; if the state comparison result corresponding to the first data object indicates that the state comparison succeeds, the first data object is used as the second data object;
[0114] In the method provided by the embodiment of the present invention, for each data object to be compared (i.e., the first data object) whose index matching is successful, if its corresponding state comparison result indicates that the state comparison fails, the index matching result and the state comparison result of the data object to be compared are used as its final comparison result, and the data comparison processing process of the data object to be compared is terminated, and the playback business data and the actual business data corresponding to the data object to be compared are no longer subjected to subsequent data processing. If the state comparison result corresponding to the data object to be compared indicates that the state comparison is successful, the data object to be compared is marked as the second data object, so that the playback business data and the actual business data corresponding to the data object to be compared are further processed.
[0115] For each of the second data objects, performing detailed data comparison processing on the playback business data and the actual business data corresponding to the second data object to obtain a detailed comparison result corresponding to the second data object, and using the detailed comparison result, index matching result and status comparison result corresponding to the second data object as the comparison result corresponding to the second data object;
[0116] The data comparison result is composed of the comparison results corresponding to each of the to-be-compared data objects in the data object set.
[0117] In the method provided by the embodiment of the present invention, for each data object to be compared (i.e., the second data object) whose index matching is successful and whose status comparison is successful, the playback business data corresponding to the data object to be compared and its corresponding actual business data are compared in detail, that is, whether the specific data items in the playback business data and the actual business data are the same are compared, and the data comparison results of the playback business data and the actual business data are obtained, and the data comparison results of the two are used as the detailed comparison results corresponding to the data object to be compared. For such data objects to be compared, the corresponding detailed comparison results, the corresponding index matching results, and the corresponding status comparison results are used as the final comparison results.
[0118] After completing the data comparison process of each to-be-compared data object in the data object set, the comparison results corresponding to each to-be-compared data object are used as the data comparison results between the playback business data set and the actual business data set.
[0119] On the basis of the method provided in the above embodiment, in the method provided in the embodiment of the present invention, the detailed data comparison processing is performed on the playback business data and the actual business data corresponding to the second data object to obtain the detailed comparison result corresponding to the second data object, including:
[0120] Determine each to-be-compared data element corresponding to the second data object;
[0121] In the method provided by the embodiment of the present invention, the specific data elements to be compared for each type of data object to be compared can be pre-configured, that is, each data to be compared has its corresponding data elements to be compared. For example, the data object of basic information of bonds, its corresponding data elements to be compared may include bond nature, bond abbreviation, maturity date, issue price, number of days to be repaid, etc.
[0122] In the method provided by the embodiment of the present invention, during the detailed data comparison process between the playback business data corresponding to the second data object and its corresponding actual business data, each data element to be compared corresponding to the second data object can be obtained from the configuration information.
[0123] Determine, in the playback service data corresponding to the second data object, playback detail data corresponding to each of the to-be-compared data elements;
[0124] In the method provided by an embodiment of the present invention, for each data element to be compared, in the playback business data corresponding to the second data object, the data item that matches the data element to be compared is found by matching the data element to be compared with the data attribute, and the data item is used as the playback detail data corresponding to the data element to be compared.
[0125] Determine, in the actual business data corresponding to the second data object, the actual detailed data corresponding to each of the data elements to be compared;
[0126] In the method provided by the embodiment of the present invention, for each data element to be compared, in the actual business data corresponding to the second data object, the data element to be compared is matched with the data attribute to find the data item that matches the data element to be compared, and the data item is used as the actual detailed data corresponding to the data element to be compared.
[0127] For each of the data elements to be compared, performing data comparison processing on the playback detailed data and the actual detailed data corresponding to the data element to be compared, and obtaining the element comparison result corresponding to the data element to be compared;
[0128] In the method provided by the embodiment of the present invention, the playback detail data corresponding to each data element to be compared and its corresponding actual detail data are compared. If the data of the two are consistent, the data comparison result of the two is considered to be a successful data comparison. If the data of the two are inconsistent, the data comparison result of the two is considered to be a data comparison failure, and the data comparison result of the two is used as the element comparison result corresponding to the data element to be compared. In the specific data comparison process, data processing may also be involved, that is, in the comparison process of the playback detail data and the actual detail data, data unification is required in dimensions such as data value type, data precision, and enumeration value comparison, and the processed data is compared.
[0129] According to the comparison results of each of the elements, the detailed comparison result corresponding to the second data object is determined.
[0130] In the method provided by the embodiment of the present invention, the element comparison results of each data element to be compared are processed according to a predetermined result evaluation method to obtain the detailed comparison result corresponding to the second data object. For example, whether the element is successfully compared can be used as the content of the detailed comparison result. The evaluation standard is that when the element comparison results of all the data elements to be compared are all successful data comparisons, the detailed comparison result of the second data object is characterized as a successful element comparison. If there is an element comparison result that is a data comparison failure, the detailed comparison result is characterized as a failed element comparison. Under this evaluation standard, the result statistics of each element comparison result are performed. If all element comparison results are successful data comparisons, the successful element comparison is used as the detailed comparison result corresponding to the current second data object. If not all element comparison results are successful data comparisons, the failed element comparison is used as the detailed comparison result corresponding to the current second data object. All element comparison results can also be used as the content of the detailed comparison result. Under this evaluation method, the element comparison results of all data elements to be compared are integrated, and the integrated result is used as the detailed comparison result.
[0131] exist Figure 1 On the basis of the method shown, in the method provided by the embodiment of the present invention, the process of feeding back the test result to the user mentioned in step S107 includes:
[0132] Generate statistical charts and detailed data tables corresponding to the test results based on the constructed reporting platform;
[0133] In the method provided by the embodiment of the present invention, a report platform is pre-built to feedback the test results to the user. When the feedback user feedbacks the test results corresponding to the current test task, a statistical chart and a detailed data table corresponding to the current test result can be generated through the report platform. The statistical chart refers to a chart obtained by statistically analyzing the data comparison results, and the detailed data table is a data table showing the detailed comparison of the playback business data and the actual business data of each data object to be compared.
[0134] The statistical charts and the detailed data tables are displayed through the front-end interface of the reporting platform to provide feedback of the test results to the user.
[0135] In the method provided by the embodiment of the present invention, statistical charts and detailed data tables can be displayed in the front-end interface of the report platform to facilitate viewing of data comparison results and various detailed data to achieve feedback on test results.
[0136] Based on the method provided in the embodiment of the present invention, the test results can be fed back to the user in visual forms such as statistical charts and detailed data tables, so that the user can clearly understand the test results, which is convenient for the user to carry out testing work and improve the user experience.
[0137] In order to better illustrate the method provided by the embodiment of the present invention, based on the methods provided by the previous embodiments and in combination with actual application scenarios, the embodiment of the present invention provides another account tracking test method for a financial infrastructure system. The method provided by the embodiment of the present invention is applied to the account tracking test scenario of the financial infrastructure system, and the method can be regarded as an automated account tracking test method for the financial infrastructure system. The method provided by the embodiment of the present invention replays the real business scenarios of the existing production system (i.e., the current production system in the production environment) within a single day or multiple days in the new generation system (i.e., the system to be put into production), and compares and analyzes the account processing results of the new generation system with the account processing results of the existing production system to verify the consistency of the business processing results of the new and old systems.
[0138] Next, a brief example is given to illustrate the specific implementation of the method provided by the embodiment of the present invention. The account tracking test process provided by the embodiment of the present invention mainly includes data acquisition, business playback, result comparison and difference analysis. The account tracking test method provided by the embodiment of the present invention can be applied to the account tracking test platform. The example diagram of the platform architecture of the account tracking test platform can be shown as follows: Figure 2 As shown, the account tracking test platform includes an account tracking data extraction module, an account tracking business playback module, an account tracking comparison module, a search server (Elastic Search) data storage module, a file server, an account tracking report platform (front-end page), etc. Among them, the account tracking data extraction module screens, converts, processes and exports the business data in the existing production system backup library (the backup database of the current production system data) and the database of the system to be put into production according to the business rules to obtain the business data required for the test, and uploads the exported data to the file server as the input source data for the account tracking business playback module and the account tracking comparison module.
[0139] The account tracking test process provided in the embodiment of the present invention can be implemented based on Jenkins (continuous integration tool), and its operating framework can be as follows: Figure 3As shown. Based on Jenkins' continuous integration service and repetitive work scheduling capabilities, combined with Docker container technology, it provides a stable and independent operating environment, supports rapid environment construction and migration, and stores operation logs (i.e. business data) and execution results. Specifically, testers can submit code on the pipeline code and document management tool (GIT LAB) to trigger Jenkins to package the pipeline code version into the code library. In the specific account tracking test process, the working node of Jenkins is triggered to perform business playback and data comparison manually or through scheduled tasks. The working node will obtain the corresponding version of the pipeline execution task from the code library, perform business playback on the system to be put into production in the test environment, and obtain its business data for data comparison with the actual business data, and store the data comparison results in Elastic Search. At the same time, the business data generated during the business playback process can also be stored in Elastic Search.
[0140] In the method provided in the embodiment of the present invention, before the account tracking test begins, a series of preparatory work such as account tracking business plan formulation, production database backup, account tracking environment construction, and account tracking platform deployment shall be completed according to the test requirements of the system to be put into production. The account tracking business plan will clearly define the business operations that need to be replayed and the detailed data to be compared on each business day, and the account tracking business cycle (for example, 3 weeks) will be clearly defined in the plan.
[0141] The following testing procedures need to be performed on each business day during the business cycle:
[0142] The simulation test environment enters the daytime state, and the execution of the account tracking business playback process is triggered by the Jenkins tool (it can support scheduled triggering or manual triggering). After the daily test execution is completed, the account tracking environment enters the end-of-day state. When the data of the system to be put into production reaches the final state, the automatic simulation comparison process is triggered.
[0143] For example, taking the inter-bank bond trading business as an example, the business playback and data comparison process in the account tracking test can be as follows: Figure 4 shown.
[0144] The service playback process in the method provided in the embodiment of the present invention mainly includes:
[0145] The account tracking test platform obtains the instruction information entered into the existing production system on the same day from the file server as business input data, assembles messages through scripts, and sends them to the application server of the system to be put into production using API to simulate the interface operation of business personnel and realize initial data input. The business operation playback and necessary external guarantee operations of each step in the test business process are completed according to the pipeline sequence, so as to prompt the system to be put into production to process the test business normally and then obtain the final result. Figure 4Taking the business shown as an example, the main business process includes the business playback operations of transaction instruction entry, instruction confirmation and sufficient funds guarantee. First, the playback operation of the transaction instruction entry process is performed, which mainly includes obtaining the business instructions entered by the existing production system on the same day, judging whether the clearing instructions of the production system are successfully generated, importing the corresponding business instructions into the front-end and back-end interface tables when the clearing instructions are successfully generated, and sending the instructions to the clearing system. The playback operation of the instruction confirmation process mainly includes obtaining the clearing instructions confirmed by the existing production system on the same day, judging whether the contract corresponding to the clearing instructions on the production system has failed, and confirming the emergency instructions at the center end when the contract corresponding to the clearing instructions has not failed. The business playback operation of the sufficient funds guarantee process mainly includes obtaining the contracts settled on the same day, judging whether there are contracts in the waiting state, and if there are contracts in the waiting state, remitting sufficient funds through the large-amount simulator.
[0146] The data comparison process in the method provided in the embodiment of the present invention, i.e., the end-of-day simulation comparison process, mainly includes:
[0147] After all business operations have been replayed and the simulation tracking environment has entered the end-of-day state, start the simulation comparison. The tracking test platform uses the tracking data extraction module to export the existing production system and the system to be put into production in the test environment, as well as various account details processed on the current business day, and uploads them to the file server. After the tracking comparison module downloads the data to be compared from the file server, it uses the Pandas data processing function to perform a comparison item by item according to the comparison rules and configured comparison elements, and uses Elastic Search to store the comparison results. The comparison results are visualized through the tracking report platform (including statistical charts, details of data comparison results, data query functions, etc.) to facilitate subsequent manual difference analysis. At the same time, the business playback data of the system to be put into production can also be stored through Elastic Search. Figure 4 Taking the business shown as an example, it can be specifically to export the settlement instructions generated on the day in the system to be put into production, the contracts with the settlement date of the day in the system to be put into production, the custody account details of the day and the capital account details of the day, etc. Correspondingly, obtain the instructions, contracts, custody details, capital details and other data of the day on the existing production system, and then simulate and compare the corresponding data in the two systems, and save the comparison results.
[0148] Next, a brief example is given to illustrate the data comparison rules in the method provided in the embodiment of the present invention.
[0149] In the data comparison process provided by the embodiment of the present invention, the data to be compared of the system to be put into production and the existing production system are respectively stored in the form of data tables.
[0150] The data comparison process mainly includes:
[0151] Index matching: In the method provided in the embodiment of the present invention, corresponding primary key values are defined for different types of detail data (business-level identifiers that can uniquely identify the detail data, and under normal circumstances, the values of the new and old systems are consistent). In the data comparison process, the primary key value is first used to perform index matching on each detail data. Specifically, the data of the two tables of the new and old systems can be merged by using the features of Pandasmerge to filter out the detail data that fails to match the index;
[0152] Status comparison: For the detailed data with successful index matching, first perform status comparison (such as instruction status, contract status, fund detail status, etc.). If the comparison fails, the next step of element comparison case will not be performed;
[0153] Element comparison: In the method provided by the present invention, the data elements and types (such as text type, numerical type, enumeration type, date type, etc.) required for comparison are configured for different types of detailed data. In the data comparison process, for the detailed data with successful status comparison, for different types of detailed data, element comparison is performed according to their corresponding configurations. If any element comparison fails, the element comparison case result of the detailed data is "failure". In the comparison process of detailed data, except for text data, the remaining types of data need to be processed before comparison. For example, the enumeration type needs to maintain the mapping relationship table between the new and old enumeration values, and the numerical type needs to configure the precision and rounding method. After completing the element comparison of all detailed data, information such as "comparison failure column" and "comparison success column" will be prompted in the overall data comparison results. At the same time, the original values and test processed values of the new and old system databases are displayed for easy analysis and processing.
[0154] Based on the method provided by the embodiment of the present invention, a high-coverage account test can be performed on the system to be put into production, and the real business scenario of the financial infrastructure system can be restored to realize the business testing process with large data volume, high frequency, long cycle and many business types. It supports automatic business playback and data comparison, and can simulate various business scenarios through system operation, which is conducive to improving test accuracy, and can greatly improve test efficiency and save costs.
[0155] and Figure 1 Corresponding to the account tracking test method of a financial infrastructure system shown in the figure, an embodiment of the present invention also provides an account tracking test device of a financial infrastructure system, which is used to Figure 1 The specific implementation of the method shown in is shown in the structural diagram Figure 5 As shown, including:
[0156] The first determining unit 201 is used to determine the test business corresponding to the target business day when the system to be put into production is in the daytime state of the target business day when it is necessary to perform an account tracking test on the system to be put into production; the test business is the business actually processed by the current system in production environment;
[0157] A second determining unit 202 is used to determine the business input data and data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared;
[0158] A service playback unit 203, configured to perform service playback on the test service in the system to be put into production based on the service input data;
[0159] The third determining unit 204 is used to determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production performing business processing on the test business during the business playback process;
[0160] The fourth determining unit 205 is used to determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment;
[0161] A data comparison unit 206 is used to perform data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result;
[0162] The result feedback unit 207 is used to use the data comparison result as the test result corresponding to the test service and feed back the test result to the user.
[0163] By using the device provided by the embodiment of the present invention, the system to be put into production can be tested by business playback, which can reduce manual operations in the process of account tracking test, which is conducive to reducing labor costs, improving test efficiency and expanding the scale of testing. Secondly, during the test process, the real business in the production environment is played back, which can simulate various business scenarios in real production scenarios, which is conducive to improving the comprehensiveness and accuracy of the account tracking test. In addition, a real-time account tracking test method can be implemented, which is conducive to improving the timeliness of the test.
[0164] exist Figure 5 Based on the device shown, the device provided by the embodiment of the present invention can be further expanded into multiple units. The function of each unit can be found in the description of each embodiment provided in the previous text for the account tracking test method of the financial infrastructure system, and no further examples will be given here.
[0165] An embodiment of the present invention further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned account tracking test method for the financial infrastructure system.
[0166] The embodiment of the present invention further provides an electronic device, the structural diagram of which is shown in FIG. Figure 6 As shown, it specifically includes a memory 301 and one or more instructions 302, wherein the one or more instructions 302 are stored in the memory 301 and are configured to be executed by one or more processors 303 to perform the following operations:
[0167] In the case where it is necessary to conduct an account tracking test on the system to be put into production, when the system to be put into production is in the daytime state of the target business day, determine the test business corresponding to the target business day; the test business is the business actually processed by the current production system in the production environment;
[0168] Determine the business input data and data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared;
[0169] Based on the business input data, replaying the test business in the system to be put into production;
[0170] Determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production during the business playback process when the test business is processed;
[0171] Determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment;
[0172] Performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result;
[0173] The data comparison result is used as the test result corresponding to the test service, and the test result is fed back to the user.
[0174] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0175] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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 the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0176] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for tracking accounts of a financial infrastructure system, characterized in that: include: In the case where it is necessary to conduct an account tracking test on the system to be put into production, when the system to be put into production is in the daytime state of the target business day, determine the test business corresponding to the target business day; the test business is the business actually processed by the current production system in the production environment; Determine the business input data and data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared; Based on the business input data, replaying the test business in the system to be put into production; Determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production during the business playback process when the test business is processed; Determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment; Performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result; Using the data comparison result as the test result corresponding to the test service, and feeding back the test result to the user; The performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result includes: For each of the data objects to be compared, index matching processing is performed on the playback business data and the actual business data corresponding to the data object to be compared, to obtain an index matching result corresponding to the data object to be compared, wherein a primary key value corresponding to the business data is defined in each business data, and the index matching processing is to compare the primary key value corresponding to the playback business data with the primary key value of the actual business data; For each of the data objects to be compared, if the index matching result corresponding to the data object to be compared indicates that the index matching fails, the index matching result is used as the matching result corresponding to the data object to be compared; if the index matching result corresponding to the data object to be compared indicates that the index matching succeeds, the data object to be compared is used as the first data object; For each of the first data objects, performing data state comparison processing on the playback business data and the actual business data corresponding to the first data object to obtain a state comparison result corresponding to the first data object; For each of the first data objects, if the state comparison result corresponding to the first data object indicates that the state comparison fails, the index matching result and the state comparison result corresponding to the first data object are used as the comparison result corresponding to the first data object; if the state comparison result corresponding to the first data object indicates that the state comparison succeeds, the first data object is used as the second data object; For each of the second data objects, performing detailed data comparison processing on the playback business data and the actual business data corresponding to the second data object to obtain a detailed comparison result corresponding to the second data object, and using the detailed comparison result, index matching result and status comparison result corresponding to the second data object as the comparison result corresponding to the second data object; The data comparison result is composed of the comparison results corresponding to each of the to-be-compared data objects in the data object set.
2. The method according to claim 1, characterized in that: The performing business playback on the test business in the system to be put into production based on the business input data includes: Determine a target business pipeline task corresponding to the test business among a plurality of pre-built business pipeline tasks; The business input data is used as input data of the target business pipeline task, and the target business pipeline task is executed to perform business playback on the test business in the system to be put into production.
3. The method according to claim 1, characterized in that The step of determining the playback service data set includes: Determining, in a system database of the system to be put into production, a first business data set corresponding to the test business; For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the first business data set, and using the business data as the playback business data corresponding to the data object to be compared; The playback service data set is composed of the playback service data corresponding to each of the data objects to be compared.
4. The method according to claim 1, characterized in that The determining of the actual business data set includes: Determining a second business data set corresponding to the test business in a pre-built production system backup database; For each of the data objects to be compared, determining the business data corresponding to the data object to be compared in the second business data set, and using the business data as the actual business data corresponding to the data object to be compared; The actual business data set is composed of actual business data corresponding to each of the data objects to be compared.
5. The method according to claim 1, characterized in that The performing detailed data comparison processing on the playback business data and the actual business data corresponding to the second data object to obtain the detailed comparison result corresponding to the second data object includes: Determine each to-be-compared data element corresponding to the second data object; Determine, in the playback service data corresponding to the second data object, playback detail data corresponding to each of the to-be-compared data elements; Determine, in the actual business data corresponding to the second data object, the actual detailed data corresponding to each of the data elements to be compared; For each of the data elements to be compared, performing data comparison processing on the playback detailed data and the actual detailed data corresponding to the data element to be compared, and obtaining the element comparison result corresponding to the data element to be compared; According to the comparison results of each of the elements, the detailed comparison result corresponding to the second data object is determined.
6. The method according to claim 1, characterized in that The feeding back of the test result to the user includes: Generate statistical charts and detailed data tables corresponding to the test results based on the constructed reporting platform; The statistical charts and the detailed data tables are displayed through the front-end interface of the reporting platform to provide feedback of the test results to the user.
7. An account tracking test device for a financial infrastructure system, characterized in that: include: A first determining unit is used to determine, when it is necessary to perform an account tracking test on the system to be put into production, a test business corresponding to the target business day when the system to be put into production is in a daytime state of the target business day; the test business is the business actually processed by the current production system in the production environment; A second determination unit, configured to determine business input data and a data object set corresponding to the test business; the data object set includes a plurality of data objects to be compared; A service playback unit, configured to perform service playback on the test service in the system to be put into production based on the service input data; A third determining unit is used to determine a playback business data set; the playback business data set includes playback business data corresponding to each of the data objects to be compared, and each of the playback business data is business data generated by the system to be put into production performing business processing on the test business during the business playback process; A fourth determination unit is used to determine an actual business data set; the actual business data set includes actual business data corresponding to each of the data objects to be compared; each of the actual business data is business data generated by the current production system performing business processing on the test business in the production environment; A data comparison unit, used for performing data comparison processing on the playback service data set and the actual service data set to obtain a data comparison result; A result feedback unit, used to use the data comparison result as the test result corresponding to the test service, and feed back the test result to the user; The data comparison unit is specifically used to perform index matching processing on the playback business data and actual business data corresponding to each of the data objects to be compared, and obtain the index matching result corresponding to the data object to be compared, wherein the primary key value corresponding to the business data is defined in each business data, and the index matching processing is to compare the primary key value corresponding to the playback business data with the primary key value of the actual business data; for each of the data objects to be compared, if the index matching result corresponding to the data object to be compared indicates that the index matching fails, then the index matching result is used as the comparison result corresponding to the data object to be compared; if the index matching result corresponding to the data object to be compared indicates that the index matching is successful, then the data object to be compared is used as the first data object; for each of the first data objects, the playback business data and the actual business data corresponding to the first data object are compared for data status. Comparison processing is performed to obtain a state comparison result corresponding to the first data object; for each of the first data objects, if the state comparison result corresponding to the first data object indicates that the state comparison fails, the index matching result and the state comparison result corresponding to the first data object are used as the comparison result corresponding to the first data object; if the state comparison result corresponding to the first data object indicates that the state comparison is successful, the first data object is used as the second data object; for each of the second data objects, detailed data comparison processing is performed on the playback business data and the actual business data corresponding to the second data object to obtain the detailed comparison result corresponding to the second data object, and the detailed comparison result, index matching result and state comparison result corresponding to the second data object are used as the comparison result corresponding to the second data object; the data comparison result is composed of the comparison results corresponding to each of the data objects to be compared in the data object set.
8. A storage medium, characterized in that: The storage medium includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the account tracking test method for the financial infrastructure system according to any one of claims 1 to 6.
9. An electronic device, characterized in that: It comprises a memory and one or more instructions, wherein the one or more instructions are stored in the memory and are configured to be executed by one or more processors to perform the account tracking test method of the financial infrastructure system as described in any one of claims 1 to 6.
