Server test method, test device, electronic equipment and computer program product

Through an automated hardware configuration replacement method, preset rules and inventory information are used to match the spare hardware configuration, the poor test stability and cycle extension problems caused by manual decision-making are solved, and the efficiency and reliability of server testing are achieved.

CN120386674APending Publication Date: 2025-07-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510523180.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-24
Publication Date
2025-07-29

AI Technical Summary

Technical Problem

In the prior art, material replacement in server testing relies on manual decision-making, resulting in poor stability of the test system and prolonged testing cycle.

Method used

By obtaining the server's test target and initial hardware configuration combination, using preset replacement rules and current hardware inventory information of the target database, automatically match the spare hardware configuration combination, build a replacement hardware configuration combination, and filter based on the test target and inventory information to generate the final hardware configuration combination for server testing.

Benefits of technology

Improves the stability of server testing and shortens the replacement decision time, ensuring the efficiency and reliability of the test cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120386674A_ABST
    Figure CN120386674A_ABST
Patent Text Reader

Abstract

The invention discloses a server testing method, a server testing device, electronic equipment and a computer program product, and relates to the technical field of server testing. The method comprises the following steps: automatically matching standby hardware configuration based on parameter information of to-be-replaced hardware configuration in combination with a preset replacement rule and current hardware inventory information of a target database, and ensuring sufficient inventory while ensuring a replacement effect; and obtaining a final hardware configuration combination meeting the test target and the current hardware inventory information for server test, thereby solving the technical problems of poor server test stability and prolonged test period caused by material replacement through manual decision in related technologies. The technical effects of improving the server test stability, shortening the replacement decision duration and providing guarantee for the server test period are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of server testing, and in particular, to a server testing method, a server testing device, an electronic device, and a computer program product. Background Art

[0002] In the research and development, production, and operation and maintenance testing of servers, the verification of the compatibility and stability of hardware configurations is the core step to ensure system reliability. With the expansion of the scale of data centers and the surge in the demand for server customization, problems such as temporary shortages of hardware materials frequently occur in the testing environment.

[0003] In the related art, the test configuration of the server is determined manually. When there is a temporary shortage of materials, the replacement of materials depends on the experience of engineers, which is not conducive to the stability of the test system, and the manual decision-making efficiency is low, greatly prolonging the test cycle. Summary of the Invention

[0004] This application provides a server testing method, a testing device, an electronic device, and a computer program product to at least solve the problems of poor stability of the test system and extended test cycle caused by manual decision-making for material replacement in the related art.

[0005] This application provides a server testing method, including: obtaining the test target of the server and the initial hardware configuration combination of the test server; when there is a shortage in one or more hardware configurations in the initial hardware configuration combination, determining the parameter information of the hardware configuration with a shortage in the initial hardware configuration combination; matching the corresponding spare hardware configuration for the hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database, and constructing an alternative hardware configuration combination based on the spare hardware configuration; screening the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination, and testing the server based on the final hardware configuration combination.

[0006] This application also provides a server testing device, which includes: an obtaining module for obtaining the test target of the server and the initial hardware configuration combination of the test server; a determining module for obtaining the parameter information of the hardware configuration with a shortage in the initial hardware configuration combination when there is a shortage in one or more hardware configurations in the initial hardware configuration combination; a configuration module for matching the corresponding spare hardware configuration for the hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database, and constructing an alternative hardware configuration combination based on the spare hardware configuration; a testing module for screening the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination, and testing the server based on the final hardware configuration combination.

[0007] The present application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above server testing methods when executing the computer program.

[0008] The present application also provides a computer program product, including a computer program which implements the steps of any of the above server testing methods when executed by a processor.

[0009] Through the present application, based on the parameter information of the hardware configuration to be replaced, combined with the preset replacement rules and the current hardware inventory information of the target database, the spare hardware configuration is automatically matched. While ensuring the replacement effect, it also ensures sufficient inventory. Then, the constructed alternative hardware configuration combinations are screened to obtain the final hardware configuration combinations that meet the test objectives and the current hardware inventory information for server testing. Therefore, it can solve the technical problems of poor stability of the test system and extended test cycle caused by manual decision-making for material replacement in the related art, achieving the technical effects of improving the stability of server testing, shortening the replacement decision-making duration, and providing guarantee for the server test cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0011] Figure 1 It is a flowchart of a server testing method provided by an embodiment of the present application;

