A method and system for testing risk-preventing financial business link coloring
By constructing and rendering a set of transaction points in the financial business chain, the problem of low visualization caused by the redundancy of financial business data is solved, and a global visualization of the transaction chain and risk prevention are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CITIC BANK CO LTD
- Filing Date
- 2022-12-05
- Publication Date
- 2026-05-08
AI Technical Summary
As the complexity and iteration frequency of financial business data continue to increase, the true scope of impact cannot be fully grasped, resulting in a low degree of visualization of the execution coverage of the transaction chain.
By constructing a business scenario chain, a set of transaction points is generated, and map entities are generated based on the attribute information of the transaction objects. The data front-end is then used for rendering to display the execution coverage of the transaction chain.
It enables a global, visual display of the execution coverage of the transaction chain, providing data support for test quality risk prevention.
Smart Images

Figure CN116126685B9_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, specifically to a method and system for coloring financial business links for testing risk prevention. Background Technology
[0002] Financial business software testing involves selecting test cases from a case library and testing them across the corresponding systems at the transaction nodes of the business scenario chain. This determines the stability of the financial business software and facilitates its optimization and adjustment.
[0003] As the complexity and iteration frequency of financial business data continue to increase, the demands involved in each production deployment are also increasing. The transactions and systems involved in testing are quite complex, making it impossible to have a comprehensive grasp of the actual impact. Staff need to promptly filter out the execution status of each transaction link during testing. Improving the visualization of the execution coverage of the transaction link has become an urgent problem to be solved.
[0004] In existing technologies, the increasing complexity and iteration frequency of financial business data make it impossible to fully grasp the true scope of impact, resulting in a low degree of visualization of the execution coverage of the transaction chain. Summary of the Invention
[0005] This application provides a financial business link coloring method and system for testing risk prevention, which solves the technical problem in the prior art that the increasing redundancy and iteration frequency of financial business data makes it impossible to fully grasp the true scope of impact, resulting in low visualization of the execution coverage of the transaction link.
[0006] In view of the above problems, this application provides a method and system for coloring financial business links for testing risk prevention.
[0007] Firstly, this application provides a method for coloring financial business links for testing risk prevention. The method is applied to a financial business link coloring system for testing risk prevention. The system includes a test management platform, a data middle platform, and a data front-end. The method includes: constructing business scenario links through the data middle platform; sending the business scenario links to the test management platform, matching scenario cases for single-case execution, and obtaining case link execution information; synchronizing the case link execution information to the data middle platform, extracting the transaction path of the scenario case, and constructing a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between transactions and cases; generating a set of transaction points based on the first mapping relationship, wherein the set of transaction points includes transaction object attribute information; generating map entities based on the transaction object attribute information, retrieving the data front-end for rendering according to preset rendering rules, generating a scenario link map, and sending it to a preset display interface for testing risk prevention.
[0008] Secondly, this application provides a financial business link coloring system for testing risk prevention. The system includes a test management platform, a data middle platform, and a data front-end, and further includes: a business scenario construction module for constructing business scenario links through the data middle platform; a case link acquisition module for sending the business scenario links to the test management platform, matching scenario cases for single-case execution, and acquiring case link execution information; a mapping relationship construction module for synchronizing the case link execution information to the data middle platform, extracting the transaction path of the scenario case, and constructing a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between transactions and cases; a transaction point determination module for generating a transaction point set based on the first mapping relationship, wherein the transaction point set includes transaction object attribute information; and a link rendering module for generating map entities based on the transaction object attribute information, retrieving data from the front-end for rendering according to preset rendering rules, generating a scenario link map, and sending it to a preset display interface for testing risk prevention.
[0009] Thirdly, this application provides an electronic device, including a processor and a memory; the memory is used to store a computer program; the processor is used to invoke the computer program stored in the memory to perform the steps of the method described in any one of the first aspects.
[0010] Fourthly, this application provides a computer program product, including a computer program and / or instructions, which, when executed by a processor, implement the steps of the method described in any one of the first aspects.
[0011] One or more technical solutions provided in this application have at least the following technical effects or advantages:
[0012] By retrieving the business scenario links involved in the test from the data platform, sending the business scenario links to the test case management platform, matching the test cases corresponding to the business scenario links, and sequentially executing the matched test cases on the test management platform, the execution information of the test case links corresponding to the entire business scenario link is obtained. The execution information of the test case links is synchronized to the data platform, matching the transaction paths during the execution of each scenario test case, and associating transactions and test cases to form a first mapping relationship. Based on the first mapping relationship, the transaction points involved in the business on the transaction path are determined. The transaction object attribute information of each transaction point is extracted to generate map entities. Then, based on the transaction object attribute information and the map entities, the business scenario links are rendered according to preset rules. This technical solution can promptly determine the test execution status of each business, and thus provide effective reference data for test risk prevention. By using the execution information of test cases on the link to establish a mapping relationship between transactions and test cases, and rendering it on the map, different colors are used to represent the "congestion" of the business journey. This allows for a global and visual display of the execution coverage of the transaction link, achieving the technical effect of providing data support for test quality risk prevention.
[0013] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0014] Figure 1 This application provides a schematic diagram of a financial business link coloring method for testing risk prevention;
[0015] Figure 2 This application provides a schematic diagram of the process for determining case link execution information in a financial business link coloring method for testing risk prevention;
[0016] Figure 3 This application provides a schematic diagram of the construction process of the first mapping relationship in a financial business link coloring method for testing risk prevention;
[0017] Figure 4 This application provides a schematic diagram of a financial business link coloring system structure for testing risk prevention;
[0018] Figure 5 This is a schematic diagram of the structure of an exemplary electronic device of this application.
[0019] Explanation of reference numerals in the attached diagram: Test management platform 001, data middle platform 002 and data front-end 003, business scenario construction module 11, case link acquisition module 12, mapping relationship construction module 13, transaction point determination module 14, link rendering module 15, electronic device 300, memory 301, processor 302, communication interface 303, bus architecture 304. Detailed Implementation
[0020] The overall concept of the technical solution provided in this application is as follows:
[0021] This application provides a method and system for coloring financial business links for test risk prevention. The method involves constructing business scenario links during testing by retrieving data from a data platform; sending these links to a test case management platform to match corresponding cases; sequentially executing each matched case on the test management platform to obtain execution information for the entire business scenario link; synchronizing this execution information to the data platform to match the transaction paths of each scenario case execution, establishing a first mapping relationship between transactions and cases; determining the transaction points involved in the business along the transaction path based on this first mapping relationship; extracting the transaction object attribute information for each transaction point to generate map entities; and then rendering the business scenario links according to preset rules based on the transaction object attribute information and the map entities. This allows for timely determination of the test execution status of each business, providing effective reference data for test risk prevention. By utilizing the execution information of cases along the link to establish a mapping relationship between transactions and cases, and rendering the map with different colors to represent "congestion" in the business journey, the method provides a globally visualized view of the transaction link execution coverage, achieving the technical effect of providing data support for test quality risk prevention.
[0022] After introducing the basic principles of this application, various non-limiting embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0023] Example 1
[0024] like Figure 1 As shown, this application provides a method for coloring financial business links for testing risk prevention. The method is applied to a system for coloring financial business links for testing risk prevention. The system includes a test management platform, a data middle platform, and a data front platform. The method includes the following steps:
[0025] S100: Building business scenario links through a data platform;
[0026] Specifically, the data platform is a functional module used to collect the execution status of transactions along the business scenario chain in real time and match it with basic business data. Basic business data includes, but is not limited to, business scenario data, the execution chain of the business scenario, and transaction chains representing the transaction process between different coefficients in the business scenario. By identifying the business scenario chain, it is easier to quickly match corresponding test cases for subsequent business scenario testing.
[0027] S200: Send the business scenario link to the test management platform, match the scenario case for single case execution, and obtain the case link execution information;
[0028] Furthermore, such as Figure 2 As shown, step S200, which involves sending the business scenario link to the test management platform, matching scenario cases for single-case execution, and obtaining case link execution information, includes:
[0029] S210: Based on the business scenario link, match the first case, the second case, up to the Nth case, and add them to the scenario cases;
[0030] S220: Traverse the scenario cases and perform single-case execution to generate the link status, case execution result, executor and execution time;
[0031] S230: Add the link status, the case execution result, the executor, and the execution time to the case execution information;
[0032] S240: Construct the case link execution information based on the case execution information.
[0033] Specifically, the test management platform is a functional platform for managing test cases, executing test cases, and determining the test results of test cases. Preferably, the test cases stored in the test management platform correspond to the corresponding business scenarios, that is, determining the business scenario allows for the matching of the corresponding test cases; the first case, the second case, up to the Nth case refer to the set of cases that correspond one-to-one with the business scenarios on the business scenario chain; the first case, the second case, up to the Nth case represent different nodes on the business scenario chain, and the link node where the Nth case is located is located after the (N-1)th case.
[0034] The test management platform performs single-case tests sequentially based on the first case, the second case, and so on up to the Nth case. For example, for any case test, at least the link status, case execution result, executor, and execution time are obtained. The link status is dynamically calculated based on the execution results of all cases in the link, such as indicating whether the case has been executed. The case execution result indicates whether the case has been successfully executed, and the executor and execution time are the operator and time of the case execution. The link status, case execution result, executor, and execution time are added to the case execution information of the corresponding case, which can be rendered in the subsequent rendering process. The first case, the second case, and so on up to the Nth case are traversed. When the link status indicates that all node cases have been executed, multiple case execution information corresponding one-to-one with the first case, the second case, and so on up to the Nth case are obtained. These are stored sequentially according to the order of the first case, the second case, and so on up to the Nth case, and recorded as case link execution information. They are set to a pending response state, waiting for subsequent calls.
[0035] The execution results of each case can be determined based on the case link execution information, which represents whether the corresponding case has passed the test, and provides a reference dataset for the subsequent link coloring.
[0036] S300: Synchronize the case link execution information to the data platform, extract the transaction path of the scenario case, and construct a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between transactions and cases;
[0037] Furthermore, such as Figure 3 As shown, the method synchronizes the case link execution information to the data platform, extracts the transaction path of the scenario case, and constructs a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between transactions and cases. Step S300 includes the following steps:
[0038] S310: Traverse the execution information of the case chain and match the transaction chain scenario;
[0039] S320: Extract the transaction path from the source data layer in the asset database according to the transaction chain scenario;
[0040] S330: Construct the first mapping relationship based on the transaction path and the case link execution information.
[0041] Specifically, the first mapping relationship refers to the mapping relationship between transactions and cases. The detailed determination process is illustrated in the following preferred embodiment:
[0042] Once the case execution information is determined, it is synchronized from the case management platform to the data platform. Since there is a one-to-one correspondence between cases and different nodes in the business scenario chain, and a one-to-one correspondence between case execution information and cases, the execution information of each case chain can be matched with the different nodes in the business scenario chain to achieve case classification. Further, based on the business scenario chain, the transaction chain scenario stored in the data platform is extracted. Then, based on the case execution information, the specific transaction point information corresponding to the case is extracted from the source data layer in the asset database. A transaction point refers to data including the case execution, executor, execution location, and execution time. Based on the case execution information, the matched specific transaction point information is used to populate each node of the transaction chain scenario to obtain the specific transaction path. Further still, the corresponding transaction paths and case execution information are associated and stored, thus obtaining the first mapping relationship. Here, the source data layer in the asset database refers to the database used to store the specific transaction content data corresponding to the case, including but not limited to: transaction location, transaction name, transaction entity map, and transaction-related systems.
[0043] The first mapping relationship allows for the rapid retrieval of case execution information to serve the actual transaction path, providing a data transmission mapping path for subsequent scene map rendering.
[0044] S400: Generate a set of transaction points according to the first mapping relationship, wherein the set of transaction points includes transaction object attribute information;
[0045] Furthermore, the step of generating a transaction point set based on the first mapping relationship, wherein the transaction point set includes transaction object attribute information, includes the following steps in step S400:
[0046] S410: Set the attributes of the transaction object;
[0047] S420: Based on the first mapping relationship, traverse the transaction path, extract the transaction object attributes from the source data layer, generate the first transaction point, the second transaction point, up to the Mth transaction point, and add them to the transaction point set.
[0048] Specifically, the transaction point set refers to the first transaction point, second transaction point, and so on up to the Mth transaction point that correspond to the first case, second case, and so on up to the Nth case in the scene chain. The transaction object attribute refers to the attribute information that corresponds one-to-one with the transaction point set. For example, after a case is executed, it is preferable to add the specific transaction name, chain start point, chain end point, associated cases, and case execution status to the transaction object attributes to prepare for subsequent rendering work.
[0049] The transaction name refers to attribute information including the transactor and transaction type data; the link start point refers to the execution start node of the case to which the current transaction belongs in the scenario link; the link end point refers to the execution end node of the case to which the current transaction belongs in the scenario link; the associated case refers to the case information determined through the first mapping relationship; the case execution status refers to the status information that indicates whether the case execution is successful or not, which can preferably be determined based on the aforementioned case execution results.
[0050] The transaction object attributes serve as reference data for subsequent rendering of the scenario link map. They can be quickly matched and determined based on the execution information of the case test through the first mapping relationship, facilitating timely rendering of the scenario link map, enabling link coloring during business testing, and visually displaying the test results.
[0051] S500: Based on the attribute information of the transaction object, generate map entities, retrieve data from the front end for rendering according to preset rendering rules, generate a scene link map, and send it to a preset display interface for testing risk prevention.
[0052] Furthermore, step S500 includes the following steps: generating map entities based on the attribute information of the transaction object, retrieving data from the front end for rendering according to preset rendering rules, generating a scene link map, and sending it to a preset display interface for testing risk prevention.
[0053] S510: Match the transaction association system based on the attribute information of the transaction object;
[0054] S520: Determine the map entity and map coordinate range based on the transaction association system;
[0055] S530: Determine the dynamic coordinates of the first transaction point, the second transaction point, and up to the Mth transaction point based on the map entity and the map coordinate range;
[0056] S540: Based on the attribute information of the transaction object, traverse the dynamic coordinates and retrieve the data front end for rendering according to the preset rendering rules to generate the scene link map and send it to the preset display interface;
[0057] Furthermore, step S540 includes the following steps: based on the attribute information of the transaction object, traversing the dynamic coordinates and retrieving the data front-end according to the preset rendering rules for rendering, generating the scene link map, and sending it to the preset display interface.
[0058] S541: Based on the attribute information of the transaction object, obtain the case execution status and link endpoint of the m-th transaction point;
[0059] S542: Based on the execution status of the case and the endpoint of the link, the data front end is retrieved and rendered according to the preset rendering rules to generate the scene link map and send it to the preset display interface.
[0060] Furthermore, the preset rendering rule step S542 includes the following steps:
[0061] S542-1: Determine the scene link rendering range based on the m-th transaction point and the link endpoint;
[0062] S542-2: When the execution status of the case is passed, the data front end is retrieved to render the scene link map with the first preset color;
[0063] S542-3: When the execution status of the case is failure or blockage, the data front end is retrieved to render the scene link map with the second preset color;
[0064] S542-4: When the execution status of the case is canceled, invalid, incomplete, or not executed, the data front end is retrieved to render the scene link map with a third preset color.
[0065] S550: Test risk prevention based on the rendering display results of the scene link map on the preset display interface.
[0066] Specifically, the transaction association system refers to the set of systems that need to interact to execute a transaction. The transaction association system is extracted from the source data layer in the asset library, from the first transaction point to the second transaction point up to the Mth transaction point. Each system is treated as a different area of the entity map to construct the map entity. Then, the path information that needs to be involved is determined based on the link start point and link end point in the attribute information of the transaction object. This determines the range of map coordinates that represent the transaction coordinates, which is convenient for subsequent steps to represent the coordinate positions of different transaction points.
[0067] Furthermore, the method for selecting the optimal entity map is as follows: each system is used as a different area of the entity map and fixed in a different orientation to generate the entity map.
[0068] The optimal method for determining the map coordinate range is as follows: Based on the path information involved in system interaction, and visually marking the path on the physical map, a link node on the central path is preferably selected as the origin coordinate to construct the map coordinate range, which facilitates the subsequent location of the transaction point.
[0069] The dynamic coordinates of the first transaction point, the second transaction point, and so on up to the Mth transaction point refer to the real-time location of the system flowing through the transactions at the first transaction point, the second transaction point, and so on up to the Mth transaction point on the physical map. Furthermore, after determining the specific location of the transaction point on the transaction scenario link, the attribute information of the transaction object in the pending response state is retrieved, the case execution status and the link endpoint on the corresponding link node are extracted, and the path on the physical map is rendered to obtain a visual rendering result, which is then sent to the preset display interface. Staff can determine in real time whether the test of the corresponding link node has passed based on the rendering result, so as to facilitate timely risk prevention.
[0070] A preferred example is one where the m-th transaction point is unrestricted: the m-th transaction point can be any one of the first, second, up to the M-th transaction point. Based on the dynamic coordinates of the m-th transaction point, its coordinates on the physical map are determined. Then, based on the link endpoint, its position as a link node on the scene link map is determined. Finally, based on the case execution status, the specific execution result of the case can be determined, including execution states such as successful, failed, blocked, canceled, invalid, incomplete, and not executed. This achieves a one-to-one association between the interactive system, link nodes, transactions, and cases.
[0071] When the case execution status is passed, the preferred identifier for the coordinates of the m-th transaction point on the entity map and the corresponding position on the scenario link map is the first preset color, which is green.
[0072] When the case execution status is failed or blocked, the preferred identifier for the coordinates of the m-th transaction point on the entity map and the corresponding position on the scenario link map is a second preset color, with red being the preferred color.
[0073] When the execution status of a case is canceled, invalid, incomplete, or not executed, the preferred identifier for the coordinates of the m-th transaction point on the entity map and the corresponding location on the scenario link map is a third preset color, with yellow being the preferred color.
[0074] This enables the rendering of scenario link maps, which, through visualization, can represent the real-time status of link business case tests, thereby improving the efficiency of staff in preventing test risks.
[0075] In summary, the financial business link coloring method and system for testing risk prevention provided in this application has at least the following technical effects:
[0076] 1. This application provides a method and system for coloring financial business links for testing risk prevention. By utilizing the execution information of cases along the link, a mapping relationship between transactions and cases is established. This is then rendered on a map, with different colors representing the "congestion" in the business journey. This allows for a globally visualized display of the execution coverage of the transaction link, achieving the technical effect of providing data support for testing quality risk prevention.
[0077] Example 2
[0078] Based on the same inventive concept as the financial business link coloring method for testing risk prevention in the foregoing embodiments, such as Figure 4 As shown, this application provides a financial business link coloring system for testing risk prevention, wherein the system includes a test management platform 001, a data middle platform 002, and a data front-end 003, and further includes:
[0079] Business scenario construction module 11 is used to build business scenario links through the data platform;
[0080] The case link acquisition module 12 is used to send the business scenario link to the test management platform, match the scenario case for single case execution, and obtain case link execution information;
[0081] The mapping relationship construction module 13 is used to synchronize the case link execution information to the data platform, extract the transaction path of the scenario case, and construct a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between the transaction and the case;
[0082] The transaction point determination module 14 is used to generate a transaction point set according to the first mapping relationship, wherein the transaction point set includes transaction object attribute information;
[0083] The link rendering module 15 is used to generate map entities based on the attribute information of the transaction object, retrieve data from the front end for rendering according to preset rendering rules, generate a scene link map, and send it to a preset display interface for testing risk prevention.
[0084] Furthermore, the case link acquisition module 12 performs the following steps:
[0085] Based on the business scenario chain, match the first case, the second case, up to the Nth case, and add them to the scenario cases;
[0086] The scenario cases are traversed and executed individually to generate the link status, case execution result, executor and execution time.
[0087] Add the link status, the case execution result, the executor, and the execution time to the case execution information;
[0088] Based on the case execution information, construct the case link execution information.
[0089] Furthermore, the mapping relationship construction module 13 performs the following steps:
[0090] Traverse the execution information of the case chain to match the transaction chain scenario;
[0091] Based on the described transaction chain scenario, the transaction path is extracted from the source data layer in the asset repository;
[0092] The first mapping relationship is constructed based on the transaction path and the case link execution information.
[0093] Furthermore, the transaction point determination module 14 performs the following steps:
[0094] Set the attributes of the transaction object;
[0095] Based on the first mapping relationship, the transaction path is traversed, the attributes of the transaction object are extracted from the source data layer, and the first transaction point, the second transaction point, and so on up to the Mth transaction point are generated and added to the transaction point set.
[0096] Furthermore, the link rendering module 15 performs the following steps:
[0097] Based on the attribute information of the transaction object, match the transaction association system;
[0098] Based on the transaction association system, the map entities and map coordinate ranges are determined;
[0099] Based on the map entities and the map coordinate range, determine the dynamic coordinates of the first transaction point, the second transaction point, and up to the Mth transaction point;
[0100] Based on the attribute information of the transaction object, the dynamic coordinates are traversed and the data front end is retrieved and rendered according to the preset rendering rules to generate the scene link map and send it to the preset display interface.
[0101] Risk prevention is tested based on the rendering results of the scenario link map on the preset display interface.
[0102] Furthermore, the link rendering module 15 further includes the following steps:
[0103] Based on the attribute information of the transaction object, obtain the case execution status and link endpoint of the m-th transaction point;
[0104] Based on the execution status of the case and the endpoint of the link, the data front end is retrieved and rendered according to the preset rendering rules to generate the scene link map, which is then sent to the preset display interface.
[0105] Furthermore, the link rendering module 15 further includes the following steps:
[0106] The scene link rendering range is determined based on the m-th transaction point and the link endpoint;
[0107] When the execution status of the case is passed, the data front-end is retrieved and the scene link map is rendered with the first preset color.
[0108] When the execution status of the case is failed or blocked, the data front end is retrieved and the scene link map is rendered with a second preset color.
[0109] When the execution status of the case is canceled, invalid, incomplete, or not executed, the data front-end is retrieved to render the scene link map with a third preset color.
[0110] Exemplary electronic devices
[0111] The following is for reference. Figure 5 To describe the electronic device of this application.
[0112] Based on the same inventive concept as the financial business link coloring method for testing risk prevention in the foregoing embodiments, this application provides an electronic device, including a processor and a memory; the memory is used to store a computer program; the processor is used to call the computer program stored in the memory to execute the steps of the method in any one of the embodiments.
[0113] The electronic device 300 includes a processor 302, a communication interface 303, and a memory 301. Optionally, the electronic device 300 may also include a bus architecture 304. The communication interface 303, processor 302, and memory 301 can be interconnected via the bus architecture 304; the bus architecture 304 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus architecture 304 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0114] Processor 302 may be a CPU, microprocessor, ASIC, or one or more integrated circuits used to control the execution of programs according to the present application.
[0115] Communication interface 303 is used in any transceiver system for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), wired access network, etc.
[0116] Memory 301 can be ROM or other types of static storage devices capable of storing static information and instructions, RAM or other types of dynamic storage devices capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact discread-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. Memory can exist independently and be connected to the processor via bus architecture 304. Memory can also be integrated with the processor.
[0117] The memory 301 stores computer execution instructions for implementing the scheme of this application, and the processor 302 controls the execution. The processor 302 executes the computer execution instructions stored in the memory 301, thereby realizing the financial business link coloring method for testing risk prevention provided in the above embodiments of this application.
[0118] This application also provides a computer program product, including a computer program and / or instructions that, when executed by a processor, implement the steps of the method described in any of the embodiments.
[0119] Optionally, the computer execution instructions in this application may also be referred to as application code, and this application does not specifically limit them.
[0120] Those skilled in the art will understand that the various numerical designations, such as "first," "second," etc., used in this application are merely for descriptive convenience and are not intended to limit the scope of this application, nor do they indicate a chronological order. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one" refers to one or more. "At least two" refers to two or more. "At least one," "any one," or similar expressions refer to any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can represent: a, b, c, a-b, ac, bc, or abc, where a, b, and c can be single or multiple.
[0121] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system.
[0122] The instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0123] The various illustrative logic units and circuits described in this application can be implemented or operate the described functions using a general-purpose processor, digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic system, discrete gate or transistor logic, discrete hardware components, or any combination thereof. The general-purpose processor can be a microprocessor; alternatively, it can be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented using a combination of computing systems, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0124] The steps of the methods or algorithms described in this application can be directly embedded in hardware, a software unit executed by a processor, or a combination of both. The software unit can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other storage medium of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium can be disposed in an ASIC, which can be disposed in a terminal. Optionally, the processor and storage medium can also be disposed in different components within the terminal. These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0125] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined herein, and are to be considered as covering any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from its scope. Thus, if such modifications and modifications fall within the scope of this application and its equivalents, this application intends to include such modifications and modifications.
Claims
1. A coloring method for testing risk prevention in financial business links, characterized in that, The method is applied to a coloring system for testing risk prevention in a financial business chain. The system includes a test management platform, a data middle platform, and a data front platform. The method includes: Build business scenario links through a data platform; The business scenario link is sent to the test management platform, and a single case is executed by matching the scenario case to obtain the case link execution information. The case execution information is synchronized to the data platform, the transaction path of the scenario case is extracted, and a first mapping relationship is constructed, wherein the first mapping relationship represents the mapping relationship between transactions and cases; Based on the first mapping relationship, a set of transaction points is generated, wherein the set of transaction points includes transaction object attribute information; Based on the attribute information of the transaction object, a map entity is generated, and the data front end is retrieved and rendered according to the preset rendering rules to generate a scene link map. The map is then sent to a preset display interface for testing risk prevention. The step of synchronizing the case link execution information to the data platform, extracting the transaction path of the scenario case, and constructing a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between transactions and cases, including: Traverse the execution information of the case chain to match the transaction chain scenario; Based on the described transaction chain scenario, the transaction path is extracted from the source data layer in the asset repository; The first mapping relationship is constructed based on the transaction path and the case link execution information.
2. The method as described in claim 1, characterized in that, The step of sending the business scenario link to the test management platform, matching scenario cases for single-case execution, and obtaining case link execution information includes: Based on the business scenario chain, match the first case, the second case, up to the Nth case, and add them to the scenario cases; The scenario cases are traversed and executed individually to generate the link status, case execution result, executor and execution time. Add the link status, the case execution result, the executor, and the execution time to the case execution information; Based on the case execution information, construct the case link execution information.
3. The method as described in claim 1, characterized in that, The step of generating a set of transaction points based on the first mapping relationship, wherein the set of transaction points includes transaction object attribute information, including: Set the attributes of the transaction object; Based on the first mapping relationship, the transaction path is traversed, the attributes of the transaction object are extracted from the source data layer, and the first transaction point, the second transaction point, and so on up to the Mth transaction point are generated and added to the transaction point set.
4. The method as described in claim 3, characterized in that, The process of generating map entities based on the attribute information of the transaction object, retrieving data from the front end for rendering according to preset rendering rules, generating a scene link map, and sending it to a preset display interface for testing risk prevention includes: Based on the attribute information of the transaction object, match the transaction association system; Based on the transaction association system, the map entities and map coordinate ranges are determined; Based on the map entities and the map coordinate range, determine the dynamic coordinates of the first transaction point, the second transaction point, and up to the Mth transaction point; Based on the attribute information of the transaction object, the dynamic coordinates are traversed and the data front end is retrieved and rendered according to the preset rendering rules to generate the scene link map and send it to the preset display interface. Risk prevention is tested based on the rendering results of the scenario link map on the preset display interface.
5. The method as described in claim 4, characterized in that, The step of traversing the dynamic coordinates according to the attribute information of the transaction object, retrieving the data front-end for rendering according to the preset rendering rules, generating the scene link map, and sending it to the preset display interface includes: Based on the attribute information of the transaction object, obtain the case execution status and link endpoint of the m-th transaction point; Based on the execution status of the case and the endpoint of the link, the data front end is retrieved and rendered according to the preset rendering rules to generate the scene link map, which is then sent to the preset display interface.
6. The method as described in claim 5, characterized in that, The preset rendering rules include: The scene link rendering range is determined based on the m-th transaction point and the link endpoint; When the execution status of the case is passed, the data front-end is retrieved and the scene link map is rendered with the first preset color. When the execution status of the case is failed or blocked, the data front end is retrieved and the scene link map is rendered with a second preset color. When the execution status of the case is canceled, invalid, incomplete, or not executed, the data front-end is retrieved to render the scene link map with a third preset color.
7. A coloring system for testing risk prevention in a financial business chain, characterized in that, The system includes a test management platform, a data middle platform, and a data front platform, and also includes: The business scenario building module is used to build business scenario links through the data platform; The case link acquisition module is used to send the business scenario link to the test management platform, match the scenario case for single case execution, and obtain the case link execution information; The mapping relationship construction module is used to synchronize the case link execution information to the data platform, extract the transaction path of the scenario case, and construct a first mapping relationship, wherein the first mapping relationship represents the mapping relationship between the transaction and the case; The transaction point determination module is used to generate a transaction point set based on the first mapping relationship, wherein the transaction point set includes transaction object attribute information; The link rendering module is used to generate map entities based on the attribute information of the transaction object, retrieve data from the front end for rendering according to preset rendering rules, generate a scene link map, and send it to a preset display interface for testing risk prevention. The steps performed by the mapping relationship construction module include: Traverse the execution information of the case chain to match the transaction chain scenario; Based on the described transaction chain scenario, the transaction path is extracted from the source data layer in the asset repository; The first mapping relationship is constructed based on the transaction path and the case link execution information.
8. An electronic device, characterized in that, Including processor and memory; The memory is used to store computer programs; The processor is configured to invoke the computer program stored in the memory to execute the method according to any one of claims 1-6.
9. A computer program product, comprising a computer program and / or instructions, characterized in that, When the computer program and / or instructions are executed by a processor, they implement the steps of the method described in any one of claims 1-6.
Citation Information
Patent Citations
Visual automatic test method and system
CN104834595A
Test data acquisition method and device, storage medium and electronic device
CN111640019A
Regression test method, apparatus and device, and readable storage medium
CN114218091A