Index testing method, device, equipment, medium and program product

By obtaining and standardizing indicator descriptions and processing the target element data table, the testing problem of complex indicators and massive data in the risk control business is solved, and efficient and complete indicator testing is achieved.

CN119357042APending Publication Date: 2025-01-24INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311378480.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-23
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

In the risk control business, complex indicators and massive data make testing difficult, and the existing technology is difficult to convert indicators into standardized use cases and conduct testing efficiently, completely and fully.

Method used

By obtaining the original indicator description, the mapping of it is described as a standardized indicator based on the rules -based mapping table, and the target element data table is processed to obtain the element tags. Finally, the test results are obtained based on the element label.

Benefits of technology

The indicators of natural language expression are realized into a standardized expression of systematic recognition, and the target element data table is label through the standardized expression, and the test of complex indicators is completed efficiently and quickly.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119357042A_ABST
    Figure CN119357042A_ABST
Patent Text Reader

Abstract

The invention provides an index testing method which can be applied to the technical field of software testing. The method comprises the steps that original index description is obtained, the original index description exists in a natural language mode, and the original index description is used for screening target elements meeting preset conditions; mapping the original index description into standardized index description based on a rule mapping table; a target element data table is pre-obtained, the target element data table comprises element identifiers, and the element identifiers are used for identifying target elements; processing the target element data table based on a standardized index description execution statement to obtain an element tag; and obtaining a test result based on the element tag. The invention further provides an index testing device and equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of software testing, and in particular, to an indicator testing method, device, equipment, medium and program product. Background Art

[0002] In risk control business, many rules and indicators are usually formulated for internal risk control. Complex indicators and massive data bring great pressure to testing. How to convert indicators into standardized use cases and test them efficiently, completely and fully is an urgent problem to be solved. Summary of the invention

[0003] In view of the above problems, embodiments of the present disclosure provide an indicator testing method, apparatus, device, medium and program product.

[0004] According to the first aspect of the present disclosure, there is provided an indicator testing method, comprising: obtaining an original indicator description, the original indicator description being in the form of a natural language, wherein the original indicator description is used to screen target elements that meet preset conditions; mapping the original indicator description into a standardized indicator description based on a rule mapping table; pre-obtaining a target element data table, wherein the target element data table contains an element identifier, and the element identifier is used to identify the target element; processing the target element data table based on a standardized indicator description execution statement to obtain an element tag; and obtaining a test result based on the element tag.

[0005] According to an embodiment of the present disclosure, mapping the indicator description into a standardized indicator description based on a rule mapping table includes: extracting word segments from the indicator description through a word segmentation model; performing word meaning matching with the rule mapping table to extract the standardized indicator description.

[0006] According to an embodiment of the present disclosure, the target element data table is processed based on the standardized indicator description execution statement to obtain the element label, including: processing the standardized indicator description based on a translation rule to obtain the standardized indicator description execution statement; processing the target element data table based on the standardized indicator execution statement to mark the elements that meet the standardized indicator description with element labels.

[0007] According to an embodiment of the present disclosure, obtaining the test results based on the element tags includes: respectively counting the number of the element tags and the number of the element identifiers; judging whether the number of the element tags and the number of the element identifiers are the same; and judging that the test is passed when the number of the element tags and the number of the element identifiers are the same.

[0008] According to an embodiment of the present disclosure, when the number of the element tags and the number of the element identifiers are different, the test is judged to be failed, and the corresponding element data and standardized indicator description are output.

[0009] According to an embodiment of the present disclosure, when the target element data table is processed based on the standardized indicator description execution statement, the method also includes: when the execution fails, no element tag is generated, and an error prompt is generated, and the error prompt is used to prompt the content of the rule mapping table writing error.

[0010] According to an embodiment of the present disclosure, when the number of the target element data tables and / or the number of the rule mapping tables is greater than one, the testing method is executed in parallel based on a multi-threaded processor.

[0011] According to an embodiment of the present disclosure, the rule mapping table includes screening rules and statistical rules, wherein the screening rules are used to represent element screening conditions, and the statistical rules are used to represent element data calculation methods.

[0012] According to an embodiment of the present disclosure, the statistical rules include classification rules and / or aggregation rules.

[0013] The second aspect of the present disclosure provides an indicator testing device, including: a first acquisition module, used to acquire an original indicator description, the original indicator description exists in the form of natural language, wherein the original indicator description is used to screen target elements that meet preset conditions; a mapping module, used to map the original indicator description to a standardized indicator description based on a rule mapping table; a second acquisition module, used to pre-acquire a target element data table, wherein the target element data table contains an element identifier, and the element identifier is used to identify the target element; a first calculation module, used to process the target element data table based on a standardized indicator description execution statement to obtain an element label; a second calculation module, used to obtain a test result based on the element label.

[0014] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned indicator testing method.

[0015] The fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned indicator testing method.

[0016] The fifth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned indicator testing method when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0018] Figure 1 The application scenario diagram of the indicator testing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.

[0019] Figure 2 The flowchart of the indicator testing method according to the embodiment of the present disclosure is schematically shown.

[0020] Figure 3 A flowchart of a method for mapping the indicator description into a standardized indicator description based on a rule mapping table according to an embodiment of the present disclosure is schematically shown.

[0021] Figure 4 The flowchart schematically shows a method for processing the target element data table based on the standardized indicator description execution statement to obtain the element label according to an embodiment of the present disclosure.

[0022] Figure 5 A flowchart of a method for obtaining test results based on the element tags according to an embodiment of the present disclosure is schematically shown.

[0023] Figure 6 The structural block diagram of the indicator testing device according to the embodiment of the present disclosure is schematically shown.

[0024] Figure 7 The structural block diagram of the mapping module according to the embodiment of the present disclosure is schematically shown.

[0025] Figure 8 The structural block diagram of the first computing module according to an embodiment of the present disclosure is schematically shown.

[0026] Fig. 9 The structural block diagram of the second computing module according to an embodiment of the present disclosure is schematically shown.

[0027] Fig.10 A block diagram of an electronic device suitable for implementing the index testing method, apparatus, device, medium and program product according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0030] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0031] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0032] In risk control business, many rules and indicators are usually formulated for internal risk control. For example, in the field of anti-money laundering, after research by anti-money laundering experts, some technical indicators are given for subsequent application in anti-money laundering risk control. These indicators are often complex and the test data is massive. Therefore, more detailed testing is required. Since technical indicators usually exist in the form of natural language, the grammatical structure and expression form of different indicators may have great differences. Therefore, how to convert indicators into standardized use cases and how to conduct efficient, sufficient and detailed testing on these complex indicators are urgent issues to be solved.

[0033] In response to the above-mentioned problems existing in the prior art, an embodiment of the present disclosure provides an indicator testing method, including: obtaining an original indicator description, which is in the form of natural language, wherein the original indicator description is used to screen target elements that meet preset conditions; mapping the original indicator description to a standardized indicator description based on a rule mapping table; pre-obtaining a target element data table, wherein the target element data table contains an element identifier, and the element identifier is used to identify the target element; processing the target element data table based on a standardized indicator description execution statement to obtain an element tag; and obtaining a test result based on the element tag.

[0034] The embodiments of the present disclosure convert indicators expressed in natural language into standardized expressions recognizable by the system, label the target element data table through the standardized expressions, and compare the element labels with the identifiers of the target elements, so as to complete the testing of complex indicators efficiently and quickly.

[0035] It should be noted that in the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0036] Figure 1 The application scenario diagram of the indicator testing method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.

[0037] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0038] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0039] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.

[0040] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.

[0041] It should be noted that the index testing method provided in the embodiment of the present disclosure can generally be performed by the server 105. Accordingly, the index testing device provided in the embodiment of the present disclosure can generally be set in the server 105. The index testing method provided in the embodiment of the present disclosure can also be performed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the index testing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.

[0042] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0043] The following will be based on Figure 1 The scene described by Figure 2 to Figure 5 The index testing method of the disclosed embodiment is described in detail.

[0044] Figure 2 The flowchart of the indicator testing method according to the embodiment of the present disclosure is schematically shown.

[0045] like Figure 2 As shown, the indicator testing method of this embodiment includes operations S210 to S250, and the indicator testing method can be executed by the server 105.

[0046] In operation S210, an original indicator description is obtained.

[0047] According to an embodiment of the present disclosure, the original indicator description exists in the form of natural language, wherein the original indicator description is used to filter target elements that meet preset conditions. For example, in anti-money laundering business, the target element is the target user, and the target user is a user with a higher risk of money laundering. Therefore, the original indicator description can be a user behavior feature with a higher risk of money laundering set by expert experience. For example, indicator 1 is described as follows: If the customer's total RMB transaction amount (in different currencies) with the same non-local customer in the past 5 days reaches 50,000 yuan, then the customer hits indicator 1. Thus, the indicator description can filter out target users whose total RMB transaction amount (in different currencies) with the same non-local customer in the past 5 days has reached 50,000 yuan.

[0048] In operation S220, the original indicator description is mapped to a standardized indicator description based on a rule mapping table.

[0049] According to the embodiments of the present disclosure, the original indicator description usually has the characteristics of the language expression habits of the indicator setter. Therefore, for similar screening conditions, the indicator description form may have large differences. In order to achieve unified testing of indicators and improve test efficiency, the embodiments of the present disclosure map the original indicator description to a standardized indicator description based on a rule mapping table. It can be understood that the standardized indicator description contains unified description rules, thereby converting the original indicator description with large natural language differences into a structurally unified expression. The rule mapping table can be set in advance.

[0050] In some embodiments, the rule mapping table includes screening rules and statistical rules, wherein the screening rules are used to represent element screening conditions, and the statistical rules are used to represent element data calculation methods.

[0051] Preferably, the statistical rules include classification rules and / or aggregation rules.

[0052] In the example, the corresponding rule mapping table can be designed as shown in Table 1:

[0053] Table 1

[0054]

[0055] In operation S230, a target element data table is pre-acquired, wherein the target element data table includes an element identifier, and the element identifier is used to identify the target element. According to an embodiment of the present disclosure, the target element data table can be pre-acquired from the system in preparation for the test task. The target element data table includes test data associated with the target element. For example, in indicator 1, the target element data table can be the relevant transaction data of the user who hits indicator 1 determined by the system.

[0056] A typical data table can be shown in Table 2:

[0057] Table 2

[0058]

[0059] In operation S240, the target element data table is processed based on the standardized indicator description execution statement to obtain the element tag. The standardized indicator description execution statement is a program language recognizable by the system, and the target element data table can be further operated and processed by converting the standardized indicator description into an executable statement.

[0060] In operation S250, a test result is obtained based on the element tag. It can be understood that the element tag is an execution result after being processed based on the standardized index, and the result can reflect whether the index test is successful.

[0061] Figure 3 A flowchart of a method for mapping the indicator description into a standardized indicator description based on a rule mapping table according to an embodiment of the present disclosure is schematically shown.

[0062] like Figure 3 As shown, the method of mapping the indicator description to the standardized indicator description based on the rule mapping table in this embodiment includes operations S310 to S320.

[0063] In operation S310, the indicator description is subjected to a word segmentation model to extract word segments.

[0064] In operation S320, the word segmentation is matched with the rule mapping table to extract the standardized indicator description.

[0065] Among them, the word segmentation model is obtained based on pre-training. The indicator description can be used to extract keywords as word segmentations through the word segmentation model, and the word segmentation is used to match the meaning of the keywords in the rule mapping table. Among them, the meaning matching can be performed based on the word meaning similarity model. The word meaning similarity model can be obtained by pre-training. Typical word meaning similarity models may include but are not limited to LDA model, DSSM model, Word2Vec model, LSI model, etc. A word meaning similarity threshold can be preset. When the similarity after the word meaning matching reaches the preset threshold, the corresponding word segmentation is extracted, and a standardized indicator description is constructed based on the structure of the rule mapping table.

[0066] In the above example, the original indicator 1 is described as follows: If the customer's total RMB transaction amount (in different currencies) with the same non-local customer in the past 5 days reaches 50,000 yuan, then the customer hits indicator 1.

[0067] The standardized indicator converted by the method of the embodiment of the present invention is described as the transaction time is greater than t-5 and the customer account opening region is not equal to the counterparty account opening region, and the transaction amount converted into RMB is calculated by currency, customer code, and counterparty customer code. The sum of the transaction amount converted into RMB is greater than 50,000.

[0068] Figure 4 The flowchart schematically shows a method for processing the target element data table based on the standardized indicator description execution statement to obtain the element label according to an embodiment of the present disclosure.

[0069] like Figure 4 As shown, in this embodiment, the target element data table is processed based on the standardized indicator description execution statement, and the method for obtaining the element label includes operations S410 to S420.

[0070] In operation S410, the standardized indicator description is processed based on the translation rule to obtain the standardized indicator description execution statement.

[0071] In operation S420, the target element data table is processed based on the standardized indicator execution statement, and elements that meet the standardized indicator description are marked with element tags.

[0072] According to an embodiment of the present disclosure, the translation rule is used to convert the standardized indicator description into an executable program statement. In a typical example, the standardized rule description can be automatically converted into a Python statement to process the read target element data table, wherein when the element meets the standardized indicator description, it is marked with an element label, indicating that it is a target element determined after the program is executed.

[0073] In a typical example, the rules re-described in the format of screening rules + statistical rules can be automatically converted into Python statements. The specific process is as follows: The statements are divided by Chinese commas, corresponding to the screening rules and statistical rules respectively. Among them, for the screening rules: They are split into different segments by "and" and "or", and each segment is split into a field name and a comparison value by logical words, and the logical words are mapped to operators. If the relationship between the rules is "or", they are connected by "|", and if the relationship between the rules is "and", they are connected by "&". The converted statement is: data_df_temp = data_df.loc[(data_df[field name] operator comparison value) & (data_df[field name] operator comparison value)]. For the statistical rules: They are split into two segments from "classification summary". The front segment is split into different field names by Chinese semicolons, and the back segment is split into different segments by semicolons. Each segment is divided into a field name and a summary function by "of". The converted statement is: data_df_temp.groupby([field name, field name]).agg({field name: summary function}).

[0074] Figure 5 FIG. schematically shows a flowchart of a method for obtaining a test result based on the element tag according to an embodiment of the present disclosure.

[0075] As Figure 5 shown, the method for obtaining a test result based on the element tag in this embodiment at least includes operations S510 to S530.

[0076] In operation S510, the quantities of the element tag and the element identifier are respectively counted.

[0077] In operation S520, it is judged whether the quantity of the element tag is the same as the quantity of the element identifier.

[0078] When the quantity of the element tag is the same as the quantity of the element identifier, operation S530 is executed.

[0079] In operation S530, it is judged that the test passes.

[0080] In the embodiment of the present disclosure, it can be understood that the element identifier is an identifier of a user with a high risk of money laundering predicted by the system, and the element tag is a hit result identifier after executing the standardized description execution statement. It can be judged whether the test passes by judging whether the quantity of the element tag is the same as the quantity of the element identifier. Among them, when the quantity of the element tag is the same as the quantity of the element identifier, it can be determined that the test passes.

[0081] When the quantity of the element tag is different from the quantity of the element identifier, operation S540 can also be executed.

[0082] In operation S540, it is determined that the test fails, and the corresponding element data and standardized indicator description are output. Further, a related problem description can be formed based on the model to facilitate the developer to analyze the problem.

[0083] According to an embodiment of the present disclosure, when the target element data table is processed based on a standardized indicator description execution statement, if the statement execution fails, no element tag is generated, and an error prompt is generated, wherein the error prompt is used to prompt the content of the rule mapping table writing error.

[0084] The test method of the embodiment of the present disclosure can be applied to the parallel processing of multiple test tasks. Specifically, when the number of the target element data tables and / or the number of the rule mapping tables is greater than one, the test method can be executed in parallel based on a multi-threaded processor to simultaneously analyze based on multiple target element data tables and / or multiple rule mapping tables, and output corresponding test results respectively.

[0085] The embodiment of the present disclosure converts the indicators expressed in natural language into standardized expressions that can be recognized by the system, labels the target element data table through the standardized expressions, and compares the element labels with the identifiers of the target elements, so as to efficiently and quickly complete the test of complex indicators. The method can also be processed in parallel by multiple threads, which can greatly improve the test efficiency and business coverage of business testers, and improve the communication efficiency between developers and testers.

[0086] Based on the above indicator method, the embodiment of the present disclosure also provides an indicator testing device. Figure 6 The device is described in detail.

[0087] Figure 6 The structural block diagram of the indicator testing device according to the embodiment of the present disclosure is schematically shown.

[0088] like Figure 6 As shown, the indicator testing device 800 of this embodiment includes a first acquisition module 810 , a mapping module 820 , a second acquisition module 830 , a first calculation module 840 and a second calculation module 850 .

[0089] The first acquisition module 810 is used to acquire an original indicator description, where the original indicator description exists in the form of natural language, and the original indicator description is used to filter target elements that meet preset conditions.

[0090] The mapping module 820 is used to map the original indicator description into a standardized indicator description based on a rule mapping table.

[0091] The second acquisition module 830 is used to pre-acquire a target element data table, wherein the target element data table includes an element identifier, and the element identifier is used to identify the target element.

[0092] The first calculation module 840 is used to process the target element data table based on the standardized indicator description execution statement to obtain the element label.

[0093] The second calculation module 850 is used to obtain the test result based on the element tag.

[0094] According to an embodiment of the present disclosure, the mapping module may further include a word segmentation extraction unit and a matching unit.

[0095] Figure 7 The structural block diagram of the mapping module according to the embodiment of the present disclosure is schematically shown.

[0096] like Figure 7 As shown, the mapping module 820 of this embodiment includes a word segmentation extraction unit 8201 and a matching unit 8202 .

[0097] The word segmentation extraction unit 8201 is used to extract word segments from the indicator description through a word segmentation model.

[0098] The matching unit 8202 is used to perform word meaning matching between the word segmentation and the rule mapping table to extract the standardized indicator description.

[0099] According to an embodiment of the present disclosure, the first computing module may further include a translation unit and a marking unit.

[0100] Figure 8 The structural block diagram of the first computing module according to an embodiment of the present disclosure is schematically shown.

[0101] like Figure 8 As shown, the first computing module 840 of this embodiment includes a translation unit 8401 and a marking unit 8402 .

[0102] The translation unit 8401 is used to process the standardized indicator description based on the translation rule to obtain the standardized indicator description execution statement.

[0103] The marking unit 8402 is used to process the target element data table based on the standardized indicator execution statement, and mark the elements that meet the standardized indicator description with element tags.

[0104] According to an embodiment of the present disclosure, the second calculation module may further include a statistical unit, a judgment unit and an execution unit.

[0105] Fig. 9 The structural block diagram of the second computing module according to an embodiment of the present disclosure is schematically shown.

[0106] like Fig. 9 As shown, the second calculation module 850 of this embodiment includes a statistical unit 8501, a judgment unit 8502 and an execution unit 8503.

[0107] The statistical unit 8501 is used to count the number of the element tags and the number of the element identifiers respectively.

[0108] The judging unit 8502 is used to judge whether the number of the element tags is the same as the number of the element identifiers.

[0109] The execution unit 8503 is used to judge that the test is passed when the number of the element tags is the same as the number of the element identifiers, and judge that the test is not passed when the number of the element tags is different from the number of the element identifiers, and output the corresponding element data and standardized indicator description.

[0110] According to an embodiment of the present disclosure, any multiple modules among the first acquisition module 810, the mapping module 820, the second acquisition module 830, the first calculation module 840, the second calculation module 850, the word segmentation and extraction unit 8201, the matching unit 8202, the translation unit 8401, the marking unit 8402, the statistical unit 8501, the judgment unit 8502 and the execution unit 8503 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first acquisition module 810, the mapping module 820, the second acquisition module 830, the first calculation module 840, the second calculation module 850, the word segmentation extraction unit 8201, the matching unit 8202, the translation unit 8401, the marking unit 8402, the statistical unit 8501, the judgment unit 8502 and the execution unit 8503 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or can be implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first acquisition module 810, the mapping module 820, the second acquisition module 830, the first calculation module 840, the second calculation module 850, the word segmentation extraction unit 8201, the matching unit 8202, the translation unit 8401, the marking unit 8402, the statistics unit 8501, the judgment unit 8502 and the execution unit 8503 can be at least partially implemented as a computer program module, which can execute corresponding functions when the computer program module is run.

[0111] Fig.10 A block diagram of an electronic device suitable for implementing the index testing method, apparatus, device, medium and program product according to an embodiment of the present disclosure is schematically shown.

[0112] like Fig.10As shown, the electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include an onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0113] In RAM 903, various programs and data required for the operation of electronic device 900 are stored. Processor 901, ROM 902 and RAM 903 are connected to each other via bus 904. Processor 901 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 902 and / or RAM 903. It should be noted that the program can also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0114] According to an embodiment of the present disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to the bus 904. The electronic device 900 may further include one or more of the following components connected to the I / O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 908 including a hard disk, etc.; and a communication portion 909 including a network interface card such as a LAN card, a modem, etc. The communication portion 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage portion 908 as needed.

[0115] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0116] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus, or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 902 and / or RAM 903 described above and / or one or more memories other than ROM 902 and RAM 903.

[0117] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the indicator testing method provided by the embodiment of the present disclosure.

[0118] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 901. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0119] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 909, and / or installed from a removable medium 911. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0120] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0121] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0122] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0124] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. An index testing method, characterized in that: include: Acquire an original indicator description, where the original indicator description exists in a natural language form, wherein the original indicator description is used to screen target elements that meet preset conditions; Mapping the original indicator description into a standardized indicator description based on a rule mapping table; Pre-acquire a target element data table, wherein the target element data table includes an element identifier, and the element identifier is used to identify the target element; Processing the target element data table based on the standardized indicator description execution statement to obtain the element label; and A test result is obtained based on the element tag.

2. The method according to claim 1, wherein: Mapping the indicator description into a standardized indicator description based on a rule mapping table includes: Extracting segmented words from the indicator description through a segmentation model; The word segmentation is matched with the rule mapping table to extract the standardized indicator description.

3. The method according to claim 1, wherein: The processing of the target element data table based on the standardized indicator description execution statement to obtain the element label includes: Processing the standardized indicator description based on the translation rule to obtain the standardized indicator description execution statement; The target element data table is processed based on the standardized indicator execution statement, and elements that meet the standardized indicator description are marked with element tags.

4. The method according to claim 1 or 3, wherein: Acquiring the test result based on the element tag includes: Counting the number of the element tags and the number of the element identifiers respectively; Determining whether the number of the element tags is the same as the number of the element identifiers; When the number of the element tags is the same as the number of the element identifiers, the test is judged to be passed.

5. The method according to claim 4, wherein: The method further comprises: When the number of the element tags is different from the number of the element identifiers, the test is judged to be failed, and the corresponding element data and standardized indicator description are output.

6. The method according to claim 1, wherein: When the target element data table is processed based on the standardized indicator description execution statement, the method further includes: When the execution fails, no element tag is generated, but an error prompt is generated, wherein the error prompt is used to prompt the content of the error in the writing of the rule mapping table.

7. The method according to claim 1, wherein: The method further comprises: When the number of the target element data tables and / or the number of the rule mapping tables is greater than one, the testing method is executed in parallel based on a multi-threaded processor.

8. The method according to claim 1, wherein: The rule mapping table includes screening rules and statistical rules, wherein the screening rules are used to represent element screening conditions, and the statistical rules are used to represent element data calculation methods.

9. The method according to claim 8, wherein: The statistical rules include classification rules and / or aggregation rules.

10. An index testing device, comprising: A first acquisition module is used to acquire an original indicator description, where the original indicator description exists in the form of natural language, wherein the original indicator description is used to screen target elements that meet preset conditions; A mapping module, used for mapping the original indicator description into a standardized indicator description based on a rule mapping table; A second acquisition module is used to pre-acquire a target element data table, wherein the target element data table includes an element identifier, and the element identifier is used to identify the target element; A first calculation module, used to process the target element data table based on the standardized indicator description execution statement to obtain an element label; The second calculation module is used to obtain the test result based on the element tag.

11. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 10.

12. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 10.