CN117707960A - Method, device, equipment and storage medium for testing accounting function - Google Patents

Method, device, equipment and storage medium for testing accounting function Download PDF

Info

Publication number
CN117707960A
CN117707960A CN202311733426.3A CN202311733426A CN117707960A CN 117707960 A CN117707960 A CN 117707960A CN 202311733426 A CN202311733426 A CN 202311733426A CN 117707960 A CN117707960 A CN 117707960A
Authority
CN
China
Prior art keywords
accounting
transaction
account
financial product
combination
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311733426.3A
Other languages
Chinese (zh)
Inventor
赵睿
曹雅丽
常立志
周丹
周永恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311733426.3A priority Critical patent/CN117707960A/en
Publication of CN117707960A publication Critical patent/CN117707960A/en
Pending legal-status Critical Current

Links

Landscapes

  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a method, a device, equipment and a medium for testing an accounting function. The method comprises the following steps: determining a plurality of first accounting transaction combinations based on accounting transactions related to the financial product and accounting settlement time nodes contained in a life cycle of the financial product; determining a first change rule generated by each first dynamic account transaction combination on each account settlement type related to the financial product; acquiring scene parameter values input by a user and aiming at financial products; determining a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination; obtaining a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first dynamic account transaction combination; and determining whether the accounting function of the system to be measured is normal or not based on the theoretical result value and the test result value of each accounting type. The method improves test quality and efficiency.

Description

