Programming consistency verification method and system based on dynamic data
By establishing a data model and automated sampling interface data, comparing the actual operation data with template data, the problems of possible business exceptions and inconsistent design and operation logic that may occur during the rapid iteration and update of IT systems are solved, and efficient programming consistency verification is achieved, reducing costs and workload.
Patent Information
- Application Number
- CN202111295489.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-11-03
AI Technical Summary
During the rapid iteration and update of existing IT systems, business exceptions or inconsistent design and operation logic are prone to problems. Traditional large-scale data testing cannot fully cover all tests, and the cost and workload are relatively high.
By establishing a data model corresponding to the business program interface, automatically sampling the interface data, comparing the actual operation data and template data, the consistency verification between the development state and the operation state is achieved.
Improves the efficiency of programming verification, can cover all tests, and reduces workload and labor costs.
Smart Images

Figure CN114253833B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software development, and in particular to a program design consistency verification method based on dynamic data and a program design consistency verification system based on dynamic data. Background Art
[0002] Currently, the existing IT system architecture is relatively complex, and the changes in requirements and the response requirements must be fast, which also results in the iterative updates of IT system business implementations being relatively slow. Occasionally, some inexplicable reasons may cause business anomalies, or the actual operating logic may be inconsistent with the design.
[0003] The traditional way is to use large-scale data testing to verify whether the updated system is normal. Such testing cannot fully cover all tests, and the cost of investment is relatively high and the workload is large. Summary of the invention
[0004] In response to the above problems, the present invention provides a program design consistency verification method and system based on dynamic data. By establishing a data model corresponding to the business program interface, the interface data is automatically sampled, and the consistency verification between the development state and the operation state is achieved based on the comparison between the sampled actual operation data and the template data. The automated method improves the efficiency of program design verification, can cover all tests, and reduces workload and labor costs.
[0005] To achieve the above object, the present invention provides a program design consistency verification method based on dynamic data, comprising:
[0006] According to the external interface template of the business program, establish the corresponding data model, and configure the corresponding template data for different external interface templates;
[0007] Using data collection tools to collect interface-related parameters output during the operation of the business program in real time;
[0008] The actual operation data collected is compared with the configured template data, and the consistency of the program design is determined based on the comparison results.
[0009] In the above technical solution, preferably, the program design consistency verification method based on dynamic data also includes:
[0010] Based on the comparison results and the program design consistency results, a visual display is used.
[0011] In the above technical solution, preferably, the specific process of comparing the collected actual operation data with the configured template data includes:
[0012] According to the information of the external interface template, a preset proportion of data is extracted from the collected actual operation data and compared with the template data.
[0013] In the above technical solution, preferably, the data collected by the data collection tool is compared with the template data once every preset time.
[0014] The present invention further proposes a program design consistency verification system based on dynamic data, which applies the program design consistency verification method based on dynamic data disclosed in any one of the above technical solutions, including:
[0015] The model building module is used to establish a corresponding data model according to the external interface template of the business program, and configure the corresponding template data for different external interface templates;
[0016] A parameter collection module is used to collect interface-related parameters output during the operation of the business program in real time using a data collection tool;
[0017] The comparison and analysis module is used to compare the collected actual operation data with the configured template data, and determine the consistency of the program design based on the comparison results.
[0018] In the above technical solution, preferably, the program design consistency verification system based on dynamic data further includes:
[0019] The result display module is used to display the comparison results and programming consistency results in a visual manner.
[0020] In the above technical solution, preferably, the comparison and analysis module is specifically used for:
[0021] According to the information of the external interface template, a preset proportion of data is extracted from the collected actual operation data and compared with the template data.
[0022] In the above technical solution, preferably, the comparison and analysis module compares the data collected by the data collection tool with the template data once at a preset time interval.
[0023] Compared with the prior art, the beneficial effects of the present invention are as follows: by establishing a data model corresponding to the business program interface, automatically sampling interface data, and comparing the sampled actual operation data with the template data, the consistency verification between the development state and the operation state is achieved. The automated method improves the efficiency of program design verification, can cover all tests, and reduces workload and labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1A schematic diagram of a flow chart of a method for verifying program design consistency based on dynamic data disclosed in an embodiment of the present invention;
[0025] Figure 2 A schematic diagram of modules of a program design consistency verification system based on dynamic data disclosed in an embodiment of the present invention.
[0026] In the figure, the corresponding relationship between each component and the reference numeral is as follows:
[0027] 11. Model building module, 12. Parameter acquisition module, 13. Comparison and analysis module, 14. Result display module. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are 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.
[0029] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0030] like Figure 1 As shown, a program design consistency verification method based on dynamic data provided by the present invention includes:
[0031] According to the external interface template of the business program, establish the corresponding data model, and configure the corresponding template data for different external interface templates;
[0032] Use data collection tools to collect interface-related parameters output during the operation of business programs in real time;
[0033] The actual operation data collected is compared with the configured template data, and the consistency of the program design is determined based on the comparison results.
[0034] In this embodiment, by establishing a data model corresponding to the business program interface, the interface data is automatically sampled, and the consistency between the development state and the operation state is verified based on the comparison between the sampled actual operation data and the template data. The automated method improves the efficiency of program design verification, can cover all tests, and reduces workload and labor costs.
[0035] Specifically, a corresponding data model is established according to the external interface template designed by the business program, and then the designed template data is configured for different interfaces. In actual operation, the business program outputs the interface-related parameters. A unified collection tool is used to collect data of the output parameters in real time. From the collected data, the actual operation data is compared with the initially set template data according to the interface information. Based on the difference results after the comparison, it is determined whether the results of the current actual operation program after the business system is updated are consistent with the results of the initial development and design program, thereby determining whether the program itself has changed.
[0036] In the above embodiment, preferably, the program design consistency verification method based on dynamic data also includes:
[0037] According to the comparison results and program design consistency results, a visual method is used for display, including data tables, line graphs, pie charts, column graphs or bar graphs, and a line graph is preferably used for display.
[0038] In the above embodiment, preferably, the specific process of comparing the collected actual operation data with the configured template data includes:
[0039] According to the information of the external interface template, a preset proportion of data is extracted from the actual operation data collected, such as sampling 20% of the data, and compared with the template data. Through sampling detection, while ensuring the comparison effect, the comparison efficiency is improved and the system computing power requirements are reduced.
[0040] In the above embodiment, preferably, the data collected by the data collection tool is compared with the template data once every preset time, such as once a day. The comparison frequency can be specifically set according to the update frequency of the business system, which is not required here.
[0041] like Figure 2 As shown, the present invention further proposes a program design consistency verification system based on dynamic data, which applies the program design consistency verification method based on dynamic data disclosed in any one of the above embodiments, including:
[0042] The model building module 11 is used to establish a corresponding data model according to the external interface template of the business program, and configure corresponding template data for different external interface templates;
[0043] The parameter collection module 12 is used to collect the interface-related parameters output during the operation of the business program in real time using a data collection tool;
[0044] The comparison and analysis module 13 is used to compare the collected actual operation data with the configured template data, and determine the consistency of the program design according to the comparison result.
[0045] In this embodiment, by establishing a data model corresponding to the business program interface, the interface data is automatically sampled, and the consistency between the development state and the operation state is verified based on the comparison between the sampled actual operation data and the template data. The automated method improves the efficiency of program design verification, can cover all tests, and reduces workload and labor costs.
[0046] In the above embodiment, preferably, the program design consistency verification system based on dynamic data further includes:
[0047] The result display module 14 is used to display the comparison results and the program design consistency results in a visual manner, and the visual manner includes a data table, a line graph, a pie chart, a column chart or a bar chart, and preferably a line graph is used for display.
[0048] In the above embodiment, preferably, the comparison and analysis module 13 is specifically used for:
[0049] According to the information of the external interface template, a preset proportion of data is extracted from the actual operation data collected and compared with the template data. For example, 20% of the data is sampled and compared with the template data. Through sampling detection, the comparison efficiency is improved and the system computing power requirements are reduced while ensuring the comparison effect.
[0050] In the above embodiment, preferably, the comparison and analysis module 13 compares the data collected by the data collection tool with the template data once every preset time, for example, once a day.
[0051] According to the program design consistency verification method and system based on dynamic data disclosed in the above embodiment, by establishing a data model corresponding to the business program interface, automatically sampling interface data, it is determined whether the result of the current actual running program after the business system is updated is consistent with the result of the initial development and design program, thereby determining whether the program itself has changed. In the present invention, the consistency of the program itself is indirectly verified by comparing the program running results, and the method of automatic data sampling and comparison greatly improves the verification efficiency and reduces labor costs.
[0052] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A program design consistency verification method based on dynamic data, characterized in that: include: According to the external interface template of the business program, establish the corresponding data model, and configure the corresponding template data for different external interface templates; Using data collection tools to collect interface-related parameters output during the operation of the business program in real time; Compare the collected actual operation data with the configured template data, and determine the consistency of the program design based on the comparison results. The specific process includes: According to the information of the external interface template, a preset proportion of data is extracted from the actual operation data collected and compared with the template data, wherein the data collected by the data collection tool is compared with the template data once every preset time.
2. The method for verifying program design consistency based on dynamic data according to claim 1, characterized in that: Also includes: Based on the comparison results and the program design consistency results, a visual display is used.
3. A program design consistency verification system based on dynamic data, using the program design consistency verification method based on dynamic data as claimed in claim 1 or 2, characterized in that: include: The model building module is used to establish a corresponding data model according to the external interface template of the business program, and configure the corresponding template data for different external interface templates; A parameter collection module is used to collect interface-related parameters output during the operation of the business program in real time using a data collection tool; The comparison and analysis module is used to compare the collected actual operation data with the configured template data and determine the consistency of the program design based on the comparison results. It is specifically used for: According to the information of the external interface template, a preset proportion of data is extracted from the actual operation data collected and compared with the template data. According to the data collected by the data collection tool, the data is compared with the template data once every preset time.
4. The program design consistency verification system based on dynamic data according to claim 3 is characterized in that: Also includes: The result display module is used to display the comparison results and programming consistency results in a visual manner.
Citation Information
Patent Citations
Verification method and system for software interface test parameter
CN108959065A