Annual bill test method and device, electronic equipment and storage medium

By obtaining annual bill tags and querying the database, the problem that the existing technology cannot fully guarantee the accuracy and consistency of annual bill test data is solved, and the testing and data consistency of the full amount of annual bill data is achieved.

CN119396728APending Publication Date: 2025-02-07SHANGHAI BAOYUN NETWORK INFORMATION SERVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411516370.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing technology cannot fully guarantee the accuracy, completeness and consistency of annual bill test data. It mainly relies on functional level testing and cannot fully cover user data.

Method used

By obtaining all tags in the annual bill, querying the first and second databases, obtaining the corresponding user tag information, and comparing the results of the two query, it is determined that the test has passed or failed.

Benefits of technology

The test of the full amount of annual bill data is realized, which ensures the consistency of the data, reduces the data error rate of annual bill display, and ensures the accuracy of the data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396728A_ABST
    Figure CN119396728A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of testing, in particular to an annual bill testing method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining all annual bill tags in a to-be-tested annual bill; querying a first database based on all the annual bill tags to obtain first annual bill tag information of the user corresponding to each annual bill tag; querying a second database based on the first-year bill tag information of the user to obtain second-year bill tag information of the user corresponding to each annual bill tag; and if the first-year bill label information and the second-year bill label information are the same, judging that the to-be-tested annual bill passes the test, otherwise, judging that the to-be-tested annual bill does not pass the test. Therefore, the problem that the accuracy, the consistency, the integrity and the like of the test data of all users cannot be ensured in related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of testing technology, and in particular to an annual bill testing method, device, electronic device and storage medium. Background Art

[0002] Currently, many companies, especially insurance companies, banks and other financial service institutions, generate annual bills to summarize the activities and statistics of users in the past year. Annual bills not only reflect the business activities of users, but also provide important decision-making support data for companies. However, in the process of generating annual bills, it is very important to ensure the accuracy and consistency of data.

[0003] Currently, the annual billing test of related technologies focuses more on the front-end page display. The testing method is relatively simple and cannot guarantee the accuracy, consistency, and completeness of all users. It mainly relies on functional-level testing, that is, verifying whether the front-end page display is correct through manual or automated tools. This method cannot fully guarantee the accuracy, completeness, and consistency of the data. Summary of the invention

[0004] The present application provides an annual bill testing method, device, electronic device and storage medium to solve the problem that the accuracy, consistency and completeness of the test data of all users cannot be guaranteed in the related technology.

[0005] The first aspect of the present application provides an annual bill testing method, including the following steps: obtaining all annual bill tags in the annual bill to be tested; querying a first database based on all annual bill tags to obtain the first annual bill tag information of the user corresponding to each annual bill tag; querying a second database based on the first annual bill tag information of the user to obtain the second annual bill tag information of the user corresponding to each annual bill tag; if the first annual bill tag information and the second annual bill tag information are the same, then the annual bill test to be tested is judged to have passed, otherwise the annual bill test to be tested is judged to have failed.

[0006] Preferably, before querying the first database based on all annual bill tags, the method further includes: configuring a connection between the first database and the second database, and obtaining configuration connection information of the configuration connection.

[0007] Preferably, the second database is queried based on the user's first year bill tag information to obtain the user's second year bill tag information corresponding to each annual bill tag, including: obtaining the tag rules corresponding to the tags in the user's first year bill tag information; querying the second database based on the configuration connection information and the tag rules to obtain the user's second year bill tag information corresponding to each annual bill tag.

[0008] Preferably, the annual bill tag includes a priority. After obtaining all the annual bill tags in the annual bill to be tested, it also includes: obtaining the user's testing requirements; if the testing requirement is to prioritize testing the target annual bill tag in the annual bill to be tested, then adjusting the priority of the target annual bill tag to the first priority.

[0009] Preferably, the method further includes: generating a test report, and sending the test report to a target mailbox.

[0010] Preferably, it also includes: obtaining the number of annual bill tags of the annual bill to be tested or the test requirements of the tester; and determining the single-thread processing test or the multi-thread processing test according to the number of annual bill tags or the test requirements of the tester.

[0011] Preferably, single-thread testing or multi-thread testing is determined based on the number of annual bill labels or the test requirements of the tester, including: if the number of annual bills is less than the preset number or the test requirement of the tester is single-thread processing, then testing is performed using single-thread processing; if the number of annual bills is greater than or equal to the preset number or the test requirement of the tester is multi-thread processing, then testing is performed using multi-thread processing.

