CN108897686B - Full-entry automatic testing method and device - Google Patents

Full-entry automatic testing method and device Download PDF

Info

Publication number
CN108897686B
CN108897686B CN201810694553.XA CN201810694553A CN108897686B CN 108897686 B CN108897686 B CN 108897686B CN 201810694553 A CN201810694553 A CN 201810694553A CN 108897686 B CN108897686 B CN 108897686B
Authority
CN
China
Prior art keywords
accounting
entry
full
type
file
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.)
Active
Application number
CN201810694553.XA
Other languages
Chinese (zh)
Other versions
CN108897686A (en
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201810694553.XA priority Critical patent/CN108897686B/en
Publication of CN108897686A publication Critical patent/CN108897686A/en
Application granted granted Critical
Publication of CN108897686B publication Critical patent/CN108897686B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting

Abstract

The invention provides a full entry automatic test method and a device, relating to the technical field of accounting, wherein the method is applied to an accounting engine and comprises the steps of loading a full set of accounting parameters; the whole set of accounting parameters at least comprises an accounting type, an atomic action and an amount type; carrying out full-quantity combination on the accounting type, the atomic action and the money amount type to generate a full-coverage accounting running water; performing running water processing on the accounting running water to obtain running water information; the stream information at least comprises a detailed entry; and comparing the detail entry with a preset accounting entry table to generate a test result. The full-entry automatic testing method and the full-entry automatic testing device provided by the embodiment of the invention enable an accounting engine to independently verify the correctness of the functions of the accounting engine and the correctness of instantiation of accounting parameters, and effectively solve the problem of large workload of accounting processing results.

Description

Full-entry automatic testing method and device
Technical Field
The invention relates to the technical field of accounting, in particular to a full entry automatic testing method and device.
Background
The accounting engine is a key component after the transaction and the accounting are separated, is important in the whole accounting link, but as a back-end system, the accounting engine cannot initiate the transaction. If the function of the front-end application component is developed and completed according to a conventional testing method, a tester initiates a transaction to verify the correctness of the function of the engine. Obviously, in the same development cycle, the accounting engine relies on the front-end application component access to perform correct verification of internal functions and ensure the correctness of instantiation parameters of the accounting rules, which is too risky.
In the new generation accounting engine, 2238 entry rules are configured according to business class. In accounting tests, the most basic scope is to cover these entry rules. According to the conventional method, a business person can be matched with an entry rule after verifying an entry. The new generation system covers most of the business of banks, and relates to 142 kinds of large-scale business, and 2 thousands of manual verification and accounting cases. And the tester divides the work according to the service. In order to track the test progress, the coverage of the entry rule of each application component at the front end needs to be counted every day. Filling out and summarizing manual checklists by testers every day and calculating coverage rate is labor intensive and error prone.
In summary, the following problems still exist in the existing testing method for accounting entry: firstly, an accounting correctness verification test of an accounting engine depends on a plurality of front-end application components in the aspects of development progress, environment, transaction cases, testers and the like, and the accounting engine cannot independently complete functional correctness verification and cannot verify the correctness of instantiation of accounting parameters in advance; secondly, the accounting result and the error reason need manual investigation by an accounting engine technician; thirdly, each application component test case needs to be manually registered by each component tester according to the coverage degree of the accounting entry rule, so that the manual registration amount is large, and the management is complex.
Disclosure of Invention
In view of the above, the present invention provides a full-entry automatic testing method and apparatus, so that an accounting engine can independently verify correctness of its own function and whether instantiation of an accounting parameter is correct, and effectively alleviate the problem of a large workload of accounting a processing result.
In a first aspect, an embodiment of the present invention provides a full entry automatic testing method, which is applied to an accounting engine, and the method includes: loading a full set of accounting parameters; the whole set of accounting parameters at least comprises an accounting type, an atomic action and an amount type; carrying out full-quantity combination on the accounting type, the atomic action and the money amount type to generate a full-coverage accounting running water; performing running water processing on the accounting running water to obtain running water information; the flow information at least comprises a detail entry; and comparing the detail entry with a preset accounting entry table to generate a test result.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of performing pipeline processing on the accounting pipeline to obtain pipeline information includes: checking the data integrity and the service validity of each transaction pipeline file in the accounting pipeline; if the transaction flow file passes the verification, the transaction flow file is divided into a plurality of virtual subtasks, and corresponding number of records to be processed are inserted into the file registration list according to the number of the virtual subtasks; the virtual subtask comprises a detail entry generation subtask and a transaction running registration file deletion subtask; sequentially searching each record to be processed in the file registration table, and processing the corresponding virtual subtask in the record to be processed; and if the processing is successful, generating a corresponding detail entry.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the method further includes: and if the verification fails or the processing fails, generating a corresponding error code and error information, and registering the error code and the error information into an accounting exception information table.
With reference to the first possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of generating the corresponding detailed entry includes: mapping the product information and the product condition information of the transaction flow file to an accounting type; and determining an accounting entry rule according to the accounting type, the atomic action and the money amount type, and generating a corresponding detail entry by combining the accounting entry rule.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of comparing the detailed entry with a preset accounting entry table to generate a test result includes: exporting the detail entry; the detailed entry includes: detail entry subject, loan direction and global event tracking number; the global event tracking number is formed by splicing an accounting type number, an atomic action number and a money amount type number; searching corresponding items of the detail entry subject and the loan direction in a preset accounting entry table according to the global event tracking number, and comparing the detail entry subject and the loan direction with the corresponding items; if the comparison is not consistent, the corresponding item in the accounting entry table is identified.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the step of deriving the detail entry includes: and exporting the detail entry by adopting a multithreading mode.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the step of generating a full-coverage accounting streamline by performing full-volume combination on the accounting type, the atomic action, and the money type includes: respectively exporting data files of the accounting type, the atomic action and the money amount type; according to the data file, carrying out full combination on the accounting type, the atomic action and the money amount type to obtain a full combination file; and generating a full-coverage accounting streamline by combining the full-amount combined file with the standard transaction streamline elements.
With reference to the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where before the step of loading the full set of accounting parameters, the method further includes: configuring a corresponding engine variable according to the to-be-tested accounting criteria; a full set of accounting parameters is configured under the engine variant.
With reference to the first aspect, an embodiment of the present invention provides an eighth possible implementation manner of the first aspect, where after the step of comparing the detailed entry with a preset accounting entry table to generate a test result, the method further includes: and carrying out component access success rate statistics, accounting range coverage rate statistics and accounting scene coverage rate statistics according to the detail entry and the test result.
In a second aspect, an embodiment of the present invention further provides a full entry automation testing apparatus, including: the parameter loading module is used for loading a whole set of accounting parameters; the whole set of accounting parameters at least comprises an accounting type, an atomic action and an amount type; the accounting flow generation module is used for carrying out full-amount combination on the accounting type, the atomic action and the money amount type to generate full-coverage accounting flow; the flow processing module is used for carrying out flow processing on the accounting flow to obtain flow information; the stream information at least comprises a detailed entry; and the comparison module is used for comparing the detailed entry with a preset accounting entry table to generate a test result.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a full-entry automatic testing method and a device, wherein the method is applied to an accounting engine and comprises the steps of loading a full set of accounting parameters; the whole set of accounting parameters at least comprises an accounting type, an atomic action and an amount type; carrying out full-quantity combination on the accounting type, the atomic action and the money amount type to generate a full-coverage accounting running water; performing running water processing on the accounting running water to obtain running water information; the stream information at least comprises a detailed entry; comparing the detail entry with a preset accounting entry table to generate a test result; the accounting engine can independently verify the correctness of the functions of the accounting engine and the correctness of instantiation of the accounting parameters, and the problem of large workload of accounting the processing results is effectively solved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for testing an all-ecological system according to an embodiment of the present invention;
fig. 2 is a flowchart of a full-entry automatic testing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of accounting engine transaction flow processing according to an embodiment of the present invention;
fig. 4 is a flowchart for publishing application component parameters according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a full-entry automatic testing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another full-entry automatic testing apparatus according to an embodiment of the present invention.
Icon:
51-parameter loading module; 52-accounting pipeline generation module; 53-a pipeline processing module; 54-an alignment module; 61-statistic module.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The accounting engine has a large function of generating the detail entry, but the process from the generation of the pipeline of the front-end application component to the receiving of the pipeline of the engine needs to be circulated, and the process from the receiving of the pipeline of the engine to the generation of the detail entry carries out validity check on the data item and matching of the pipeline information and the engine accounting parameters. Any errors that occur in these processes result in an inability to generate an entry. Since 61 front-end application components of a new generation access accounting engine exist at present and are all tested synchronously, limited technicians of the accounting engine can simply find the error reasons one by one manually, and the operators cannot imagine the error reasons. The problem of how to conveniently, effectively and quickly communicate the information interaction result among the assemblies becomes a difficult problem.
As shown in fig. 1, which is a flowchart of a testing method of a fully-ecological system according to an embodiment of the present invention, in an actual operation, first, a tester manually executes an accounting transaction case in a transaction system; secondly, after the transaction system generates a transaction pipeline, the transaction pipeline is transmitted to an accounting engine through an asynchronous data channel; then, after the data validity of the transaction running is checked by the accounting engine, an accounting entry is generated under the successful scene according to the running content matching accounting entry rule, and the error reason is recorded under the failed scene; finally, the tester checks the accounting entry and the error reason and manually registers the accounting entry rule coverage rate of each component.
For the testing method of the full-ecological system, the checking correctness of the accounting engine is dependent on a plurality of front-end application components in the aspects of development progress, environment, transaction case, testing personnel and the like, functional correctness checking cannot be independently completed in advance, and correctness of instantiation of checking parameters cannot be checked in advance. Moreover, the accounting result and the error cause of the method need manual investigation by an accounting engine technician, and cannot support concurrent testing under the condition that a large number of application components are accessed. In addition, each application component test case is manually registered by each component tester according to the coverage degree of the accounting entry rule, so that the manual registration amount is large, the management is complex, and the completeness of the test cannot be checked and calculated.
In summary, the prior art also has the problems that the accounting engine cannot independently verify the correctness of the functions of the accounting engine and whether the instantiation of the accounting parameters is correct, and the workload of accounting the processing result is large. Based on this, the full-entry automatic testing method and device provided by the embodiment of the invention enable the accounting engine to independently verify the correctness of the functions of the accounting engine and whether the instantiation of the accounting parameters is correct, and effectively solve the problem of large workload of accounting the processing results.
To facilitate understanding of the embodiment, a detailed description will be given to a full-entry automatic testing method disclosed in the embodiment of the present invention.
Example one
Fig. 2 is a flowchart of a full-entry automatic testing method according to an embodiment of the present invention, the method is applied to an accounting engine, and as shown in fig. 2, the method includes the following steps:
step S201: loading a full set of accounting parameters; the full set of accounting parameters includes at least an accounting type, an atomic action, and a monetary type.
First, the Accounting engine (Accounting Engines) is a data processor for collecting a contact database and other applications that process Accounting-related information. Second, accounting is the reflection and expression of economic facts (not only the contractual relationship between the bank and the client, but also other matters capable of influencing the economic benefits of the bank) according to specific rules, and aims to provide useful information for stakeholders. Here, when the accounting engine is operated to perform its own function test and parameter instantiation test, in order to ensure the completeness of the test and fully reflect the function condition of the accounting engine, all the accounting parameters that may be used by the accounting engine, that is, a complete set of accounting parameters, need to be loaded. Including at least an accounting type, an atomic action, and a monetary type.
In addition, in at least one possible implementation, before the accounting engine loads the complete set of accounting parameters, the corresponding engine variables may be configured according to the accounting criteria to be tested, and then the complete set of accounting parameters may be configured under the engine variables. The accounting criterion is a set of files for standardizing accounting and accounting reports of the accounting accounts, and aims to establish accounting processing on a fair and reasonable basis and enable comparison of accounting results among different subjects in different periods to be possible. Different accounting criteria may be used for different application scenarios, such as China Bank prison and American Bank prison.
Step S202: and carrying out full-quantity combination on the accounting type, the atomic action and the money amount type to generate the full-coverage accounting running water.
In this embodiment, first, data files of an accounting type, an atomic action, and a money amount type are respectively exported; secondly, according to the data file, carrying out full combination on the accounting type, the atomic action and the money amount type to obtain a full combination file; a full coverage accounting pipeline is then generated from the full portfolio in conjunction with the standard transaction pipeline elements.
Here, the total combination of the three parameters of the accounting type, the atomic action and the amount type covers all possible combinations, so that all possible combinations used in actual operation are covered. Similarly, the generated full-coverage accounting flow also comprises all possible types of accounting flow, so that all the accounting flows possibly used in the actual operation are covered.
Step S203: performing running water processing on the accounting running water to obtain running water information; the stream information includes at least a detailed entry.
Firstly, the data integrity and the service validity of each transaction flow file in the accounting flow are checked. And if the verification is passed, cutting the transaction flow file into a plurality of virtual subtasks, and inserting a corresponding number of to-be-processed records into the file registration table according to the number of the virtual subtasks. The virtual subtask includes a detail entry generation subtask and a transaction flow registration file deletion subtask.
Then, each record to be processed in the file registration table is sequentially searched, and the corresponding virtual subtask in the record to be processed is processed. And if the processing is successful, generating a corresponding detail entry. When generating the detail entry, firstly, mapping the product information and the product condition information of the transaction flow file to an accounting type; and secondly, determining an accounting entry rule according to the accounting type and the atomic action and the money amount type, and generating a corresponding detail entry by combining the accounting entry rule.
In the process of the pipeline processing, if the verification fails or the processing fails, a corresponding error code and error information are generated and registered in the abnormal accounting information table.
Step S204: and comparing the detail entry with a preset accounting entry table to generate a test result.
Here, a detailed entry is preceded. The detailed entry includes: the details record the subject, the loan direction, and the global event tracking number. The global event tracking number is formed by splicing an accounting type number, an atom action number and a money amount type number, and is convenient for comparison of subsequent detailed entries. In one embodiment, the detailed entry may be derived concurrently in a multi-threaded manner.
Then, according to the global event tracking number, searching a preset accounting entry table for corresponding items of the detail entry subject and the loan direction, and comparing the detail entry subject and the loan direction with the corresponding items. If the comparison is inconsistent, the corresponding item in the accounting entry table is identified so as to facilitate the subsequent quick search of the abnormal information.
Therefore, the full entry automatic test method provided by the embodiment of the invention does not need the front-end application component to provide the accounting parameters and the running files, can independently configure and load the full set of accounting parameters and generate the full-coverage running files, automatically loads the full set of accounting parameters and performs running processing on the full-coverage running files, compares the generated detailed entry with the preset accounting entry table to obtain the test result, and quickly verifies whether the functional correctness of the accounting engine and the instantiation of the accounting parameters are correct or not on the premise of not depending on the front-end component, the test environment and the testers.
Example two
The embodiment of the invention introduces a transaction flow processing process in a full-entry automatic test method so as to better understand the operation of the test method.
Referring to fig. 3, a flow chart of transaction pipeline processing of an accounting engine according to an embodiment of the present invention is shown, in the embodiment shown in fig. 3, for an acquired transaction pipeline file, the accounting engine starts a workflow to process through a job scheduling platform. The specific treatment process comprises the following steps:
the first step is to check the transaction flow file and segment Job by task. Firstly, checking the data integrity and the service validity of a pipeline file; then, after passing the verification, the stream file is divided into 1-10 unequal virtual subtasks according to the size of the file, 1-10 records to be processed are inserted into the file registry, and the execution of the next layer of JOB is driven.
Second, the detail entry generates Job _01 to Job _ 10. Searching whether a to-be-processed subtask allocated to the user exists in a file registration table according to the file name and the batch number (01-10), and if no record is found, successfully returning; and if the record to be processed is found, processing the starting line to the ending line of the clear transaction flow in the subtask to be processed.
And thirdly, deleting Job by the transaction flow registration file. If the Job is executed, the checking and task splitting of the checking and calculating pipeline file is finished, and the to-be-processed task is inserted into the file registration table.
In addition, after the previous two steps are executed, the Job is updated according to the processing state of the drive transaction running file, the processing result of the record to be processed in the file registration table is searched according to the file name, and the overall completion condition of the accounting information file is updated.
EXAMPLE III
The embodiment provides another full-entry automatic testing method, and the method introduces another way for the accounting engine to obtain the accounting parameters aiming at the situation that a front-end application component accesses the accounting engine in actual operation.
Referring to fig. 4, which is a flowchart for publishing parameters of an application component according to an embodiment of the present invention, in an implementation shown in fig. 4, each product component maintains mapping parameters between products and accounting types, synchronizes a full parameter file to a data warehouse, automatically obtains the full parameter file when an accounting engine monitors that a parameter file in an SA area of the data warehouse is updated, and refreshes a cache for the parameters after verification.
Specifically, firstly, an application component issues a product and an accounting type mapping parameter (a mapping condition definition table, an accounting type mapping main table and a sub table) to a data warehouse; secondly, the application component sends out a customs account notice to the accounting engine; then, the accounting engine acquires a parameter file issued by the application component from the data warehouse SA area; then, the accounting engine refreshes the local parameter copy by using the parameter file issued by the application component and updates the memory; finally, accounting engine internal parameters are maintained into the system through a parameter maintenance interface, and accounting support is provided for different accounting criteria by setting different engine variables for the parameters.
Example four
The embodiment of the invention provides another full-entry automatic testing method aiming at the problems that in actual operation, the result feedback quantity of information interaction between a front-end application component and a accounting engine is large, the related range is wide, and the workload of accounting processing results in the later period is large. On the basis of fig. 2, after the detail entry is compared with a preset accounting entry table to generate a test result, the test method also performs component access success rate statistics, accounting range coverage rate statistics and accounting scene coverage rate statistics according to the detail entry and the test result.
In addition, during the process of carrying out full-entry automatic testing by the accounting engine, an accounting exception information table with detailed entries and registered error codes and error information is generated. In one possible implementation mode, an accounting result query service system is established based on the test result, the detail entry and the accounting abnormal information table. In the query system, query users, query authorities and query menus can be dynamically configured, all configurations are stored in a cache in a structured form, and the query service system takes effect by refreshing the cache. Moreover, the query result supports single query and large data volume batch export, the background adopts a multithreading mode for concurrent export, final batch files are generated by combination, and real-time and batch verification can be supported so as to solve the problems of few testing personnel, scattered testing fields and the like. In addition, the maximum quantity of batch export results supports dynamic configuration, and the query service refreshes the cache to take effect after the update is completed.
The full entry automatic testing method provided by the embodiment can effectively solve the problem of large workload of accounting the processing result in the existing accounting entry testing method.
EXAMPLE five
As shown in fig. 5, which is a schematic structural diagram of a full-entry automatic testing apparatus according to an embodiment of the present invention, as can be seen from fig. 5, the apparatus includes a parameter loading module 51, an accounting pipeline generation module 52, a pipeline processing module 53, and a comparison module 54, which are connected in sequence, where functions of each module are as follows:
a parameter loading module 51, configured to load a full set of accounting parameters; the whole set of accounting parameters at least comprises an accounting type, an atomic action and an amount type;
an accounting flow generation module 52, configured to perform a full-amount combination on the accounting type, the atomic action, and the amount type to generate a full-coverage accounting flow;
the running water processing module 53 is configured to perform running water processing on the accounting running water to obtain running water information; the stream information at least comprises a detailed entry;
and the comparison module 54 is configured to compare the detailed entry with a preset accounting entry table to generate a test result.
On the basis of fig. 5, as shown in fig. 6, the device is a schematic structural diagram of another full entry automation testing device, the device further includes a statistical module 61, the statistical module 61 is connected to the comparison module 54, and the statistical module is configured to perform component access success rate statistics, accounting range coverage rate statistics, and accounting scene coverage rate statistics according to the detailed entry and the testing result.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (9)

1. A full-entry automatic testing method is applied to an accounting engine and comprises the following steps:
loading a full set of accounting parameters; the full set of accounting parameters at least comprises an accounting type, an atomic action and an amount type;
performing full-amount combination on the accounting type, the atomic action and the money amount type to generate a full-coverage accounting running water;
performing running water processing on the accounting running water to obtain running water information; the stream information at least comprises a detailed entry;
comparing the detailed entry with a preset accounting entry table to generate a test result;
the step of performing pipeline processing on the accounting pipeline to obtain pipeline information includes:
verifying the data integrity and the service validity of each transaction pipeline file in the accounting pipeline;
if the verification is passed, the transaction flow file is divided into a plurality of virtual subtasks, and corresponding number of records to be processed are inserted into a file registry according to the number of the virtual subtasks; the virtual subtask comprises a detail entry generation subtask and a transaction running registration file deletion subtask;
sequentially searching each record to be processed in the file registration table, and processing the corresponding virtual subtask in the record to be processed;
and if the processing is successful, generating a corresponding detail entry.
2. The fully-cataloged automated testing method of claim 1, further comprising:
and if the verification fails or the processing fails, generating a corresponding error code and error information, and registering the error code and the error information into an accounting exception information table.
3. The full entry automated testing method of claim 1, wherein said step of generating a corresponding detailed entry comprises:
mapping the product information and the product condition information of the transaction flow file to the accounting type;
and determining an accounting entry rule according to the accounting type, the atomic action and the money amount type, and generating a corresponding detail entry by combining the accounting entry rule.
4. The full entry automated testing method of claim 1, wherein the step of comparing the detailed entry with a predetermined accounting entry table to generate a test result comprises:
exporting the detail entry; the detail entry comprises: detail entry subject, loan direction and global event tracking number; the global event tracking number is formed by splicing an accounting type number, an atomic action number and a money amount type number;
searching corresponding items of the detail entry subjects and the loan direction in a preset accounting entry table according to the global event tracking number, and comparing the detail entry subjects and the loan direction with the corresponding items;
and if the comparison is inconsistent, identifying the corresponding item in the accounting entry table.
5. The full entry automated testing method of claim 4, wherein said step of deriving said detailed entry comprises:
and exporting the detail entries by adopting a multithreading mode.
6. The fully-indexed automated testing method of claim 1, wherein the step of generating a fully-covered accounting pipeline from a full combination of the accounting type, the atomic action, and the monetary type comprises:
exporting data files of the accounting type, the atomic action and the money amount type respectively;
according to the data file, carrying out full-quantity combination on the accounting type, the atomic action and the money amount type to obtain a full-quantity combination file;
and generating a full-coverage accounting flow by combining the full-amount combined file with the standard transaction flow elements.
7. The fully-catalogued automated testing method of claim 1 further comprising, prior to said step of loading a full set of accounting parameters:
configuring a corresponding engine variable according to the to-be-tested accounting criteria;
and configuring a complete set of accounting parameters under the engine variant.
8. The full entry automated testing method of claim 1, wherein after the step of comparing the detailed entry with a predetermined accounting entry table to generate a testing result, the method further comprises:
and carrying out component access success rate statistics, accounting range coverage rate statistics and accounting scene coverage rate statistics according to the detail entry and the test result.
9. The utility model provides a full entry automatic testing arrangement which characterized in that includes:
the parameter loading module is used for loading a whole set of accounting parameters; the full set of accounting parameters at least comprises an accounting type, an atomic action and an amount type;
the accounting flow generation module is used for carrying out full-amount combination on the accounting type, the atomic action and the money amount type to generate full-coverage accounting flow;
the flow processing module is used for carrying out flow processing on the accounting flow to obtain flow information; the stream information at least comprises a detailed entry;
the comparison module is used for comparing the detailed entry with a preset accounting entry table to generate a test result;
the flow processing module is further configured to:
verifying the data integrity and the service validity of each transaction pipeline file in the accounting pipeline;
if the verification is passed, the transaction flow file is divided into a plurality of virtual subtasks, and corresponding number of records to be processed are inserted into a file registry according to the number of the virtual subtasks; the virtual subtask comprises a detail entry generation subtask and a transaction running registration file deletion subtask;
sequentially searching each record to be processed in the file registration table, and processing the corresponding virtual subtask in the record to be processed;
and if the processing is successful, generating a corresponding detail entry.
CN201810694553.XA 2018-06-28 2018-06-28 Full-entry automatic testing method and device Active CN108897686B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810694553.XA CN108897686B (en) 2018-06-28 2018-06-28 Full-entry automatic testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810694553.XA CN108897686B (en) 2018-06-28 2018-06-28 Full-entry automatic testing method and device

Publications (2)

Publication Number Publication Date
CN108897686A CN108897686A (en) 2018-11-27
CN108897686B true CN108897686B (en) 2022-05-27

Family

ID=64347243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810694553.XA Active CN108897686B (en) 2018-06-28 2018-06-28 Full-entry automatic testing method and device

Country Status (1)

Country Link
CN (1) CN108897686B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382081B (en) * 2020-03-27 2023-04-25 中国建设银行股份有限公司 Entry verification test method and device
CN111797019B (en) * 2020-07-03 2023-06-20 中国建设银行股份有限公司 Transaction accounting test method and device, electronic equipment and storage medium
CN112101911A (en) * 2020-09-22 2020-12-18 云账户技术(天津)有限公司 Method and device for generating accounting entry
CN116340187B (en) * 2023-05-25 2023-08-15 建信金融科技有限责任公司 Rule engine migration test method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488614A (en) * 2015-11-20 2016-04-13 张学林 Accounting teaching demonstration system for practical simulation module
CN106022902A (en) * 2016-05-13 2016-10-12 中国建设银行股份有限公司 Accounting method and device
CN107480116A (en) * 2017-06-30 2017-12-15 厦门快商通科技股份有限公司 It is a kind of to automatically generate accounting item, the method and system of accounting entry

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7269597B2 (en) * 2002-12-16 2007-09-11 Accelrys Software, Inc. Chart-ahead method for decision tree construction

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105488614A (en) * 2015-11-20 2016-04-13 张学林 Accounting teaching demonstration system for practical simulation module
CN106022902A (en) * 2016-05-13 2016-10-12 中国建设银行股份有限公司 Accounting method and device
CN107480116A (en) * 2017-06-30 2017-12-15 厦门快商通科技股份有限公司 It is a kind of to automatically generate accounting item, the method and system of accounting entry

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
把握八个关系,提高审计质量--关于风险导向审计理念在实务中运用的思考;李洪;《中国注册会计师》;20150131(第1期);第91-95页 *

Also Published As

Publication number Publication date
CN108897686A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
CN108897686B (en) Full-entry automatic testing method and device
Zhou et al. Fault analysis and debugging of microservice systems: Industrial survey, benchmark system, and empirical study
CN110309071B (en) Test code generation method and module, and test method and system
US7757125B2 (en) Defect resolution methodology and data defects quality/risk metric model extension
US20110107307A1 (en) Collecting Program Runtime Information
CN113010413B (en) Automatic interface testing method and device
CN106021054A (en) Method and apparatus for testing upgrading and downgrading stability of BMC
CN115328784A (en) Agile interface-oriented automatic testing method and system
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN114817022A (en) Railway electronic payment platform test method, system, equipment and storage medium
CN112559525B (en) Data checking system, method, device and server
US10394793B1 (en) Method and system for governed replay for compliance applications
US11269759B2 (en) Intelligent regression fortifier
CN115840560A (en) Management system for software development process
US20120198281A1 (en) Validation rules for process validation
Hryszko et al. Cost effectiveness of software defect prediction in an industrial project
US7516048B2 (en) Externalized metric calculation engine
US9600783B2 (en) Evaluating total cost of ownership
An et al. Just-in-time flaky test detection via abstracted failure symptom matching
Ecar et al. AutoCosmic: COSMIC automated estimation and management tool
CN111597101A (en) SDK access state detection method, computer device and computer readable storage medium
Górski et al. Towards automation of IT systems repairs
CN113010566B (en) Batch processing result checking method and device
Hamed et al. A Data warehouse Testing Strategy for Banks
CN115756393A (en) Risk assessment method and device based on research and development cycle, processor and electronic 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
GR01 Patent grant
GR01 Patent grant