Server test planning scheme generation method and device, electronic equipment and readable storage medium

By automatically obtaining and grouping the server component list to be tested, and matching configuration and use case information from the test parameter strategy database, a test planning solution is generated, which solves the high cost and low efficiency problems caused by manual design in the existing technology, and achieves high efficiency, Standardized test planning.

CN118819986APending Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411036526.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

The design of existing server test planning solutions relies on manual labor, resulting in high labor costs, low efficiency, and difficulty in ensuring consistency and standardization.

Method used

By obtaining the list of components to be tested in the server project, grouping them according to component types, and matching the corresponding configuration and test case information of the components from the pre-established test parameter strategy database, the server test planning scheme is generated.

Benefits of technology

It saves human resources, reduces overall costs, improves testing efficiency, and ensures the comprehensiveness, accuracy and consistency of the testing plan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819986A_ABST
    Figure CN118819986A_ABST
Patent Text Reader

Abstract

The invention provides a server test planning scheme generation method and device, electronic equipment and a readable storage medium, is applied to the technical field of computers, and aims to solve the problems of low efficiency and high labor cost of artificially formulating a server test planning scheme. The method comprises the following steps: obtaining a list of project to-be-tested parts of a server; grouping the item to-be-tested component lists according to the component types to obtain to-be-tested component lists corresponding to the component types respectively; for each to-be-tested component list, according to component information in the to-be-tested component list, matching each configuration corresponding to the component and test case information corresponding to the configuration from a pre-established test parameter strategy database; the test parameter strategy database is constructed based on each configuration of different parts and test case information corresponding to the configuration; obtaining a server test planning scheme based on each configuration corresponding to the to-be-tested component list and the test case information corresponding to the configuration; the labor cost is low and the generation efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and computer-readable storage medium for generating a server test plan. Background Art

[0002] Server testing is a vital part of the server product line, and test design and program planning play a core role in server testing. They are key steps to ensure effective execution of server testing and sufficient test coverage to ensure product quality. In the current server testing process, test design engineers usually manually plan test program designs based on the issued server requirements. Considering the rapid development of server business and the increasing testing business, this test program planning and design method not only has high manpower costs and low testing efficiency, but also different designers have different understandings of requirements, which can easily lead to inconsistent tests based on personal experience, making it difficult to ensure the consistency and standardization of tests.

[0003] It can be seen that how to realize the automatic generation of server test planning solutions is a problem that technical personnel in this field need to solve. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a server test planning scheme generation method, device, electronic device and computer-readable storage medium, which can automatically generate a server test planning solution, save labor costs, and improve production efficiency and testing efficiency.

[0005] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:

[0006] An embodiment of the present invention provides a method for generating a server test plan, comprising:

[0007] Get the list of components to be tested for the server project;

[0008] Grouping the list of components to be tested for the project according to component type to obtain a list of components to be tested corresponding to each component type;

[0009] For each of the parts to be tested list, according to the parts information in the parts to be tested list, each configuration corresponding to the parts and the test case information corresponding to the configuration are matched from a pre-established test parameter strategy database; the test parameter strategy database is constructed based on each configuration of different parts and the test case information corresponding to the configuration;

[0010] Based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration, a server test planning scheme is obtained.

[0011] In some embodiments, the process of establishing the test parameter strategy database includes:

[0012] Get various parameter attributes corresponding to each component type;

[0013] For each type of parameter attribute under each component type, obtain each parameter value of the parameter attribute of the component type;

[0014] The component type and the corresponding parameter attributes are stored in correspondence, and the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes are stored in correspondence to form a component parameter library;

[0015] For each parameter value of each type of the parameter attribute under each component type, obtain configuration information corresponding to the parameter value of the parameter attribute under the component type;

[0016] For each type of parameter data under each component type, obtain test case information corresponding to the parameter attribute under the component type;

[0017] The component type, the corresponding parameter attributes, the parameter values ​​corresponding to the parameter attributes, and the configuration information corresponding to the parameter values ​​are stored in correspondence, and the component type, the corresponding parameter attributes, and the test case information corresponding to the parameter attributes are stored in correspondence to form a parameter strategy rule library;

[0018] A test parameter strategy database is generated according to the component parameter library and the parameter measurement rule library.

[0019] In some embodiments, the matching of each configuration corresponding to the component and the test case information corresponding to the configuration from a pre-established test parameter strategy database according to the component information in the list of components to be tested includes:

[0020] According to the component type of the list of components to be tested, acquiring various parameter attributes corresponding to the component type from the component parameter library;

[0021] For each of the parameter attributes, obtaining from the component parameter library the parameter values ​​corresponding to the parameter attributes under the component type;

[0022] According to the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes, configuration information corresponding to the parameter values ​​of the parameter attributes under the component type is acquired from the parameter strategy rule base to obtain configurations corresponding to the corresponding components;

[0023] According to the component type and the corresponding parameter attributes, the test case information corresponding to the parameter attributes under the component type is acquired from the parameter policy rule library to obtain the test case information corresponding to the corresponding component.

[0024] In some embodiments, obtaining a server test plan based on each configuration corresponding to all the lists of components to be tested and the test case information corresponding to the configurations includes:

