Search

CN-121579293-B - Automatic testing method and system for hot plug of solid-state hardware

CN121579293BCN 121579293 BCN121579293 BCN 121579293BCN-121579293-B

Abstract

The application discloses a method and a system for automatically testing hot plug of solid-state hardware, which relate to the technical field of computer hardware testing, receive test configuration parameters input by a user through an automatic script, control an auxiliary fixture to execute on-off operation of a solid-state hardware power line and a data line, the system automatically verifies the identification state of the system by collecting the electrical parameters in real time for analysis, so that the testing process can be efficiently and accurately completed, the testing efficiency of the solid-state hardware hot plug can be improved, the consistency and repeatability of the testing process can be ensured, the manual operation error can be reduced, the testing precision of the solid-state hardware hot plug can be improved, and the hardware damage and the system failure can be avoided.

Inventors

  • YI LIN

Assignees

  • 四川华鲲振宇智能科技有限责任公司

Dates

Publication Date
20260508
Application Date
20260126

Claims (8)

  1. 1. The automatic test method for the hot plug of the solid-state hardware is characterized by comprising the following steps of: Receiving test configuration parameters input by a user through an automatic script, wherein the test configuration parameters comprise plug interval time and plug cycle times; the test configuration parameters are sent to the auxiliary jig, so that on-off operation of the solid-state hardware power line and the data line is executed through the auxiliary jig, and electrical parameters are collected in the on-off operation process, so that electrical parameter data are obtained; comparing the electrical parameter data with a preset threshold value to generate an abnormality judgment result; when the abnormal judgment result indicates that the operation is successful, verifying the identification state of the solid-state hardware in the system after completing one-time on-off operation so as to generate a system verification result; Based on the abnormal judgment result, the system verification result and the plug cycle times in the test configuration parameters, counting the successful times and generating test report data; The method comprises the steps of sending test configuration parameters to an auxiliary jig, executing on-off operation of a solid-state hardware power line and a data line through the auxiliary jig, and collecting electrical parameters in the on-off operation process to obtain electrical parameter data, wherein the steps comprise: Extracting the plug interval time from the test configuration parameters to generate time control data, and extracting the plug cycle times from the test configuration parameters to generate cycle control data; Generating a wireless control command comprising a sequence of off commands and on commands based on the time control data and the cycle control data; A wireless communication module for sending a wireless control instruction to the auxiliary jig through wireless communication so as to control the electromagnetic relay array of the auxiliary jig to simultaneously execute on-off operation of the solid-state hardware power line and the data line; in the process of executing on-off operation of the electromagnetic relay array, collecting power line voltage change and power line current change through a state monitoring circuit of the auxiliary fixture so as to obtain power line voltage change data and power line current change data; Returning the power line voltage change data and the power line current change data through wireless communication to obtain electrical parameter data; in the process of executing on-off operation of the electromagnetic relay array, collecting the voltage change of the power line and the current change of the power line through a state monitoring circuit of the auxiliary fixture so as to obtain the voltage change data of the power line and the current change data of the power line, wherein the step of acquiring the voltage change data of the power line and the current change data of the power line comprises the following steps: when the electromagnetic relay array executes the disconnection operation, monitoring the voltage value change of the solid-state hardware power line in real time at a preset first sampling frequency; when the electromagnetic relay array performs the switching-on operation, monitoring the current value change of the solid-state hardware power line in real time at a preset second sampling frequency; In the monitoring process, when the voltage value or the current value is detected to be suddenly changed, the sampling frequency is increased to obtain high-resolution electrical parameter data; And combining the high-resolution electrical parameter data with the power line voltage change data and the power line current change data to obtain complete electrical parameter data.
  2. 2. The method of claim 1, wherein the step of sending a wireless control command to the wireless communication module of the auxiliary fixture via wireless communication to control the electromagnetic relay array of the auxiliary fixture to simultaneously perform on-off operations of the solid state hardware power line and the data line comprises: the wireless control instruction is sent to a wireless communication module of the auxiliary jig; Controlling the on-off of an electromagnetic coil of the electromagnetic relay array through the wireless communication module so as to drive a relay contact to execute the on-off operation of a solid-state hardware power line; And simultaneously controlling the electromagnetic relay array, and synchronously controlling the on-off operation of the solid-state hardware data line through the auxiliary contact of the electromagnetic relay array.
  3. 3. The method for automated testing of solid state hardware hot plug of claim 2, further comprising: after a disconnection instruction is sent, the electromagnetic relay array is controlled to disconnect the solid-state hardware power line firstly, and then disconnect the data line, wherein the time interval between the solid-state hardware power line and the data line is smaller than the preset minimum time interval; After sending the switch-on instruction, controlling the electromagnetic relay array to switch on the solid-state hardware power line first and then switch on the data line, wherein the time interval between the solid-state hardware power line and the data line is smaller than the preset minimum time interval.
  4. 4. The method of claim 1, wherein comparing the electrical parameter data with a predetermined threshold to generate an anomaly determination result comprises: receiving the electrical parameter data, and extracting voltage change data and current change data in the electrical parameter data; Comparing the voltage change data with a preset voltage threshold, and when the voltage change data exceeds the range of the preset voltage threshold, generating a voltage abnormality mark and recording a specific time point and an exceeding value of the voltage abnormality; comparing the current change data with a preset current threshold value, and when the current change data exceeds the range of the preset current threshold value, generating a current abnormality mark and recording a specific time point and an exceeding value of the current abnormality; Based on the voltage abnormality identification and the current abnormality identification, an abnormality determination result is generated.
  5. 5. The method of claim 4, wherein the step of generating an anomaly determination result based on the voltage anomaly identification and the current anomaly identification comprises: when the voltage abnormality identification indicates that the voltage abnormality exists or the current abnormality identification indicates that the current abnormality exists, judging that the current plugging operation is abnormal, and generating an operation abnormality identification; recording the occurrence time point of the operation abnormality identification and corresponding electrical parameter data to obtain abnormality record data; Counting the number of times of continuously occurring operation abnormality identification, generating a pause instruction and stopping subsequent plug cycles when the number of times of continuously abnormal operation reaches a preset pause threshold, and generating a test termination instruction and executing safe power-off operation when the number of times of continuously abnormal operation reaches a preset termination threshold.
  6. 6. The method of claim 1, wherein when the abnormality determination indicates that the operation is successful, verifying the identification state of the solid state hardware in the system after completing the on-off operation once, to generate the system verification result comprises: After one on-off operation is completed, inquiring the equipment identification state of the solid-state hardware in the operating system through a system command; when the solid state hardware is identified, further querying transmission bandwidth and connection rate information of the solid state hardware to generate hardware performance data; Recording device identification error information in a system kernel log when the solid state hardware is not identified to generate a system error log; And generating a system verification result based on the device identification state, the hardware performance data and the system error log.
  7. 7. The method of claim 1, wherein counting the number of successes and generating the test report data based on the abnormality determination result, the system verification result, and the number of plug cycles in the test configuration parameter comprises: Based on the number of the plug cycles in the test configuration parameters, counting the number of the completed plug cycles, the number of the plug operations successfully executed and the number of the plug operations abnormally occurring, so as to generate frequency statistics data; integrating the abnormal judgment result, the system verification result, the electrical parameter data and the frequency statistic data to generate test process data; Analyzing an abnormal pattern in the test process data, classifying the abnormal pattern as a power line abnormality, a data line abnormality or a system identification abnormality, to generate abnormality classification data; And combining and analyzing the test process data, the abnormal classification data and the test configuration parameters to generate test report data, wherein the test report data comprises total plugging times, successful times, abnormal types, electrical parameter exceeding records and abnormal occurrence modes.
  8. 8. A solid state hardware hot plug automation test system comprising a memory, a processor, and a solid state hardware hot plug automation test program stored on the memory and operable on the processor, the solid state hardware hot plug automation test program configured to implement the steps of the solid state hardware hot plug automation test method of any one of claims 1 to 7.

