Method for automatically initializing hardware test platform
Through the method of automated hardware test platform, the problem of time-consuming and error-prone initialization of hardware test environments is solved, and efficient and accurate initialization of test environments is achieved, reducing the error rate and improving testing efficiency.
Patent Information
- Application Number
- CN202411786689.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-14
AI Technical Summary
In the server testing process, the initialization of the hardware test environment is time-consuming and error-prone, resulting in increased quality accidents and testing costs.
Provides a method to automatically initialize a hardware test platform. By establishing a system library and test tool library, using task manager, script manager and device manager to automate the execution of test tasks and scripts, ensuring the correct installation and deployment of operating systems and tools.
It effectively reduces the error rate caused by human operations, significantly improves the initialization efficiency of the hardware test environment, shortens the test cycle, and ensures the accuracy and consistency of the test environment.
Smart Images

Figure CN119621452A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses a method for automatically initializing a hardware testing platform, and relates to the technical field of hardware testing. Background Art
[0002] In the server testing process, the initialization of the hardware testing environment is undoubtedly the most time-consuming part. Hardware testing needs to adapt to multiple operating system versions and their corresponding multiple tool versions, and the workload of the combination process is extremely large. In the prior art, testers need to manually install each operating system image version and manually install each specific tool version under the corresponding operating system version. This manual operation is not only extremely time-consuming and labor-intensive, but also very likely to cause serious quality accidents due to incomplete version coverage or version installation errors. These mistakes will not only increase testing costs, but may also delay project progress and have a negative impact on the overall testing results. Summary of the invention
[0003] In view of the problems of the prior art, the present invention provides a method for automatically initializing a hardware testing platform, which can automatically and quickly complete the initialization of a specified system version and a tool system according to preset tasks. Through a precise automated process, the error rate caused by human operation is effectively reduced, and the initialization efficiency of the hardware testing environment is significantly improved.
[0004] The specific scheme proposed by the present invention is:
[0005] The present invention provides a method for automatically initializing a hardware test platform, establishing a system library and a test tool library,
[0006] Arrange and schedule the initial test task through the task manager, and bind the test task to the test script. Configure the test task through the task manager, including configuring the execution time, script path and parameter settings of the test task.
[0007] The script manager manages the upload, editing, execution and logging of test scripts, provides script templates and examples, and integrates the script testing environment to verify the correctness of the test script before formal execution.
[0008] The hardware test environment is connected to the hardware test platform through the device manager using the BMC interface, and instructions from the task manager are received. The instruction content includes the corresponding test tasks and test scripts. The device manager sends instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
[0009] Furthermore, the establishment of a system library in the method of automatically initializing a hardware testing platform includes: storing different versions of operating system ISO media, using the network file system NFS to store ISO files, supporting upload, download and version management of ISO files, and adding a checksum and verification mechanism for ISO files to ensure that the downloaded ISO files are intact. At the same time, a cache for ISO files is added to reduce repeated downloads.
[0010] Furthermore, the method of automatically initializing a hardware testing platform describes establishing a testing tool library, including: storing testing tools for different systems and different versions, supporting software package formats for different operating systems, supporting the upload, download and version management of testing tools, and integrating dependency management tools to automatically resolve dependencies between tools, support pre-compilation and packaging of tools, and reduce installation time.
[0011] Furthermore, the method for automatically initializing a hardware test platform sets task priorities through a task manager, executes high-priority tasks first when resources are limited, and adds task dependencies to ensure that tasks are executed in sequence.
[0012] Furthermore, the method for automatically initializing a hardware testing platform adds hardware testing status monitoring and alarm functions through a device manager to timely discover and handle faults occurring during hardware testing.
[0013] The present invention also provides a device for automatically initializing a hardware test platform, a database management module, a task manager module, a script manager module and a device manager module.
[0014] The database management module establishes the system library and test tool library.
[0015] The task manager module arranges and schedules the initialization test tasks and binds the test tasks to the test scripts. The test tasks are configured through the task manager, including the execution time, script path and parameter settings of the test tasks.
[0016] The script manager module manages the upload, editing, execution and logging of test scripts, provides script templates and examples, integrates the script test environment, and verifies the correctness of the test script before the test script is officially executed.
[0017] The device manager module uses the BMC interface to connect the hardware test environment with the hardware test platform, receives instructions from the task manager, and the instruction content includes the corresponding test tasks and test scripts. The device manager issues instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
[0018] Furthermore, the database management module of the device for automatically initializing the hardware test platform establishes a system library, including: storing different versions of operating system ISO media, using the network file system NFS to store ISO files, supporting the upload, download and version management of ISO files, and adding a checksum and verification mechanism for ISO files to ensure that the downloaded ISO files are intact. At the same time, a cache for ISO files is added to reduce repeated downloads.
[0019] Furthermore, the database management module of the device for automatically initializing the hardware testing platform establishes a testing tool library, including: storing testing tools of different systems and versions, supporting software package formats of different operating systems, supporting uploading, downloading and version management of testing tools, and integrating dependency management tools to automatically resolve dependencies between tools, support pre-compilation and packaging of tools, and reduce installation time.
[0020] Furthermore, the task manager module of the device for automatically initializing a hardware test platform sets task priorities, executes high-priority tasks first when resources are limited, and adds task dependencies to ensure that tasks are executed in sequence.
[0021] Furthermore, the device manager module of the apparatus for automatically initializing a hardware test platform adds hardware test status monitoring and alarm functions to timely discover and handle faults that occur during hardware testing.
[0022] The benefits of the present invention are:
[0023] It can automatically and quickly complete the initialization of the specified system version and tool system according to the preset tasks. Through precise automated processes, it effectively reduces the error rate caused by human operation and significantly improves the initialization efficiency of the hardware test environment. It not only greatly shortens the test cycle, but also ensures the accuracy and consistency of the test environment, providing strong support for compatibility testing during the hardware testing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a schematic flow chart of the method of the present invention. DETAILED DESCRIPTION
[0025] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0026] Example 1
[0027] The invention provides a method for automatically initializing a hardware test platform, and establishes a system library and a test tool library.
[0028] The system library is established, including: storing different versions of operating system ISO media, using the network file system NFS to store ISO files, supporting the upload, download and version management of ISO files, and adding a checksum verification mechanism for ISO files to ensure that the downloaded ISO files are intact. At the same time, a cache for ISO files is added to reduce repeated downloads.
[0029] Establish a test tool library, including: storing test tools for different systems and versions, supporting software package formats for different operating systems, supporting the upload, download and version management of test tools, integrating dependency management tools to automatically resolve dependencies between tools, supporting pre-compilation and packaging of tools, and reducing installation time.
[0030] Arrange and schedule the initialization test tasks through the task manager, and bind the test tasks to the test scripts. Configure the test tasks through the task manager, including configuring the execution time, script path and parameter settings of the test tasks. Set the task priority through the task manager, give priority to high-priority tasks when resources are limited, and add task dependencies to ensure that tasks are executed in sequence.
[0031] The script manager manages the uploading, editing, execution and logging of test scripts, provides script templates and examples, and integrates the script testing environment to verify the correctness of test scripts before they are formally executed.
[0032] The hardware test environment is connected to the hardware test platform through the device manager using the BMC interface, and instructions from the task manager are received. The instruction content includes the corresponding test tasks and test scripts. The device manager sends instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
[0033] The device manager also adds hardware test status monitoring and alarm functions to promptly detect and handle faults that occur during hardware testing.
[0034] Example 2
[0035] The present invention also provides a device for automatically initializing a hardware test platform, a database management module, a task manager module, a script manager module and a device manager module.
[0036] The database management module establishes the system library and test tool library.
[0037] The task manager module arranges and schedules the initialization test tasks and binds the test tasks to the test scripts. The test tasks are configured through the task manager, including the execution time, script path and parameter settings of the test tasks.
[0038] The script manager module manages the upload, editing, execution and logging of test scripts, provides script templates and examples, integrates the script test environment, and verifies the correctness of the test script before the test script is officially executed.
[0039] The device manager module uses the BMC interface to connect the hardware test environment with the hardware test platform, receives instructions from the task manager, and the instruction content includes the corresponding test tasks and test scripts. The device manager issues instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
[0040] As the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0041] Similarly, the device of the present invention can automatically and quickly complete the initialization of the specified system version and tool system according to the preset tasks. Through the precise automation process, the error rate caused by human operation is effectively reduced, and the initialization efficiency of the hardware test environment is significantly improved. Not only does it greatly shorten the test cycle, but it also ensures the accuracy and consistency of the test environment, providing strong support for compatibility testing during the hardware testing process.
[0042] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0043] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. A method for automatically initializing a hardware test platform, characterized in that Establish system library and test tool library, Arrange and schedule the initial test task through the task manager, and bind the test task to the test script. Configure the test task through the task manager, including configuring the execution time, script path and parameter settings of the test task. The script manager manages the upload, editing, execution and logging of test scripts, provides script templates and examples, and integrates the script testing environment to verify the correctness of the test script before formal execution. The hardware test environment is connected to the hardware test platform through the device manager using the BMC interface, and instructions from the task manager are received. The instruction content includes the corresponding test tasks and test scripts. The device manager sends instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
2. A method for automatically initializing a hardware test platform according to claim 1, characterized in that The establishment of the system library includes: storing different versions of operating system ISO media, using the network file system NFS to store ISO files, supporting the upload, download and version management of ISO files, and adding a checksum verification mechanism for ISO files to ensure that the downloaded ISO files are intact. At the same time, adding a cache for ISO files to reduce repeated downloads.
3. A method for automatically initializing a hardware test platform according to claim 1, characterized in that The establishment of the test tool library includes: storing test tools of different systems and versions, supporting software package formats of different operating systems, supporting upload, download and version management of test tools, integrating dependency management tools, automatically resolving dependencies between tools, supporting pre-compilation and packaging of tools, and reducing installation time.
4. The method for automatically initializing a hardware test platform according to claim 1, characterized in that Set task priorities through the Task Manager to prioritize high-priority tasks when resources are limited, and add task dependencies to ensure that tasks are executed in order.
5. The method for automatically initializing a hardware test platform according to claim 1, characterized in that Add hardware test status monitoring and alarm functions through the device manager to promptly detect and handle faults that occur during hardware testing.
6. A device for automatically initializing a hardware test platform, characterized in that Database management module, task manager module, script manager module and device manager module, The database management module establishes the system library and test tool library. The task manager module arranges and schedules the initialization test tasks and binds the test tasks to the test scripts. The test tasks are configured through the task manager, including the execution time, script path and parameter settings of the test tasks. The script manager module manages the upload, editing, execution and logging of test scripts, provides script templates and examples, integrates the script test environment, and verifies the correctness of the test script before the test script is officially executed. The device manager module uses the BMC interface to connect the hardware test environment with the hardware test platform, receives instructions from the task manager, and the instruction content includes the corresponding test tasks and test scripts. The device manager issues instructions to perform automated initial operations: according to the parameter instructions in the test script, the corresponding operating system ISO image is retrieved from the system library for installation and deployment, and the corresponding version of the test tool is obtained from the test tool library for installation, and feedback from the hardware test platform is received and the status flag of the corresponding test task in the task manager is updated according to the feedback.
7. The device for automatically initializing a hardware test platform according to claim 6, characterized in that The database management module establishes a system library, including: storing different versions of operating system ISO media, using the network file system NFS to store ISO files, supporting the upload, download and version management of ISO files, and adding a checksum verification mechanism for ISO files to ensure that the downloaded ISO files are intact. At the same time, adding a cache for ISO files to reduce repeated downloads.
8. The device for automatically initializing a hardware test platform according to claim 6, characterized in that The database management module establishes a test tool library, including: storing test tools for different systems and versions, supporting software package formats for different operating systems, supporting the upload, download and version management of test tools, integrating dependency management tools to automatically resolve dependencies between tools, supporting pre-compilation and packaging of tools, and reducing installation time.
9. The device for automatically initializing a hardware test platform according to claim 6, characterized in that The task manager module sets task priorities, executes high-priority tasks first when resources are limited, and adds task dependencies to ensure that tasks are executed in order.
10. The device for automatically initializing a hardware test platform according to claim 6, characterized in that The device manager module adds hardware test status monitoring and alarm functions to promptly detect and handle faults that occur during hardware testing.