[0025] Determine, from all configurations corresponding to the list of all components to be tested, all identical configurations with identical configuration information and single configurations with different configuration information;

[0026] Performing deduplication processing on each of the same configurations to obtain a deduplicated configuration;

[0027] Merging the test case information corresponding to each of the identical configurations to obtain merged test case information corresponding to the deduplicated configurations;

[0028] Matching the deduplicated configuration with the merged test case information;

[0029] A server test planning scheme is generated according to each of the single configurations, the test cases corresponding to the single configurations, the configurations after deduplication, and the merged test case information corresponding to the configurations after deduplication.

[0030] In some embodiments, determining the same configurations with the same configuration information from the configurations corresponding to all the lists of components to be tested includes:

[0031] For each configuration, obtaining configuration information corresponding to the configuration;

[0032] Calculate a configuration feature value corresponding to the configuration according to the configuration information;

[0033] Configurations with the same configuration feature value are regarded as identical configurations with the same configuration information.

[0034] In some embodiments, the configuration information includes component type, component code, component quantity, matching component type, matching component model, matching component code, and matching component quantity.

[0035] In some embodiments, the calculating, according to the configuration information, a configuration feature value corresponding to the configuration includes:

[0036] The configuration feature is calculated according to the component code corresponding to the component type, the component quantity corresponding to the component code, the matching component code corresponding to the matching component model, and the matching component quantity corresponding to the matching component code in the configuration information.

[0037] Another aspect of the present invention provides a server test plan generation device, including:

[0038] An acquisition module is used to obtain a list of components to be tested for a server project;

[0039] A splitting module, used for grouping the list of components to be tested of the project according to component type, to obtain a list of components to be tested corresponding to each component type;

[0040] A matching module, for matching each of the components to be tested in the list of components to be tested and the component information in the list of components to be tested from a pre-established test parameter strategy database to obtain the configurations corresponding to the components and the test case information corresponding to the configurations; the test parameter strategy database is constructed based on the configurations of different components and the test case information corresponding to the configurations;

[0041] A generating module is used to obtain a server test planning scheme based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration.

[0042] Another aspect of the present invention provides an electronic device, including:

[0043] Memory for storing computer programs;

[0044] A processor is used to execute the computer program to implement the steps of the server test plan generation method as described above.

[0045] Another aspect of an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server test plan generation method as described above are implemented.

[0046] It can be seen from the above technical solution that the beneficial effects of the present invention are:

[0047] The embodiment of the present invention provides a method for generating a server test planning scheme, comprising: obtaining a list of components to be tested for a server project; grouping the list of components to be tested for the project according to component type to obtain a list of components to be tested corresponding to each component type; for each list of components to be tested, according to component information in the list of components to be tested, matching each configuration corresponding to the component and test case information corresponding to the configuration from a pre-established test parameter strategy database; the test parameter strategy database is constructed based on each configuration of different components and test case information corresponding to the configuration; based on each configuration corresponding to all lists of components to be tested and test case information corresponding to the configuration, obtaining a server test planning scheme.

[0048] It can be seen that in the embodiment of the present invention, a test parameter strategy database is established in advance according to each configuration of different components and the test case information corresponding to the configuration. When generating a server test planning scheme, the list of components to be tested corresponding to each component type is determined according to the list of components to be tested in the server project, and then for any list of components to be tested, the corresponding component information is obtained, and then the various configurations corresponding to the component and the test case information corresponding to the configuration are matched from the test parameter strategy database according to the component information, so that the various configurations corresponding to the list of components to be tested and the test case information corresponding to each configuration can be obtained, and then the server test planning scheme is generated in combination with the various configurations of the lists of components to be tested and the various test cases. The embodiment of the present invention saves a lot of human resources in the process of generating the server test planning scheme, reduces the overall cost, and has high generation efficiency, which is conducive to improving the testing efficiency.

[0049] In addition, the present invention also provides a corresponding implementation device, electronic device and computer-readable storage medium for the server test planning scheme generation method, which further makes the method more practical, and the device, electronic device and computer-readable storage medium have corresponding advantages. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the embodiments of the present invention, the following briefly introduces the drawings required for use in 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 paying creative work.

[0051] Figure 1 A flow chart of a method for generating a server test plan provided by an embodiment of the present invention;

[0052] Figure 2 A schematic diagram of the structure of a test parameter strategy database provided by an embodiment of the present invention;

[0053] Figure 3 A flowchart of another server test planning scheme generation method provided by an embodiment of the present invention;

[0054] Figure 4 A schematic diagram of the structure of a server test plan generation device provided by an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0057] The terms "including" and "having" in the specification of the present invention and the above-mentioned drawings, as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.

[0058] In order to enable those skilled in the art to better understand the scheme of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0059] Next, a server test plan generation method provided by an embodiment of the present invention is introduced in detail. Figure 1 A flow chart of a method for generating a server test plan provided by an embodiment of the present invention, the method comprising:

[0060] S110: Obtain a list of components to be tested for a server project;

[0061] It should be noted that when designing a test plan for a server, a list of components to be tested for the server project may be obtained, which may include information such as project, phase, component type, component code, and component quantity.

