Bill data processing method, electronic equipment, storage medium and program
By automatically processing discounted test data of bills, the problem of low efficiency of manual data preparation is solved, and efficient and accurate test data generation is achieved.
Patent Information
- Application Number
- CN202510610629.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-13
- Publication Date
- 2025-08-15
AI Technical Summary
In the prior art, the discounted test data process for manual preparation of bills is long and time-consuming, the data preparation efficiency is low, and the non-test function has a great impact on the preparation of test data.
By obtaining the associated process interface information of the target bill, the associated independent parameter file and the discount test data output template script, the bill data automatic processing script is automatically output, and the discount test data is automatically output.
The automated processing of bill discount test data is realized, the data processing efficiency is improved, the dependence of manual preparation is reduced, and the accuracy and flexibility of the test data is ensured.
Smart Images

Figure CN120492342A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical fields of data processing and computer software application, and in particular to a bill data processing method, device, electronic device, storage medium and program. Background Art
[0002] As electronic invoice business volume continues to rise, the functionality of electronic invoice systems is growing, and business rules are becoming increasingly complex. Electronic invoice business processes are lengthy, with strong dependencies between businesses, and test data cannot be reused. When testing transactions such as rediscount, repurchase, and rediscount, testers must use discounted test data. Furthermore, the maximum number of tickets allowed per transaction is limited, for example, to 500. Therefore, the demand for discounted test data is high.
[0003] Bills are essential data when testing electronic bill systems. Any operation requires bills, and bill generation requires several steps: bill issuance application, acceptance request, acceptance response, bill collection application, and bill collection response. After bill generation, bills must undergo discounting, including both the discount application and discount response process, before they can enter the secondary market. Only after entering the secondary market can bills be transferred between financial institutions or non-legal entities through transactions such as rediscount, repurchase, and rediscount. Testing rediscount, repurchase, and rediscount operations requires a large amount of discount test data. Currently, testers can only prepare one piece of bill discount test data at a time.
[0004] In the process of realizing the present invention, the inventors found that the existing technology has the following defects: manually preparing discount test data for bills requires completing processes such as bill issuance application, acceptance application, acceptance reply, bill collection application, bill collection reply, discount application and discount reply. The process of preparing discount test data is long and time-consuming, and non-test functions in the data preparation process have a great impact on the test data preparation, resulting in low data preparation efficiency. Summary of the Invention
[0005] Embodiments of the present invention provide a bill data processing method, device, electronic device, storage medium, and program, which can improve the processing efficiency of bill discount test data, and further improve the testing efficiency based on the discount test data.
[0006] According to one aspect of the present invention, a method for processing bill data is provided, comprising:
[0007] Obtaining a bill data automatic processing script for a target bill; wherein the bill data automatic processing script includes associated process interface information, associated independent parameter files, and a discount test data output template script for the target bill;
[0008] Inputting the bill input parameter information of the target bill into the associated independent parameter file of the bill data automatic processing script;
[0009] The bill test environment is input into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0010] According to another aspect of the present invention, there is provided a bill data processing device, comprising:
[0011] A bill data automatic processing script acquisition module is used to acquire the bill data automatic processing script of the target bill; wherein the bill data automatic processing script includes the associated process interface information of the target bill, the associated independent parameter file, and the discount test data output template script;
[0012] a bill input parameter information input module, configured to input the bill input parameter information of the target bill into an associated independent parameter file of the bill data automatic processing script;
[0013] The discount test data output module is used to input the bill test environment into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0014] According to another aspect of the present invention, an electronic device is provided, comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program that can be executed by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the bill data processing method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the bill data processing method according to any embodiment of the present invention when executed.
[0019] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the bill data processing method according to any embodiment of the present invention is implemented.
[0020] The embodiment of the present invention obtains a target bill's bill data automatic processing script, including the target bill's associated process interface information, associated independent parameter files, and a discount test data output template script. Then, the target bill's bill input parameter information is input into the associated independent parameter files of the bill data automatic processing script. Furthermore, the bill data automatic processing script is input into a bill test environment to enable the bill data automatic processing script to automatically output the target bill's discount test data via the discount test data output template script. The above technical solution implements an automated processing method for bill discount test data, resolving the low data preparation efficiency issue associated with the existing manual preparation of bill discount test data. This improves the processing efficiency of bill discount test data, thereby further improving the efficiency of testing based on discount test data.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 This is a flow chart of a bill data processing method provided by an embodiment of the present invention;
[0024] Figure 2 This is a flow chart of a bill data processing method provided by the second embodiment of the present invention;
[0025] Figure 3 This is a schematic diagram showing the effect of the relationship between process interfaces provided by the second embodiment of the present invention;
[0026] Figure 4 is a schematic diagram of a bill data processing device provided by an embodiment of the present invention;
[0027] Figure 5 A schematic structural diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] Figure 1 This is a flow chart of a bill data processing method provided by an embodiment of the present invention. This embodiment is applicable to the case where the bill discount test data is automatically output according to the bill data automatic processing script. The method can be executed by a bill data processing device, which can be implemented by software and / or hardware and can generally be integrated into an electronic device. The electronic device can be a terminal device or a server device. As long as it can execute the bill data processing method, the embodiment of the present invention does not limit the device type of the electronic device. Accordingly, if Figure 1 As shown, the method includes the following operations:
[0031] S110. Obtain the bill data automatic processing script of the target bill; wherein the bill data automatic processing script includes the associated process interface information of the target bill, the associated independent parameter file and the discount test data output template script.
[0032] The target bill can be any type of electronic bill, including but not limited to electronic bills of exchange, checks, and promissory notes. The present embodiment does not limit the specific type of the target bill. For example, the target bill can be an electronic commercial bill. An electronic commercial bill is a bill issued by the drawee, authorizing the payee to unconditionally pay a fixed amount to the payee or holder on a specified date. It can be endorsed, pledged, or discounted. The bill data automatic processing script can be a script for fully automatically generating discount test data. The associated process interface information can be the interface information involved in the system process for processing the target bill. The associated independent parameter file can be a parameter file related to the target bill, which can be stored independently of the script or program. Discounting refers to the act of the holder transferring the bill to a loan-qualified institution by paying a certain interest before the bill's maturity date. The discount test data can be test data generated by simulating discounting, i.e., test data after the bill is discounted. The discount test data output template script can be a script for automatically outputting discount test data. It is understandable that the discount test data output template script can be used as a script nested within the bill data automatic processing script.
[0033] In an embodiment of the present invention, when it is necessary to generate discount test data applicable to a target bill, the target bill's bill data automatic processing script can be first obtained. The target bill's bill data automatic processing script includes the target bill's associated process interface information, associated independent parameter files, and a discount test data output template script. The associated process interface information included in the bill data automatic processing script is the interface information for capturing the target bill's process nodes, and the associated independent parameter files are parameter files stored independently of the script, which can be used to independently configure the parameters required for the automatic output of the target bill's discount test data. The discount test data output template script can then obtain the user-configured parameters based on the associated independent parameter files, and then automatically output the target bill's discount test data on demand according to the user-configured parameters.
[0034] S120: Input the bill input parameter information of the target bill into the associated independent parameter file of the bill data automatic processing script.
[0035] The bill input parameter information may be information used to configure the parameters of the associated independent parameter file, and may include the values of each parameter in the associated independent parameter file.
[0036] After obtaining the bill data automatic processing script for the target bill, the test requirements for the discount test data can be determined. Based on these test requirements, the bill input parameter information for the target bill can then be determined. Furthermore, the bill input parameter information for the target bill can be entered into the associated independent parameter file of the bill data automatic processing script. This allows for independent configuration of the associated independent parameter file, eliminating the need to enter parameter configuration information into the script before each discount test data output, and achieving decoupling between the parameter file and the script file.
[0037] S130. Input a bill test environment into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0038] The bill test environment may be a test environment currently specified for the bill data automatic processing script.
[0039] Because the operation of the relevant interfaces involved in the associated process interface information in the bill data automatic processing script requires a specific operating environment, a bill test environment can be input into the script when the automatic processing script is launched. For example, the URL (Uniform Resource Locator) address of the server corresponding to the bill discount process of the target bill can be input into the bill data automatic processing script as the bill test environment. The bill data automatic processing script can then automatically launch and confirm the test environment based on the URL address of the bill discount process.
[0040] After the automatic bill data processing script is launched, it retrieves relevant interface parameter information and other related parameter information by reading the associated independent parameter file. Based on this information, it then runs the various interfaces of the target bill's discount processing flow in the specified bill test environment to automate the target bill's discount processing flow. It also launches the discount test data output template script, which automatically outputs the target bill's discount test data during the target bill's discount processing flow. Optionally, this discount test data can be used to test the performance of transactions such as rediscount, repurchase, and rediscount.
[0041] As can be seen from this, in the aforementioned target bill discount test data processing flow, testers only need to configure the bill input parameter information associated with the independent parameter file and specify the bill test environment for the bill data automatic processing script. This will then launch the target bill data automatic processing script to automatically batch generate discount test data for the target bill, eliminating the need for testers to manually prepare and process each piece of discount test data. In other words, testers only need to maintain the relevant parameter files to batch generate discount test data by launching the bill data automatic processing script, enabling fast and accurate test preparation. This improves the processing efficiency of bill discount test data, and thus the efficiency of testing based on discount test data. It can also reduce the impact of non-test functions on test data preparation, while ensuring the authenticity and accuracy of discount test data.
[0042] The embodiment of the present invention obtains a target bill's bill data automatic processing script, including the target bill's associated process interface information, associated independent parameter files, and a discount test data output template script. Then, the target bill's bill input parameter information is input into the associated independent parameter files of the bill data automatic processing script. Furthermore, the bill data automatic processing script is input into a bill test environment to enable the bill data automatic processing script to automatically output the target bill's discount test data via the discount test data output template script. The above technical solution implements an automated processing method for bill discount test data, resolving the low data preparation efficiency issue associated with the existing manual preparation of bill discount test data. This improves the processing efficiency of bill discount test data, thereby further improving the efficiency of testing based on discount test data.
[0043] Figure 2 This is a flowchart of a bill data processing method provided by the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods are provided for obtaining the associated process interface information and associated independent parameter files of the target bill, and automatically outputting the discount test data of the target bill through the bill data automatic processing script. Figure 2 As shown, the method of this embodiment may include:
[0044] S210: Acquire the associated process interface information and the associated independent parameter file of the target bill.
[0045] It is understood that before using the target bill's bill data automatic processing script to automatically output the target bill's discount test data, it is first necessary to configure and generate the target bill's bill data automatic processing script. When generating the target bill's bill data automatic processing script, the target bill's associated process interface information and associated independent parameter file can be first obtained. For example, when an electronic commercial bill is used as the target bill, its associated process interface information can be obtained from the electronic commercial bill system of the electronic commercial bill. At the same time, the relevant parameters required for the electronic commercial bill are independently configured to obtain its associated independent parameter file. The associated process interface information can represent the processing flow of the target bill in the corresponding bill system, and the associated independent parameter file can represent the test data requirements for the target bill's corresponding discount test data.
[0046] In an optional embodiment of the present invention, obtaining the associated process interface information of the target bill may include: determining the bill discount process of the target bill; capturing the process interface message information of the bill discount process of the target bill in the target environment to obtain the associated process interface information of the target bill.
[0047] The bill discount process may be a process for discounting a target bill. The target environment may be an environment for executing the bill discount process for the target bill. The process interface message information may include interface information and related message information in the process.
[0048] It is understandable that the bill discount process for the target bill is related to the system that processes the target bill. If the composition of the system that processes the target bill is different, the bill discount process for the target bill may also be different. Therefore, the system that processes the target bill can be determined first, and then the bill discount process for the target bill can be determined based on the system that processes the target bill. In one example, assuming that an electronic bill is used as the target bill, the system that processes the electronic bill can be called an electronic bill system. The electronic bill system can be a comprehensive business processing platform that receives, registers, and forwards electronic bill data messages and provides related services such as electronic bill monetary payment and fund settlement. It is usually divided into a user end, a service end, and a front end. The bill discount process for the electronic bill can be determined based on the overall processing flow of the electronic bill system.
[0049] Typically, the bill discount process for a target bill includes several steps: bill issuance application, acceptance request, acceptance reply, bill collection application, bill collection reply, discount application, and discount reply. Therefore, we can capture all interfaces and message information during the execution of this bill discount process in the target environment to obtain the associated process interface information for the target bill.
[0050] It should be noted that the target environment used to execute the bill discounting process and the bill test environment input into the bill data automatic processing script can be the same environment or different environments. For example, assuming that the associated process interface information of the bill discounting process is captured in environment A, the bill test environment input into the bill data automatic processing script can be environment A, or environment B or environment C. Optionally, the bill test environment can be one or more, for example, it can be environment A, or environment A and environment B, or environment B and environment C. The advantage of this setting is that it can improve the flexibility of the application of the associated process interface information of the bill discounting process, and there is no need to repeatedly capture the associated process interface information of different environments.
[0051] In an optional embodiment of the present invention, obtaining the associated independent parameter file of the target bill may include: concatenating the process interfaces in the bill discount process of the target bill according to the business attribute information of the target bill, and determining the process interface dependency relationship based on the concatenation result of the process interfaces; determining the process interface dependency field based on the process interface dependency relationship, and parameterizing the process interface dependency field to obtain a first associated independent parameter; obtaining the bill transaction associated information of the target bill, and parameterizing the bill transaction associated information to obtain a second associated independent parameter; storing the first associated independent parameter and the second associated independent parameter in an independent parameter file to obtain the associated independent parameter file.
[0052] The business attribute information of the target bill may include attribute information such as the business logic and business sequence of the target bill. The process interface is the interface involved in the bill discount process of the target bill. The process interface dependency is the dependency relationship between the various process interfaces. The process interface dependency field may be a field with a dependency relationship extracted based on the process interface. The first associated independent parameter may be a parameter type obtained by parameterizing the process interface dependency field. The bill transaction associated information of the target bill may include bill transaction-related information such as basic bill information, counterparty information for each business, and public parameters. The second associated independent parameter may be a parameter type obtained by parameterizing the bill transaction associated information. An independent parameter file may be a file used to independently store parameter information. The independent parameter file is decoupled from the script file and stored separately and independently.
[0053] Specifically, the business attributes of the target bill, such as its business logic and business sequence, can be first determined. Based on this business attribute information, the process interfaces involved in the bill discounting process for the target bill can then be serially linked. The dependencies between these interfaces can then be determined based on the resulting serialization. Furthermore, based on the process interface dependencies, the process interface dependent fields can be determined, and these process interface dependent fields can be parameterized to obtain the first associated independent parameter. Optionally, regular expressions can be used to implement the parameterization between interfaces.
[0054] Figure 3 This is a schematic diagram of the effect of the relationship between process interfaces provided by the second embodiment of the present invention. In a specific example, Figure 3 As shown, the bill discounting process for the target bill involves three transaction links: Transaction A, Transaction B, and Transaction C. By analyzing the business logic relationships and business sequence between interfaces, we can determine that the return values of Transaction A's output interfaces O1.1 and O1.2 serve as input values for Transaction B's input interfaces I2.1 and I2.2. Simultaneously, the output values of Transaction B's input interfaces I2.1 and I2.2 are input to output interface O2.1. Transaction B's output interface O2.1 serves as the input value for Transaction C's input interface I3.1, and Transaction A's output interface O1.3 serves as the input value for Transaction C's input interface I3.2. The output values of Transaction C's input interfaces I3.1 and I3.2 are input to output interface O3.1. Optionally, when only the dependency relationship between output interfaces needs to be extracted, the series relationship between O1.1, O1.2, O2.1, O1.3 and O3.1, that is, the series mapping relationship of O1.1, O1.2, O2.1, O1.3-O3.1 can be extracted by regular expression.
[0055] The target bill processing process involves not only process interface information but also bill transaction-related information. Therefore, it is also possible to obtain bill transaction-related information, including basic bill information, counterparty information for each business, and public parameters. This bill transaction-related information is then parameterized to obtain a second, independent parameter.
[0056] For example, the target bill's issue date, maturity date, bill type, issuer information, payee information, acceptor information, discounter, and transaction amount data can be parameterized to form an independent parameter file to avoid entering such parameter information in the script, thereby facilitating the maintenance of the bill data automatic processing script.
[0057] After parameterizing the two parameter types, process interface and bill transaction association information, to obtain corresponding first and second association independent parameters, the first and second association independent parameters can be stored in an independent parameter file to obtain an association independent parameter file. That is, the association independent parameter file includes both process interface parameter information and bill transaction parameter information.
[0058] The above technical solution separates the script from the parameter data used by the script by recording the parameterized data into an independent parameter file. All input parameter data are independently maintained in the parameter file, thereby improving the maintainability of the automatic bill data processing script.
[0059] S220: Determine the bill verification node of the target bill in the bill discount process, and configure a query component according to the bill verification rule of the bill verification node.
[0060] The bill verification node may be a node in the bill discount process that requires verification. The query component may be used to verify bill association status information. The bill association status information may be information related to the current verification status of the target bill.
[0061] To further improve the accuracy and reliability of the target bill's discount test data, the steps in the bill discount process requiring verification can be designated as bill verification nodes. Query components can be configured based on the specific bill verification rules used at these nodes. These query components can be used to verify bill-related status information, including bill status, bill circulation status, and underlying holders, thereby ensuring the authenticity and accuracy of the discount test data.
[0062] In a specific example, a query component can be set up after a bill issuance application. This query component can query and verify whether the bill status is issued or awaiting receipt, whether the current bill holder is the issuer, and whether the next bill holder is the issuer. A query component can also be set up after a prompt for acceptance application. This query component can query and verify whether the bill status has been updated to issued or locked, whether the current bill holder is the issuer, and whether the next bill holder has been updated to acceptor. A query component can also be set up after an acceptance reply. This query component can query and verify whether the bill status has been updated to accepted or awaiting receipt, and whether the current bill holder has been updated to issuer. A query component can also be set up after a prompt for receipt application. This query component can query and verify whether the bill status has been updated to accepted or locked, whether the current bill holder has not been changed to issuer, and whether the next bill holder has been updated to beneficiary. A query component can also be set up after a prompt for receipt reply. This query component can query and verify whether the bill status has been updated to received or negotiable, whether the next bill holder has not been changed to beneficiary, and whether the current bill holder has been updated to beneficiary. A query component can be configured for discount applications. This component verifies whether the bill status is received and locked, whether the current holder is the discount applicant, and whether the next holder is the receiving bank. A query component can also be configured for discount responses. This component verifies whether the bill status is received and negotiable, and whether the current holder has been updated to the receiving bank. Each process verification must pass the query component before proceeding to the next process, ensuring the authenticity and accuracy of discount test data.
[0063] S230. Configure the discount test data output template script for outputting the discount test data of the target bill.
[0064] In an embodiment of the present invention, optionally, the discount test data output template script can output the discount test data on demand according to a customized template. The output content may include but is not limited to: ticket number, interval, expiration date and other information. The tester can also configure personalized customization functions for the discount test data output template script, such as making the discount test data output template script have the function of outputting information such as the discounter and the discounter, so as to meet personalized testing needs and improve the flexibility of discount test data processing.
[0065] S240. Generate the bill data automatic processing script according to the associated process interface information, the associated independent parameter file, the query component and the discount test data output template script.
[0066] In an embodiment of the present invention, an automatic bill data processing script can optionally be generated based on the associated process interface information, the associated independent parameter file, and the discount test data output template script. Accordingly, if a corresponding query component is configured for the bill verification rules of each bill verification node, the automatic bill data processing script can also be generated by combining the associated process interface information, the associated independent parameter file, the query component, and the discount test data output template script. This allows the automatic bill data processing script to also automatically verify bill association status information.
[0067] S250: Input the bill input parameter information of the target bill into the associated independent parameter file of the bill data automatic processing script.
[0068] Optionally, bill input parameter information may include, but is not limited to, information such as the issue date, maturity date, bill type, issuer information, payee information, acceptor information, discount bank, and transaction amount. Specifically, information such as the issue date, maturity date, bill type, issuer information, payee information, acceptor information, discount bank, and transaction amount can be input as bill input parameter information into a related independent parameter file within the bill data automatic processing script. In other words, the parameters such as the issue date, maturity date, bill type, issuer information, payee information, acceptor information, discount bank, and transaction amount in the related independent parameter file can be configured as needed.
[0069] S260: Input a bill test environment into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0070] In an optional embodiment of the present invention, before starting the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script, it can also include: determining the data demand for the discount test data of the target bill; and configuring the number of loop runs of the bill data automatic processing script according to the data demand for the discount test data of the target bill.
[0071] Optionally, at least one set of bill input parameter information can be configured in the associated independent parameter file. Each set of bill input parameter information in the associated independent parameter file can generate a corresponding piece of discount test data. Therefore, in actual application, the number of bill input parameter information configured can be adjusted based on the data volume required for discount test data of the target bill.
[0072] Optionally, the automatic bill data processing script can sequentially read the bill input parameter information in the order in which the bill input parameter information is configured in the associated independent parameter file. Each time the automatic bill data processing script runs, it reads the set of bill input parameter information configured in the associated independent parameter file and automatically outputs the corresponding discount test data based on the read bill input parameter information through the discount test data output template script. Therefore, before running the automatic bill data processing script, you can configure the number of times the automatic bill data processing script should run in a loop to specify the total number of times the automatic bill data processing script should run.
[0073] Correspondingly, after the configuration of the number of loop runs of the bill data automatic processing script is completed, the bill test environment can be input into the bill data automatic processing script. The bill data automatic processing script can be started after confirming the bill test environment, and read the bill input parameter information of the target bill configured in the associated independent parameter file to start the discount test data output template script based on the associated independent parameter file configured with the bill input parameter information. The discount test data of the target bill is automatically output through the discount test data output template script, thereby realizing the automated processing flow of the discount test data.
[0074] In an optional embodiment of the present invention, while starting the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script, it can also include: obtaining the interface operation status of each process interface in the bill discount process through the bill data automatic processing script; obtaining the bill association status information verification result through the query component of the bill data automatic processing script; and verifying the compliance of the discount test data output process based on the interface operation status and the bill association status information verification result.
[0075] While the automatic bill data processing script automatically outputs the discount test data for the target bill, it can also query the operating status of each process interface within the bill discount process in real time to determine whether the interface operating status of each process interface within the bill discount process is normal. Simultaneously, the script can also obtain the verification results of the bill association status information through the query component of the automatic bill data processing script to determine whether the verification results of the bill association status information are normal. In other words, the automatic bill data processing script can verify the success of each step in the bill discount process based on the interface operating status and the query component verification results, thereby verifying the compliance of the discount test data output process.
[0076] In summary, the embodiment of the present invention proposes a method for automatically processing discount test data for electronic bills. The method can generate discount test data for bills in batches, efficiently and automatically, replacing the original method of relying on manual preparation of large amounts of discount data according to the process in the bill field, and realizing the separation of parameter files and scripts required for discount test data, which is convenient for testers to customize discount test data as needed. The large-scale generation process of discount test data does not require human participation, saving a lot of testing manpower, improving the preparation efficiency of discount test data, facilitating fast and accurate test preparation, and thus improving test efficiency.
[0077] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0078] It should be noted that the relevant information (including but not limited to user device information, user personal information, ticket information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data comply with relevant laws, regulations and standards in the relevant regions.
[0079] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0080] Figure 4 Schematic diagram of a bill data processing device provided by an embodiment of the present invention. Figure 4 As shown, the apparatus includes: a bill data automatic processing script acquisition module 410, a bill input parameter information input module 420, and a discount test data output module 430, wherein:
[0081] The bill data automatic processing script acquisition module 410 is used to acquire the bill data automatic processing script of the target bill; wherein the bill data automatic processing script includes the associated process interface information of the target bill, the associated independent parameter file, and the discount test data output template script;
[0082] A bill input parameter information input module 420 is used to input the bill input parameter information of the target bill into the associated independent parameter file of the bill data automatic processing script;
[0083] The discount test data output module 430 is used to input the bill test environment into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0084] The embodiment of the present invention obtains a target bill's bill data automatic processing script, including the target bill's associated process interface information, associated independent parameter files, and a discount test data output template script. Then, the target bill's bill input parameter information is input into the associated independent parameter files of the bill data automatic processing script. Furthermore, the bill data automatic processing script is input into a bill test environment to enable the bill data automatic processing script to automatically output the target bill's discount test data via the discount test data output template script. The above technical solution implements an automated processing method for bill discount test data, resolving the low data preparation efficiency issue associated with the existing manual preparation of bill discount test data. This improves the processing efficiency of bill discount test data, thereby further improving the efficiency of testing based on discount test data.
[0085] Optionally, the above-mentioned device also includes a bill data automatic processing script generation module, which is used to: obtain the associated process interface information and the associated independent parameter file of the target bill; configure the discount test data output template script for outputting the discount test data of the target bill; and generate the bill data automatic processing script based on the associated process interface information, the associated independent parameter file and the discount test data output template script.
[0086] Optionally, the bill data automatic processing script generation module is further used to: determine the bill discount process of the target bill; capture the process interface message information of the bill discount process of the target bill in the target environment, and obtain the associated process interface information of the target bill.
[0087] Optionally, the bill data automatic processing script generation module is also used to: connect the process interfaces in the bill discount process of the target bill in series according to the business attribute information of the target bill, and determine the process interface dependency relationship based on the connection result of the process interface; determine the process interface dependency field based on the process interface dependency relationship, and parameterize the process interface dependency field to obtain a first associated independent parameter; obtain the bill transaction associated information of the target bill, and parameterize the bill transaction associated information to obtain a second associated independent parameter; store the first associated independent parameter and the second associated independent parameter in an independent parameter file to obtain the associated independent parameter file.
[0088] Optionally, the bill data automatic processing script generation module is also used to: determine the bill verification node of the target bill in the bill discount process; configure the query component according to the bill verification rules of the bill verification node; wherein the query component is used to verify the bill association status information; generate the bill data automatic processing script according to the association process interface information, the association independent parameter file, the query component and the discount test data output template script.
[0089] Optionally, the above-mentioned device also includes a loop running times configuration module, which is used to: determine the data demand of the discount test data of the target bill; and configure the loop running times of the bill data automatic processing script according to the data demand of the discount test data of the target bill.
[0090] Optionally, the discount test data output module 430 is also used to: obtain the interface operation status of each process interface in the bill discount process through the bill data automatic processing script; obtain the bill association status information verification result through the query component of the bill data automatic processing script; and verify the compliance of the discount test data output process based on the interface operation status and the bill association status information verification result.
[0091] The above-mentioned bill data processing device can execute the bill data processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the bill data processing method provided by any embodiment of the present invention.
[0092] Since the bill data processing device described above is a device that can execute the bill data processing method in the embodiment of the present invention, and based on the bill data processing method described in the embodiment of the present invention, those skilled in the art will be able to understand the specific implementation of the bill data processing device of this embodiment and its various variations. Therefore, how the bill data processing device implements the bill data processing method in the embodiment of the present invention will not be described in detail here. As long as those skilled in the art can implement the device used in the bill data processing method in the embodiment of the present invention, it falls within the scope of protection of this application.
[0093] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0094] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0095] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0096] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the bill data processing method.
[0097] Optionally, the bill data processing method may include: obtaining a bill data automatic processing script for a target bill; wherein the bill data automatic processing script includes associated process interface information, associated independent parameter files, and a discount test data output template script for the target bill; inputting the bill input parameter information of the target bill into the associated independent parameter files of the bill data automatic processing script; inputting a bill test environment into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
[0098] In some embodiments, the bill data processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the bill data processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to execute the bill data processing method in any other appropriate manner (e.g., via firmware).
[0099] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0100] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0101] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0102] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and the input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0103] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0104] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
[0105] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.
[0106] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A bill data processing method, characterized in that: include: Obtaining a bill data automatic processing script for a target bill; wherein the bill data automatic processing script includes associated process interface information, associated independent parameter files, and a discount test data output template script for the target bill; Inputting the bill input parameter information of the target bill into the associated independent parameter file of the bill data automatic processing script; The bill test environment is input into the bill data automatic processing script to start the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script.
2. The method according to claim 1, characterized in that Before the automatic processing script for obtaining the bill data of the target bill is executed, the following steps are also included: Obtaining the associated process interface information and the associated independent parameter file of the target bill; Configuring the discount test data output template script for outputting the discount test data of the target bill; The bill data automatic processing script is generated according to the associated process interface information, the associated independent parameter file and the discount test data output template script.
3. The method according to claim 2, characterized in that Acquiring the associated process interface information of the target bill includes: Determining a bill discount process for the target bill; The process interface message information of the bill discount process of the target bill in the target environment is captured to obtain the associated process interface information of the target bill.
4. The method according to claim 2, characterized in that Obtaining the associated independent parameter file of the target note includes: Connecting the process interfaces in the bill discount process of the target bill in series according to the business attribute information of the target bill, and determining the process interface dependency relationship according to the result of the connection of the process interfaces; Determining a process interface dependency field according to the process interface dependency relationship, and performing parameterization processing on the process interface dependency field to obtain a first associated independent parameter; Obtaining bill transaction association information of the target bill, and performing parameterization processing on the bill transaction association information to obtain a second association independent parameter; The first associated independent parameter and the second associated independent parameter are stored in an independent parameter file to obtain the associated independent parameter file.
5. The method according to claim 2, characterized in that Also includes: Determining a bill verification node of the target bill in the bill discount process; A query component is configured according to the bill verification rule of the bill verification node; wherein the query component is used to verify the bill association status information; The step of generating the bill data automatic processing script according to the associated process interface information, the associated independent parameter file, and the discount test data output template script includes: The bill data automatic processing script is generated according to the associated process interface information, the associated independent parameter file, the query component and the discount test data output template script.
6. The method according to claim 1, characterized in that Before starting the bill data automatic processing script to automatically output the discount test data of the target bill through the discount test data output template script, the method further includes: Determining the data requirement for discount test data of the target bill; The number of loop runs of the bill data automatic processing script is configured according to the data demand of the discount test data of the target bill.
7. The method according to claim 1, characterized in that While the bill data automatic processing script is started to automatically output the discount test data of the target bill through the discount test data output template script, the method further includes: Obtaining the interface operation status of each process interface in the bill discount process through the bill data automatic processing script; Obtaining the bill association status information verification result through the query component of the bill data automatic processing script; The compliance of the discount test data output process is verified based on the verification results of the interface operation status and the bill association status information.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the bill data processing method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the bill data processing according to any one of claims 1 to 7 when executed.
10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the bill data processing according to any one of claims 1 to 7 is implemented.