Method, device, equipment and storage medium for testing accounting function
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for testing an accounting function.
Background
With the rapid development of internet technology, a large number of novel financial products are emerging in the financial industry represented by banks, and meanwhile, various complex mixed transaction scenes correspondingly appear. Therefore, for a tester, it is often necessary to perform a functional test on an application system supporting the service, so as to ensure that the accounting function of the application system in different mixed transaction scenarios meets the requirements.
The application system is usually subjected to function verification by means of test experience of a tester, so that the problem of missing of a test scene easily occurs, and the test quality is affected.
Disclosure of Invention
Aiming at the technical problems existing in the conventional technology, the embodiment of the application provides a method, a device, equipment and a storage medium for testing the accounting function.
In a first aspect, an embodiment of the present application provides a method for testing an accounting function, including:
determining a plurality of first dynamic account transaction combinations based on each dynamic account transaction related to a financial product and an account settlement time node contained in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
determining a first change rule generated by each first dynamic account transaction combination on each account settlement type related to the financial product;
acquiring scene parameter values input by a user and aiming at the financial products; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
determining a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination; obtaining a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first dynamic account transaction combination; and determining whether the accounting function of the system to be tested for the financial product is normal or not based on the theoretical result value and the test result value of each accounting type.
In a second aspect, an embodiment of the present application provides a test device for an accounting function, including:
a determining module, configured to determine a plurality of first accounting transaction combinations based on each accounting transaction related to a financial product and accounting time nodes included in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
the determining module is further configured to determine a first change rule generated by each first accounting transaction combination on each accounting settlement type related to the financial product;
the acquisition module is used for acquiring scene parameter values input by a user and aiming at the financial products; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
the determining module is further configured to determine, for each first accounting transaction combination, a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination;
the acquisition module is further used for acquiring a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first accounting transaction combination for each first accounting transaction combination;
the determining module is further configured to determine whether the accounting function of the system to be tested for the financial product is normal based on the theoretical result value and the test result value of each accounting type.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the processor implements, when executing the computer program, the steps of the method for testing the accounting function provided in the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for testing an accounting function provided in the first aspect of the embodiments of the present application.
According to the technical scheme provided by the embodiment of the application, the plurality of first account moving transaction combinations are determined through the account moving transactions related to the financial products and account settling time nodes contained in the life cycle of the financial products, so that a complete test scene (a group of first account moving transaction combinations can be regarded as one test scene) is obtained, when the system to be tested is tested, the system to be tested is controlled to operate according to scene parameter values and execution sequences of the account moving transactions in the first account moving transaction combinations, so that test result values of the account settling types of the system to be tested in different test scenes can be obtained, the comprehensiveness of the system to be tested is ensured, and the test quality is further improved; meanwhile, a theoretical result value of each accounting type under different test scenes is determined through a first change rule and a scene parameter value generated by each accounting transaction combination on each accounting type related to the financial product, the theoretical result value of each accounting type is used as a reference standard, and the test result value of each accounting type is verified, so that verification of the accounting function of a system to be tested is realized, the correctness of the test result is not required to be judged depending on experience of a tester, and the test quality and the test efficiency are further improved.
Drawings
Fig. 1 is a flow chart of a method for testing an accounting function according to an embodiment of the present application;
fig. 2 is another flow chart of a method for testing an accounting function according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a testing device for accounting function according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
The method provided by the embodiment of the application can be suitable for the situation of testing the accounting function, the method can be executed by the testing device of the accounting function provided by the embodiment of the application, the device can be realized by means of hardware and/or software, and the device can be generally integrated in electronic equipment. Optionally, the electronic device may be a terminal that has data processing capability and can interact with other devices, such as a notebook computer, a tablet computer, and a personal digital assistant, or may be an independent server or a server cluster formed by multiple servers.
To facilitate understanding by those skilled in the art, some concepts will be described below:
functional test: and verifying the functions of the product, and checking whether the product meets the functions required by the user according to the function test cases by item test.
Dynamic account transaction: the account change transaction is mainly transaction caused by funds change in an account, such as money withdrawal, transfer, payment, fund buying, financial product buying, online payment, credit card repayment and the like, and the transaction behavior with funds change can be called as a mobile account transaction.
Accounting settlement type: the accounting entry mainly comprises balance types, borrowing directions and amounts, customer account amounts and the like under the view angle of a bank.
Fig. 1 is a flow chart of a method for testing an accounting function according to an embodiment of the present application.
As shown in fig. 1, the method may include:
s101, determining a plurality of first account moving transaction combinations based on account settling time nodes contained in the life cycle of each account moving transaction related to the financial product.
Each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the accounting settlement time node. The execution sequence of each accounts moving transaction in different first account moving transaction combinations is different, and the different first account moving transaction combinations have different influences on the account settlement types related to the financial products. For example, a first accounting transaction combination AB, representing accounting transaction a performed before an accounting time node and accounting transaction B performed after the accounting time node; further, as the first accounting transaction combination BA, it means that accounting transaction B is performed before the accounting time node and accounting transaction a is performed after the accounting time node.
It may be understood that the first set of accounting transaction combinations may be a mixed transaction scenario or referred to as a test scenario, and according to accounting time nodes included in a life cycle of a financial product, execution time of each accounting transaction related to the financial product is divided, where the execution time mainly uses the accounting time nodes as division points, which accounting transactions are executed before the accounting time nodes and which accounting transactions are executed after the accounting time nodes, so that all possible first accounting transaction combinations may be obtained, and a comprehensive test scenario may be obtained.
S102, determining a first change rule generated by each first dynamic account transaction combination on each accounting settlement type related to the financial product.
The first change rule is used for representing a corresponding relation between the accounting type and each accounting transaction in the first accounting transaction combination, namely the first change rule shows that the accounting type is changed according to a function relation when each accounting transaction in the first accounting transaction combination is changed. For example, the accounting type is an dependent variable, each dynamic account transaction in the first dynamic account transaction combination is an independent variable, and the first change rule characterizes a corresponding relationship between the independent variable and the dependent variable.
As an alternative embodiment, S102 may include: acquiring a second change rule of each account settlement type generated by each account transaction related to the financial product; and determining a first change rule generated for each accounting settlement type after the execution of the first accounting transaction combination according to the execution sequence of each accounting transaction in the first accounting transaction combination and each second change rule corresponding to each accounting transaction.
Wherein the second variation rule is a functional relationship between a single dynamic account transaction and an accounting type. For example, the second change rule, which is a functional relationship between the dynamic account transaction a and the accounting type 1, shows how the accounting type 1 changes after the dynamic account transaction a occurs.
After obtaining the second change rule of each account transaction for each account settlement type, the functional relationship between the account settlement type and each account transaction can be calculated according to the execution sequence of each account transaction in the first account transaction combination and each second change rule corresponding to each account transaction. Taking the accounting settlement type 1 as an example, if the first accounting transaction combination is ABC, the first variation rule of the first accounting transaction combination ABC for the accounting settlement type 1 may be calculated based on the execution sequence of the accounting transaction A, B, C, the second variation rule of the accounting transaction a for the accounting settlement type 1, the second variation rule of the accounting transaction B for the accounting settlement type 1, and the second variation rule of the accounting transaction C for the accounting settlement type 1.
S103, acquiring scene parameter values input by a user and aiming at financial products.
The scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products are opened. The initial parameter values herein may include principal at the time of opening an account of the financial product, interest rate, and the like.
S104, determining theoretical result values of accounting settlement types after each accounting transaction in the first accounting transaction combination is executed according to scene parameter values and first change rules corresponding to the first accounting transaction combinations; obtaining a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first dynamic account transaction combination; and determining whether the accounting function of the system to be tested aiming at the financial product is normal or not based on the theoretical result value and the test result value of each accounting type.
After a first change rule of each accounting type generated by the first accounting transaction combination is obtained, principal, interest rate of financial products and transaction values of each accounting transaction input by a user are used as independent variables in each first change rule, and theoretical result values of each accounting type after each accounting transaction in the first accounting transaction combination is executed are determined through the first change rule.
Meanwhile, the principal, interest rate and transaction values of the dynamic account transactions of the financial products can be input into a system to be tested, the system to be tested is controlled to execute the dynamic account transactions according to the execution time of the dynamic account transactions defined in the first dynamic account transaction combination, and the test result values of the accounting settlement types output by the system to be tested can be obtained after the execution of the dynamic account transactions in the first dynamic account transaction combination is completed.
Further, the theoretical result value of each accounting type is used as a reference standard, and the test result value of each accounting type is checked to determine whether the accounting function of the system to be tested under different test scenes is normal.
Optionally, if the theoretical result value and the test result value of each accounting type are consistent, determining that the accounting function of the system to be tested for the financial product is normal; if the theoretical result value and the test result value of each accounting type are inconsistent, determining that the accounting function of the system to be tested for the financial product is abnormal.
Illustratively, assuming that the financial product involves 3 ledger transactions A, B, C, and 3 accounting types 1, 2, 3, the following first ledger transaction combinations are available through the scenario design tool (i.e., steps S101-S102 described above): ABC, ACB and CBA, can also obtain the first change rule that every first movable account trade combination produced to every account settlement type at the same time, presume the first change rule that the first movable account trade combination ABC produced to the account settlement type 1 is rule 1, the first change rule produced to the account settlement type 2 is rule 2, the first change rule produced to the account settlement type 3 is rule 3.
In this way, the user inputs the transaction value corresponding to the accounting transaction A, B, C, and principal and interest rate when the financial product opens an account, and the theoretical result value corresponding to the accounting type 1, the theoretical result value corresponding to the accounting type 2 and the theoretical result value corresponding to the accounting type 3 after the first accounting transaction combination ABC is executed can be obtained through the rule 1, the rule 2 and the rule 3.
Meanwhile, the transaction value corresponding to the account transaction A, B, C, principal and interest rate of the financial product in account opening are input into a system to be tested, the system to be tested is controlled to operate according to the first account transaction combination ABC, and a test result value corresponding to the account settlement type 1, a test result value corresponding to the account settlement type 2 and a test result value corresponding to the account settlement type 3 output by the system to be tested are obtained after the first account transaction combination ABC is executed. And then, determining whether the accounting results of all accounting types of the system to be tested under the first accounting transaction combination are problematic by utilizing the theoretical result value and the test result value corresponding to the accounting type 1, the theoretical result value and the test result value corresponding to the accounting type 2 and the theoretical result value and the test result value corresponding to the accounting type 3.
According to the method for testing the accounting function, the accounting transaction related to the financial product and the accounting time node contained in the life cycle of the financial product are used for determining a plurality of first accounting transaction combinations, so that a complete test scene (a group of first accounting transaction combinations can be regarded as one test scene) is obtained, and when a system to be tested is tested, the system to be tested is controlled to operate according to the scene parameter values and the execution sequence of each accounting transaction in the first accounting transaction combinations, so that the test result values of each accounting type of the system to be tested under different test scenes can be obtained, the comprehensiveness of the system to be tested is ensured, and the test quality is further improved; meanwhile, a theoretical result value of each accounting type under different test scenes is determined through a first change rule and a scene parameter value generated by each accounting transaction combination on each accounting type related to the financial product, the theoretical result value of each accounting type is used as a reference standard, and the test result value of each accounting type is verified, so that verification of the accounting function of a system to be tested is realized, the correctness of the test result is not required to be judged depending on experience of a tester, and the test quality and the test efficiency are further improved.
Further, optionally, in the case that the accounting function abnormality of the system to be tested for the financial product is determined, the first accounting transaction combination of the test abnormality and the corresponding accounting type are highlighted. For example, the first accounting transaction combination of the test anomaly and the corresponding accounting settlement type are highlighted, or the first accounting transaction combination of the test anomaly and the corresponding accounting settlement type are played by voice.
By highlighting the first account moving transaction combination with abnormal test and the corresponding account settlement type, the intuitiveness of abnormal information display is improved, a user can conveniently and quickly and efficiently acquire abnormal test points, and therefore timeliness of system function test problem processing is improved, and the account settlement function of the system is quickly optimized.
In one embodiment, optionally, as shown in fig. 2, the step S101 may include:
s201, according to accounting settlement time nodes contained in the life cycle of the financial product, arranging and combining all the accounting transactions related to the financial product to obtain a plurality of second accounting transaction combinations.
S202, determining redundant dynamic account transaction combinations in the second dynamic account transaction combinations.
After arranging and combining each account moving transaction related to the financial product according to the account settling time node to obtain a plurality of second account moving transaction combinations, the influence of some account moving transaction combinations on the account settling type is the same, and in order to improve the test efficiency, the redundant account moving transaction combinations need to be screened out from the plurality of second account moving transaction combinations, and the redundant account moving transaction combinations need to be deleted. For example, assuming that the effects of ledger transaction combination ABC and ledger transaction combination ACB on the transaction settlement type are the same, either one of ledger transaction combination ABC and ledger transaction combination ACB may be determined as a redundant ledger transaction combination.
As an alternative embodiment, S202 may include: based on the dependency relationship between each dynamic account transaction related to the financial product and each accounting settlement type, redundant dynamic account transaction combinations in the plurality of second dynamic account transaction combinations are determined.
Illustratively, the accounting transaction a affects the accounting types 1 and 3, the accounting transaction B affects the accounting types 2 and 3, but the accounting transaction B needs to calculate the value of the accounting type 2 and the value of the accounting type 3 after the accounting transaction B occurs according to the value of the accounting type 3 before the transaction occurs, so the time sequence relationship of the accounting transaction a and the accounting transaction B is significant, that is, the accounting transaction combination AB and the accounting transaction combination BA are all available accounting transaction combinations. If the time sequence relation between the dynamic account transaction A and the dynamic account transaction B does not affect the calculation result of each accounting settlement type, one of the dynamic account transaction combination AB and the dynamic account transaction combination BA is a redundant dynamic account transaction combination, and only one dynamic account transaction combination needs to be reserved.
Of course, other ways of determining redundant ledger transaction combinations may be used, which are not limited in this embodiment.
S203, deleting redundant dynamic account transaction combinations from the second dynamic account transaction combinations to obtain a first dynamic account transaction combination.
In this embodiment, according to the accounting settlement time node included in the life cycle of the financial product, the accounting transactions related to the financial product are arranged and combined to obtain a plurality of second accounting transaction combinations, redundant accounting transaction combinations in the second accounting transaction combinations are determined, and redundant accounting transaction combinations are deleted from the second accounting transaction combinations, so that a test scene required by the functional test of the system to be tested can be automatically generated, the generation efficiency of the test scene is improved, and the completeness of the test scene can be ensured.
Fig. 3 is a schematic structural diagram of a testing device for accounting function according to an embodiment of the present application. As shown in fig. 3, the apparatus may include: a determining module 301 and an acquiring module 302.
Specifically, the determining module 301 is configured to determine a plurality of first accounting transaction combinations based on each accounting transaction related to a financial product and an accounting time node included in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
the determining module 301 is further configured to determine a first change rule generated by each first accounting transaction combination on each accounting settlement type related to the financial product;
the acquiring module 302 is configured to acquire a scene parameter value for the financial product input by a user; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
the determining module 301 is further configured to determine, for each first accounting transaction combination, a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination;
the obtaining module 302 is further configured to obtain, for each first accounting transaction combination, a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first accounting transaction combination;
the determining module 301 is further configured to determine whether the accounting function of the system to be tested for the financial product is normal based on the theoretical result value and the test result value of each accounting type.
On the basis of the above embodiment, optionally, the determining module 301 is further configured to rank and combine each accounting transaction related to the financial product according to an accounting time node included in a life cycle of the financial product, so as to obtain a plurality of second accounting transaction combinations; determining a redundant ledger transaction combination of the plurality of second ledger transaction combinations; and deleting the redundant dynamic account transaction combination from the second dynamic account transaction combinations to obtain the first dynamic account transaction combination.
On the basis of the above embodiment, optionally, the determining module 301 is further configured to determine a redundant ledger transaction combination of the plurality of second ledger transaction combinations based on a dependency relationship between each ledger transaction related to the financial product and each ledger settlement type.
On the basis of the above embodiment, optionally, the obtaining module 302 is further configured to obtain a second change rule generated by each accounting transaction related to the financial product for each accounting settlement type;
the determining module 301 is further configured to determine, for each first accounting transaction combination, a first change rule generated for each accounting settlement type after the execution of the first accounting transaction combination is completed according to an execution sequence of each accounting transaction in the first accounting transaction combination and each second change rule corresponding to each accounting transaction.
On the basis of the above embodiment, optionally, the determining module 301 is further configured to determine that the accounting function of the system to be tested for the financial product is normal if the theoretical result value and the test result value of each accounting type are consistent; and if the theoretical result value and the test result value of each accounting type are inconsistent, determining that the accounting function of the system to be tested for the financial product is abnormal.
On the basis of the above embodiment, optionally, the apparatus further includes: and a display module.
Specifically, the display module is configured to highlight and display a first account transaction combination with abnormal test and a corresponding account settlement type under the condition that it is determined that the accounting function of the system to be tested is abnormal for the financial product.
In one embodiment, there is also provided an electronic device, as shown in fig. 4, which may include a processor 401, a memory 402, an input device 403, and an output device 404; the number of processors 401 in the electronic device may be one or more, one processor 401 being exemplified in fig. 4; the processor 401, the memory 402, the input means 403 and the output means 404 in the electronic device may be connected by a bus or in other ways, in fig. 4 by way of example.
The memory 402 is used as a computer readable storage medium, and may be used to store a software program, a computer executable program, and a module, such as program instructions/modules corresponding to the method for testing an accounting function in the embodiment of the present application (for example, the determining module 301 and the obtaining module 302 of the testing device for an accounting function). The processor 401 executes various functional applications of the electronic device and data processing, that is, a test method for realizing the above-described accounting function by running software programs, instructions and modules stored in the memory 402.
Memory 402 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 402 may further include memory remotely located relative to processor 401, which may be connected to the device/terminal/server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input means 403 may be used to receive entered numeric or character information and to generate key signal inputs related to user settings and function control of the electronic device. The output 404 may include a display device such as a display screen.
In one embodiment, the present application further provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method for testing an accounting function, the method comprising the steps of:
determining a plurality of first dynamic account transaction combinations based on each dynamic account transaction related to a financial product and an account settlement time node contained in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
determining a first change rule generated by each first dynamic account transaction combination on each account settlement type related to the financial product;
acquiring scene parameter values input by a user and aiming at the financial products; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
determining a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination; obtaining a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first dynamic account transaction combination; and determining whether the accounting function of the system to be tested for the financial product is normal or not based on the theoretical result value and the test result value of each accounting type.
The test device, the electronic device and the storage medium for the accounting function provided in the above embodiments can execute the test method for the accounting function provided in any of the above embodiments, and have the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the above embodiments may be found in the method for testing the accounting function provided in any of the above embodiments.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, where the instructions include a number of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present application.
It should be noted that the respective units and modules included in the above embodiments are divided according to the functional logic only, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present application.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. Those skilled in the art will appreciate that the present application is not limited to the particular embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, the scope of which is defined by the scope of the appended claims.