[0062] S120: Grouping the project's list of components to be tested according to component type to obtain a list of components to be tested corresponding to each component type;

[0063] Specifically, the project's list of components to be tested can be grouped and summarized according to the component types in the project's list of components to be tested, to obtain a list of components to be tested corresponding to each component type, and the list of components to be tested includes relevant component information of the components corresponding to the component type. For example, the component types in the project's list of components to be tested include motherboard, CPU (Central Processing Unit) and memory, etc. Then, the project's list of components to be tested can be grouped according to these component types to obtain a list of motherboards, a list of CPUs, a list of memories, and other lists of components.

[0064] S130: for each list of components to be tested, according to the component information in the list of components to be tested, matching each configuration corresponding to the component and the test case information corresponding to the configuration from a pre-established test parameter strategy database; the test parameter strategy database is constructed based on each configuration of different components and the test case information corresponding to the configuration;

[0065] It should be noted that in actual applications, the various configurations of different components and the test case information corresponding to each configuration can be obtained in advance based on the project test design cases, and then a test parameter strategy database can be constructed based on the various configurations of different components and the test case information corresponding to each configuration.

[0066] Specifically, in the process of designing a test planning scheme for the server, after obtaining each list of components to be tested, for each list of components to be tested, the various configurations corresponding to the component and the test case information corresponding to the configuration can be matched from the established test parameter strategy database based on the component information in the list of components to be tested, thereby obtaining the various configurations corresponding to each list of components to be tested and the test case information corresponding to the configuration.

[0067] S140: Obtain a server test planning solution based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration.

[0068] It can be understood that after obtaining the configurations corresponding to each list of components to be tested and the test case information corresponding to the configurations, the configurations corresponding to each list of components to be tested and the test case information corresponding to the configurations can be integrated, and server test planning plans can be generated in batches and automatically.

[0069] In some embodiments, the process of establishing the test parameter strategy database includes:

[0070] Get various parameter attributes corresponding to each component type;

[0071] For each type of parameter attribute under each component type, obtain each parameter value of the parameter attribute of the component type;

[0072] The component type and the corresponding parameter attributes are stored in correspondence, and the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes are stored in correspondence to form a component parameter library;

[0073] For each parameter value of each type of parameter attribute under each component type, obtain configuration information corresponding to the parameter value of the parameter attribute under the component type;

[0074] For each type of parameter data under each component type, obtain test case information corresponding to the parameter attributes under the component type;

[0075] The component type, the corresponding parameter attributes, the parameter values ​​corresponding to the parameter attributes, and the configuration information corresponding to the parameter values ​​are stored in correspondence, and the component type, the corresponding parameter attributes, and the test case information corresponding to the parameter attributes are stored in correspondence to form a parameter strategy rule library;

[0076] A test parameter strategy database is generated according to the component parameter library and the parameter measurement rule library.