[0012] The second aspect of the present application provides an annual bill testing device, including: an acquisition module, used to acquire all annual bill tags in the annual bill to be tested; a first query module, used to query the first database based on all annual bill tags, and obtain the first annual bill tag information of the user corresponding to each annual bill tag; a second query module, used to query the second database based on the user's first annual bill tag information, and obtain the second annual bill tag information of the user corresponding to each annual bill tag; a judgment module, used to judge that the annual bill test to be tested has passed if the first annual bill tag information and the second annual bill tag information are the same, otherwise judge that the annual bill test to be tested has failed.

[0013] Preferably, it also includes: a configuration module, which is used to configure the connection between the first database and the second database before querying the first database based on all annual bill tags, and obtain configuration connection information of the configuration connection.

[0014] Preferably, the second query module is further used to: obtain the tag rules corresponding to the tags in the user's first year bill tag information; query the second database based on the configuration connection information and the tag rules to obtain the user's second year bill tag information corresponding to each year's annual bill tag.

[0015] Preferably, the annual bill tag includes a priority, and after obtaining all the annual bill tags in the annual bill to be tested, it also includes: an adjustment module for obtaining the test requirements of the tester; if the test requirement is to prioritize testing the target annual bill tag in the annual bill to be tested, the priority of the target annual bill tag is adjusted to the first priority.

[0016] Preferably, the method further comprises: a generating module, which is used to generate a test report and send the test report to a target mailbox.

[0017] Preferably, it also includes: a determination module for obtaining the number of annual bill tags of the annual bill to be tested or the test requirements of the tester; and determining a single-thread processing test or a multi-thread processing test according to the number of annual bill tags or the test requirements of the tester.

[0018] Preferably, the determination module is further used to: if the number of annual bills is less than a preset number or the test requirement of the tester is single-thread processing, then testing is performed using a single-thread processing method; if the number of annual bills is greater than or equal to the preset number or the test requirement of the tester is multi-thread processing, then testing is performed using a multi-thread processing method.

[0019] The third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the annual bill testing method as described in the above embodiment.

[0020] The fourth aspect of the present application provides a computer-readable storage medium on which a computer program or instruction is stored. The computer program or instruction is executed by a processor to implement the bill testing method as described in the above embodiment.

[0021] Therefore, this application has at least the following beneficial effects:

[0022] The embodiment of the present application can obtain all annual bill tags in the annual bill to be tested, and query the first database and the second database respectively, to obtain the first annual bill tag information and the second annual bill tag information of the user corresponding to each annual bill tag respectively, and by comparing the annual bill tag information in the two databases, ensure the consistency of the data, so as to quickly complete the annual bill full data test, realize online full user big data testing, reduce the error rate of the annual bill display data, and thus ensure the accuracy of the data displayed in the annual bill.

[0023] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0025] Figure 1 A flowchart of an annual bill testing method provided according to an embodiment of the present application;

[0026] Figure 2 A single-thread and multi-thread execution flow chart provided according to an embodiment of the present application;

[0027] Figure 3 A schematic diagram of an annual bill testing method provided according to an embodiment of the present application;

[0028] Figure 4 is a schematic diagram of test results according to an embodiment of the present application;

[0029] Figure 5 This is an example diagram of an annual bill testing device according to an embodiment of the present application;

[0030] Figure 6 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0031] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0032] The following describes the annual bill testing method, device, electronic device and storage medium of the embodiment of the present application with reference to the accompanying drawings. Specifically, Figure 1 A flowchart of an annual bill testing method provided in an embodiment of the present application.

[0033] like Figure 1 As shown, the annual bill testing method includes the following steps:

[0034] In step S101, all annual bill tags in the annual bill to be tested are obtained.

[0035] Among them, the annual bill is mainly the annual bill data generated by the business system. The data of the annual bill comes from the user's various business activity records and is formed after certain processing and aggregation. For example, various user activities, such as registration, login, purchase, operation, etc.; annual bill tags refer to data items used to identify and describe different businesses or states of users in a specific time period. They are defined according to different business rules and are used to record and display various activities or indicators of users, such as the number of days that user A has registered in the system.

[0036] It is understandable that the embodiment of the present application can obtain all annual bill tags of the annual bill to be tested for subsequent testing.

