Testing Method, Device, Equipment and Storage Medium of Fund Distribution System
By receiving test requests, injecting market data, simulation operations and liquidation simulation methods, the problem of long testing cycle of the fund distribution system is solved, efficient testing and abnormal verification are achieved, and coupling with fund companies is reduced.
Patent Information
- Application Number
- CN202111429953.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2041-11-29
AI Technical Summary
The test cycle of the fund distribution system is passively extended and the testing efficiency is inefficient, mainly due to the large differences in the transaction data returned by the fund company, and existing automation methods cannot be effectively solved.
By receiving test requests from the fund distribution system, obtaining operation permissions, injecting fund product market data, generating fund market files, performing fund distribution operation simulations, obtaining synchronous transaction data, generating fund confirmation files, and performing fund liquidation simulations to verify system abnormalities.
It improves the testing efficiency of the fund distribution system, reduces the degree of coupling with fund companies, expands the scope of testing, and ensures the intelligence and accuracy of testing.
Smart Images

Figure CN114138643B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data consistency testing, and particularly to a testing method, device, equipment and storage medium for a fund agency sales system. Background Art
[0002] A fund agency sales system is an intermediary platform between a transfer agent (TA) and a fund company, and is the main sales platform for customers to purchase funds, and is an essential business system for each TA.
[0003] In the agency sales business model, transaction data is transmitted between the TA and the fund company in the form of files. For example, account opening application file 01, account confirmation file 02, transaction application file 03, transaction confirmation file 04, account reconciliation file 05, dividend file 06, fund market quotation file 07, etc. The fund agency sales platform settles accounts with customers according to the confirmation file returned by the fund company (usually the purchase transaction needs to be returned on the t+1 day), so as to complete the fund transaction process.
[0004] In the current agency sales business model, the transaction function of the fund agency sales system deeply depends on the connectivity test of the fund company. In addition, the transaction data returned by the fund company is often affected by human factors, resulting in huge differences in the files returned by the fund company. Conventional automated means cannot cure this difference problem, resulting in the passive extension of the test cycle of the fund agency sales system and low test efficiency. Summary of the Invention
[0005] The present invention provides a testing method, device, equipment and storage medium for a fund agency sales system, which is used to improve the test efficiency of the fund agency sales system.
[0006] The first aspect of the present invention provides a testing method for a fund agency sales system, including:
[0007] Receiving a test request for the fund agency sales system, and obtaining the operation authority of the fund agency sales system through the test request;
[0008] Based on the operation authority, injecting fund product market quotation data into the fund agency sales system, and generating a fund market quotation file;
[0009] According to the fund market quotation file, simulating fund agency sales operations on the fund agency sales system to obtain synchronized transaction data;
[0010] Generating a fund confirmation file according to the synchronized transaction data;
[0011] Performing fund settlement simulation according to the fund confirmation file to obtain a fund settlement result, and verifying whether there is an abnormality in the fund agency sales system according to the fund settlement result.
[0012] Optionally, in the first implementation manner of the first aspect of the present invention, receiving a test request from the fund sales agency system and obtaining the operation authority of the fund sales agency system through the test request includes:
[0013] Receiving a test request from the fund sales agency system and extracting the identity information in the test request;
[0014] Performing permission verification on the identity information to obtain a permission verification result, where the permission verification result is used to indicate whether the identity information is a legitimate user of the fund sales agency system;
[0015] If the identity information is a legitimate user of the fund sales agency system, generating a token for the identity information, where the token is used to indicate the operation authority of the identity information for the fund sales agency system.
[0016] Optionally, in the second implementation manner of the first aspect of the present invention, injecting fund product market data into the fund sales agency system based on the operation authority and generating a fund market file includes:
[0017] Obtaining the current moment and modifying the opening moment of the fund sales agency system to the current moment according to the operation authority to obtain a fund sales agency system in an opening state;
[0018] Based on the fund sales agency system in the opening state, initializing a preset opening program and setting the business acceptance status through the opening program to obtain a fund sales agency system in an acceptance state, where the opening program is used to convert the business acceptance status from a pre-acceptance state to an acceptance state;
[0019] Importing fund product market data into the fund sales agency system in the acceptance state and generating a fund market file through the fund sales agency system in the acceptance state.
[0020] Optionally, in the third implementation manner of the first aspect of the present invention, performing a fund sales operation simulation on the fund sales agency system according to the fund market file to obtain synchronous transaction data includes:
[0021] Generating fund sales simulation data through a preset data simulator, where the fund sales simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data;
[0022] Performing a fund subscription operation simulation, a fund redemption operation simulation, a fund conversion operation simulation, and a fund branch operation simulation on the fund sales simulation data of the fund sales agency system according to the fund product price data in the fund market file to obtain synchronous transaction data.
[0023] Optionally, in the fourth implementation manner of the first aspect of the present invention, generating a fund confirmation document according to the synchronous transaction data includes:
[0024] Obtain the current moment, modify the closing moment of the fund distribution system to the current moment, and obtain a fund distribution system in a closed state.
[0025] Based on the fund distribution system in the closed state, initialize a preset closing program, and set the business acceptance status through the closing program to obtain a fund distribution system in a pre-acceptance state. The closing program is used to convert the business acceptance status from the acceptance state to the pre-acceptance state.
[0026] According to the fund product market data, simulate the fund company confirmation operation on the fund distribution system in the pre-acceptance state to obtain the fund product confirmation status.
[0027] Based on the fund product confirmation status, generate a fund confirmation document corresponding to the synchronous transaction data.
[0028] Optionally, in the fifth implementation manner of the first aspect of the present invention, generating a fund confirmation document corresponding to the synchronous transaction data based on the fund product confirmation status includes:
[0029] Encode the fund product transaction information in the synchronous transaction data according to a preset fund coding rule to obtain a transaction confirmation code. The fund product transaction information includes the settlement currency of the fund product, the fund code, the transaction moment, and the business code.
[0030] Generate a fund transaction code for the confirmation part according to the fund product confirmation status.
[0031] Concatenate the transaction confirmation code and the fund transaction code to obtain the confirmation code for each fund product, and generate a fund confirmation document according to the confirmation code for each fund product.
[0032] Optionally, in the sixth implementation manner of the first aspect of the present invention, simulating fund liquidation according to the fund confirmation document to obtain a fund liquidation result, and verifying whether there is an abnormality in the fund distribution system according to the fund liquidation result includes:
[0033] Import the fund confirmation document into the fund distribution system and receive the fund confirmation document simulated by the fund distribution system.
[0034] Start a preset fund liquidation program to obtain a fund simulation liquidation result. The fund simulation liquidation result includes the liquidation amount and liquidation share of the fund product.
[0035] Compare the liquidation amount and liquidation share in the simulated liquidation result of the fund with the transaction amount and transaction share in the synchronous transaction data to verify whether there is any abnormality in the fund distribution system.
[0036] The second aspect of the present invention provides a testing device for a fund distribution system, including:
[0037] A receiving module, configured to receive a test request for the fund distribution system and obtain the operation authority for the fund distribution system through the test request;
[0038] An injection module, configured to inject fund product market data into the fund distribution system based on the operation authority and generate a fund market file;
[0039] A simulation module, configured to simulate fund distribution operations on the fund distribution system according to the fund market file to obtain synchronous transaction data;
[0040] A generation module, configured to generate a fund confirmation file according to the synchronous transaction data;
[0041] A verification module, configured to simulate fund liquidation according to the fund confirmation file to obtain a fund liquidation result, and verify whether there is any abnormality in the fund distribution system according to the fund liquidation result.
[0042] Optionally, in the first implementation manner of the second aspect of the present invention, the receiving module is specifically configured to:
[0043] Receive a test request for the fund distribution system and extract the identity information in the test request;
[0044] Perform permission verification on the identity information to obtain a permission verification result, where the permission verification result is used to indicate whether the identity information is a legitimate user of the fund distribution system;
[0045] If the identity information is a legitimate user of the fund distribution system, generate a token for the identity information, where the token is used to indicate the operation authority of the identity information for the fund distribution system.
[0046] Optionally, in the second implementation manner of the second aspect of the present invention, the injection module is specifically configured to:
[0047] Obtain the current time, and modify the opening time of the fund distribution system to the current time according to the operation authority to obtain a fund distribution system in an opening state;
[0048] The fund distribution system based on the opening state initializes the preset opening program, sets the business acceptance state through the opening program, and obtains the fund distribution system with the acceptance state. The opening program is used to convert the business acceptance state from the pre-acceptance state to the acceptance state;
[0049] Import the fund product market data into the fund distribution system with the acceptance state, and generate a fund market file through the fund distribution system with the acceptance state.
[0050] Optionally, in the third implementation manner of the second aspect of the present invention, the simulation module is specifically used for:
[0051] Generate fund distribution simulation data through a preset data simulator. The fund distribution simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data;
[0052] According to the fund product price data in the fund market file, perform simulations of fund subscription operation, fund redemption operation, fund conversion operation, and fund branch operation on the fund distribution simulation data of the fund distribution system to obtain synchronous transaction data.
[0053] Optionally, in the fourth implementation manner of the second aspect of the present invention, the generation module includes:
[0054] A modification unit for obtaining the current time, modifying the closing time of the fund distribution system to the current time, and obtaining the fund distribution system in the closed state;
[0055] A setting unit for initializing a preset closing program based on the fund distribution system in the closed state, and setting the business acceptance state through the closing program to obtain the fund distribution system in the pre-acceptance state. The closing program is used to convert the business acceptance state from the acceptance state to the pre-acceptance state;
[0056] A confirmation unit for performing a simulation of the fund company confirmation operation on the fund distribution system in the pre-acceptance state according to the fund product market data to obtain the fund product confirmation state;
[0057] A generation unit for generating a fund confirmation file corresponding to the synchronous transaction data based on the fund product confirmation state.
[0058] Optionally, in the fifth implementation manner of the second aspect of the present invention, the generation unit is specifically used for:
[0059] Encode the fund product transaction information in the synchronous transaction data according to the preset fund coding rules to obtain a transaction confirmation code. The fund product transaction information includes the settlement currency of the fund product, the fund code, the transaction time, and the business code;
[0060] Generate a fund transaction code for the confirmation part according to the confirmation status of the fund product;
[0061] Concatenate the transaction confirmation code and the fund transaction code to obtain the confirmation code for each fund product, and generate a fund confirmation file according to the confirmation code for each fund product.
[0062] Optionally, in the sixth implementation manner of the second aspect of the present invention, the verification module is specifically configured to:
[0063] Import the fund confirmation file into the fund distribution system and receive the fund confirmation file simulated by the fund distribution system;
[0064] Start the preset fund liquidation program to obtain a fund simulation liquidation result, where the fund simulation liquidation result includes the liquidation amount and liquidation share of the fund product;
[0065] Compare the liquidation amount and liquidation share in the fund simulation liquidation result with the transaction amount and transaction share in the synchronous transaction data to verify whether there is an abnormality in the fund distribution system.
[0066] The third aspect of the present invention provides a test device for a fund distribution system, including: a memory and at least one processor, where a computer program is stored in the memory; the at least one processor calls the computer program in the memory so that the test device for the fund distribution system executes the above-mentioned test method for the fund distribution system.
[0067] The fourth aspect of the present invention provides a computer-readable storage medium, in which a computer program is stored, and when it runs on a computer, it causes the computer to execute the above-mentioned test method for the fund distribution system.
[0068] In the technical solution provided by the present invention, a test request of a fund distribution system is received, and the operation authority of the fund distribution system is obtained through the test request; based on the operation authority, fund product market data is injected into the fund distribution system, and a fund market file is generated; according to the fund market file, a fund distribution operation simulation is performed on the fund distribution system to obtain synchronous transaction data; according to the synchronous transaction data, a fund confirmation file is generated; according to the fund confirmation file, a fund liquidation simulation is performed to obtain a fund liquidation result, and whether there is an abnormality in the fund distribution system is verified according to the fund liquidation result. In an embodiment of the present invention, the server obtains the operation authority of the fund distribution system through a test request, injects fund product market data into the fund distribution system to generate a fund market file, then performs a fund distribution operation simulation on the fund distribution system to obtain synchronous transaction data, and the synchronous transaction data can reflect the business function problems of the fund distribution system. Then, a fund liquidation simulation is performed to verify whether there is an abnormality in the fund distribution system. The present invention can improve the test efficiency of the fund distribution system. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] Figure 1 FIG. is a schematic diagram of an embodiment of a method for testing a fund distribution system in an embodiment of the present invention;
[0070] Figure 2 FIG. is a schematic diagram of another embodiment of a method for testing a fund distribution system in an embodiment of the present invention;
[0071] Figure 3 FIG. is a schematic diagram of an embodiment of a device for testing a fund distribution system in an embodiment of the present invention;
[0072] Figure 4 FIG. is a schematic diagram of another embodiment of a device for testing a fund distribution system in an embodiment of the present invention;
[0073] Figure 5 FIG. is a schematic diagram of an embodiment of a device for testing a fund distribution system in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0074] Embodiments of the present invention provide a method, device, device and storage medium for testing a fund distribution system, which are used to improve the test efficiency of the fund distribution system.
[0075] In the description, claims and the above drawings of the present invention, the terms "first", "second", "third", "fourth", etc. (if any) are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order different from that shown or described herein. In addition, the term "comprising" or "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily limit to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0076] For ease of understanding, the specific process of the embodiments of the present invention will be described below. Please refer to Figure 1 , an embodiment of the test method for the fund distribution system in the embodiments of the present invention includes:
[0077] It can be understood that the execution subject of the present invention can be a test device for the fund distribution system, or a terminal or a server. Specifically, it is not limited here. The embodiments of the present invention will be described by taking the server as the execution subject as an example.
[0078] The server can be an independent server or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Network (CDN), and big data and artificial intelligence platforms.
[0079] 101. Receive a test request for the fund distribution system and obtain the operation permission for the fund distribution system through the test request;
[0080] It should be noted that the fund distribution system is an intermediary platform between the transfer agent (TA) and the fund company and is the main sales platform for customers to purchase funds. The business functions of the fund distribution systems of different TAs are generally the same and all include business functions such as fund subscription, fund redemption, fund conversion, branch method setting, viewing fund market conditions, and viewing fund profit and loss. There are differences in the characteristic services of the fund distribution systems of different TAs, such as setting up regular investment plans and setting payment limits. The present invention can perform intelligent testing on the general business functions and characteristic business functions of the fund distribution system through data simulation and operation simulation, improving the test efficiency of the fund distribution system.
[0081] In this embodiment, to improve the data security of the fund distribution system and verify the permission function of the fund distribution system, after the server receives a test request from the fund distribution system, it extracts the request identifier in the test request. The request identifier is used to indicate the identity information of the sending terminal of the test request, and then it looks up the permission information corresponding to the identity information from the preset user permission database, so as to determine the operation permission of the test request for the fund distribution system.
[0082] 102. Based on the operation permission, inject fund product market data into the fund distribution system and generate a fund market file;
[0083] In this embodiment, to improve the test efficiency of the fund distribution system, the server injects fund product market data into the fund distribution system to simulate the market information required during the normal operation of the fund distribution system. Among them, the fund product market data can be the market data of a single fund or the market data of multiple funds, can be the market data of a specified fund, or can be the market data of all funds on the market. The fund product market data can be the market data of any specified historical date, such as the market data of the current day t, the market data of t-1, the market data of t-7, etc., and no specific limitations are made.
[0084] It should be noted that the fund market file refers to the 07 file for transmitting fund market conditions between the TA and the fund company. In the non-test state of the fund distribution system, the fund market file is provided by the TA, resulting in excessive coupling between the test of the fund distribution system and the TA and low test efficiency. Therefore, based on the operation permission, the server generates fund product market data through a preset data simulator and generates a fund market file based on the fund product market data to reduce the coupling degree with the TA during the test of the fund distribution system.
[0085] 103. According to the fund market file, simulate fund distribution operations on the fund distribution system to obtain synchronous transaction data;
[0086] It should be noted that the fund market file is the basic file for subsequent fund distribution operations. Therefore, after obtaining the fund market file, the server can simulate fund distribution operations on the fund distribution system through a preset test case script, or conduct business function tests on the fund distribution system based on manual operations, so as to obtain synchronous transaction data. The synchronous transaction data is used for subsequent fund settlement simulation to test the transaction and settlement functions of the fund distribution system and improve the intelligence level of the fund distribution system test.
[0087] 104. Generate a fund confirmation file according to the synchronous transaction data;
[0088] In this embodiment, in order to reduce the coupling degree between the fund distribution system and the TA, the server simulates and generates a fund confirmation document of the TA according to the synchronized transaction data. The fund confirmation document includes an account confirmation document 02, a transaction confirmation document 04, an account reconciliation document 05, and a dividend document 06. Specifically, the server first obtains a preset document template, and then writes the synchronized transaction data into the document template according to the document format of the document template, so as to obtain the fund confirmation document. This embodiment can reduce the coupling degree between the fund distribution system and the TA, and thus improve the test efficiency.
[0089] 105. Perform a fund liquidation simulation according to the fund confirmation document to obtain a fund liquidation result, and verify whether there is an abnormality in the fund distribution system according to the fund liquidation result.
[0090] In this embodiment, in the non-test state, the fund distribution system needs to receive the fund confirmation document returned by the TA on the t + 1 day before it can perform share confirmation and fund liquidation, resulting in low test efficiency and strong latency of the liquidation function of the fund distribution system. Therefore, after the server generates the fund confirmation document, a fund liquidation simulation is performed on the fund distribution system to obtain a fund liquidation result, and then the simulated fund liquidation result is compared with the fund liquidation result returned by the TA. If the simulated fund liquidation result is consistent with the fund liquidation result returned by the TA, it indicates that there is no abnormality in the fund distribution system; otherwise, it indicates that there is an abnormality in the fund distribution system.
[0091] Further, the server stores the fund liquidation result in the blockchain database, and the specific details are not limited here.
[0092] In the embodiment of the present invention, the server obtains the operation permission of the fund distribution system through a test request, injects fund product market data into the fund distribution system to generate a fund market document, and then performs a fund distribution operation simulation on the fund distribution system to obtain synchronized transaction data. The synchronized transaction data can reflect the business function problems of the fund distribution system, and then a fund liquidation simulation is performed to verify whether there is an abnormality in the fund distribution system. The present invention can improve the test efficiency of the fund distribution system.
[0093] Please refer to Figure 2 , another embodiment of the test method of the fund distribution system in the embodiment of the present invention includes:
[0094] 201. Receive a test request of the fund distribution system, and obtain the operation permission of the fund distribution system through the test request;
[0095] Specifically, the server receives a test request from the fund distribution system and extracts the identity information in the test request. The server performs a permission verification on the identity information to obtain a permission verification result, which is used to indicate whether the identity information is a legitimate user of the fund distribution system. If the identity information is a legitimate user of the fund distribution system, the server generates a token for the identity information, and the token is used to indicate the operation permission of the identity information for the fund distribution system.
[0096] In this optional embodiment, in order to improve the data security of the fund distribution system, an identity information with test permissions is used to respond to the test request. After the server receives the test request from the fund distribution system, it extracts the identity information in the test request. The identity information is used to verify whether the test request has test permissions. If the identity information has test permissions, the permission verification passes, and a permission verification result is obtained, and a token corresponding to the identity information is generated, and the token is used for subsequent permission verification.
[0097] 202. Obtain the current moment, and modify the opening moment of the fund distribution system to the current moment according to the operation permission, to obtain the fund distribution system in the opening state.
[0098] It should be noted that the fund distribution system has the trading characteristics of opening and closing the market. It is precisely this trading characteristic that leads to a small test time window for the fund distribution system. The business functions in the closing state cannot be tested in the opening state, and the business functions in the opening state cannot be tested in the closing state, resulting in low test efficiency of the fund distribution system. Therefore, the server simulates the opening / closing state and modifies the opening / closing moment to the current moment to reduce the impact of the test time window on the test efficiency.
[0099] 203. Based on the fund distribution system in the opening state, initialize the preset opening program, and set the business acceptance state through the opening program to obtain the fund distribution system in the acceptance state. The opening program is used to convert the business acceptance state from the pre-acceptance state to the acceptance state.
[0100] It should be noted that due to the trading characteristics of the fund distribution system, the fund distribution system in the opening state can directly accept the fund trading requests submitted by the user terminal, while the fund distribution system in the closing state can only pre-accept the fund trading requests submitted by the user terminal, and convert the pre-accepted fund trading requests to acceptance after the fund distribution system enters the opening state. Based on this, when testing the fund distribution system, it is necessary to first convert the running state of the fund distribution system to the opening state for subsequent business function testing of the fund distribution system. The server updates the business status table of the fund distribution system through the opening program of the threshold, modifies the current business acceptance state from the pre-acceptance state to the acceptance state, and modifies the opening moment to the current moment, so as to obtain the fund distribution system in the acceptance state.
[0101] 204. Import the fund product market data into the fund distribution system in the acceptance state, and generate a fund market file through the fund distribution system in the acceptance state;
[0102] In this embodiment, in order to improve the test efficiency of the fund distribution system, the server injects the fund product market data into the fund distribution system in the acceptance state and forms a fund market file to simulate the fund market file 07 of the TA, and reduces the coupling between the fund distribution system and the TA, thereby improving the test efficiency.
[0103] 205. Simulate the fund distribution operation of the fund distribution system according to the fund market file to obtain synchronized transaction data;
[0104] Specifically, the server generates fund distribution simulation data through a pre-set data simulator. The fund distribution simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data; the server performs simulation operations of fund subscription, fund redemption, fund conversion, and fund branch operations on the fund distribution simulation data according to the fund product price data in the fund market file to obtain synchronized transaction data.
[0105] In this alternative embodiment, the pre-set data simulator generates fund distribution simulation data by simulating transactions on the fund market data. Among them, the fund distribution simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data. The server performs simulation transactions on the fund market data through the distribution simulation data to generate synchronized transaction data, and the synchronized transaction data is used to indicate the transaction data of the fund product.
[0106] 206. Generate a fund confirmation file according to the synchronized transaction data;
[0107] Specifically, the server obtains the current time, modifies the closing time of the fund distribution system to the current time to obtain a fund distribution system in the closed state; the server initializes the pre-set closing program based on the fund distribution system in the closed state and sets the business acceptance state through the closing program to obtain a fund distribution system in the pre-acceptance state. The closing program is used to convert the business acceptance state from the acceptance state to the pre-acceptance state; the server performs a simulation operation of the fund company confirmation on the fund distribution system in the pre-acceptance state according to the fund product market data to obtain the fund product confirmation state. The fund product confirmation state includes confirmation success, confirmation failure, partial confirmation not all returned, and partial confirmation all returned; the server generates a fund confirmation file corresponding to the synchronized transaction data based on the fund product confirmation state.
[0108] In this alternative embodiment, the simulation of the closed - market state is similar to that of the open - market state. The closing time in the database is modified to the current time, and a series of closing operations are simulated through the closing program, so as to obtain a fund distribution system in the pre - acceptance state.
[0109] In this alternative embodiment, since the confirmation status of the fund by TA includes successful confirmation, failed confirmation, partial confirmation with not all returned, and partial confirmation with all returned, in order to improve the accuracy and comprehensiveness of the simulated data, the server performs a confirmation operation simulation based on the fund distribution system in the pre - acceptance state to obtain the confirmation status of the fund product. Then, the server generates a fund confirmation file corresponding to the synchronization data based on the confirmation status of each fund product.
[0110] Further, generating a fund confirmation file corresponding to the synchronized transaction data based on the confirmation status of the fund product includes: the server encodes the fund product transaction information in the synchronized transaction data according to the preset fund coding rule to obtain a transaction confirmation code. The fund product transaction information includes the settlement currency of the fund product, fund code, transaction time, and business code; the server generates a fund transaction code for the confirmed part according to the confirmation status of the fund product. The fund transaction code includes the fund application number, transaction confirmation date, confirmed share, confirmed amount, transaction account, sales code, subscription amount, and fund account of the fund product; the server splices the transaction confirmation code and the fund transaction code to obtain the confirmation code of each fund product, and generates a fund confirmation file according to the confirmation code of each fund product.
[0111] In this alternative embodiment, since the confirmation information of the fund is recorded by the confirmation code in the fund confirmation file, when generating the fund confirmation file, the server encodes the fund product transaction information through the encoding algorithm corresponding to the preset fund coding rule to obtain a transaction confirmation code, which is used to indicate the settlement currency of the fund product, fund code, transaction time, and business code. The server then generates a fund transaction code for the confirmed part according to the confirmation status of the fund product, that is, the fund transaction code of the successfully confirmed part of the fund product. The fund transaction code is used to indicate the fund application number, transaction confirmation date, confirmed share, confirmed amount, transaction account, sales code, subscription amount, and fund account of the fund product. Finally, the server splices the transaction confirmation code and the fund transaction code to obtain the confirmation code of each fund product and generates a fund confirmation file.
[0112] 207. Perform a fund liquidation simulation according to the fund confirmation file to obtain a fund liquidation result, and verify whether there is an abnormality in the fund distribution system according to the fund liquidation result.
[0113] Specifically, import the fund confirmation file into the fund distribution system and receive the fund confirmation file simulated by the fund distribution system;
[0114] Start the preset fund liquidation process to obtain the simulated fund liquidation result, which includes the liquidation amount and liquidation share of the fund product;
[0115] Compare the simulated fund liquidation result with the preset fund liquidation result to verify whether there is any abnormality in the fund distribution system.
[0116] In this alternative embodiment, the preset fund liquidation result is used to indicate the standard data returned by the TA corresponding to the fund product market data. For example, if the fund product market data is the market data of t-1 day, then the preset fund liquidation result is the liquidation result after the server conducts fund liquidation based on the standard data returned by the TA on t-1 day, and no specific limitation is made.
[0117] In the embodiment of the present invention, the server obtains the operation permission of the fund distribution system through a test request, makes the fund distribution system enter the market opening state by modifying the market opening time of the fund operating system, then injects the fund product market data into the fund distribution system to generate a fund market file, then conducts a simulation of the fund distribution operation on the fund distribution system to obtain synchronous transaction data, which can reflect the business function problems of the fund distribution system, and then conducts a fund liquidation simulation to verify whether there is any abnormality in the fund distribution system. The present invention can improve the test efficiency of the fund distribution system and expand the test scope of the fund distribution system.
[0118] The test method of the fund distribution system in the embodiment of the present invention has been described above. Next, the test device of the fund distribution system in the embodiment of the present invention will be described. Please refer to Figure 3 One embodiment of the test device of the fund distribution system in the embodiment of the present invention includes:
[0119] A receiving module 301, configured to receive a test request of the fund distribution system and obtain the operation permission of the fund distribution system through the test request;
[0120] An injection module 302, configured to inject fund product market data into the fund distribution system based on the operation permission and generate a fund market file;
[0121] A simulation module 303, configured to conduct a simulation of the fund distribution operation on the fund distribution system according to the fund market file to obtain synchronous transaction data;
[0122] A generation module 304, configured to generate a fund confirmation file according to the synchronous transaction data;
[0123] A verification module 305, configured to conduct a fund liquidation simulation according to the fund confirmation file to obtain a fund liquidation result, and verify whether there is any abnormality in the fund distribution system according to the fund liquidation result.
[0124] Furthermore, store the fund liquidation result in the blockchain database, and specific limitations are not made here.
[0125] In an embodiment of the present invention, the server obtains the operation permission of the fund distribution system through a test request, injects fund product market data into the fund distribution system to generate a fund market file, then simulates the fund distribution operation on the fund distribution system to obtain synchronous transaction data. The synchronous transaction data can reflect the business function problems of the fund distribution system, and then conducts a fund liquidation simulation to verify whether there are any abnormalities in the fund distribution system. The present invention can improve the test efficiency of the fund distribution system.
[0126] Please refer to Figure 4 , another embodiment of the test device for the fund distribution system in the embodiment of the present invention includes:
[0127] A receiving module 301, configured to receive a test request for the fund distribution system, and obtain the operation permission of the fund distribution system through the test request;
[0128] An injection module 302, configured to inject fund product market data into the fund distribution system based on the operation permission, and generate a fund market file;
[0129] A simulation module 303, configured to simulate the fund distribution operation on the fund distribution system according to the fund market file to obtain synchronous transaction data;
[0130] A generation module 304, configured to generate a fund confirmation file according to the synchronous transaction data;
[0131] A verification module 305, configured to perform a fund liquidation simulation according to the fund confirmation file to obtain a fund liquidation result, and verify whether there are any abnormalities in the fund distribution system according to the fund liquidation result.
[0132] Optionally, the receiving module 301 is specifically configured to:
[0133] Receive a test request for the fund distribution system, and extract the identity information in the test request;
[0134] Perform a permission verification on the identity information to obtain a permission verification result, where the permission verification result is used to indicate whether the identity information is a legitimate user of the fund distribution system;
[0135] If the identity information is a legitimate user of the fund distribution system, generate a token for the identity information, where the token is used to indicate the operation permission of the identity information for the fund distribution system.
[0136] Optionally, the injection module 302 is specifically configured to:
[0137] Obtain the current time, and modify the opening time of the fund distribution system to the current time according to the operation authority to obtain a fund distribution system in an open state;
[0138] Based on the fund distribution system in the open state, initialize the preset opening program, and set the business acceptance status through the opening program to obtain a fund distribution system in an acceptance state, where the opening program is used to convert the business acceptance status from a pre-acceptance state to an acceptance state;
[0139] Import fund product market data into the fund distribution system in the acceptance state, and generate a fund market file through the fund distribution system in the acceptance state.
[0140] Optionally, the simulation module 303 is specifically used for:
[0141] Generate fund distribution simulation data through a preset data simulator, where the fund distribution simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data;
[0142] According to the fund product price data in the fund market file, perform simulations of fund subscription operations, fund redemption operations, fund conversion operations, and fund branch operations on the fund distribution simulation data of the fund distribution system to obtain synchronous transaction data.
[0143] Optionally, the generation module 304 includes:
[0144] A modification unit 3041, configured to obtain the current time, modify the closing time of the fund distribution system to the current time to obtain a fund distribution system in a closed state;
[0145] A setting unit 3042, configured to initialize a preset closing program based on the fund distribution system in the closed state, and set the business acceptance status through the closing program to obtain a fund distribution system in a pre-acceptance state, where the closing program is used to convert the business acceptance status from an acceptance state to a pre-acceptance state;
[0146] A confirmation unit 3043, configured to perform a simulation of a fund company confirmation operation on the fund distribution system in the pre-acceptance state according to the fund product market data to obtain a fund product confirmation status;
[0147] A generation unit 3044, configured to generate a fund confirmation file corresponding to the synchronous transaction data based on the fund product confirmation status.
[0148] Optionally, the generation unit 3044 is specifically used for:
[0149] Encode the fund product transaction information in the synchronous transaction data according to the preset fund coding rules to obtain a transaction confirmation code. The fund product transaction information includes the settlement currency of the fund product, the fund code, the transaction time, and the service code;
[0150] Generate a fund transaction code for the confirmation part according to the confirmation status of the fund product;
[0151] Concatenate the transaction confirmation code and the fund transaction code to obtain a confirmation code for each fund product, and generate a fund confirmation file according to the confirmation code of each fund product.
[0152] Optionally, the verification module 305 is specifically configured to:
[0153] Import the fund confirmation file into the fund distribution system and receive the fund confirmation file simulated by the fund distribution system;
[0154] Start the preset fund liquidation program to obtain a fund simulation liquidation result, where the fund simulation liquidation result includes the liquidation amount and liquidation share of the fund product;
[0155] Compare the liquidation amount and liquidation share in the fund simulation liquidation result with the transaction amount and transaction share in the synchronous transaction data to verify whether there is an abnormality in the fund distribution system.
[0156] In the embodiment of the present invention, the server obtains the operation permission of the fund distribution system through a test request, makes the fund distribution system enter the market opening state by modifying the market opening time of the fund operating system, then injects fund product market data into the fund distribution system to generate a fund market file, and then simulates the fund distribution operation on the fund distribution system to obtain synchronous transaction data. The synchronous transaction data can reflect the business function problems of the fund distribution system, and then conducts fund liquidation simulation to verify whether there is an abnormality in the fund distribution system. The present invention can improve the test efficiency of the fund distribution system and expand the test scope of the fund distribution system.
[0157] Above Figure 3 And Figure 4 The test device of the fund distribution system in the embodiment of the present invention is described in detail from the perspective of modular functional entities. Next, the test equipment of the fund distribution system in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0158] Figure 5FIG. 0 is a schematic structural diagram of a test device for a fund distribution system provided by an embodiment of the present invention. The test device 500 for the fund distribution system may vary greatly due to different configurations or performances, and may include one or more processors (central processing units, CPUs) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage media 530 may be transient storage or persistent storage. The programs stored in the storage media 530 may include one or more modules (not shown in the figure), and each module may include a series of computer program operations in the test device 500 for the fund distribution system. Further, the processor 510 may be configured to communicate with the storage media 530 and execute a series of computer program operations in the storage media 530 on the test device 500 for the fund distribution system.
[0159] The test device 500 for the fund distribution system may further include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input / output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that Figure 5 The shown structural diagram of the test device for the fund distribution system does not limit the test device for the fund distribution system, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0160] The present invention also provides a computer device, which includes a memory and a processor. When a computer-readable computer program stored in the memory is executed by the processor, the processor is caused to execute the steps of the test method for the fund distribution system in the above embodiments.
[0161] The present invention also provides a computer-readable storage medium. The computer-readable storage medium may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program runs on a computer, the computer is caused to execute the steps of the test method for the fund distribution system.
[0162] Further, the computer-readable storage medium may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.
[0163] The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, and encryption algorithm. Blockchain, in essence, is a decentralized database, a string of data blocks generated by using cryptographic methods. Each data block contains information about a batch of network transactions, which is used to verify the validity of the information (anti-counterfeiting) and generate the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, etc.
[0164] Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the above-described systems, devices, and units can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several computer programs for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0166] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A testing method for a fund distribution system, characterized in that, The test method of the fund distribution system includes: Receiving a test request for the fund distribution system and obtaining the operation permission of the fund distribution system through the test request; Based on the operation permission, injecting fund product market data into the fund distribution system and generating a fund market file; According to the fund market file, simulating fund distribution operations on the fund distribution system to obtain synchronized transaction data; Generating a fund confirmation file according to the synchronized transaction data; According to the fund confirmation file, simulating fund liquidation to obtain a fund liquidation result, and verifying whether there is an abnormality in the fund distribution system according to the fund liquidation result; The injecting fund product market data into the fund distribution system based on the operation permission and generating a fund market file includes: Obtaining the current moment and modifying the opening moment of the fund distribution system to the current moment according to the operation permission to obtain a fund distribution system in an opening state; Based on the fund distribution system in the opening state, initializing a preset opening program and setting the business acceptance status through the opening program to obtain a fund distribution system in an acceptance state. The opening program is used to convert the business acceptance status from a pre-acceptance state to an acceptance state; Importing fund product market data into the fund distribution system in the acceptance state and generating a fund market file through the fund distribution system in the acceptance state; The generating a fund confirmation file according to the synchronized transaction data includes: Obtaining the current moment and modifying the closing moment of the fund distribution system to the current moment to obtain a fund distribution system in a closing state; Based on the fund distribution system in the closing state, initializing a preset closing program and setting the business acceptance status through the closing program to obtain a fund distribution system in a pre-acceptance state. The closing program is used to convert the business acceptance status from an acceptance state to a pre-acceptance state; According to the fund product market data, simulating the fund company confirmation operation on the fund distribution system in the pre-acceptance state to obtain a fund product confirmation status; Generating a fund confirmation file corresponding to the synchronized transaction data based on the fund product confirmation status.
2. The test method of the fund distribution system according to claim 1, wherein The receiving a test request for the fund distribution system and obtaining the operation permission of the fund distribution system through the test request includes: Receiving a test request for the fund distribution system and extracting the identity information in the test request; Performing permission verification on the identity information to obtain a permission verification result, where the permission verification result is used to indicate whether the identity information is a legitimate user of the fund distribution system; If the identity information is a legitimate user of the fund distribution system, generating a token for the identity information, where the token is used to indicate the operation permission of the identity information for the fund distribution system.
3. The test method of the fund distribution system according to claim 1, characterized in that The simulating fund distribution operations on the fund distribution system according to the fund market file to obtain synchronized transaction data includes: Generating fund distribution simulation data through a preset data simulator. The fund distribution simulation data includes fund simulation subscription data, fund simulation redemption data, fund simulation conversion data, and fund simulation dividend data; According to the fund product price data in the fund market file, perform simulations of fund purchase operations, fund redemption operations, fund conversion operations, and fund branch operations on the fund distribution system to obtain synchronized transaction data.
4. The test method for the fund distribution system according to claim 3, characterized in that Based on the confirmation status of the fund product, generate a fund confirmation file corresponding to the synchronized transaction data, including: Encode the fund product transaction information in the synchronized transaction data according to the preset fund coding rules to obtain a transaction confirmation code. The fund product transaction information includes the settlement currency of the fund product, the fund code, the transaction time, and the business code; Generate a fund transaction code for the confirmation part according to the confirmation status of the fund product; Concatenate the transaction confirmation code and the fund transaction code to obtain the confirmation code for each fund product, and generate a fund confirmation file according to the confirmation code of each fund product.
5. The testing method of the fund distribution system according to any one of claims 1-4, characterized in that, Perform a fund settlement simulation according to the fund confirmation file to obtain a fund settlement result, and verify whether there is an abnormality in the fund distribution system according to the fund settlement result, including: Import the fund confirmation file into the fund distribution system and receive the fund confirmation file simulated by the fund distribution system; Start the preset fund settlement program to obtain a fund simulation settlement result, which includes the settlement amount and settlement share of the fund product; Compare the settlement amount and settlement share in the fund simulation settlement result with the transaction amount and transaction share in the synchronized transaction data to verify whether there is an abnormality in the fund distribution system.
6. A test device for a fund distribution and sales system, characterized in that, The testing device of the fund distribution system includes: A receiving module, configured to receive a test request for the fund distribution system and obtain the operation permission of the fund distribution system through the test request; An injection module, configured to inject fund product market data into the fund distribution system based on the operation permission and generate a fund market file; A simulation module, configured to perform simulations of fund distribution operations on the fund distribution system according to the fund market file to obtain synchronized transaction data; A generation module, configured to generate a fund confirmation file according to the synchronized transaction data; A verification module, configured to perform a fund settlement simulation according to the fund confirmation file to obtain a fund settlement result, and verify whether there is an abnormality in the fund distribution system according to the fund settlement result; The injection module is specifically configured to: obtain the current time, modify the opening time of the fund distribution system to the current time according to the operation permission to obtain a fund distribution system in an opening state; based on the fund distribution system in the opening state, initialize the preset opening program and set the business acceptance status through the opening program to obtain a fund distribution system in an acceptance state. The opening program is used to convert the business acceptance status from a pre-acceptance state to an acceptance state; import fund product market data into the fund distribution system in the acceptance state and generate a fund market file through the fund distribution system in the acceptance state; The generation module includes: A modification unit, configured to obtain the current moment, modify the closing moment of the fund distribution system to the current moment, and obtain a fund distribution system in a closed state; A setting unit, configured to initialize a preset closing program based on the fund distribution system in the closed state, and set a business acceptance status through the closing program to obtain a fund distribution system in a pre-acceptance state, where the closing program is used to convert the business acceptance status from an acceptance state to a pre-acceptance state; A confirmation unit, configured to perform a simulation of a fund company confirmation operation on the fund distribution system in the pre-acceptance state according to the fund product market data to obtain a fund product confirmation status; A generation unit, configured to generate a fund confirmation file corresponding to the synchronous transaction data based on the fund product confirmation status.
7. A computer device, characterized in that, The computer device includes: a memory and at least one processor, where a computer program is stored in the memory; The at least one processor calls the computer program in the memory to enable the computer device to execute the test method of the fund distribution system according to any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the test method of the fund distribution system according to any one of claims 1-5.
Citation Information
Patent Citations
Insurance buying and insurance buying link testing method, device and equipment
CN110020958A
Foreign exchange transaction simulation test method and device, computer equipment and storage medium
CN112634047A