[0077] It should be noted that in actual applications, various project test design cases related to the server can be obtained in advance, and by analyzing the test design cases of various projects, the component types, parameter attributes of the components, attribute values ​​of the parameter attributes, configuration information corresponding to the parameter values ​​of the parameter attributes under the component types, and test case information corresponding to the parameter attributes under the component types can be sorted out. For example, the components may include various components such as the motherboard, backplane, computing module (CPU, memory) components, storage link components (hard disk, RAID (Redundant Arrays of Independent Disks), etc. The parameter attributes of the components may include the number of UPIs supported by the motherboard, the maximum number of DIMMs (Dual Inline Memory Modules) supported, the maximum number of Channels supported, whether to test POR (Power-On Reset), and the supported POR plugging methods.

[0078] Specifically, various parameter attributes corresponding to each component type can be obtained according to various project test design cases related to the server, such as obtaining parameter attributes a1 and a2 corresponding to the motherboard, obtaining parameter attributes b1 and b2 corresponding to the backplane, and of course, obtaining parameter attributes of various components such as computing module (such as memory, CPU) components and storage link components (such as hard disk, RAID). Since different parameter attributes correspond to one or more parameter values, the parameter values ​​corresponding to each parameter attribute corresponding to the component type can also be obtained, for example, obtaining parameter value a11 corresponding to parameter attribute a1 of the motherboard, obtaining parameter value a21 corresponding to parameter attribute a2 of the motherboard, etc.

[0079] Specifically, Figure 2 As shown, the component type and the corresponding parameter attributes can be stored in a component parameter attribute library, that is, the parameter attribute library stores the correspondence between the component type and the parameter attributes; the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes are stored in a component basic information library, and then the component parameter library is formed by the component parameter attribute library and the component basic information library.

[0080] Specifically, for each parameter value of each type of parameter attribute under each component type, obtain the configuration information corresponding to the parameter value of the parameter attribute under the component type, and establish a correspondence between the component type, parameter attribute, parameter value and configuration information, wherein the configuration information includes configuration requirements for matching components, and the configuration requirements may include quantity matching rules and model matching rules. The quantity matching rules can determine the quantity of matching components, and the model matching rules can determine the models of matching components. The matching components in the embodiment of the present invention refer to the components that are required to match the components corresponding to the component type when performing server testing. Specifically, the correspondence between each component type, parameter attribute, parameter value and configuration information can be stored as follows: Figure 2 The combination components shown are configured in the collocation rule library.

[0081] For each type of parameter data under each component type, obtain the test case information corresponding to the parameter attributes under the component type to determine which test cases are required to cover the component parameter test, and establish the corresponding relationship between the component type, parameter attributes and test case information. The corresponding relationship between the component type, parameter attributes and test case information can be stored in the test case label matching rule library (such as Figure 2 As shown in the figure), the parameter strategy rule base is then formed by combining component configuration matching rules and test case label matching rule base.

[0082] It can be understood that after obtaining the component parameter library and the parameter policy rule library, a test parameter policy database can be further constructed by the component parameter library and the parameter policy rule library. In practical applications, the test parameter policy database can be constructed by Mysql.

[0083] Please note that, please refer to Figure 3 , a list of components to be tested for the project can be obtained according to the list of components to be tested, and then the list of components to be tested for the project can be input into the test strategy model solution automation background in the present invention. The system groups and divides the list of components to be tested for the project according to the component type, and obtains a list of components to be tested corresponding to each component type, for example, a list of components to be tested corresponding to components N such as the motherboard, memory, and CPU can be obtained. Then, for each list of components to be tested, according to the component information in the list of components to be tested, each configuration corresponding to the component and the test case information corresponding to the configuration are matched from the pre-established test parameter strategy database. This process may include:

[0084] According to the component type in the list of components to be tested, various parameter attributes corresponding to the component type are obtained from the component parameter library;

[0085] For each parameter attribute, obtain each parameter value corresponding to the parameter attribute under the component type from the component parameter library;

[0086] According to the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes, the configuration information corresponding to the parameter values ​​of the parameter attributes under the component type is obtained from the parameter strategy rule library to obtain the configurations corresponding to the corresponding components;

[0087] According to the component type and the corresponding parameter attributes, the test case information corresponding to the parameter attributes under the component type is obtained from the parameter strategy rule library to obtain the test case information corresponding to the corresponding component.

[0088] It should be noted that, in the embodiment of the present invention, a list of components to be tested of a component is used as an example for explanation. According to the component type in the list of components to be tested, the various parameter attributes corresponding to the component can be matched from the correspondence between the component type and the parameter attributes stored in the component parameter library of the test parameter strategy database. For example, the parameter attributes corresponding to the motherboard may include changing the motherboard encoding, the motherboard source, the maximum CPU power consumption supported, the motherboard parameter N, etc. The parameter attributes corresponding to the memory may include power consumption MAX, Rank number, bit width, memory parameter N, etc. The parameter attributes corresponding to the CPU may include the number of cores, main frequency, TDP (Thermal Design Power) or CPU parameter N.

[0089] Specifically, after obtaining each parameter attribute corresponding to the component type, it is possible to further match the parameter value corresponding to each parameter attribute of the component type from the component parameter library according to the component type and each parameter attribute.

[0090] Specifically, after obtaining the component type, each parameter attribute corresponding to the component type, and the parameter value corresponding to the parameter attribute, the configuration information corresponding to the parameter value of the parameter attribute under the component type can be further obtained from the parameter policy rule library according to the component type, each corresponding parameter attribute, and each parameter value corresponding to the parameter attribute, so as to obtain each configuration corresponding to the corresponding component. That is, the matching component rules corresponding to the parameter value of the parameter attribute under the component type are obtained (which may include matching component models and matching component quantities, etc.). For example, the parameter attributes of the motherboard include supported memory types and supported CPU quantities, wherein the parameter values ​​corresponding to the supported memory types include DDR5 (a computer memory specification) and CPS (Clicks Per Second), and further obtain the matching component model and matching component quantity of the matching component corresponding to the parameter value DDR5, obtain the matching component model and matching component quantity of the matching component corresponding to the parameter value CPS, and obtain the configuration corresponding to each parameter value of the component.

[0091] In actual applications, the same component type can be further distinguished according to the component code, and for components with different component codes under the same component type, the configuration information of different parameter values ​​under the parameter attributes corresponding to the component code is determined. 部件1 The motherboard parameter type is the parameter value DDR5 and CPS of the supported memory type, and the corresponding configuration information is determined as follows:

[0092] The configuration information corresponding to the DDR5 (parameter value) of the motherboard's supported memory type (parameter type) includes: motherboard-P 部件1 - Motherboard code is P 部件1 Motherboard quantity n1, with component 11 (supports DDR5 memory) - P 搭配部件11 -Matching component code is P 搭配部件11 Number of matching components N11, matching component 12 (CPU) - P 搭配部件12 -Matching component code is P 搭配部件12 The number of matching parts is N12 and so on.

[0093] The configuration information corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type) includes: motherboard-P 部件1 - Motherboard code is P 部件1 The number of motherboards is n1, with components 13-P 搭配部件13 -Matching component code is P 搭配部件13 Number of matching parts N13, matching parts 14 - P 搭配部件14 -Matching component code is P 搭配部件14 The number of matching parts is N14 and so on.

[0094] Specifically, when determining the test case information corresponding to the parameter attributes of a component type, the test case information corresponding to the parameter attributes under the component type can be obtained from the parameter policy rule library according to the component type and the corresponding parameter attributes, thereby obtaining the test case information corresponding to the corresponding component, that is, the test case information corresponding to different parameter values ​​of the same parameter attribute of the same component is the same.

[0095] In some embodiments, the process of obtaining the server test plan based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration in S140 may include:

[0096] Determine, from the configurations corresponding to the list of all components to be tested, all identical configurations with identical configuration information and single configurations with different configuration information;

[0097] De-duplicate each identical configuration to obtain a de-duplicate configuration;

[0098] The test case information corresponding to each identical configuration is merged to obtain merged test case information corresponding to the configuration after deduplication;

[0099] Match the deduplicated configuration with the merged test case information;

[0100] A server test plan is generated according to each single configuration, the test case corresponding to the single configuration, the configuration after deduplication, and the merged test case information corresponding to the configuration after deduplication.

[0101] It should be noted that the same configuration may exist in each obtained configuration. In order to obtain an accurate and concise server test planning scheme, in an embodiment of the present invention, configurations with the same configuration information can be determined from each configuration, and these configurations with the same configuration information are regarded as the same configuration, and configurations without the same configuration information are regarded as single configurations. For example, as shown in the above example, if the configuration information corresponding to the DDR5 (parameter value) of the motherboard's supported memory type (parameter type) is exactly the same as the configuration information corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type), it means that the configuration corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type) is the same configuration as the configuration corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type); if the configuration information corresponding to the DDR5 (parameter value) of the motherboard's supported memory type (parameter type) is different from the configuration information corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type), then the configuration corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type) is a single configuration, and the configuration corresponding to the CPS (parameter value) of the motherboard's supported memory type (parameter type) is another single configuration.

[0102] Specifically, after determining each identical configuration, each identical configuration can be deduplicated, for example, retaining one identical configuration, deleting other identical configurations, and using the retained identical configuration as the deduplicated configuration, and then merging the test case information corresponding to each identical configuration to obtain the merged test case information corresponding to the deduplicated configuration. For example, if configuration 1 and configuration 2 are identical configurations, configuration 1 can be retained, configuration 2 can be deleted, and configuration 1 can be used as the deduplicated configuration. For example, the test case information corresponding to configuration 1 includes test case information 1 and test case information 2, and the test case information corresponding to configuration 2 includes test case information 1 and test case information 3. Configuration 1 and configuration 2 are identical configurations. After deduplication, the test case information corresponding to configuration 1 can be merged with the test case information corresponding to configuration 2 to obtain merged test case information (test case information 1, test case information 2, test case information 3), and configuration 1 can be associated with the merged test case information. Thus, the merged test case information corresponding to each deduplicated configuration can be obtained.

[0103] It can be understood that for a single configuration that has not been merged, the single configuration and the corresponding test case information can be retained, and by combining each thickened configuration and the merged test case information corresponding to the de-thickened configuration, a server test plan can be generated.

[0104] In some embodiments, the above-mentioned determining each identical configuration having the same configuration information from each configuration corresponding to the list of all components to be tested includes:

[0105] For each configuration, obtain configuration information corresponding to the configuration;

[0106] Calculate a configuration feature value corresponding to the configuration according to the configuration information;

[0107] Configurations with the same configuration feature value are regarded as identical configurations with the same configuration information.

[0108] It should be noted that, for each configuration in the embodiment of the present invention, the configuration feature value corresponding to the configuration can be calculated based on the configuration information of the configuration, and then the configuration feature values ​​of any two configurations can be compared to determine the configurations with the same configuration feature values ​​as the same configurations.

[0109] The configuration information in the embodiment of the present invention may include component type, component code, component quantity, matching component type, matching component model, matching component code and matching component quantity.

[0110] Then, the above process of calculating the configuration characteristic value corresponding to the configuration according to the configuration information may include:

[0111] The configuration feature is calculated according to the component code corresponding to the component type, the component quantity corresponding to the component code, the matching component code corresponding to the matching component model, and the matching component quantity corresponding to the matching component code in the configuration information.

[0112] When calculating the configuration characteristic value of the configuration, the configuration characteristic value corresponding to the configuration can be obtained according to the component code corresponding to the component type, the component quantity corresponding to the component code, the matching component code corresponding to the matching component model, and the matching component quantity corresponding to the matching component code in the configuration information, in combination with the first calculation relationship; wherein the first calculation relationship is:

[0113] ,in, represents the component code of the component, n represents the number of components with the component code, represents the matching component code of the i-th matching component, N i represents the number of matching components of the i-th matching component, and M represents the total number of matching components.

[0114] For example, the configuration information of configuration 1 of parameter value 1 of parameter type 1 of component 1 includes:

[0115] Part 1 - Part Code P 部件1 - with part number P 部件1 The corresponding component number n1 of component 1, matching component 11-matching component code P 搭配部件11 - and matching part code P 搭配部件11 The number of matching components N11 and matching component 12 of the corresponding matching components - matching component code P 搭配部件12 - and matching part code P 搭配部件12 The number of matching components corresponding to the matching components is N12.

[0116] Configuration information of configuration 2 of parameter value 2 of parameter type 1 of component 1 includes:

[0117] Part 1 - Part Code P 部件1 - with part number P 部件1 The corresponding component number n1 of component 1, matching component 13-matching component code P 搭配部件13 - and matching part code P 搭配部件13 The number of matching components N13 and matching component 14 corresponding to the matching component code P 搭配部件14 - and matching part code P 搭配部件14 The number of matching components corresponding to the matching components is N14. Then, the configuration characteristic value f1 of configuration 1 can be obtained by calculation as follows:

[0118] f1 = P 部件1* n1+ P 搭配部件11 * N11+ P 搭配部件12 * N12.

[0119] The configuration characteristic value f2 of configuration 2 is:

[0120] f2 = P 部件1 * n1+ P 搭配部件13 * N13+ P 搭配部件14 * N14.

[0121] For all configurations, the corresponding configuration characteristic values ​​can be calculated using the above relationship.

[0122] It should also be noted that, in order to save storage space, the test case information in the embodiment of the present invention may include a test case label, so the established correspondence between component type, parameter attribute and test case information may specifically be a correspondence between component type, parameter attribute and test case label, and the correspondence between component type, parameter attribute and test case label is stored in a test case label matching rule library. A test case database storing the correspondence between test case labels and test cases may also be established.

[0123] Therefore, the process of matching each configuration corresponding to the component and the test case corresponding to the configuration from the pre-established test parameter strategy database in S130 may be matching each configuration corresponding to the component and the test case label corresponding to the configuration from the pre-established test parameter measurement model;

[0124] Correspondingly, the above S140 is a process of obtaining a server test planning scheme based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration. The server test planning scheme can be generated according to each configuration corresponding to the list of all components to be tested and the test case label corresponding to the configuration. When the server test is performed later, the test case corresponding to each test case label is matched from a pre-established test case database according to the test case label, and the corresponding test is performed. It is also possible to match the test case corresponding to the test case label from a pre-established test case database according to the test case label corresponding to each configuration corresponding to the list of all components to be tested, and then generate a server test planning scheme according to each configuration corresponding to the list of all components to be tested and the test case corresponding to the configuration. When the server test is performed later, the test cases corresponding to the configuration are directly obtained from the server test planning scheme for testing.

[0125] In addition, in the embodiment of the present invention, the component parameters and policy rules in the test parameter policy database are split, the common test policy rules are refined, and a WEB front-end portal is set to dynamically configure the test parameter policy database so as to maintain and manage the test parameter policy database, including the component parameter attribute library and the component basic information library in the component parameter library, the combined component configuration matching rule library in the parameter policy rule library, and the test case attribute matching rule library. Related data and corresponding correspondences are managed and maintained.

[0126] In an embodiment of the present invention, the test parameter policy database can also be optimized and adjusted according to the test results of the server test planning scheme, that is, testing can be performed according to the generated server test planning scheme, and the test parameter policy database can be continuously optimized and updated in real time according to the test results such as the feedback test coverage, so as to ensure the continuous optimization and adjustment of the test parameter policy database and timely discover and solve problems.

[0127] It can be seen that in the embodiment of the present invention, a test parameter strategy database is established in advance according to each configuration of different components and the test case information corresponding to the configuration. When generating a server test planning scheme, the list of components to be tested corresponding to each component type is determined according to the list of components to be tested in the server project, and then for any list of components to be tested, the corresponding component information is obtained, and then the various configurations corresponding to the component and the test case information corresponding to the configuration are matched from the test parameter strategy database according to the component information, so that the various configurations corresponding to the list of components to be tested and the test case information corresponding to each configuration can be obtained, and then the server test planning scheme is generated in combination with the various configurations of the lists of components to be tested and the various test cases. The embodiment of the present invention saves a lot of human resources in the process of generating the server test planning scheme, reduces the overall cost, and has high generation efficiency, which is conducive to improving the testing efficiency.

[0128] It should also be noted that the method provided in the implementation of the present invention can also ensure the comprehensiveness, accuracy, standardization and consistency of the test plan during application, thereby improving the quality of the test plan.

[0129] The present invention also provides a corresponding device for the server test planning scheme generation method, which further makes the method more practical. Among them, the device can be described from the perspective of functional modules and hardware. The server test planning scheme generation device provided by the present invention is introduced below. The device is used to implement the server test planning scheme generation method provided by the present invention. In this embodiment, the server test planning scheme generation device can include or be divided into one or more program modules, and the one or more program modules are stored in a storage medium and executed by one or more processors to complete the server test planning scheme generation method disclosed in the above embodiment. The program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the server test planning scheme generation device in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment, and the server test planning scheme generation device described below and the server test planning scheme generation method described above can be referenced to each other.

[0130] From the perspective of functional modules, see Figure 4 , Figure 4 A structural diagram of a server test plan generation device provided by the present invention in a specific implementation manner, the device may include:

[0131] An acquisition module 11 is used to acquire a list of components to be tested of a server project;

[0132] A splitting module 12 is used to group the project's list of components to be tested according to component type, and obtain a list of components to be tested corresponding to each component type;

[0133] A matching module 13 is used to match each configuration corresponding to each component and the test case information corresponding to the configuration from a pre-established test parameter strategy database according to the component information in the list of components to be tested; the test parameter strategy database is constructed based on the configurations of different components and the test case information corresponding to the configurations;

[0134] The generating module 14 is used to obtain a server test plan based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration.

[0135] In some embodiments, the test parameter strategy database is constructed by building blocks, and the building blocks include:

[0136] A first acquisition unit is used to acquire various parameter attributes corresponding to each component type;

[0137] A second acquisition unit is used to acquire, for each type of parameter attribute under each component type, each parameter value of the parameter attribute of the component type;

[0138] A first storage unit is used to store component types and corresponding parameter attributes in correspondence, and to store component types, corresponding parameter attributes and parameter values ​​corresponding to the parameter attributes in correspondence, so as to form a component parameter library;

[0139] A third acquisition unit is used to acquire, for each parameter value of each type of parameter attribute under each component type, configuration information corresponding to the parameter value of the parameter attribute under the component type;

[0140] A fourth acquisition unit, configured to acquire, for each type of parameter data under each component type, test case information corresponding to the parameter attribute under the component type;

[0141] The second storage unit is used to store the component type, the corresponding parameter attributes, the parameter values ​​corresponding to the parameter attributes, and the configuration information corresponding to the parameter values, and store the component type, the corresponding parameter attributes, and the test case information corresponding to the parameter attributes to form a parameter strategy rule library;

[0142] The generating unit is used to generate a test parameter strategy database according to a component parameter library and a parameter measurement rule library.

[0143] In some embodiments, the matching module 13 includes:

[0144] A fifth acquisition unit, used to acquire various parameter attributes corresponding to the component type from the component parameter library according to the component type of the list of components to be tested;

[0145] A sixth acquisition unit, configured to acquire, for each parameter attribute, from a component parameter library, respective parameter values ​​corresponding to the parameter attributes under the component type;

[0146] a seventh acquisition unit, configured to acquire configuration information corresponding to the parameter values ​​of the parameter attributes under the component type from the parameter strategy rule base according to the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes, so as to obtain the configurations corresponding to the corresponding components;

[0147] The eighth acquisition unit is used to acquire test case information corresponding to the parameter attributes under the component type from the parameter strategy rule library according to the component type and the corresponding parameter attributes, so as to obtain the test case information corresponding to the corresponding component.

[0148] In some embodiments, the generating module 14 includes:

[0149] A first determining unit is used to determine, from the configurations corresponding to the list of all components to be tested, all identical configurations with identical configuration information and a single configuration with different configuration information;

[0150] A deduplication unit, used for performing deduplication processing on each identical configuration to obtain a deduplicated configuration;

[0151] A merging unit, used to merge the test case information corresponding to each identical configuration to obtain merged test case information corresponding to the configuration after deduplication;

[0152] A corresponding unit, used to correspond the deduplicated configuration to the merged test case information;

[0153] The generating unit is used to generate a server test plan according to each single configuration, the test case corresponding to the single configuration, the configuration after deduplication, and the merged test case information corresponding to the configuration after deduplication.

[0154] In some embodiments, the first determining unit includes:

[0155] An acquisition subunit, used for acquiring configuration information corresponding to each configuration;

[0156] A calculation subunit, used to calculate a configuration characteristic value corresponding to the configuration according to the configuration information;

[0157] The subunits are determined, and each configuration having the same configuration feature value is used as each identical configuration having the same configuration information.

[0158] In some embodiments, the configuration information includes component type, component code, component quantity, matching component type, matching component model, matching component code, and matching component quantity.

[0159] In some embodiments, the computing subunit is configured to:

[0160] The configuration feature is calculated according to the component code corresponding to the component type, the component quantity corresponding to the component code, the matching component code corresponding to the matching component model, and the matching component quantity corresponding to the matching component code in the configuration information.

[0161] It should be noted that the server test planning scheme generation device provided in the embodiment of the present invention has the same beneficial effects as the server test planning scheme generation method provided in the above embodiment, and for the specific introduction of the server test planning scheme generation method involved in the embodiment of the present invention, please refer to the above embodiment, and the present invention will not be repeated here.

[0162] Figure 5 A structural diagram of an electronic device provided by an embodiment of the present invention, such as Figure 5 As shown, the electronic device includes:

[0163] A memory 60, for storing computer programs;

[0164] The processor 61 is used to implement the steps of the server test plan generation method in the above embodiment when executing the computer program.

[0165] The electronic device provided in this embodiment may include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0166] Among them, the processor 61 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 61 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 61 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 61 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 61 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0167] The memory 60 may include one or more computer-readable storage media, which may be non-transitory. The memory 60 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 60 is at least used to store the following computer program 601, wherein, after the computer program is loaded and executed by the processor 61, the relevant steps of the server test planning scheme generation method disclosed in any of the aforementioned embodiments can be implemented. In addition, the resources stored in the memory 60 may also include an operating system 602 and data 603, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 602 may include Windows, Unix, Linux, etc. Data 603 may include but is not limited to relevant data of the server test planning scheme generation result, etc.

[0168] In some embodiments, the electronic device may further include a display screen 62 , an input / output interface 63 , a communication interface 64 , a power supply 65 , and a communication bus 66 .

[0169] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown in the figure.

[0170] It is understandable that if the server test planning scheme generation method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the current technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, magnetic disk or optical disk and other media that can store program codes.