[0012] Figure 2 It is a flowchart of a server testing method provided by a specific embodiment of the present application;

[0013] Figure 3 It is a connection schematic diagram of a server testing device provided by an embodiment of the present application;

[0014] Figure 4 It is a block diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0015] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0016] It should be noted that in the description of this application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0017] In order to enable those skilled in the art of this technology to better understand the solution of this application, the following further describes this application in detail in conjunction with the accompanying drawings and specific embodiments.

[0018] In the related art, the replacement scheme for configuring materials in current server testing is manual replacement. After the test engineer receives the test configuration form, they query the inventory in the laboratory material management system and borrow materials according to the material models required in the configuration form. When the inventory is insufficient, they select similar replaceable components from the project component list based on test experience and manual verification, and continue to query the inventory in the material management system. This cycle continues until a material model with sufficient inventory and meeting the test configuration requirements is found. After borrowing the materials, a derivative configuration form is generated manually. This technical solution has a strong dependence on manual labor. The material replacement depends on the experience judgment of the test engineer, with low efficiency and subjective errors. The average time-consuming for each replacement decision is relatively long, lengthening the test cycle and increasing the test cost.

[0019] To solve the above technical problems, this application proposes a server testing method. After receiving the test target of the server and the initial hardware configuration combination of the test server, it determines whether there is a situation of insufficient inventory stored in the initial hardware configuration combination based on the current hardware inventory information in the target database. When it is determined that there is a situation of insufficient hardware configuration inventory, to meet the server testing requirements, according to the parameter information of the hardware configuration with insufficient inventory, the preset replacement rules, and the current hardware inventory information in the target database, it matches the corresponding spare hardware configuration for the hardware configuration to obtain a spare hardware configuration that meets the test performance requirements and has sufficient inventory, constructs an alternative hardware configuration combination, and then makes an overall performance parameter judgment on the alternative hardware configuration combination through the test target of the server and the current hardware inventory information to screen and obtain a final hardware configuration combination that meets the test target and has sufficient inventory for server testing, thereby ensuring the stability of server testing. And compared with manual configuration, the decision-making speed of this solution is faster, providing guarantee for the test cycle of the server.

[0020] The following describes the server testing method of this application in detail in conjunction with the accompanying drawings.

[0021] Such as Figure 1As shown in the figure, the server testing method according to the embodiments of the present application includes:

[0022] S1. Obtain the test target of the server and the initial hardware configuration combination of the test server;

[0023] S2. When there is a shortage in one or more hardware configurations in the initial hardware configuration combination, determine the parameter information of the hardware configurations with shortages in the initial hardware configuration combination;

[0024] S3. Match the standby hardware configuration corresponding to the hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database, and construct an alternative hardware configuration combination based on the standby hardware configuration;

[0025] S4. Screen the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination, and test the server based on the final hardware configuration combination.

[0026] Specifically, the test target of the server and the initial hardware configuration combination of the test server can be obtained through manual input by the test engineer or can be called based on data interaction, without specific limitations. The test target of the server includes the model of the server to be tested, the requirements of the test scenario (such as performance test, stability test), and can also include the number of servers to be tested, the preset test time, etc. The initial hardware configuration combination can include hardware configuration information, such as the models of hard disks, memory, and CPU (Central Processing Unit), and the parameter information of each hardware configuration, such as interface protocol, physical size, capacity threshold, and performance index.

[0027] For example, according to the requirements of the test task, the test engineer inputs the test target and the initial hardware configuration combination of the server to be tested, and the specific information is as follows:

[0028] Server model: Server_X;

[0029] Hard disk model: Disk_A;

[0030] Memory model: Memory_B;

[0031] CPU model: CPU_C;

[0032] Test scenario: Performance test, stability test.

[0033] Then, query the inventory of the required hardware according to the received initial hardware configuration combination. Specifically, the hardware configurations in the initial hardware configuration combination can be compared with the current hardware inventory information in the target database to determine the inventory of each hardware configuration. Additionally, to ensure the test stability of the server, the idle time of each hardware configuration in the target database can also be queried in combination with the preset test time period of the server to prevent the application time conflict of the hardware configurations from affecting the progress of other work tasks.

