CN-116126685-B9 - Financial business link dyeing method and system for testing risk prevention
Abstract
The invention provides a financial service link dyeing method and a system for testing risk prevention, which relate to the technical field of data processing and comprise the steps of constructing a service scene link through a data center, sending the service scene link to a test management platform, matching scene cases for single case execution, acquiring case link execution information, synchronizing the case link execution information to the data center, extracting a transaction path of the scene cases and constructing a first mapping relation; generating a transaction point set according to a first mapping relation, wherein the transaction point set comprises transaction object attribute information, generating a map entity according to the transaction object attribute information, calling a data foreground according to a preset rendering rule for rendering, generating a scene link map, and sending a preset display interface for testing risk prevention. The technical problems that in the prior art, due to the fact that redundancy degree and iteration frequency of financial business data are continuously increased, the real coverage of the influence range cannot be mastered globally, and further the visualization degree of the execution coverage condition of a transaction link is low are solved.
Inventors
- GAO RUI
- LENG WEI
- CHEN XI
- WANG ZHEN
- ZHANG WEI
Assignees
- 中信银行股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221205
Claims (9)
- 1. A financial transaction link staining method for testing risk prevention, the method being applied to a financial transaction link staining system for testing risk prevention, the system comprising a test management platform, a data center and a data front, the method comprising: Constructing a service scene link through a data center; The service scene link is sent to a test management platform, single case execution is carried out by matching scene cases, and case link execution information is obtained; synchronizing the case link execution information to the data center, extracting a transaction path of the scene case, and constructing a first mapping relation, wherein the first mapping relation represents a mapping relation between the transaction and the case; generating a transaction point set according to the first mapping relation, wherein the transaction point set comprises transaction object attribute information; generating a map entity according to the attribute information of the transaction object, retrieving a data foreground according to a preset rendering rule for rendering, generating a scene link map, and sending a preset display interface for testing risk prevention; synchronizing the case link execution information to the data center, extracting a transaction path of the scene case, and constructing a first mapping relation, wherein the first mapping relation characterizes the mapping relation of the transaction and the case, and comprises the following steps: traversing the case link execution information and matching a transaction link scene; extracting a transaction path from a source data layer in an asset library according to the transaction chain scene; and constructing the first mapping relation according to the transaction path and the case link execution information.
- 2. The method of claim 1, wherein the sending the business scenario link to the test management platform, matching scenario cases for single case execution, obtaining case link execution information, comprises: according to the service scene link, matching a first case with a second case until an N-th case, and adding the first case and the second case into the scene case; traversing the scene cases to perform single case execution, generating a link state, a case execution result, an executor and execution time; Adding the link state, the case execution result, the executor and the execution time into the case execution information; and constructing the case link execution information according to the case execution information.
- 3. The method of claim 1, wherein the generating a set of points of transaction based on the first mapping relationship, wherein the set of points of transaction includes transaction object attribute information, comprises: setting transaction object attributes; Traversing the transaction path according to the first mapping relation, extracting the transaction object attribute from the source data layer, generating a first transaction point, a second transaction point to an Mth transaction point, and adding the first transaction point, the second transaction point and the Mth transaction point into the transaction point set.
- 4. The method of claim 3, wherein generating a map entity according to the transaction object attribute information, retrieving a data foreground according to a preset rendering rule for rendering, generating a scene link map, and transmitting a preset display interface for risk prevention testing, comprises: matching a transaction association system according to the transaction object attribute information; determining the map entity and a map coordinate range according to the transaction association system; determining dynamic coordinates from the first transaction point to the second transaction point to the Mth transaction point according to the map entity and the map coordinate range; according to the attribute information of the transaction objects, traversing the dynamic coordinates, calling the data foreground according to the preset rendering rules to render, generating the scene link map, and sending the scene link map to the preset display interface; And performing test risk prevention according to the rendering display result of the scene link map on the preset display interface.
- 5. The method of claim 4, wherein traversing the dynamic coordinates according to the transaction object attribute information invokes the data foreground according to the preset rendering rule to render, generating the scene link map, and sending the scene link map to the preset display interface, comprises: Acquiring a case execution state and a link endpoint of an mth transaction point according to the transaction object attribute information; And according to the case execution state and the link end point, invoking the data foreground according to the preset rendering rule to render, generating the scene link map, and sending the scene link map to the preset display interface.
- 6. The method of claim 5, wherein the preset rendering rules comprise: Determining a scene link rendering range according to the mth transaction point and the link end point; When the case execution state is passed, the data foreground is called to render the scene link map into a first preset color; when the case execution state is failure or blockage, the data foreground is called to render the scene link map into a second preset color; and when the case execution state is cancel or invalid or incomplete or unexecuted, invoking the data foreground to render the scene link map into a third preset color.
- 7. A financial transaction link staining system for test risk prevention, the system comprising a test management platform, a data center and a data front, further comprising: the business scene construction module is used for constructing a business scene link through the data center station; The case link acquisition module is used for transmitting the service scene link to the test management platform, and matching the scene case to perform single case execution to acquire case link execution information; The mapping relation construction module is used for synchronizing the case link execution information to the data center station, extracting the transaction path of the scene case and constructing a first mapping relation, wherein the first mapping relation represents the mapping relation of the transaction and the case; The transaction point determining module is used for generating a transaction point set according to the first mapping relation, wherein the transaction point set comprises transaction object attribute information; the link rendering module is used for generating a map entity according to the attribute information of the transaction object, retrieving a data foreground according to a preset rendering rule for rendering, generating a scene link map, and sending a preset display interface for testing risk prevention; the mapping relation construction module executing steps comprise: traversing the case link execution information and matching a transaction link scene; extracting a transaction path from a source data layer in an asset library according to the transaction chain scene; and constructing the first mapping relation according to the transaction path and the case link execution information.
- 8. An electronic device comprising a processor and a memory; The memory is used for storing a computer program; the processor being adapted to execute the method of any of claims 1-6 by the processor invoking the computer program stored in the memory.
- 9. A computer program product comprising a computer program and/or instructions which, when executed by a processor, implement the steps of the method of any of claims 1-6.
Description
Financial business link dyeing method and system for testing risk prevention Technical Field The invention relates to the technical field of data processing, in particular to a financial business link dyeing method and system for testing risk prevention. Background The financial business software tests that even if test cases are selected from the case library to test between corresponding systems of the transaction nodes of the business scene chain, the stability of the financial business software is further determined, and the financial business software is convenient to optimize and adjust. Along with the continuous increase of redundancy degree and iteration frequency of financial business data, the requirements related to each production are continuously increased, the transaction and the system related to the test are relatively redundant, so that the real coverage of the influence range cannot be mastered globally, and the staff can screen out the execution state of each transaction link in time during the test, so that the visualization of how to improve the execution coverage condition of the transaction link becomes a problem to be solved urgently. In the prior art, as the redundancy degree and iteration frequency of financial business data are continuously increased, the real coverage of the influence range cannot be mastered globally, and the technical problem of low visualization degree of the execution coverage condition of a transaction link exists. Disclosure of Invention The application provides a financial business link dyeing method and a financial business link dyeing system for testing risk prevention, which solve the technical problems that the real coverage of the influence range cannot be mastered globally due to the continuous increase of redundancy degree and iteration frequency of financial business data in the prior art, and further the visualization degree of the execution coverage condition of a transaction link is low. In view of the above, the present application provides a method and system for dyeing a financial business link for risk prevention. In a first aspect, the application provides a financial business link dyeing method for testing risk prevention, wherein the method is applied to a financial business link dyeing system for testing risk prevention, the system comprises a test management platform, a data center and a data front, and the method comprises the steps of constructing a business scene link through the data center; the method comprises the steps of sending a business scene link to a test management platform, matching a scene case to perform single case execution, obtaining case link execution information, synchronizing the case link execution information to a data center, extracting a transaction path of the scene case, constructing a first mapping relation, wherein the first mapping relation represents a mapping relation between a transaction and the case, generating a transaction point set according to the first mapping relation, wherein the transaction point set comprises transaction object attribute information, generating a map entity according to the transaction object attribute information, retrieving a data front stage according to a preset rendering rule to render, generating a scene link map, and sending a preset display interface for testing risk prevention. The application provides a financial business link dyeing system for testing risk prevention, which comprises a test management platform, a data center, a data front, a business scene construction module, a case link acquisition module, a mapping relation construction module, a transaction point determination module and a link rendering module, wherein the business scene construction module is used for constructing a business scene link through the data center, the case link acquisition module is used for sending the business scene link to the test management platform, matching a scene case to perform single case execution, acquiring case link execution information, the mapping relation construction module is used for synchronizing the case link execution information to the data center, extracting a transaction path of the scene case and constructing a first mapping relation, the first mapping relation represents the mapping relation of a transaction and the case, the transaction point determination module is used for generating a transaction point set according to the first mapping relation, the transaction point set comprises transaction object attribute information, the link rendering module is used for generating a map entity according to the transaction object attribute information, calling the data front according to a preset rendering rule, generating a scene link map, and sending a preset display interface for testing risk prevention. In a third aspect, the application provides an electronic device comprising a processor and a memory, the memory for storing a computer program, the pr