[0171] Based on this, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the server test plan generation method as described above are implemented.

[0172] Based on this, an embodiment of the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above-mentioned server test plan generation method when executed by a processor.

[0173] The above is a detailed introduction to a server test planning scheme generation method, device, electronic device and computer-readable storage medium provided by an embodiment of the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0174] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0175] The above is a detailed introduction to a server test planning scheme generation method, device, electronic device and computer-readable storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.

Claims

1. A method for generating a server test plan, characterized in that: include: Get the list of components to be tested for the server project; Grouping the list of components to be tested for the project according to component type to obtain a list of components to be tested corresponding to each component type; For each of the lists of components to be tested, according to the component information in the list of components to be tested, matching each configuration corresponding to the component and the test case information corresponding to the configuration from a pre-established test parameter strategy database; The test parameter strategy database is constructed based on various configurations of different components and test case information corresponding to the configurations; Based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration, a server test planning scheme is obtained.

2. The server test plan generation method according to claim 1, characterized in that: The process of establishing the test parameter strategy database includes: Get various parameter attributes corresponding to each component type; For each type of parameter attribute under each component type, obtain each parameter value of the parameter attribute of the component type; The component type and the corresponding parameter attributes are stored in correspondence, and the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes are stored in correspondence to form a component parameter library; For each parameter value of each type of the parameter attribute under each component type, obtain configuration information corresponding to the parameter value of the parameter attribute under the component type; For each type of parameter data under each component type, obtain test case information corresponding to the parameter attribute under the component type; The component type, the corresponding parameter attributes, the parameter values ​​corresponding to the parameter attributes, and the configuration information corresponding to the parameter values ​​are stored in correspondence, and the component type, the corresponding parameter attributes, and the test case information corresponding to the parameter attributes are stored in correspondence to form a parameter strategy rule library; A test parameter strategy database is generated according to the component parameter library and the parameter measurement rule library.

3. The server test plan generation method according to claim 2, characterized in that: The matching of each configuration corresponding to the component and the test case information corresponding to the configuration from a pre-established test parameter strategy database according to the component information in the list of components to be tested includes: According to the component type of the list of components to be tested, acquiring various parameter attributes corresponding to the component type from the component parameter library; For each of the parameter attributes, obtaining from the component parameter library the parameter values ​​corresponding to the parameter attributes under the component type; According to the component type, the corresponding parameter attributes and the parameter values ​​corresponding to the parameter attributes, configuration information corresponding to the parameter values ​​of the parameter attributes under the component type is acquired from the parameter strategy rule base to obtain configurations corresponding to the corresponding components; According to the component type and the corresponding parameter attributes, the test case information corresponding to the parameter attributes under the component type is acquired from the parameter policy rule library to obtain the test case information corresponding to the corresponding component.

4. The server test plan generation method according to claim 3, characterized in that: The server test planning scheme is obtained based on each configuration corresponding to all the lists of components to be tested and the test case information corresponding to the configurations, including: Determine, from all configurations corresponding to the list of all components to be tested, all identical configurations with identical configuration information and single configurations with different configuration information; Performing deduplication processing on each of the same configurations to obtain a deduplicated configuration; Merging the test case information corresponding to each of the identical configurations to obtain merged test case information corresponding to the deduplicated configurations; Matching the deduplicated configuration with the merged test case information; A server test planning scheme is generated according to each of the single configurations, the test case information corresponding to the single configuration, the deduplicated configurations, and the combined test case information corresponding to the deduplicated configurations.

5. The server test plan generation method according to claim 4, characterized in that: The step of determining the same configurations with the same configuration information from the configurations corresponding to all the lists of components to be tested includes: For each configuration, obtaining configuration information corresponding to the configuration; Calculate a configuration feature value corresponding to the configuration according to the configuration information; Configurations with the same configuration feature value are regarded as identical configurations with the same configuration information.

6. The server test plan generation method according to claim 5, characterized in that: The configuration information includes component type, component code, component quantity, matching component type, matching component model, matching component code and matching component quantity.

7. The server test plan generation method according to claim 6, characterized in that: The calculating, according to the configuration information, a configuration feature value corresponding to the configuration includes: The configuration feature is calculated according to the component code corresponding to the component type, the component quantity corresponding to the component code, the matching component code corresponding to the matching component model, and the matching component quantity corresponding to the matching component code in the configuration information.

8. A server test plan generation device, characterized in that: include: An acquisition module is used to obtain a list of components to be tested for a server project; A splitting module, used for grouping the list of components to be tested of the project according to component type, to obtain a list of components to be tested corresponding to each component type; A matching module, for matching each of the components to be tested in the list of components to be tested and the component information in the list of components to be tested, from a pre-established test parameter strategy database, the configurations corresponding to the components and the test case information corresponding to the configurations; The test parameter strategy database is constructed based on various configurations of different components and test case information corresponding to the configurations; A generating module is used to obtain a server test planning scheme based on each configuration corresponding to the list of all components to be tested and the test case information corresponding to the configuration.

9. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, used to execute the computer program to implement the steps of the server test plan generation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the server test plan generation method as described in any one of claims 1 to 7 are implemented.