[0037] In an embodiment of the present application, the annual bill tag includes a priority. After obtaining all the annual bill tags in the annual bill to be tested, it also includes: obtaining the test requirements of the tester; if the test requirement is to prioritize testing the target annual bill tag in the annual bill to be tested, the priority of the target annual bill tag is adjusted to the first priority.

[0038] It can be understood that different annual bill labels in the embodiment of the present application have different priorities. The annual bill label includes a priority so as to distinguish the priority levels of the annual labels. The test personnel's test requirements require that the target annual bill label in the annual bill to be tested be prioritized. The target annual bill label can be any annual bill label required by the user. The priority of the target annual bill label can be adjusted to the first priority. The label priority can be dynamically adjusted according to the user's test requirements, and important labels can be given priority to improve the flexibility and pertinence of the test, ensure that important labels are given priority, and reasonably allocate test resources, thereby improving test efficiency.

[0039] Specifically, the tag priority level is different tag priority levels configured according to different rules. According to the needs, the tag priority level of the field to be tested (i.e., the annual bill tag) is divided. The test rules maintain the tag level fields to be tested in the database. When running batch tests on a regular basis every day, you only need to modify the tag priority level in the database. For example, levels 2 and 3 are configured in the database. With these two levels, you can find the field to be tested and implement the test during the test.

[0040] In addition, it should be noted that the tag priority level and the annual bill tag are in a one-to-many or one-to-one relationship.

[0041] In step S102, the first database is queried based on all annual bill tags to obtain the first annual bill tag information of the user corresponding to each annual bill tag.

[0042] Among them, the first database is ADS, which is a big data storage method used for modeling and development for specific business scenarios and business needs, and provides various industry analysis, reporting, visualization and decision support services.

[0043] It can be understood that the embodiment of the present application can query the first database based on all annual bill tags to obtain the first annual bill tag information of the user corresponding to each annual bill tag.

[0044] For example, all annual billing tags include "registration days", "latest application opening time", etc. By querying ADS based on these annual billing tags, the registration days are 30 days and the latest application opening time is August 17.

[0045] In an embodiment of the present application, before querying the first database based on all annual bill tags, it also includes: configuring the first database and the second database to connect, and obtaining configuration connection information of the configuration connection.

[0046] The second database is a business database, and all user activities are stored in the business database.

[0047] It can be understood that before querying the first data based on all annual bill tags, the embodiment of the present application configures the connection between the first database and the second database, and obtains the configuration connection information of the configuration connection, so as to subsequently obtain the second year bill tag information stored in the second database.

[0048] In step S103, the second database is queried based on the user's first annual bill tag information to obtain the user's second annual bill tag information corresponding to each annual bill tag.

[0049] It is understandable that the embodiment of the present application can query the second database based on the user's first year bill label information to obtain the user's second year bill label information corresponding to each annual bill label.

[0050] For example, if the current tag is “registration days”, the second database can be queried based on the registration time to obtain the “registration days” stored in the second database.

[0051] In an embodiment of the present application, a second database is queried based on the user's first year bill tag information to obtain the user's second year bill tag information corresponding to each annual bill tag, including: obtaining tag rules corresponding to the tags in the user's first year bill tag information; querying the second database based on the configuration connection information and the tag rules to obtain the user's second year bill tag information corresponding to each annual bill tag.

[0052] Among them, the label rules are defined by the demand personnel, and each label has its own business meaning. For example, invite_friend_num, the character type is bigint, and the meaning is the number of friends invited to register - the registration time of friends is all in 2023. Then, the relevant data is logically judged and processed through the code, and finally the data that meets the meaning of the current label rules is obtained.

[0053] It can be understood that the embodiment of the present application can obtain label rules and query the second database based on the configuration connection information and label rules of the first database and the second database, so as to obtain the second annual bill label information of the user corresponding to each annual bill label. The label rules ensure that the data processing logic in the business database is consistent with the data in the ADS, and ensure that the data processing results in the business database comply with the predefined label rules, thereby improving the accuracy of data processing.

[0054] For example, the tested tag is "Registration Days", the registration days in the first database ADS are 15 days, and the tag rule obtained from the "Registration Days" tag is "Registration Days = 2022.12.31-Registration Time". Use the business database connection information to query the second database business database according to the tag rule to obtain the user's registration time, and process this information according to the tag rule "Registration Days = 2022.12.31-Registration Time" to form a "Registration Days" that meets the tag definition.

[0055] In step S104, if the billing tag information of the first year is the same as the billing tag information of the second year, it is determined that the billing test for the year to be tested has passed, otherwise it is determined that the billing test for the year to be tested has failed.

[0056] It can be understood that the embodiment of the present application can compare the first year bill label information obtained from the first database with the second year bill label information obtained from the second database. If the two annual bill label information are the same, the test of the annual bill to be tested is judged to have passed, otherwise the test fails, thereby ensuring data consistency, ensuring that the data displayed in the annual bill is accurate, and reducing the error rate of the annual bill display data.

[0057] In the embodiment of the present application, it also includes: generating a test report and sending the test report to a target mailbox.

[0058] It is understandable that the embodiment of the present application can also generate a test report, and send the test report to a target mailbox so that the tester can view it, thereby ensuring the timely delivery of the test results.

[0059] In an embodiment of the present application, it also includes: obtaining the number of annual bill tags of the annual bill to be tested or the testing requirements of the tester; determining a single-threaded processing test or a multi-threaded processing test based on the number of annual bill tags or the testing requirements of the tester.

[0060] Among them, single-threaded means that when the program is executed, all program paths are arranged in a continuous order, and the previous ones must be processed before the latter ones can be executed; multi-threaded means that a single core in a central processing unit or a multi-core processor can provide multiple execution threads concurrently with the support of the operating system.

[0061] It is understandable that the embodiment of the present application can determine the single-thread processing test or the multi-thread processing test according to the number of annual bill tags or the user's testing requirements, as follows.

[0062] In an embodiment of the present application, single-thread testing or multi-thread testing is determined based on the number of annual bill labels or the test requirements of the tester, including: if the number of annual bills is less than a preset number or the test requirement of the tester is single-thread processing, then testing is performed using a single-thread processing method; if the number of annual bills is greater than or equal to a preset number or the test requirement of the tester is multi-thread processing, then testing is performed using a multi-thread processing method.

[0063] Among them, the preset number can be set according to the specific situation and is not specifically limited.

[0064] It can be understood that the embodiment of the present application can use a single-threaded processing method for testing when the number of annual bills is less than a preset number or the user's test requirement is single-threaded processing; when the number of annual bills is greater than or equal to the preset number or the user's test requirement is multi-threaded processing, a multi-threaded processing method is used for testing. The single-threaded or multi-threaded processing method can be flexibly selected according to the data scale and user needs to improve the adaptability and flexibility of the test, and by setting the preset number, the computing resources can be reasonably allocated to improve the processing performance, especially when processing large-scale data. The performance is particularly obvious, wherein the process of single-threaded and multi-threaded testing is as follows Figure 2 shown.

[0065] The annual bill testing method of the present application is described below through a specific embodiment, which mainly involves three modules of the company: annual bill service, ADS, and business library.

[0066] Among them, the annual bill service: maintains the annual bill label configuration information, including database connection information, test report receiving email address, annual bill label and label priority level, etc. These two configurations are indispensable. There will be a lot of indicator data information in the annual bill test. Through these two configurations, the annual bill label test is classified and tested;

[0067] ADS: Annual bill tag data source. ADS provides report user data information based on different big data businesses. Then, the business database user tag information is obtained based on the annual bill tag user information of ADS big data. Finally, data integration and comparison are performed to complete the annual bill tag data test.

[0068] Business library: user business library data source.

[0069] The specific process is as follows Figure 3 As shown, including:

[0070] 1. Maintain basic information.

[0071] The annual billing service configuration maintains database connection information, test report recipient email address, annual billing label and label priority information, single-threaded and multi-threaded entry configuration, label priority and annual billing label are one-to-many or one-to-one relationship, ADS and business database connection configuration.

[0072] 2. Obtain ADS and business database query information.

[0073] Get the ADS query big data SQL and get the business data query SQL of bill labels in different years.

[0074] ADS configures ADS database connection information according to the annual bill service and obtains ADS annual bill tag user information.

[0075] According to the business database connection information configured for the annual bill service and the user information of ADS, the user information of the business library is queried and processed according to the label rules to form the user annual bill label information of the business library (the label rules are defined by the demand personnel, and each label has its own business meaning, such as invite_friend_num, the character type is bigint, and the meaning is the number of friends invited to register - the registration time of the friends is all in 2023, and then the relevant data is logically judged and processed through the code, and finally the data that meets the current label rule meaning is obtained). The test example of the annual bill label test is shown in Table 1, which is a description of the annual bill labels in different scenarios.

[0076] Table 1

[0077]

[0078] 3. Compare ADS and business database data.

[0079] The ADS user information of the annual bill tag is compared with the annual bill tag user information processed by the business library. If they are consistent, the test result is passed. If they are inconsistent, the test result is failed. The test report result is saved. The annual bill service configures the email information to send the test report to the email to complete the annual bill test. The annual bill test statistics are as follows: Figure 4 shown.

[0080] In addition, the embodiments of the present application can also set up scheduled tasks to achieve unmanned test execution. For example, a scheduled task is executed at 7 o'clock every morning, and the annual bill label test content is automatically executed according to the set content, so that unmanned test execution can be achieved. After the batch run is completed, the annual bill label test report will be sent to the relevant personnel by email to inform them.

[0081] In summary, the annual bill testing method of the above embodiment can achieve the following functions:

[0082] 1. Maintenance of annual bill labels and label priority levels. There will be a lot of annual bill label information. Through this classification, the long query time of the database can be shortened and the testing time cost can be saved.

[0083] 2. When testing data, follow the principle of precision first and then full volume. The label test data volume function can be configured to execute a small amount of data to ensure that the method can run normally, and then the full volume can be executed to achieve efficiency improvement.

[0084] 3. The test report can be sent via email. You can receive the test report result information in time through email configuration.

[0085] 4. Server command line execution method function. Since ADS only supports the production environment, this method runs on an external server, so the program method is started through command line parameters to complete this test function.

[0086] 5. Multi-threaded function: Since the annual bill tag test is based on the full production of users, the amount of data is large. Multi-threaded mode is used for distributed execution to save testing time.

[0087] 6. Server scheduled task function. Since the annual bill tag test is based on the full production users and millions of user data, it can be executed during non-working hours through scheduled task execution. After normal working hours, the test execution is completed and the test report is issued, saving manual time.

[0088] According to the annual bill testing method proposed in the embodiment of the present application, all annual bill tags in the annual bill to be tested can be obtained, and the first database and the second database can be queried respectively to obtain the first annual bill tag information and the second annual bill tag information of the user corresponding to each annual bill tag respectively. By comparing the annual bill tag information in the two databases, the consistency of the data is ensured, so as to quickly complete the annual bill full data test, realize online full user big data testing, reduce the error rate of the annual bill display data, and thus ensure the accuracy of the data displayed in the annual bill.

[0089] Next, the annual bill testing device proposed according to the embodiment of the present application is described with reference to the accompanying drawings.

[0090] Figure 5 It is a block diagram of the annual bill testing device of an embodiment of the present application.

[0091] like Figure 5 As shown, the annual bill testing device 10 includes: an acquisition module 100 , a first query module 200 , a second query module 300 and a judgment module 400 .

[0092] Among them, the acquisition module 100 is used to obtain all annual bill tags in the annual bill to be tested; the first query module 200 is used to query the first database based on all annual bill tags to obtain the first annual bill tag information of the user corresponding to each annual bill tag; the second query module 300 is used to query the second database based on the user's first annual bill tag information to obtain the second annual bill tag information of the user corresponding to each annual bill tag; the judgment module 400 is used to judge that the annual bill test to be tested has passed if the first annual bill tag information and the second annual bill tag information are the same, otherwise, judge that the annual bill test to be tested has failed.

[0093] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a configuration module.

[0094] Among them, the configuration module is used to configure the connection between the first database and the second database before querying the first database based on all annual bill tags, and obtain the configuration connection information of the configuration connection.

[0095] In an embodiment of the present application, the second query module is further used to: obtain label rules corresponding to the labels in the user's first annual bill label information; query the second database based on the configuration connection information and label rules to obtain the user's second annual bill label information corresponding to each annual bill label.

[0096] In the embodiment of the present application, the annual bill tag includes a priority, and the device 10 of the embodiment of the present application also includes: an adjustment module.

[0097] Among them, the adjustment module is used to obtain the test requirements of the tester; if the test requirement is to give priority to testing the target annual bill tag in the annual bill to be tested, the priority of the target annual bill tag is adjusted to the first priority.

[0098] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a generating module.

[0099] The generating module is used to generate a test report and send the test report to a target mailbox.

[0100] In the embodiment of the present application, the device 10 of the embodiment of the present application further includes: a determination module.

[0101] Among them, the determination module is used to obtain the number of annual bill tags of the annual bill to be tested or the test requirements of the tester; and determine the single-thread processing test or the multi-thread processing test according to the number of annual bill tags or the test requirements of the tester.

[0102] In an embodiment of the present application, the determination module is further used to: if the number of annual bills is less than a preset number or the test requirement of the tester is single-threaded processing, then the test is performed using a single-threaded processing method; if the number of annual bills is greater than or equal to the preset number or the test requirement of the tester is multi-threaded processing, then the test is performed using a multi-threaded processing method.

[0103] It should be noted that the above explanations of the annual bill testing method embodiment are also applicable to the annual bill testing device of this embodiment and will not be repeated here.

[0104] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0105] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .

[0106] When the processor 602 executes the program, the annual bill testing method provided in the above embodiment is implemented.

[0107] Furthermore, the electronic device further comprises:

[0108] The communication interface 603 is used for communication between the memory 601 and the processor 602 .

[0109] The memory 601 is used to store computer programs that can be executed on the processor 602 .

[0110] The memory 601 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0111] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0112] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.

[0113] The processor 602 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0114] An embodiment of the present application also provides a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the annual bill testing method as described above is implemented.

[0115] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0116] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0117] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0118] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one or a combination of multiple of the following technologies known in the art: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0119] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0120] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. An annual bill testing method, characterized in that: The following steps are involved: Get all annual bill tags in the annual bill to be tested; Based on all the annual bill tags, query the first database to obtain the first annual bill tag information of the user corresponding to each annual bill tag; Based on the first annual bill label information of the user, query the second database to obtain the second annual bill label information of the user corresponding to each annual bill label; If the first-year billing label information and the second-year billing label information are the same, then it is determined that the billing test for the year to be tested has passed; otherwise, it is determined that the billing test for the year to be tested has failed.

2. The annual bill testing method according to claim 1, characterized in that: Before querying the first database based on all the annual bill tags, the method further includes: The first database and the second database are configured to be connected, and configuration connection information of the configuration connection is obtained.

3. The annual bill testing method according to claim 2, characterized in that: The querying of the second database based on the first annual bill label information of the user to obtain the second annual bill label information of the user corresponding to each annual bill label includes: Obtaining a tag rule corresponding to a tag in the first year bill tag information of the user; The second database is queried based on the configuration connection information and the label rule to obtain the second annual bill label information of the user corresponding to each annual bill label.

4. The annual bill testing method according to claim 1, characterized in that: The annual bill tag includes a priority, and after obtaining all annual bill tags in the annual bill to be tested, also includes: Obtain test requirements from testers; If the test requirement is to prioritize testing the target year bill tag in the annual bill to be tested, the priority of the target year bill tag is adjusted to the first priority.

5. The annual bill testing method according to claim 1, characterized in that: Also includes: Generate a test report and send the test report to a target mailbox.

6. The annual bill testing method according to claim 4, characterized in that: Also includes: Obtaining the number of annual bill labels of the annual bill to be tested or the test requirements of the tester; The single-thread processing test or the multi-thread processing test is determined according to the number of the annual billing tags or the test requirements of the user.

7. The annual bill testing method according to claim 6, characterized in that: The determining of single-threaded testing or multi-threaded testing according to the number of annual bill labels or the testing requirements of the tester includes: If the number of the annual bills is less than the preset number or the tester's test requirement is single-thread processing, the test is performed using a single-thread processing method; If the number of the annual bills is greater than or equal to the preset number or the test requirement of the tester is multi-threaded processing, the test is performed using multi-threaded processing.

8. An annual bill testing device, characterized in that: include: The acquisition module is used to obtain all annual bill tags in the annual bill to be tested; A first query module, configured to query the first database based on all the annual bill tags to obtain the first annual bill tag information of the user corresponding to each annual bill tag; A second query module is used to query the second database based on the first annual bill tag information of the user to obtain the second annual bill tag information of the user corresponding to each annual bill tag; The judgment module is used to judge that the bill test of the year to be tested has passed if the bill label information of the first year is the same as the bill label information of the second year, otherwise, judge that the bill test of the year to be tested has failed.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the annual bill testing method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: The computer program or instruction is executed by a processor to implement the annual bill testing method according to any one of claims 1 to 7.