Claims (10)

1. The method for testing the accounting function is characterized by comprising the following steps:
determining a plurality of first dynamic account transaction combinations based on each dynamic account transaction related to a financial product and an account settlement time node contained in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
determining a first change rule generated by each first dynamic account transaction combination on each account settlement type related to the financial product;
acquiring scene parameter values input by a user and aiming at the financial products; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
determining a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination; obtaining a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first dynamic account transaction combination; and determining whether the accounting function of the system to be tested for the financial product is normal or not based on the theoretical result value and the test result value of each accounting type.
2. The method of claim 1, wherein determining a plurality of first ledger transaction combinations based on each ledger transaction involving a financial product and a ledger settlement time node contained within a lifecycle of the financial product comprises:
according to the accounting settlement time node contained in the life cycle of the financial product, arranging and combining all the accounting transactions related to the financial product to obtain a plurality of second accounting transaction combinations;
determining a redundant ledger transaction combination of the plurality of second ledger transaction combinations;
and deleting the redundant dynamic account transaction combination from the second dynamic account transaction combinations to obtain the first dynamic account transaction combination.
3. The method of claim 2, wherein the determining a redundant one of the plurality of second ledger transaction combinations comprises:
and determining redundant dynamic account transaction combinations in the second dynamic account transaction combinations based on the dependency relationship between each dynamic account transaction related to the financial product and each accounting settlement type.
4. The method of claim 1, wherein determining a first change rule that each first dynamic account transaction combination produces for each accounting settlement type related to the financial product comprises:
acquiring a second change rule of each account settlement type generated by each dynamic account transaction related to the financial product;
and determining a first change rule generated for each accounting settlement type after the first accounting transaction combination is executed according to the execution sequence of each accounting transaction in the first accounting transaction combination and each second change rule corresponding to each accounting transaction.
5. The method of claim 1, wherein the determining whether the accounting function of the system under test for the financial product is normal based on the theoretical result value and the test result value for each accounting type comprises:
if the theoretical result value and the test result value of each accounting type are consistent, determining that the accounting function of the system to be tested for the financial product is normal;
and if the theoretical result value and the test result value of each accounting type are inconsistent, determining that the accounting function of the system to be tested for the financial product is abnormal.
6. The method according to any one of claims 1 to 5, further comprising:
under the condition that the accounting function of the system to be tested for the financial product is abnormal, the first accounting transaction combination with abnormal testing and the corresponding accounting type are highlighted.
7. The utility model provides a test device of account settlement function which characterized in that includes:
a determining module, configured to determine a plurality of first accounting transaction combinations based on each accounting transaction related to a financial product and accounting time nodes included in a life cycle of the financial product; each first account moving transaction combination comprises a plurality of account moving transactions which are sequentially executed according to the account settling time node;
the determining module is further configured to determine a first change rule generated by each first accounting transaction combination on each accounting settlement type related to the financial product;
the acquisition module is used for acquiring scene parameter values input by a user and aiming at the financial products; the scene parameter values comprise transaction values of various account-moving transactions related to the financial products and initial parameter values when the financial products open accounts;
the determining module is further configured to determine, for each first accounting transaction combination, a theoretical result value of each accounting settlement type after each accounting transaction in the first accounting transaction combination is executed according to the scene parameter value and each first change rule corresponding to the first accounting transaction combination;
the acquisition module is further used for acquiring a test result value of each accounting settlement type obtained after the system to be tested operates according to the scene parameter value and the first accounting transaction combination for each first accounting transaction combination;
the determining module is further configured to determine whether the accounting function of the system to be tested for the financial product is normal based on the theoretical result value and the test result value of each accounting type.
8. The apparatus of claim 7, wherein the determining module is further configured to rank and combine the accounting transactions related to the financial product according to accounting time nodes included in a life cycle of the financial product to obtain a plurality of second accounting transaction combinations; determining a redundant ledger transaction combination of the plurality of second ledger transaction combinations; and deleting the redundant dynamic account transaction combination from the second dynamic account transaction combinations to obtain the first dynamic account transaction combination.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
CN202311733426.3A 2023-12-15 2023-12-15 Method, device, equipment and storage medium for testing accounting function Pending CN117707960A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311733426.3A CN117707960A (en) 2023-12-15 2023-12-15 Method, device, equipment and storage medium for testing accounting function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311733426.3A CN117707960A (en) 2023-12-15 2023-12-15 Method, device, equipment and storage medium for testing accounting function