[0034] When it is found that one or more hardware configurations in the initial hardware configuration combination are out of stock, the parameter information of the hardware configurations with insufficient inventory in the initial hardware configuration combination is identified for use in replacing the selection of hardware configurations. The parameter information of the hardware configurations may include communication protocols, physical dimensions, capacity thresholds, etc. Then, according to the parameter information of the hardware configurations, the preset replacement rules, and the current hardware inventory information in the target database, the corresponding backup hardware configurations for the hardware configurations are matched to construct an alternative hardware configuration combination based on the backup hardware configurations.

[0035] Continuing with the above example where the initial hardware configuration combination includes: hard disk: Disk_A, memory model: Memory_B, CPU model: CPU_C. Through inventory query, it is determined that the hard disk Disk_A and the memory Memory_B are out of stock. Then, according to the parameter information of the hard disk Disk_A, the preset hard disk replacement rules, and the current hardware inventory information in the target database, the corresponding backup hardware configuration for the hard disk Disk_A is matched. According to the parameter information of the memory Memory_B, the preset memory replacement rules, and the current hardware inventory information in the target database, the corresponding backup hardware configuration for the memory Memory_B is matched. Assume that the hard disk replacement rule is that the replacement hard disk needs to meet the same interface protocol (SATA (Serial Advanced Technology Attachment, serial advanced technology attachment)), physical dimension (3.5 inches), and capacity threshold (≥1TB) as Disk_A, and the performance indicators (read and write speeds) need to meet the test requirements. The memory replacement rule is that the replacement memory needs to meet the same interface protocol (DDR4), physical dimension (DIMM (Dual-Inline-Memory-Modules, dual in-line memory modules)), and capacity threshold (≥16GB) as Memory_B, and the performance indicator (frequency) needs to meet the test requirements. Based on the hard disk replacement rule, the alternative hard disk Disk_B with sufficient inventory is matched. Based on the memory replacement rule, the alternative memory Memory_C with sufficient inventory is matched. The alternative hardware configuration combination constructed based on the backup hardware configurations is:

[0036] Hard disk model: Disk_B (replacing Disk_A);

[0037] Memory Model: Memory_C (replacing Memory_B);

[0038] CPU Model: CPU_C.

[0039] Among them, the preset replacement rules can be set according to the actual situation, which can be in the form of parameter range limitation or in the form of a model, and there is no specific limitation.

[0040] The current hardware inventory information of the target database can be obtained through the inventory management module, which is responsible for real-time monitoring and managing the inventory of various materials required for server testing. By working in coordination with the dynamic rule engine module, the inventory management module can ensure that there is sufficient inventory for all the materials involved in the generated alternative configuration plan. In addition, this module can also dynamically adjust the alternative plan according to the inventory situation to avoid test interruption caused by insufficient inventory.

[0041] After obtaining the alternative hardware configuration combination, judge the performance parameters of the alternative hardware configuration combination according to the test target and the current hardware inventory information. For example, judge the matching degree of the alternative hardware configuration combination according to the test target, and judge the inventory situation of the alternative hardware configuration combination according to the current hardware inventory information. Then, use the alternative hardware configuration combination that meets the preset conditions as the final hardware configuration combination for testing the server.

[0042] This embodiment determines the alternative hardware configuration based on the preset replacement rules and inventory management, and further screens the alternative hardware configuration combination generated based on the alternative hardware configuration through the test target and the current hardware inventory information, ensuring that the generated alternative hardware configuration combination not only meets the server test requirements but also has sufficient inventory available, improving the stability of server testing and shortening the replacement decision-making duration, providing guarantee for the server test cycle.

[0043] In some embodiments of the present application, the preset replacement rule is a replacement rule model corresponding to the type of hardware configuration. Match the spare hardware configuration corresponding to the target hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database, including:

[0044] Input the parameter information of the target hardware configuration and the current hardware inventory information of the target database into the target replacement rule model to obtain the spare hardware configuration corresponding to the target hardware configuration.

[0045] That is to say, the preset replacement rule is embodied in the form of a model. When it is determined that the hardware configuration inventory is insufficient, determine the corresponding replacement rule model according to the type of hardware configuration. For example, when the hardware configuration is a hard disk, select the hard disk replacement rule model; when the hardware configuration is memory, select the memory replacement rule model.

[0046] Then, input the parameter information of the hardware configuration to be replaced and the current hardware inventory information of the target database into the replacement rule model, so as to output a spare hardware configuration that matches the performance of the hardware configuration to be replaced and has sufficient inventory. Among them, the replacement rule model can be obtained by self-learning and transformation of test experience.

[0047] This embodiment reflects the preset replacement rule in the form of a model, which improves the application flexibility and decision-making speed. At the same time, it can realize the optimization of the preset replacement rule based on model learning and parameter adjustment. The replacement rule model supports the dynamic update and optimization of rules, and can adjust the rule model in real time according to the test execution data to improve the accuracy and reliability of the alternative solution.

[0048] Furthermore, the selection of the spare hardware configuration can also be judged in combination with the test requirements. At this time, input the test target, the parameter information of the hardware configuration to be replaced, and the current hardware inventory information of the target database into the replacement rule model to output the spare hardware configuration, so as to quickly generate an alternative hardware configuration combination plan that meets the requirements, and further improve the accuracy and reliability of the alternative hardware configuration combination plan.

[0049] In some embodiments of the present application, screen the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate the final hardware configuration combination, including: input the test target and the spare hardware configuration combination into the preset rule model to obtain the rule matching degree of the spare hardware configuration combination; evaluate the inventory availability of the spare hardware configuration combination according to the current hardware inventory information; when the rule matching degree of the spare hardware configuration combination is greater than or equal to the preset matching degree threshold and the inventory availability of the spare hardware configuration combination is greater than or equal to the preset availability threshold, use the spare hardware configuration combination as the final hardware configuration combination.

[0050] Specifically, the preset rule model is obtained based on deep modeling and is used to evaluate the matching degree between the hardware configuration combination and the test requirements. It can comprehensively consider various parameters of the server hardware and the collaborative logic of the processing combination components to meet the requirements of complex server configurations.

[0051] Input the test target and the spare hardware configuration combination into the preset rule model to obtain the rule matching degree of the spare hardware configuration, and evaluate the applicability of the spare hardware configuration combination through the rule matching degree. The preset rule model can perform matching evaluations in multiple directions, such as interface protocols, physical dimensions, performance indicators, etc., and then integrate the evaluation results in each direction to obtain the final rule matching degree. The higher the rule matching degree, the more suitable the spare hardware configuration combination is for the test requirements of the server.

[0052] Obtain the inventory information of each hardware configuration in the alternative hardware configuration combination in combination with the current hardware inventory information to evaluate the inventory availability of the alternative hardware configuration combination. The higher the inventory availability, the more inventory of each hardware configuration in the alternative hardware configuration combination, and the more inventory guarantee there is; the lower the inventory availability, the less inventory of each hardware configuration in the alternative hardware configuration combination, and there is a crisis of insufficient inventory.

[0053] Each alternative hardware configuration combination is comprehensively evaluated through the rule matching degree and inventory availability. Select the alternative hardware configuration combination whose rule matching degree is greater than or equal to the preset matching degree threshold and inventory availability is greater than or equal to the preset availability threshold as the final hardware configuration combination, which can be used for server testing.

[0054] In this embodiment, each alternative hardware configuration combination is comprehensively evaluated and screened according to its rule matching degree and inventory availability, and the alternative hardware configuration combination with a higher rule matching degree and inventory availability is used as the final hardware configuration combination for server testing, ensuring the stability of the test system constructed by the final hardware configuration combination and providing guarantee for the server testing process.

[0055] In some embodiments of the present application, before testing the server based on the final hardware configuration combination, it further includes: performing simulation pre-verification on the final hardware configuration combination, and testing the server based on the final hardware configuration combination that passes the simulation pre-verification.

[0056] Simulation verification is to perform a complete test on the implemented design by using a design software package to simulate the working conditions in the actual physical environment.

[0057] That is to say, based on the software design, a simulated test scenario is constructed, and then the generated final hardware configuration combination is input into the simulated test scenario for simulation operation. The performance of the final hardware configuration combination is evaluated according to the operation results to verify the theoretical feasibility and stability of the combination scheme, timely discover potential problems of the final hardware configuration combination, and filter out theoretically infeasible configuration combinations. The final hardware configuration combination that passes the simulation pre-verification is used for server testing.

[0058] This embodiment theoretically verifies the feasibility and stability of the final hardware configuration combination based on simulation pre-verification, and uses the final hardware configuration combination that passes the simulation pre-verification for server testing, thereby reducing possible problems in actual testing and further improving the testing stability.

[0059] In some embodiments of the present application, when performing simulation pre-verification on the final hardware configuration combination, it further includes: when the final hardware configuration combination fails to pass the simulation pre-verification, generating first feedback information to adjust the preset replacement rule based on the first feedback information.

[0060] That is to say, if the final hardware configuration combination fails the simulation pre-verification, it is considered that the alternative hardware configuration in the final hardware configuration combination is not applicable to the server test, and the preset replacement rule for generating the alternative hardware configuration needs to be adjusted to optimize the generation effect of the subsequent alternative hardware configuration. Specifically, the first feedback information can be generated based on the simulation pre-verification result. The first feedback information includes identification information such as the reason for failure, the failure reason code, and the alternative hardware configuration in the final hardware configuration combination, so as to determine the alternative hardware configuration that causes the simulation pre-verification to fail and the corresponding preset replacement rule based on the first feedback information, and adjust the preset replacement rule based on the first feedback information. For example, adjust aspects such as coefficients, value ranges, and conditional architectures.

[0061] After the preset replacement rule is adjusted, the alternative hardware configuration can be rematched based on the adjusted preset replacement rule, and then the generation and testing of the alternative hardware configuration combination are performed again; or after all the final hardware configuration combinations in this test fail the simulation pre-verification, the steps of rematching the alternative hardware configuration based on the adjusted preset replacement rule and then regenerating and testing the alternative hardware configuration combination are executed again, and when there are combinations that pass the simulation pre-verification in the final hardware configuration combinations of this test, these steps are not executed.

[0062] Through the simulation pre-verification, this embodiment can timely discover potential problems in the final hardware configuration combination and generate the first feedback information, so as to optimize and adjust the preset replacement rule. While ensuring the reliability and stability of the final hardware configuration combination, the generation quality of the backup hardware configuration is improved based on the feedback optimization.

[0063] In some embodiments of this application, the server testing method further includes: when the hardware configurations in the initial hardware configuration combination are all in sufficient stock, using the initial hardware configuration combination as the target hardware configuration combination; or when one or more hardware configurations in the initial hardware configuration combination are in insufficient stock, using the final hardware configuration combination that passes the simulation pre-verification as the target hardware configuration combination; performing on-site test verification on the target hardware configuration combination to test the server with the target hardware configuration combination that passes the on-site test verification.

[0064] That is to say, after receiving the initial hardware configuration combination for testing the server, evaluate the inventory of the hardware configurations in the initial hardware configuration combination. If the hardware configurations in the initial hardware configuration combination are all in sufficient stock, it is considered that the initial hardware configuration combination can be used for server testing and used as the target hardware configuration combination. If one or more hardware configurations in the initial hardware configuration combination are in insufficient stock, the final hardware configuration combination is determined based on the above process, and it is considered that the final hardware configuration combination that passes the simulation pre-verification can be used for server testing and used as the target hardware configuration combination.

[0065] Before the target hardware configuration combination is used for server testing, a live test verification is also carried out. The live test is to apply the hardware configuration combination to the actual test environment for actual test verification. By collecting various types of data during the test process, the reliability and stability of the target configuration combination are evaluated, and the target hardware configuration combination that passes the live test verification is used to test the server.

[0066] This embodiment conducts a live test on the target hardware configuration combination to verify the reliability and stability of the target hardware configuration combination, and further improve the overall quality of server testing.

[0067] In some embodiments of the present application, during the process of verifying the target hardware configuration combination through a live test, it further includes: obtaining the test performance of the final hardware configuration combination, and adjusting the preset replacement rule based on the test performance.

[0068] The test performance of the final hardware configuration combination can be various data values during the process of verifying the final hardware configuration combination through a live test, such as the passing rate of a single test.

[0069] That is to say, after generating the final hardware configuration combination, first perform a simulation pre-verification on the final hardware configuration combination, then apply the final hardware configuration combination that passes the simulation pre-verification to the actual test environment for live test verification, and collect various types of data during the test process in the live test verification as the test performance of the final hardware configuration combination, so as to optimize and adjust the preset replacement rule corresponding to the final hardware configuration combination based on the test performance. Further, if the final hardware configuration combination performs well in the live test verification, it can be incorporated into the configuration combination for subsequent test tasks.

[0070] This embodiment performs real-time feedback and rule optimization based on the test performance of the final hardware configuration combination during the actual test verification process, and continuously improves the accuracy and reliability of the alternative solution.

[0071] As a specific embodiment of the present application, as Figure 2 shown, the server testing method may include the following steps:

[0072] S101, obtain the test target of the server and the initial hardware configuration combination of the test server.

[0073] S102, query the current hardware inventory information of the target database.

[0074] S103, determine whether there is a situation of insufficient inventory in the initial hardware configuration combination. If so, execute step S104; if not, execute step S108.

[0075] S104. Match alternative hardware configurations based on the parameter information of the hardware configuration and the current hardware inventory information of the target database through the replacement rule model, and construct an alternative hardware configuration combination based on the alternative hardware configurations.

[0076] S105. Determine the rule matching degree and inventory availability of the alternative hardware configuration combination based on the test objectives and the current hardware inventory information.

[0077] S106. Screen according to the rule matching degree and inventory availability of the alternative hardware configuration combination to obtain the final hardware configuration combination.

[0078] S107. Perform simulation pre-verification on the final hardware configuration combination. When the final hardware configuration combination passes the simulation pre-verification, execute step S108; when the final hardware configuration combination fails the simulation pre-verification, execute step S111.

[0079] S108. Conduct on-site test verification on the hardware configuration combination, and use the hardware configuration combination that passes the on-site test verification for server testing. When there are multiple final hardware configuration combinations that pass the on-site test verification, the final hardware configuration combination with the best performance can be selected for server testing.

[0080] S109. Optimize and adjust the rule matching model according to the feedback results of the on-site test verification of the hardware configuration combination.

[0081] In addition, if the alternative solution, that is, the final hardware configuration combination, performs well in the actual test, it can be incorporated into the configuration combination rule library for subsequent test tasks.

[0082] S110: Generate a test report.

[0083] The data collection and analysis module generates a detailed test report based on the data collected during the test execution process, including detailed information about the alternative solution, test result analysis, performance metric comparison, etc., providing comprehensive test result analysis and suggestions for test engineers.

[0084] S111. Generate the first feedback information to adjust the replacement rule model based on the first feedback information.

[0085] This embodiment synergistically generates a hardware configuration combination for server testing based on dynamic rules and inventory information, achieving efficient generation and optimization of server test configurations. It can have the following beneficial effects:

[0086] 1. Improve the efficiency of material substitution decision-making: Through the collaborative work of dynamic rules and inventory management, it can quickly generate alternative configuration solutions that meet the requirements, avoiding the inefficiency and subjectivity of the manual decision-making method in related technologies, and significantly improving the efficiency of material substitution decision-making.

[0087] 2. Reduce manual intervention and subjective errors: This embodiment automatically generates alternative solutions based on rules and inventory information, reducing manual intervention and subjective judgment, minimizing errors introduced due to insufficient engineer experience or negligence, and improving the accuracy of server testing.

[0088] 3. Achieve a tight integration of rules and inventory: Through the collaborative work of dynamic rules and inventory management, ensure that there is sufficient inventory available for all materials involved in the generated alternative solutions, avoid test interruptions caused by insufficient inventory, and improve the efficiency and reliability of server testing.

[0089] 4. Optimize the accuracy and reliability of alternative solutions: Through the real-time feedback of test execution data and the rule optimization mechanism, continuously optimize the rule model, improve the accuracy and reliability of alternative solutions, and provide a standardized and highly reliable material substitution solution for server testing.

[0090] 5. Improve the overall quality of server testing: Adopt a dual verification mechanism (simulation pre-verification and actual test verification) to promptly detect potential problems with alternative solutions, ensure the reliability and stability of alternative solutions, and thus improve the overall quality of server testing.

[0091] Furthermore, a corresponding test system can be constructed for the implementation of the above server testing method. The system can include the following modules:

[0092] 1. Dynamic rule engine module: This module is responsible for constructing and maintaining the replacement rule model for server components. By converting test experience into systematic rules, the dynamic rule engine can quickly generate alternative configuration solutions that meet requirements based on the input test requirements and inventory information. This module supports the dynamic update and optimization of rules, and can adjust the rule model in real time according to test execution data to improve the accuracy and reliability of alternative solutions.

[0093] 2. Inventory management module: This module is responsible for real-time monitoring and managing the inventory of various materials required for server testing. Through collaborative work with the dynamic rule engine module, the inventory management module can ensure that there is sufficient inventory available for all materials involved in the generated alternative configuration solutions. In addition, this module can also dynamically adjust alternative solutions according to inventory conditions to avoid test interruptions caused by insufficient inventory.

[0094] 3. Test and Verification Module: This module is responsible for simulating and pre-verifying the generated alternative configuration solutions and conducting actual test and verification. By closely collaborating with the Dynamic Rule Engine Module and the Inventory Management Module, the Test and Verification Module can promptly identify potential problems with the alternative solutions and feedback the verification results to the Dynamic Rule Engine Module for optimizing and adjusting the rule model. This feedback closed-loop mechanism ensures the reliability and stability of the alternative solutions and improves the overall quality of server testing.

[0095] 4. Data Collection and Analysis Module: This module is responsible for collecting and analyzing various types of data generated during the test execution process. Through in-depth analysis of this data, the Data Collection and Analysis Module can provide valuable information to the Dynamic Rule Engine Module to assist in optimizing the rule model. In addition, this module can also generate detailed test reports, providing comprehensive test result analysis and suggestions for test engineers.

[0096] Through the description of the above implementation manners, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation manner.

[0097] The embodiments of the present application also provide a server testing device. As Figure 3 shown, the server testing device includes: an acquisition module 10, a determination module 20, a configuration module 30, and a testing module 40.

[0098] Among them, the acquisition module 10 is used to acquire the test objectives of the server and the initial hardware configuration combination for testing the server; the determination module 20 is used to acquire the parameter information of the hardware configurations with insufficient inventory in the initial hardware configuration combination when one or more hardware configurations in the initial hardware configuration combination have insufficient inventory; the configuration module 30 is used to match the corresponding alternative hardware configurations for the hardware configurations according to the parameter information of the hardware configurations, the preset replacement rules, and the current hardware inventory information of the target database, and construct an alternative hardware configuration combination based on the alternative hardware configurations; the testing module 40 is used to screen the alternative hardware configuration combination based on the test objectives and the current hardware inventory information to generate a final hardware configuration combination, and test the server based on the final hardware configuration combination.

[0099] In some embodiments of the present application, the preset replacement rule is a replacement rule model corresponding to the type of hardware configuration. The determination module 20 matches the backup hardware configuration corresponding to the target hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database. Specifically, it is used to: input the parameter information of the target hardware configuration and the current hardware inventory information of the target database into the target replacement rule model to obtain the backup hardware configuration corresponding to the target hardware configuration.

[0100] In some embodiments of the present application, the testing module 40 screens the alternative hardware configuration combinations based on the test target and the current hardware inventory information to generate the final hardware configuration combination. Specifically, it is used to: input the test target and the backup hardware configuration combination into the preset rule model to obtain the rule matching degree of the backup hardware configuration; evaluate the inventory availability of the backup hardware configuration combination according to the current hardware inventory information; in the case where the rule matching degree of the backup hardware configuration combination is greater than or equal to the preset matching degree threshold and the inventory availability of the backup hardware configuration combination is greater than or equal to the preset availability threshold, use the backup hardware configuration combination as the final hardware configuration combination.

[0101] In some embodiments of the present application, before the testing module 40 tests the server based on the final hardware configuration combination, it is also used to: perform simulation pre-verification on the final hardware configuration combination, and test the server based on the final hardware configuration combination that passes the simulation pre-verification.

[0102] In some embodiments of the present application, when the testing module 40 performs simulation pre-verification on the final hardware configuration combination, it is also used to: generate the first feedback information when the final hardware configuration combination fails the simulation pre-verification, so as to adjust the preset replacement rule based on the first feedback information.

[0103] In some embodiments of the present application, the testing module 40 is also used to: when the hardware configurations in the initial hardware configuration combination are all in sufficient stock, use the initial hardware configuration combination as the target hardware configuration combination; or when one or more hardware configurations in the initial hardware configuration combination are out of stock, use the final hardware configuration combination that passes the simulation pre-verification as the target hardware configuration combination; perform on-site test verification on the target hardware configuration combination, and test the server with the target hardware configuration combination that passes the on-site test verification.

[0104] In some embodiments of the present application, during the process of the testing module 40 performing on-site test verification on the target hardware configuration combination, it is also used to: obtain the test performance of the final hardware configuration combination, and adjust the preset replacement rule based on the test performance.

[0105] For the description of the features in the corresponding embodiments of the server testing device, reference can be made to the relevant descriptions in the corresponding embodiments of the server testing method, which will not be elaborated here one by one.

[0106] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned server test method embodiments.

[0107] In an exemplary embodiment, the above-mentioned computer-readable storage medium may include, but is not limited to: USB flash drive, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disk, magnetic disk, or optical disc, etc., various media that can store computer programs.

[0108] An embodiment of the present application further provides a computer program product. The above-mentioned computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-mentioned server test method embodiments.

[0109] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0110] The above has introduced in detail a server test method, a test device, an electronic device, and a computer program product provided by the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A server testing method, characterized in that, Including: Obtain the test target of the server and the initial hardware configuration combination for testing the server; When there is a shortage in one or more hardware configurations in the initial hardware configuration combination, determine the parameter information of the hardware configurations with shortages in the initial hardware configuration combination; Match the corresponding spare hardware configuration for the hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database, and construct an alternative hardware configuration combination based on the spare hardware configuration; Screen the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination, and test the server based on the final hardware configuration combination.

2. The server testing method according to claim 1, wherein The preset replacement rule is a replacement rule model corresponding to the type of the hardware configuration. The matching of the corresponding spare hardware configuration for the target hardware configuration according to the parameter information of the hardware configuration, the preset replacement rule, and the current hardware inventory information of the target database includes: Input the parameter information of the target hardware configuration and the current hardware inventory information of the target database into the target replacement rule model to obtain the corresponding spare hardware configuration for the target hardware configuration.

3. The server testing method according to claim 1, wherein Screening the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination includes: Input the test target and the spare hardware configuration combination into a preset rule model to obtain the rule matching degree of the spare hardware configuration; Evaluate the inventory availability of the spare hardware configuration combination according to the current hardware inventory information; When the rule matching degree of the spare hardware configuration combination is greater than or equal to the preset matching degree threshold and the inventory availability of the spare hardware configuration combination is greater than or equal to the preset availability threshold, use the spare hardware configuration combination as the final hardware configuration combination.

4. The server testing method according to claim 1, characterized in that Before testing the server based on the final hardware configuration combination, it further includes: Conduct simulation pre-verification on the final hardware configuration combination, and test the server based on the final hardware configuration combination that passes the simulation pre-verification.

5. The server testing method according to claim 4, wherein Conducting simulation pre-verification on the final hardware configuration combination further includes: When the final hardware configuration combination fails the simulation pre-verification, generate first feedback information to adjust the preset replacement rule based on the first feedback information.

6. The server testing method according to claim 5, wherein, It also includes: When all the hardware configurations in the initial hardware configuration combination are in sufficient stock, use the initial hardware configuration combination as the target hardware configuration combination; Or When there is a shortage in one or more hardware configurations in the initial hardware configuration combination, use the final hardware configuration combination that passes the simulation pre-verification as the target hardware configuration combination; Conduct on-site test verification on the target hardware configuration combination, and test the server with the target hardware configuration combination that passes the on-site test verification.

7. The server testing method according to claim 6, wherein During the process of conducting on-site test verification on the target hardware configuration combination, it further includes: Obtain the test performance of the final hardware configuration combination, and adjust the preset replacement rule based on the test performance.

8. A server testing device, characterized in that The device includes: An acquisition module, configured to acquire a test target of a server and an initial hardware configuration combination for testing the server; A determination module, configured to, when there is a shortage in stock of one or more hardware configurations in the initial hardware configuration combination, acquire parameter information of the hardware configurations with a shortage in stock in the initial hardware configuration combination; A configuration module, configured to match a corresponding spare hardware configuration for the hardware configuration according to the parameter information of the hardware configuration, a preset replacement rule, and the current hardware inventory information of a target database, and construct an alternative hardware configuration combination based on the spare hardware configuration; A test module, configured to screen the alternative hardware configuration combination based on the test target and the current hardware inventory information to generate a final hardware configuration combination, and test the server based on the final hardware configuration combination.

9. An electronic device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to implement the steps of the server test method according to any one of claims 1-7 when executing the computer program.

10. A computer program product, comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the steps of the server test method according to any one of claims 1-7.