Test case list generation method and device, equipment and medium

By analyzing heterogeneous IP configuration files to generate dependency files, and automatically constructing a test case list, it solves the difficulty and risk issues of heterogeneous IP test case management in hardware circuit verification, improves management efficiency and accuracy, and reduces maintenance costs.

CN119127708APending Publication Date: 2024-12-13BEIJING SUIYUAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411277891.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-12
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

During the hardware circuit verification process, the test case list that manages heterogeneous IPs has problems such as difficulty in manual maintenance and high risk in data management. Especially when project updates and iterations, manual operations can easily lead to error deletion or incorrect addition, resulting in increased maintenance costs.

Method used

By obtaining test case template association data and heterogeneous IP configuration files, parsing the configuration files to generate heterogeneous IP dependency files, and generating a heterogeneous IP test case list based on these files, realizing automatic matching and management, and reducing the risk of human misoperation.

Benefits of technology

Improves the management efficiency and accuracy of test case lists, reduces data management risks and maintenance costs of heterogeneous IPs, and enhances operational flexibility and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127708A_ABST
    Figure CN119127708A_ABST
Patent Text Reader

Abstract

The invention discloses a test case list generation method and device, equipment and a medium. The test case list generation method comprises the following steps: acquiring test case template associated data and a heterogeneous integrated circuit component IP configuration file; analyzing the heterogeneous IP configuration file to obtain a heterogeneous IP dependency relationship file; and generating a heterogeneous IP test case list based on the test case template associated data and the heterogeneous IP dependency relationship file. According to the technical scheme provided by the embodiment of the invention, the data management risk of test case list management and the maintenance cost of heterogeneous IPs can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of integrated circuit technology, and in particular to a method, device, equipment and medium for generating a test case list. Background Art

[0002] A large number of test cases need to be constructed during the hardware circuit verification process. These test cases are generally organized and managed in text form, that is, a text data set is constructed, also known as a test case list. Regression testing tools or processes are based on test case lists, which can accurately match test cases from a large number of test sets, load dependent options and dependent data, and deliver complete test tasks to the simulation platform. Throughout the process, developers focus their main energy on writing test code and debugging circuit functions, and often neglect the management of test sets.

[0003] In the same hardware circuit project, heterogeneous IP (Intellectual Property) has multiple design variants. Among them, IP is usually named as integrated circuit components. There are differences in design interface, architecture parameters, functional behavior, area and performance indicators between the variants, and the test cases corresponding to these variant designs are also alienated. The number of test cases is also huge. How to accurately and efficiently match these differences brings challenges to the maintenance and management of test lists, especially when the number of IP variants and functional architecture indicators brought about by project updates and iterations are added. The maintenance cost will become even higher.

[0004] Currently, the method of managing heterogeneous IP test case lists is human inspection and manual maintenance. Excessive manual operations will inevitably bring potential management risks, such as accidental deletion of test cases when batch operating the test list, repeated or incorrect addition of test options, etc. Especially when facing heterogeneous IP and continuous project iteration, manual maintenance becomes almost impossible. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for generating a test case list, so as to solve the problems of great difficulty in manual maintenance and high risk in data management in the current test case list management.

[0006] According to one aspect of the present invention, a method for generating a test case list is provided, comprising:

[0007] Obtain test case template associated data and heterogeneous IP configuration files;

[0008] Parse the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file;

[0009] Generate a list of heterogeneous IP test cases based on the test case template association data and the heterogeneous IP dependency file.

[0010] According to another aspect of the present invention, there is provided a device for generating a test case list, comprising:

[0011] Data acquisition module, used to obtain test case template associated data and heterogeneous IP configuration files;

[0012] A file parsing module is used to parse heterogeneous IP configuration files to obtain heterogeneous IP dependency files;

[0013] The test case list generation module is used to generate a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0015] at least one processor; and

[0016] a memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a test case list described in any embodiment of the present invention.

[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating a test case list described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present invention, by acquiring the test case template associated data and the heterogeneous IP configuration file, the heterogeneous IP configuration file is parsed to obtain the heterogeneous IP dependency file, and then based on the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated. In this solution, the user can adjust the test case template associated data according to the project indicators and design plan, and can also formulate different heterogeneous IP configuration files according to the project needs and IP version information, and the heterogeneous IP dependency file can accurately describe the dependency of heterogeneous IPs. Therefore, according to the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated, which not only has strong project adaptability, but also can automatically and accurately match the differences of heterogeneous IPs, improve the flexibility and accuracy of operations, avoid human error operations, and improve management efficiency, solve the problems of difficult manual maintenance and high data management risks in the current test case list management, and can reduce the data management risk of the test case list management and the maintenance cost of heterogeneous IPs.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1 A flowchart of a method for generating a test case list provided in Embodiment 1 of the present invention;

[0023] Figure 2 A flowchart of a method for generating a test case list provided in Embodiment 2 of the present invention;

[0024] Figure 3 A test case list generation method implementation framework provided in the second embodiment of the present invention;

[0025] Figure 4 A schematic diagram of the structure of a device for generating a test case list provided in Embodiment 3 of the present invention;

[0026] Figure 5 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0029] Embodiment 1

[0030] Figure 1 This is a flowchart of a method for generating a test case list provided in the first embodiment of the present invention. This embodiment is applicable to the case of automatically and intelligently managing a test case list. The method can be executed by a device for generating a test case list. The device for generating a test case list can be implemented in the form of hardware and / or software. The device for generating a test case list can be configured in an electronic device. Figure 1 As shown, the method includes:

[0031] Step 110: Obtain test case template associated data and heterogeneous IP configuration files.

[0032] The test case template associated data may be data associated with a preset test case description template. The test case template associated data may include the test case description template itself and data filled in by the user for the test case description template. The heterogeneous IP configuration file may be a configuration file required for generating a test case list. The heterogeneous IP configuration file may include relevant tag information of the test items corresponding to each IP. The tag information may include, but is not limited to, project name, IP type, test directory, and functional characteristics.

[0033] In an embodiment of the present invention, data filled in by a user for a preset test case description template can be obtained and combined with the test case description template to determine test case template associated data, and a heterogeneous IP configuration file prepared in advance by the user can also be obtained.

[0034] Step 120: Parse the heterogeneous IP configuration file to obtain a heterogeneous IP dependency relationship file.

[0035] The heterogeneous IP dependency file can be used to record the dependency between each IP type and its required tag information in the heterogeneous IP. The file format of the heterogeneous IP configuration file can include CSV (Comma-Separated Values), JSON (JavaScript Object Notation, a lightweight data exchange format) or YAML (a data-centric markup language), etc., for users to flexibly choose.

[0036] In the embodiment of the present invention, the file format of the heterogeneous IP configuration file is not restricted, and the user is supported to select the required file format to write the heterogeneous IP configuration file based on the usage habits. Therefore, after obtaining the heterogeneous IP configuration file, the file format of the heterogeneous IP configuration file can be determined first, and then the file is parsed for the current file format of the heterogeneous IP configuration file, each IP type is mapped with the required tag information, and a dependency graph or dependency relationship between the IP type and the corresponding tag information is established to generate a heterogeneous IP dependency relationship file.

[0037] Step 130: Generate a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file.

[0038] The heterogeneous IP test case list may be a test case list of the heterogeneous IP. The heterogeneous IP test case list lists the test items corresponding to all versions of the heterogeneous IP. The test case list may be understood as a list that specifically records the number of tests for each test type (such as addition test, matrix multiplication test, etc.).

[0039] In an embodiment of the present invention, the test case description template filled in by the user corresponding to the test case template association data can be parsed to determine the application conditions of the test items in the test case description template, and based on the dependency relationship of each IP recorded in the heterogeneous IP dependency relationship file, a test case list matching the heterogeneous IP is generated, that is, a heterogeneous IP test case list is obtained. In this way, many batch heterogeneous IP test case management tasks can be automatically completed, achieving the goals of efficient operation and accurate matching.

[0040] Exemplarily, assuming that the heterogeneous IP is an operator, the A version operator supports XOR operations, the B version operator supports convolution calculations, and the C version operator supports all operations. If the application conditions of the test items in the test case description template are common to all IP types, the generated heterogeneous IP test case list includes test items of all operator variants. If the application conditions of the test items in the test case description template are not common to all IP types, then based on the application conditions of the test items in the test case template, the dependency of the IP that matches the application conditions of the test items is queried in the heterogeneous IP dependency file (equivalent to determining the IP that meets the application conditions of the test items), and then based on the test items in the test case description template filled in by the user, and the IP that meets the application conditions of the corresponding test items, a heterogeneous IP test case list is generated.

[0041] The technical solution of the embodiment of the present invention, by acquiring the test case template associated data and the heterogeneous IP configuration file, the heterogeneous IP configuration file is parsed to obtain the heterogeneous IP dependency file, and then based on the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated. In this solution, the user can adjust the test case template associated data according to the project indicators and design plan, and can also formulate different heterogeneous IP configuration files according to the project needs and IP version information, and the heterogeneous IP dependency file can accurately describe the dependency of heterogeneous IPs. Therefore, according to the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated, which not only has strong project adaptability, but also can automatically and accurately match the differences of heterogeneous IPs, improve the flexibility and accuracy of operations, avoid human error operations, and improve management efficiency, solve the problems of difficult manual maintenance and high data management risks in the current test case list management, and can reduce the data management risk of the test case list management and the maintenance cost of heterogeneous IPs.

[0042] Embodiment 2

[0043] Figure 2 The flowchart of a method for generating a test case list provided in the second embodiment of the present invention is specific based on the above embodiment, and provides a specific optional implementation method for parsing heterogeneous IP configuration files to obtain heterogeneous IP dependency files. Figure 2 As shown, the method includes:

[0044] Step 210: Acquire test case template associated data and heterogeneous IP configuration files.

[0045] In an optional embodiment of the present invention, obtaining test case template associated data may include: obtaining test item data input by a user for a test case description template, and test item dependencies specified by the user; and using the test item data, the test case description template, and the test item dependencies specified by the user as test case template associated data.

[0046] The test case description template may be a test case template in a fixed format set by a user. The test item data may be a test item in the test case description template. The user-specified test item dependency may be a dependency option of the test item configured by the user. Exemplarily, the test case description template provides a test item boundary range that the user needs to specify and a test item dependency that the user needs to specify. At least one test item may be encapsulated within the test item boundary range that the user needs to specify.

[0047] In an embodiment of the present invention, test item data input by a user within the test item boundary range of a test case description template and user-specified test item dependencies respectively matched with each test item data may be collected, and then the test item data, the test case description template and the user-specified test item dependencies may be used as test case template associated data.

[0048] For example, a test case description template may be as follows:

[0049] test_begin[func:'cmn',size:'small',tag'address_pattern']

[0050] add_test(test entry 1, test entry dependencies);

[0051] add_test(test entry 2, test entry dependencies);

[0052] …

[0053] gen_test(uvm_testname:'address_pattern_direct_test')

[0054] test_end

[0055] In the above test case description template, the function domain is set to cmn, the simulation occupied machine size is small, and the packaged tag is address_pattern. Multiple test items can be packaged into a group and placed between the test_begin and test_end delimiters, and a group of test cases of the same type are packaged. The number of test items between the test_begin and test_end delimiters is set by the user based on needs. The test case description template has a simple format and is easy to modify. You can get real-time updated test items with less template maintenance.

[0056] Step 220: parse the project configuration data in the heterogeneous IP configuration file through the target text parser to obtain a first labeled data set, and parse the IP configuration data to be verified in the heterogeneous IP configuration file to obtain a second labeled data set.

[0057] Among them, the target text parser can be a parser of a common format for parsing heterogeneous IP configuration files. The target text parser can be used to parse text format files frequently used in the field of integrated circuit engineering. The project configuration data can be configuration data related to heterogeneous IP test projects. The first marked data set can be a data set of marking information parsed from the project configuration data. The IP configuration data to be verified can be the configuration data of the IP to be tested and verified. The second marked data set can be a data set of marking information parsed from the IP configuration data to be verified.

[0058] Exemplarily, the first tag data set may include tag information such as project name, IP type, test directory, and simulation environment variables. The second tag data set may include tag information such as design specification parameters and functional characteristics of a specific IP. When there are multiple IP variants of heterogeneous IP, the tag information corresponding to all IP variants should also be listed in detail.

[0059] In an embodiment of the present invention, the data format of the project configuration data in the heterogeneous IP configuration file and the data format of the IP configuration data to be verified may be different. Therefore, based on the target text parser, the data format of the project configuration data in the heterogeneous IP configuration file and the data format of the IP configuration data to be verified are first determined, and then the project configuration data is parsed based on the data format of the project configuration data to obtain a first labeled data set, and the IP configuration data to be verified is parsed based on the data format of the IP configuration data to obtain a second labeled data set.

[0060] Step 230: Based on the IP type, the first labeled data set is mapped with the second labeled data set to obtain a heterogeneous IP dependency file.

[0061] In an embodiment of the present invention, each IP version in a heterogeneous IP can be determined, thereby mapping the first marked data set and the second marked data set of each IP version. After completing the data mapping of all IP versions in the heterogeneous IP, a heterogeneous IP dependency file is obtained.

[0062] For example, assume that the project configuration data and the IP configuration data to be verified are in CSV format, the project configuration data is one file, and the IP configuration data to be verified is three files. These four files exist independently, and the information is discrete and difficult to read. At this time, a target text parser is needed to aggregate and classify the tag information. The target text parser will first identify the four files as CSV text format, then call the internal CSV parsing engine to parse and extract the identification information line by line, and finally output the extracted information to a separate output dependency file. At this time, the output text has already corresponded to all dependencies and has been classified and organized, which is convenient for direct search by the subsequent processing layer, and the output format is also easy to read.

[0063] For example, the target text parser parses out three types of ip_type in the project configuration data [dte_mmu, sic_mmu, vpu_mmu]. It can also parse out clock frequency information and data bit width information from the IP configuration data to be verified. Taking sic_mmu as an example, the target text parser can generate two types of heterogeneous IP dependency files: bus_list (bus data bit width) related types and func_list (circuit internal functions) related types.

[0064] The sic_mmu related information in the heterogeneous IP dependency file of bus_list related types is recorded as follows:

[0065] "sic_mmu" = > {

[0066] "df_data_width" => 1024,

[0067] "df_addr_width" => 48,

[0068] "df_awid_width" => 16,

[0069] "df_len_width"=>4,

[0070] "df_awuser_width" => 48,

[0071] "df_wuser_width" => 128,

[0072] …

[0073] "df_buser_width"=>73}

[0074] Step 240: Generate a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file.

[0075] In an optional embodiment of the present invention, generating a heterogeneous IP test case list based on test case template association data and a heterogeneous IP dependency file may include: determining a template format rule of a test case description template, and querying a target heterogeneous IP dependency in the heterogeneous IP dependency file based on the template format rule; generating a heterogeneous IP test case list based on the test case template association data and the target heterogeneous IP dependency.

[0076] The target heterogeneous IP dependency may be a dependency of a heterogeneous IP that satisfies the application conditions of the test item, that is, a dependency of a heterogeneous IP that is required for test verification.

[0077] In an embodiment of the present invention, the template format rules of the test case description template can be first determined, and then the template format rules can be used to parse the test case description template filled in by the user, determine the user-specified test item dependencies, and then based on the user-specified test item dependencies, query the heterogeneous IP dependencies that meet the test item application conditions in the heterogeneous IP dependency file, that is, the target heterogeneous IP dependencies, and further create a heterogeneous IP test case list based on the test case description template, test items and target heterogeneous IP dependencies in the test case template associated data.

[0078] In an optional embodiment of the present invention, querying the target heterogeneous IP dependency in the heterogeneous IP dependency file based on the template format rule may include: querying the target leading characters of the test entry data and the user-specified test entry dependencies based on the template format rule, and determining the heterogeneous IP screening data based on the target leading characters and the user-specified test entry dependencies; querying the target heterogeneous IP dependency in the heterogeneous IP dependency file based on the heterogeneous IP screening data.

[0079] The target prefix character may be a character preceding the test entry data that declares the test entry to be deleted. The heterogeneous IP screening data may be used to characterize the heterogeneous IPs that meet the test entry application conditions. The heterogeneous IP screening data may be obtained by filtering through operations such as dependent condition combination, filtering, and shielding.

[0080] In an embodiment of the present invention, the test case description template filled in by the user can be parsed based on the template format rules, and it can be queried whether there is a target prefix character before the test item data. If there is a target prefix character before the test item data, the heterogeneous IP that meets the test item application conditions is further determined based on the target prefix character and the user-specified test item dependencies, and the heterogeneous IP screening data is obtained, and then in the heterogeneous IP dependency file, the target heterogeneous IP dependency that matches the heterogeneous IP screening data is queried.

[0081] Exemplarily, the test item dependencies can be combined by the keyword lmt. For example, the test item dependencies combined by lmt are slcde==1 and dse_bpe2_4_only==0. These two conditions are matched in the heterogeneous IP dependency file to find the IP Type that meets the conditions for subsequent generation of the heterogeneous IP test case list. The keyword bp is used to filter out specific test items, and the IP variants that do not support the current application scenario function are filtered out. The key character # is used to represent the elimination of test items, that is, the test items declared by # will not be generated in the final heterogeneous IP test case list.

[0082] In an optional embodiment of the present invention, while generating a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file, it can also include: matching the test case template file location to obtain the current test case list generation location; automatically generating a test case list file of the heterogeneous IP test case list at the current test case list generation location; and counting the number of test cases and the test case types in the test case list file.

[0083] The test case template file location may be used to characterize the storage location of the test case description template. The current test case list generation location may be the file location for generating the current test case list. The test case list file may be a file for storing a heterogeneous IP test case list.

[0084] In an embodiment of the present invention, a distributed manner can be used to match the test case description template file location, determine the file location of the test case description template that matches the current test case list, and use the determined file location as the current test case list generation location. Further, at the current test case list generation location, a test case list file of the heterogeneous IP test case list can be automatically generated, and the number of test cases and the test case types of the test case list file can be counted.

[0085] It should be noted that the test case description template can be distributed in different file directories, and the number of test cases in each distributed directory and the cumulative number are presented in numbers. Whenever the test case description template is updated, the statistical data will also be accurately updated.

[0086] In an optional embodiment of the present invention, after generating a heterogeneous IP test case list based on the test case template associated data and the heterogeneous IP dependency file, it may also include: when it is detected that the test case template associated data and / or the heterogeneous IP configuration file are updated, the test case template associated data and / or the heterogeneous IP configuration file are updated; returning to execute the operation of parsing the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file.

[0087] Specifically, during the execution of a project, when a new list of test cases needs to be continuously generated based on design plans and indicator changes, the user will continuously update the content of the test case description template during this process, and the update of the test case template associated data can be detected at this time. When the test project evolves to the next generation, it is necessary to switch the project configuration, then the user will adaptively write a heterogeneous IP configuration file, and the update of the heterogeneous IP configuration file will be detected at this time. When the test case template associated data and / or the heterogeneous IP configuration file update is detected, the test case template associated data and / or the heterogeneous IP configuration file can be updated, and the operation of parsing the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file is returned until a heterogeneous IP test case list that meets the needs of the current project iteration is generated.

[0088] Figure 3 The present invention provides a test case list generation method implementation framework. Figure 3 As shown, the implementation framework of the test case list generation method of this solution can be divided into two levels: the preprocessing layer and the processing layer. In the preprocessing layer, the user completes the project configuration and the IP configuration to be verified. The target text parser identifies the tag information in the heterogeneous IP configuration file, and classifies and matches all the tag information. After the parsing process is completed, the heterogeneous IP dependency file will be output. This file maps each IP type and all the tag information it needs, that is, a dependency graph or dependency relationship is established. When the project configuration or IP configuration changes, it can be re-parsed to generate a new dependency relationship. The main task of the processing layer is to further parse the test case description template filled in by the user through the test case item builder based on the heterogeneous IP dependency file obtained in the preprocessing layer, and output the final heterogeneous IP test case list.

[0089] The technical solution of the embodiment of the present invention obtains the test case template associated data and the heterogeneous IP configuration file, thereby parsing the project configuration data in the heterogeneous IP configuration file through a target text parser to obtain a first marked data set, and parsing the IP configuration data to be verified in the heterogeneous IP configuration file to obtain a second marked data set, and then based on the IP type, the first marked data set is mapped with the second marked data set to obtain a heterogeneous IP dependency file, thereby generating a heterogeneous IP test case list based on the test case template associated data and the heterogeneous IP dependency file. In this solution, users can adjust the test case template associated data according to project indicators and design plans, and can also formulate different heterogeneous IP configuration files according to project needs and IP version information. The heterogeneous IP dependency file can accurately describe the dependencies of heterogeneous IPs. Therefore, a heterogeneous IP test case list is generated based on the test case template associated data and the heterogeneous IP dependency file. It not only has strong project adaptability, but also can automatically and accurately match the differences between heterogeneous IPs, improve operational flexibility and accuracy, avoid human errors, and improve management efficiency. It solves the problems of difficult manual maintenance and high data management risks in the current test case list management, and can reduce the data management risks of test case list management and the maintenance costs of heterogeneous IPs.

[0090] Embodiment 3

[0091] Figure 4 This is a schematic diagram of the structure of a device for generating a test case list provided in Embodiment 3 of the present invention. Figure 4 As shown, the device comprises:

[0092] The data acquisition module 310 is used to acquire test case template associated data and heterogeneous IP configuration files;

[0093] The file parsing module 320 is used to parse the heterogeneous IP configuration files to obtain the heterogeneous IP dependency relationship files;

[0094] The test case list generation module 330 is used to generate a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file.

[0095] The technical solution of the embodiment of the present invention, by acquiring the test case template associated data and the heterogeneous IP configuration file, the heterogeneous IP configuration file is parsed to obtain the heterogeneous IP dependency file, and then based on the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated. In this solution, the user can adjust the test case template associated data according to the project indicators and design plan, and can also formulate different heterogeneous IP configuration files according to the project needs and IP version information, and the heterogeneous IP dependency file can accurately describe the dependency of heterogeneous IPs. Therefore, according to the test case template associated data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated, which not only has strong project adaptability, but also can automatically and accurately match the differences of heterogeneous IPs, improve the flexibility and accuracy of operations, avoid human error operations, and improve management efficiency, solve the problems of difficult manual maintenance and high data management risks in the current test case list management, and can reduce the data management risk of the test case list management and the maintenance cost of heterogeneous IPs.

[0096] Optionally, the data acquisition module 310 is specifically used to acquire the test item data input by the user for the test case description template, and the user-specified test item dependencies; and use the test item data, the test case description template and the user-specified test item dependencies as the test case template associated data.

[0097] Optionally, the file parsing module 320 is specifically used to parse the project configuration data in the heterogeneous IP configuration file through a target text parser to obtain a first labeled data set, and to parse the IP configuration data to be verified in the heterogeneous IP configuration file to obtain a second labeled data set; based on the IP type, the first labeled data set is mapped with the second labeled data set to obtain the heterogeneous IP dependency file.

[0098] Optionally, the test case list generation module 330 is specifically used to determine the template format rules of the test case description template, and query the target heterogeneous IP dependency in the heterogeneous IP dependency file based on the template format rules; based on the test case template association data and the target heterogeneous IP dependency, generate the heterogeneous IP test case list.

[0099] Optionally, the test case list generation module 330 is specifically used to query the target prefix character of the test entry data and the user-specified test entry dependencies based on the template format rules, and determine the heterogeneous IP screening data based on the target prefix character and the user-specified test entry dependencies; based on the heterogeneous IP screening data, query the target heterogeneous IP dependency in the heterogeneous IP dependency file.

[0100] Optionally, the test case list generating device may include an information statistics module for matching the test case template file location to obtain the current test case list generation location; automatically generating a test case list file of the heterogeneous IP test case list at the current test case list generation location; and counting the number of test cases and test case types in the test case list file.

[0101] Optionally, the test case list generating device may include a data updating module, which is used to update the test case template associated data and / or the heterogeneous IP configuration file when it is detected that the test case template associated data and / or the heterogeneous IP configuration file are updated; and return to execute the operation of parsing the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file.

[0102] The device for generating a test case list provided in the embodiment of the present invention can execute the method for generating a test case list provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0103] Embodiment 4

[0104] Figure 5 A schematic diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.

[0105] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0106] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0107] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a method for generating a test case list.

[0108] In some embodiments, the method for generating a test case list may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for generating a test case list described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the method for generating a test case list by any other appropriate means (e.g., by means of firmware).

[0109] Various implementations of the systems and techniques described above 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), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including 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.

[0110] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0111] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may 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.

[0112] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0113] The systems and techniques described herein may be implemented in a computing system that includes backend 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 frontend components (e.g., a user computer with 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 backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0114] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0115] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0116] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for generating a test case list, characterized in that: include: Obtain test case template associated data and heterogeneous integrated circuit component IP configuration files; Parse the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file; Based on the test case template association data and the heterogeneous IP dependency file, a heterogeneous IP test case list is generated.

2. The method according to claim 1, characterized in that Get test case template related data, including: Obtaining test item data input by a user for a test case description template and test item dependencies specified by the user; The test item data, the test case description template and the user-specified test item dependencies are used as the test case template association data.

3. The method according to claim 2, characterized in that Parse the heterogeneous IP configuration file to obtain the heterogeneous IP dependency file, including: Parsing the project configuration data in the heterogeneous IP configuration file through a target text parser to obtain a first labeled data set, and parsing the IP configuration data to be verified in the heterogeneous IP configuration file to obtain a second labeled data set; Based on the IP type, the first labeled data set is mapped with the second labeled data set to obtain the heterogeneous IP dependency file.

4. The method according to claim 2, characterized in that: Based on the test case template association data and the heterogeneous IP dependency relationship file, a heterogeneous IP test case list is generated, including: Determine a template format rule of the test case description template, and query the target heterogeneous IP dependency in the heterogeneous IP dependency file based on the template format rule; Based on the test case template association data and the target heterogeneous IP dependency, the heterogeneous IP test case list is generated.

5. The method according to claim 4, characterized in that Querying the target heterogeneous IP dependency in the heterogeneous IP dependency file based on the template format rule includes: Based on the template format rule, query the target leading character of the test entry data and the user-specified test entry dependency, and determine the heterogeneous IP screening data based on the target leading character and the user-specified test entry dependency; Based on the heterogeneous IP screening data, the target heterogeneous IP dependency is queried in the heterogeneous IP dependency file.

6. The method according to claim 1, characterized in that While generating a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency relationship file, it also includes: Match the test case template file location to get the current test case list generation location; Automatically generate a test case list file of the heterogeneous IP test case list at the current test case list generation location; Count the number of test cases and test case types in the test case list file.

7. The method according to claim 1, characterized in that After generating a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency relationship file, the method further includes: When it is detected that the test case template associated data and / or the heterogeneous IP configuration file are updated, data of the test case template associated data and / or the heterogeneous IP configuration file is updated; Return to execute the operation of parsing the heterogeneous IP configuration file to obtain the heterogeneous IP dependency relationship file.

8. A device for generating a test case list, characterized in that: include: Data acquisition module, used to obtain test case template associated data and heterogeneous IP configuration files; A file parsing module, used for parsing the heterogeneous IP configuration file to obtain a heterogeneous IP dependency relationship file; The test case list generation module is used to generate a heterogeneous IP test case list based on the test case template association data and the heterogeneous IP dependency file.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating a test case list according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for generating a test case list according to any one of claims 1 to 7 when executed.