Publications (1)

Publication Number Publication Date
CN117707960A true CN117707960A (en) 2024-03-15

Family

ID=90160196

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311733426.3A Pending CN117707960A (en) 2023-12-15 2023-12-15 Method, device, equipment and storage medium for testing accounting function

Country Status (1)

Country Link
CN (1) CN117707960A (en)

Similar Documents

Publication Publication Date Title
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN108876380B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
Porru et al. Blockchain-oriented software engineering: challenges and new directions
CN109377216B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
CN109285069B (en) Resource transfer method, device and server
CN110163612B (en) Payment wind control method and device
CN110363417A (en) Financial risks strategy-generating method, device and electronic equipment
CN106487603A (en) A kind of response test method and device
CN110619574A (en) Remittance data processing method, remittance data processing apparatus, electronic device, and storage medium
CN112612813A (en) Test data generation method and device
CN108460068A (en) Method, apparatus, storage medium and the terminal that report imports and exports
CN109582550A (en) A kind of method, apparatus and server obtaining full dose business scenario failure collection
CN114372006A (en) Method and system for automatically generating test case, computer equipment and storage medium
CN108334346A (en) A kind of development approach and device of Service control flow
CN109345249B (en) Payment failure processing method and device
CN110033362B (en) Money drawing method, device and equipment
CN113312259B (en) Interface testing method and device
CN116107910B (en) Performance system testing method, electronic equipment and storage medium
CN109255616B (en) Processing method and device for refused task
CN111367776A (en) Recording method, device, equipment and storage medium of resource transfer service
CN116955148A (en) Service system testing method, device, equipment, storage medium and product
CN117707960A (en) Method, device, equipment and storage medium for testing accounting function
US20190026742A1 (en) Accounting for uncertainty when calculating profit efficiency
CN114444120A (en) Financing method and device based on block chain, electronic equipment and storage medium
CN111625458A (en) Service system testing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination