Data generation method and device based on matching rules
By constructing the tree-shaped structure capability index system data and analyzing the test demand data, automatically matching the basic index data, and generating a test capacity requirement list, the problem of inefficient splitting of test demands in the existing technology is solved, and efficient and accurate data management is achieved.
Patent Information
- Application Number
- CN202310014706.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-05
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2043-01-05
AI Technical Summary
When performing test requirements splitting, the manual data selection workload is large, slow, error-prone, and splitting test requirements for different projects in the prior art requires repeated and tedious work, resulting in low work efficiency.
Construct the ability index system data of the tree-shaped structure, extract keywords by analyzing the experimental requirement data, determine the basic indicator data matching the keywords, and determine the matching ability index system from the ability index system data of the tree-shaped structure to generate a list of experimental ability requirements based on the relationship between the leaf nodes and the basic indicator data.
It has achieved unified management of all test indicators, requirements and rules in the project, reduced errors in the splitting process of test requirements, improved the accuracy of data search and input, and improved work efficiency.
Smart Images

Figure CN116089465B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data generation method and device based on matching rules, an electronic device, a non-transitory computer-readable storage medium, and a computer program product. Background Art
[0002] When conducting experiments, test requirements need to be segmented, which involves numerous data queries and data association operations tailored to the specific test requirements. When the test requirements are large, manual data selection is labor-intensive, slow, time-consuming, and prone to errors. After the test requirements are segmented, staff must perform subsequent operations on the test indicator data, increasing their workload. Furthermore, segmenting test requirements for different projects requires repetition of the same tedious tasks, resulting in low efficiency.
[0003] The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approach described in this section is prior art simply by virtue of its inclusion in this section. Similarly, unless otherwise indicated, the issues raised in this section should not be considered as having been recognized in any prior art. Summary of the Invention
[0004] The present disclosure provides a data generation method, apparatus, electronic device, computer-readable storage medium, and computer program product based on matching rules.
[0005] According to one aspect of the present disclosure, a data generation method based on matching rules is provided, which includes: constructing capability indicator system data with a tree structure, wherein the capability indicator system data with a tree structure includes a root node and multi-level child nodes and leaf nodes subordinate to the root node, the multi-level child nodes and leaf nodes represent multiple levels of test capabilities required to complete different test tasks, and each leaf node is associated with corresponding basic indicator data, the basic indicator data describes information about the test basic indicators and the test equipment corresponding to the test basic indicators; obtaining the test requirement data of the project, the test requirement data describes the test requirements of different levels of the project; parsing the test requirement data to extract keywords from the test requirement data; determining the basic indicator data matching the keywords, and based on the association relationship between the leaf nodes and the basic indicator data, determining the capability indicator system associated with the matched basic indicator data from the capability indicator system data with the tree structure, the determined capability indicator system representing the test capabilities required for the test requirements of different levels; and associating the matched basic indicator data and the determined capability indicator system with the test requirements of different levels to generate a test capability requirement list.
[0006] According to another aspect of the present disclosure, a data generation device based on matching rules is provided, comprising: a first unit configured to construct capability indicator system data in a tree structure, the capability indicator system data in the tree structure comprising a root node and multiple levels of child nodes and leaf nodes subordinate to the root node, the multiple levels of child nodes and leaf nodes representing multiple levels of test capabilities required to complete different test tasks, each leaf node being associated with corresponding basic indicator data, the basic indicator data describing information about test basic indicators and test equipment corresponding to the test basic indicators; a second unit configured to obtain test requirement data of a project, the test requirement data describing test requirements of different levels of the project; a third unit configured to parse the test requirement data to extract keywords from the test requirement data; a fourth unit configured to determine basic indicator data matching the keywords, and based on the association relationship between the leaf nodes and the basic indicator data, determine a capability indicator system associated with the matched basic indicator data from the capability indicator system data in the tree structure, wherein the determined capability indicator system represents the test capabilities required for test requirements of different levels; and a fifth unit configured to associate the matched basic indicator data and the determined capability indicator system with test requirements of different levels to generate a test capability requirement list.
[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and the computer program implements the above method when executed by the at least one processor.
[0008] According to yet another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is provided, wherein the computer program implements the above method when executed by a processor.
[0009] According to yet another aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements. In the drawings:
[0012] Figure 1 A flow chart of a data generation method based on matching rules according to an embodiment of the present disclosure is shown;
[0013] Figure 2 According to an embodiment of the present disclosure, Figure 1 A flowchart of the steps of extracting keywords from test demand data in the method shown;
[0014] Figure 3 According to an embodiment of the present disclosure, Figure 1 A flowchart of the steps of determining a capability indicator system associated with matched basic indicator data in the method shown;
[0015] Figure 4 According to an embodiment of the present disclosure, Figure 1 Schematic diagram of the tree-structured capability index system data in the method shown;
[0016] Figure 5 According to an embodiment of the present disclosure, Figure 1 Schematic diagram of the test capability requirements list in the illustrated approach;
[0017] Figure 6 According to an embodiment of the present disclosure, Figure 1 Schematic diagram of the test capability requirements list in the illustrated approach;
[0018] Figure 7 shows a structural block diagram of a data generation device based on matching rules according to an embodiment of the present disclosure; and
[0019] Figure 8 A block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0020] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0021] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.
[0022] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.
[0023] In order to alleviate, mitigate or eliminate at least one technical problem in the related art, according to one or more embodiments of the present disclosure, a method for generating data based on matching rules is proposed.
[0024] Exemplary embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0025] Figure 1 FIG. 1 is a flow chart of a data generation method 100 based on matching rules according to an embodiment of the present disclosure. Figure 1 Each step of the method 100 is described in detail.
[0026] In step 101, capability indicator system data of a tree structure is constructed, wherein the capability indicator system data of the tree structure includes a root node and multi-level child nodes and leaf nodes subordinate to the root node, the multi-level child nodes and leaf nodes represent multiple levels of test capabilities required to complete different test tasks, each leaf node is associated with corresponding basic indicator data, and the basic indicator data describes information about the basic test indicators and the test equipment corresponding to the basic test indicators.
[0027] A tree structure is a data structure with branches and hierarchical relationships between data nodes. The tree structure can be used to construct capability indicator system data for various tests. In one example, the capability indicator system data includes test capabilities of multiple different levels, and the highest level test capability can be deployed at the root node of the tree structure. The highest level test capability can include multiple secondary level test capabilities, and these test capabilities can be deployed accordingly on the child nodes of the tree structure. Similarly, through multi-level capabilities, the deployment of corresponding multi-level child nodes in the tree structure is completed. The lowest level capabilities are deployed at the leaf nodes of the tree structure. The basic test indicator data can be associated with the leaf nodes of the tree structure.
[0028] According to some embodiments, each basic indicator data includes the name of the test basic indicator, the description of the test basic indicator, the name of the test equipment corresponding to the test basic indicator, and the performance parameters of the test equipment on the test basic indicator.
[0029] In one example, the test basic indicator data includes: tank fire strike range (the name of the test basic indicator), test tank fire strike range in meters (description of the test basic indicator), laser rangefinder (the name of the test equipment corresponding to the test basic indicator), and the measurement unit is meters (performance parameters on the test basic indicator).
[0030] In step 102 , test requirement data of the project is obtained, where the test requirement data describes test requirements at different levels of the project.
[0031] In some embodiments, test requirement data can be initialized by importing a file or manually entering the test requirement data. In this example, the imported file and manually entered test requirement data can be structured data that defines different hierarchies for different test requirements. For example, if the test requirement is to test tank firepower and fire control, the firepower test requirement for the tank can be assigned a higher level, while the fire control test requirement for the tank can be assigned a lower level than the firepower test requirement, and the firepower test requirement can include the fire control test requirement.
[0032] In step 103, the test requirement data is parsed to extract keywords from the test requirement data. Step 103 will be combined with Figure 2 Specific description.
[0033] In step 104, basic indicator data matching the keywords is determined, and based on the association relationship between the leaf nodes and the basic indicator data, a capability indicator system associated with the matching basic indicator data is determined from the capability indicator system data in the tree structure, wherein the determined capability indicator system represents the test capabilities required for test requirements at different levels.
[0034] Based on the keywords obtained in step 103, the basic indicator data associated with the leaf nodes in the tree-structured capability indicator system data established in step 101 are associated. Then, through the association relationship between the leaf nodes and the multi-level child nodes and the root node, the capability indicator system associated with the matching basic indicator data is determined from the tree-structured capability indicator system data. Step 104 will also be combined with the following Figure 3 and Figure 4 Specific description.
[0035] In step 105, the matched basic indicator data and the determined capability indicator system are associated with the test requirements at different levels to generate a test capability requirement list. Figure 5 and Figure 6 Specific description.
[0036] In this way, all test indicators, requirements and rules within the project can be managed in a unified manner, which can reduce the operations such as searching and inputting test indicators, capability systems and rules during the splitting and expansion of test requirements. At the same time, it can avoid or reduce errors caused by input and improve accuracy.
[0037] Figure 2 According to an embodiment of the present disclosure, Figure 1 The flowchart of step 103 of extracting keywords from test requirement data in method 100 is shown. Step 103 may include the following steps:
[0038] In step 201, the text content of the test requirement data is extracted.
[0039] In one example, the text content of the test requirement data is extracted using methods of the java org.apache.poi.xslf and hslf libraries.
[0040] In step 202, the text content is segmented.
[0041] In one example, after extracting the text content of the test requirement data, the text content is segmented using the word segmentation method in the Python textrank4zh library.
[0042] In step 203, keywords are extracted from the segmented text content.
[0043] In one example, after obtaining the word segmentation results of the text content, the keyword extraction method in the Python textrank4zh library is used to obtain the topic keywords of the text content after word segmentation.
[0044] According to some embodiments, similarity between the information described by the basic indicator data associated with each leaf node and the keywords is calculated. In one example, the information described by the basic indicator data associated with each leaf node and the extracted keywords are converted into corresponding text vectors, and the Euclidean distance between any text vector corresponding to the information described by the basic indicator data and the extracted keywords is calculated.
[0045] According to some embodiments, in response to the similarity being greater than or equal to a preset threshold, the basic indicator data associated with the leaf node is determined as the basic indicator data for matching. When the calculated Euclidean distance is less than or equal to the preset threshold, the similarity is greater than or equal to the preset threshold, and the basic indicator data is determined as the basic indicator data for matching.
[0046] Figure 3 According to an embodiment of the present disclosure, Figure 1The flowchart of step 104 of determining the capability indicator system associated with the matched basic indicator data in the method 100 is shown. Step 104 includes the following steps:
[0047] In step 301 , based on the association relationship between the leaf nodes and the basic indicator data, a plurality of leaf nodes associated with the matching basic indicator data in the tree-structured capability indicator system data are determined.
[0048] In step 302, a plurality of child nodes having affiliation relationships with a plurality of leaf nodes are determined in the capability indicator system data having a tree structure.
[0049] In step 303, a capability indicator system is formed by multiple child nodes and multiple leaf nodes.
[0050] To better illustrate Figure 3 The flowchart of step 104 is shown below. Figure 4 Specific instructions. Figure 4 According to an embodiment of the present disclosure, Figure 1 FIG. 4 is a schematic diagram of the tree-structured capability indicator system data 400 in the method 100 .
[0051] exist Figure 4 In the example, the tree-structured capability indicator system data 400 includes: a leaf node 401, which is used to represent the test capability of testing the strike range and accuracy; a leaf node 402, which is used to represent the test capability of testing the hit prevention; a leaf node 411, which is used to represent the test capability of testing the strike power; a child node 408 having a subordinate relationship with the leaf node 401 and the leaf node 411, which is used to represent the test capability of testing the tank firepower; a child node 409 having a subordinate relationship with the leaf node 402, which is used to represent the test capability of testing the tank protection; and a root node 410, which is used to represent the test capability of the tank test task.
[0052] In one example, corresponding to step 301, a set of keywords extracted from the test requirement data may be strike range, shooting accuracy, and reaction speed, while another set of keywords may be armor protection, missile jamming, and signal shielding. Strike range, shooting accuracy, and reaction speed may be matched with basic indicator data 403, 404, and 405, respectively. Armor protection, missile jamming, and signal shielding may correspond to basic indicator data 406 and 407, respectively. Therefore, leaf nodes 401 matching basic indicator data 403, 404, and 405, and leaf nodes 402 matching basic indicator data 406 and 407, are determined in the tree-structured capability indicator system data.
[0053] Corresponding to step 302, a child node 408 having a subordinate relationship with the leaf node 401 is determined through the leaf node 401. A child node 409 having a subordinate relationship with the leaf node 402 is determined through the leaf node 402.
[0054] Corresponding to step 303 , the determined leaf nodes 401 and 402 and the child nodes 408 and 409 are formed into a capability indicator system.
[0055] It is understandable that before executing step 303 , the root node 410 may be determined through the sub-nodes 408 and 409 , and thus the formed capability indicator system may further include the root node 410 .
[0056] By matching and associating the text analysis results of the test requirements with basic indicators and other data, the required capability indicator system, basic indicators and other data are automatically generated with a hierarchical structure of association, reducing tedious data operations.
[0057] Figure 5 According to an embodiment of the present disclosure, Figure 1 A schematic diagram of a test capability requirement list 500 created in the illustrated method.
[0058] like Figure 5 As shown, the test capability requirement list 500 includes a first list 501 for displaying the hierarchical relationship between test requirements at different levels.
[0059] The test capability requirement list 500 includes a second list 502 for displaying the hierarchical relationship between different levels of test capabilities corresponding to different levels of test requirements. In this case, the second list 502 shows the test capabilities corresponding to all nodes in the tree-structured capability indicator system.
[0060] Test capability requirement list 500 includes multiple third lists 503, each of which is used to display at least one test basic indicator corresponding to a corresponding level of test capability at different levels. In third lists 503, test personnel can obtain, for example, the name of the test basic indicator, a description of the test basic indicator, the name of the test equipment corresponding to the test basic indicator, and the performance parameters of the test equipment based on the test basic indicator, and can also manage (e.g., delete) the test basic indicator.
[0061] Figure 6 According to an embodiment of the present disclosure, Figure 1 A schematic diagram of a test capability requirement list 600 created in the illustrated method.
[0062] exist Figure 6In the example, the user clicks to view Level 3 test requirement 4 (surrounded by a solid-line frame in first list 501), and multiple test capabilities corresponding to Level 3 test requirement 4 appear in second list 502 (surrounded by dashed and solid-line frames in second list 502). The user clicks to view Level 3 capability 4 (surrounded by a solid-line frame in second list 502), and the test basic indicators corresponding to Level 3 capability 4 (Indicator 1, Indicator 2, ..., Indicator 5) appear in third list 503.
[0063] Figure 7 The structural block diagram of the data generation device 700 based on matching rules according to an embodiment of the present disclosure is shown. The device 700 includes: a first unit 701, which is configured to construct capability indicator system data of a tree structure, wherein the capability indicator system data of the tree structure includes a root node and multi-level child nodes and leaf nodes subordinate to the root node, and the multi-level child nodes and leaf nodes represent multiple levels of test capabilities required to complete different test tasks, wherein each leaf node is associated with corresponding basic indicator data, and the basic indicator data describes information about the test basic indicators and the test equipment corresponding to the test basic indicators; a second unit 702, which is configured to obtain the test requirement data of the project, and the test requirement data describes the test requirements of different levels of the project; a third unit 703, which is configured to obtain the test requirement data of the project, and the test requirement data describes the test requirements of different levels of the project; Unit 703 is configured to parse the test requirement data to extract keywords from the test requirement data; the fourth unit 704 is configured to determine the basic indicator data that matches the keywords, and based on the association relationship between the leaf nodes and the basic indicator data, determine the capability indicator system associated with the matched basic indicator data from the capability indicator system data of the tree structure, wherein the determined capability indicator system represents the test capabilities required for test requirements at different levels; and the fifth unit 705 is configured to associate the matched basic indicator data and the determined capability indicator system with test requirements at different levels to generate a list of test capability requirements.
[0064] While specific functions have been discussed above with reference to specific units, it should be noted that the functionality of the various units discussed herein may be divided into multiple units, and / or at least some of the functionality of multiple units may be combined into a single unit. The specific unit discussed herein performing an action includes the specific unit itself performing the action, or alternatively the specific unit calling or otherwise accessing another component or unit that performs the action (or performs the action in conjunction with the specific unit). Thus, the specific unit that performs an action may include the specific unit itself that performs the action and / or another unit that the specific unit calls or otherwise accesses to perform the action.
[0065] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Figure 7The various units described may be implemented in hardware or in hardware in combination with software and / or firmware. For example, these modules may be implemented as computer program code / instructions configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these units may be implemented as hardware logic / circuits.
[0066] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program, and when the computer program is executed by the at least one processor, the method described above is implemented.
[0067] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing a computer program is further provided, wherein the computer program implements the above method when executed by a processor.
[0068] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above method when executed by a processor.
[0069] See also Figure 8 , a block diagram of an electronic device 800 that can be used as the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device can be different types of computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0070] Figure 8 FIG. 1 shows a block diagram of an electronic device according to an embodiment of the present disclosure. Figure 8 As shown, the electronic device 800 may include at least one processor 801 , a working memory 802 , an input unit 804 , a display unit 805 , a speaker 806 , a storage unit 807 , a communication unit 808 , and other output units 809 , which can communicate with each other via a system bus 803 .
[0071] The processor 801 may be a single processing unit or multiple processing units, all of which may include a single or multiple computing units or multiple cores. The processor 801 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits, and / or any device that manipulates signals based on operational instructions. The processor 801 may be configured to retrieve and execute computer-readable instructions stored in the working memory 802, the storage unit 807, or other computer-readable media, such as program code of an operating system 802a, program code of an application program 802b, and the like.
[0072] The working memory 802 and the storage unit 807 are examples of computer-readable storage media for storing instructions that are executed by the processor 801 to implement the various functions described above. The working memory 802 may include both volatile memory and non-volatile memory (e.g., RAM, ROM, etc.). In addition, the storage unit 807 may include a hard drive, a solid-state drive, removable media, including external and removable drives, memory cards, flash memory, floppy disks, optical disks (e.g., CDs, DVDs), storage arrays, network attached storage, storage area networks, etc. The working memory 802 and the storage unit 807 may all be collectively referred to herein as memory or computer-readable storage media, and may be non-transitory media capable of storing computer-readable, processor-executable program instructions as computer program code, which may be executed by the processor 801 as a specific machine configured to implement the operations and functions described in the examples herein.
[0073] The input unit 806 can be any type of device capable of inputting information into the electronic device 800. The input unit 806 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone and / or remote control. The output unit can be any type of device capable of presenting information, and can include but is not limited to a display unit 805, a speaker 806, and other output units 809. Other output units 809 can include but are not limited to video / audio output terminals, vibrators and / or printers. The communication unit 808 allows the electronic device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver and / or a chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device and / or the like.
[0074] The application 802b in the working register 802 can be loaded to perform the various methods and processes described above. For example, in some embodiments, the image processing method can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 807. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 800 via the storage unit 807 and / or the communication unit 808. When the computer program is loaded and executed by the processor 801, one or more steps of the image processing method described above can be performed. Alternatively, in other embodiments, the processor 801 can be configured to perform the image processing method by any other appropriate means (e.g., by means of firmware).
[0075] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0076] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0077] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, 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), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0078] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0079] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0080] Computer systems may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The client and server relationship arises through computer programs running on the respective computers and having a client-server relationship to each other.
[0081] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.
[0082] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples can be omitted or replaced by their equivalents. In addition, the steps can be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that as technology evolves, many of the elements described here can be replaced by equivalent elements that appear after this disclosure.
Claims
1. A data generation method based on matching rules, comprising: Constructing capability indicator system data in a tree structure, wherein the capability indicator system data in the tree structure includes a root node and multiple levels of child nodes and leaf nodes subordinate to the root node, wherein the multiple levels of child nodes and leaf nodes represent multiple levels of test capabilities required to complete different test tasks, wherein each leaf node is associated with corresponding basic indicator data, wherein the basic indicator data describes information about basic test indicators and test equipment corresponding to the basic test indicators; Acquire test requirement data of a project, wherein the test requirement data describes test requirements of different levels of the project; parsing the test requirement data to extract keywords from the test requirement data; Determining basic indicator data that matches the keyword, and based on the association relationship between the leaf node and the basic indicator data, determining a capability indicator system associated with the matching basic indicator data from the capability indicator system data in the tree structure, wherein the determined capability indicator system represents the test capabilities required for the test requirements at different levels; and The matched basic indicator data and the determined capability indicator system are associated with the test requirements at different levels to generate a test capability requirement list.
2. The method according to claim 1, wherein Based on the association relationship between the leaf nodes and the basic indicator data, determining the capability indicator system associated with the matching basic indicator data from the capability indicator system data in the tree structure includes: Based on the association relationship between the leaf nodes and the basic indicator data, determining a plurality of leaf nodes in the capability indicator system data of the tree structure that are associated with the matching basic indicator data; Determining a plurality of child nodes in the tree-structured capability indicator system data that have a subordinate relationship with the plurality of leaf nodes; and The capability indicator system is formed by the multiple child nodes and the multiple leaf nodes.
3. The method according to claim 1, wherein The test capability requirements list includes: The first list is used to show the hierarchical relationship between the test requirements at different levels; A second list is used to show the hierarchical relationship between the test capabilities of different levels corresponding to the test requirements of different levels; and A plurality of third lists, each third list is used to display at least one basic test indicator corresponding to a corresponding level of test capability among the different levels of test capabilities.
4. The method according to claim 1, wherein Parsing the test requirement data to extract keywords from the test requirement data includes: Extracting text content of the test requirement data; Segmenting the text content; and The keywords are extracted from the text content after word segmentation.
5. The method according to claim 1, wherein Each basic indicator data includes the name of the test basic indicator, the description of the test basic indicator, the name of the test equipment corresponding to the test basic indicator, and the performance parameters of the test equipment on the test basic indicator.
6. The method according to any one of claims 1 to 5, wherein The basic indicator data that matches the keyword include: Calculating the similarity between the information described by the basic indicator data associated with each leaf node and the keyword; and In response to the similarity being greater than or equal to a preset threshold, basic indicator data associated with the leaf node is determined as matching basic indicator data.
7. A data generation device based on matching rules, comprising: A first unit is configured to construct capability indicator system data in a tree structure, wherein the capability indicator system data in the tree structure includes a root node and multiple levels of child nodes and leaf nodes subordinate to the root node, wherein the multiple levels of child nodes and leaf nodes represent multiple levels of test capabilities required to complete different test tasks, wherein each leaf node is associated with corresponding basic indicator data, wherein the basic indicator data describes information about a basic test indicator and a test device corresponding to the basic test indicator; The second unit is configured to obtain test requirement data of a project, wherein the test requirement data describes test requirements of different levels of the project; a third unit configured to parse the test requirement data to extract keywords from the test requirement data; a fourth unit configured to determine basic indicator data matching the keyword, and based on the association relationship between the leaf node and the basic indicator data, determine a capability indicator system associated with the matching basic indicator data from the capability indicator system data in the tree structure, wherein the determined capability indicator system represents the test capabilities required for the test requirements at different levels; and The fifth unit is configured to associate the matched basic indicator data and the determined capability indicator system with the test requirements at different levels to generate a test capability requirement list.
8. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores a computer program, which, when executed by the at least one processor, implements the method according to any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing a computer program, wherein: The computer program implements the method according to any one of claims 1 to 6 when executed by a processor.
10. A computer program product comprising a computer program, wherein The computer program implements the method according to any one of claims 1 to 6 when executed by a processor.