Description

Automatic testing method and system for hot plug of solid-state hardware Technical Field The application relates to the technical field of computer hardware testing, in particular to a method and a system for automatically testing hot plug of solid-state hardware. Background The hot plug test of hardware devices such as solid state disk is an important link for evaluating the reliability and stability of the hardware devices, and the existing test process mainly depends on manual operation or basic automation tools. The tester needs to manually control the on-off operation of the hard disk power line and the data line, observe the change of the electrical parameters by means of the oscilloscope or the measuring equipment, and record the test result manually. The operation mode leads to the obvious reduction of the test efficiency, the consistency and the repeatability of the test process are difficult to ensure, and the artificial operation error is extremely easy to cause the distortion of the test data. In the multiple plug cycle test, the manual operation cannot accurately control the on-off time sequence between the power line and the data line, for example, the time interval between the disconnection of the power line and the disconnection of the data line is difficult to stably maintain, and the transient overload or system breakdown of hardware may be caused, so that the physical damage of the hardware or the failure of an operating system is caused. Part of the existing automatic test schemes can realize a simple on-off function, but generally lack the capability of monitoring the real-time state of the test process, cannot dynamically collect key electrical parameters such as voltage, current and the like in the operation process, and cannot immediately analyze the collected data to identify abnormal states. When the schemes detect the mutation of the electrical parameters, the test flow cannot be automatically paused or the field state can be stored, so that the abnormal reasons are difficult to trace. In addition, the prior art lacks an automatic verification mechanism for identifying the state of hardware in an operating system, for example, the identification state of equipment, transmission bandwidth or connection rate information cannot be automatically queried, and error information in a system kernel log cannot be captured, so that the influence of hot plug operation on the hardware function and the overall stability of the system is difficult to comprehensively evaluate. The problem causes the reliability of the test result to be insufficient, the requirements of high-precision and high-repeatability test cannot be met, and the quality verification efficiency of hardware products is restricted. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide an automatic test method and system for hot plug of solid-state hardware, and aims to improve the test efficiency and test precision of hot plug of solid-state hardware. In order to achieve the above purpose, the present application provides a method for automatically testing hot plug of solid state hardware, which comprises: Receiving test configuration parameters input by a user through an automatic script, wherein the test configuration parameters comprise plug interval time and plug cycle times; the test configuration parameters are sent to the auxiliary jig, so that on-off operation of the solid-state hardware power line and the data line is executed through the auxiliary jig, and electrical parameters are collected in the on-off operation process, so that electrical parameter data are obtained; comparing the electrical parameter data with a preset threshold value to generate an abnormality judgment result; when the abnormal judgment result indicates that the operation is successful, verifying the identification state of the solid-state hardware in the system after completing one-time on-off operation so as to generate a system verification result; Based on the abnormal judgment result, the system verification result and the plug cycle times in the test configuration parameters, the successful times are counted and test report data are generated. In an embodiment, the step of sending the test configuration parameters to the auxiliary fixture to perform on-off operation of the solid state hardware power line and the data line through the auxiliary fixture, and collecting the electrical parameters during the on-off operation to obtain the electrical parameter data includes: Extracting the plug interval time from the test configuration parameters to generate time control data, and extracting the plug cycle times from the test configuration parameters to generate cycle control data; Generating a wireless control command comprisi