Search

CN-122019280-A - Development board automation stability test method, system, terminal and storage medium

CN122019280ACN 122019280 ACN122019280 ACN 122019280ACN-122019280-A

Abstract

In an automatic test environment, dynamically-changing CPU load, environmental temperature gradient and various bus pressures are synchronously applied to a tested development board to obtain the development board under multi-factor coupling; the method comprises the steps of acquiring and associating software logs and hardware signals of a development board in real time through a distributed monitoring system, carrying out state monitoring on the development board based on the software logs and the hardware signals, automatically triggering a recovery mechanism when the development board is monitored to be faulty or unresponsive, storing system field information containing the software logs and the hardware signals, restarting a test flow, dynamically adjusting test parameters through a prediction algorithm based on the system field information and historical test data, and automatically executing the whole flow from pressure application, system monitoring to fault analysis and recovery. The invention realizes the complete automatic test flow of full automation and accurate positioning, and forms a test closed loop.

Inventors

  • LI YUEYAO

Assignees

  • 深圳开鸿数字产业发展有限公司

Dates

Publication Date
20260512
Application Date
20251218

Claims (10)

  1. 1. The automatic stability test method for the development board is characterized by comprising the following steps of: in an automatic test environment, synchronously applying a dynamically-changed CPU load, an environment temperature gradient and various bus pressures to a to-be-tested development board to obtain a development board under multi-factor coupling; The method comprises the steps that through a distributed monitoring system formed by an upper computer control end, a board end proxy module and hardware debugging and monitoring equipment, a software log and a hardware signal of the development board are collected and associated in real time, and state monitoring is carried out on the development board based on the software log and the hardware signal; When the development board is monitored to have a fault or no response, automatically triggering a recovery mechanism, storing system field information containing the software log and hardware signals, and restarting a test flow; based on the system field information and the historical test data, the test parameters are dynamically adjusted through a prediction algorithm, and the whole process from pressure application, system monitoring to fault analysis and recovery is automatically executed.
  2. 2. The method for testing the automation stability of the development board according to claim 1, wherein the step of synchronously applying the dynamically changing CPU load, the ambient temperature gradient and the plurality of bus pressures to the development board to be tested to obtain the development board under the multi-factor coupling comprises the following steps: dynamically adjusting the CPU utilization rate of the tested development board according to a preset sine wave or square wave mode by using a load generation tool; Placing the development board to be tested in an incubator, and realizing gradient change of the ambient temperature between a preset low temperature value and a preset high temperature value; And applying continuous or periodic pressure load to at least two of a memory, a network interface, a USB interface, a CAN bus and a GPU of the development board to be tested.
  3. 3. The method of claim 1, wherein the hardware signals include kernel stack information and memory dump data obtained through a JTAG debug interface when a system crashes, and supply current ripple monitored through a programmable power supply.
  4. 4. The method for testing the automated stability of the development board according to claim 1, wherein the step of automatically triggering a recovery mechanism when the development board is monitored to be faulty or unresponsive, saving system field information including the software log and hardware signals, and restarting a testing process specifically comprises: When the development board is monitored to have a fault or no response, capturing and storing the system field information through the hardware debugging and monitoring equipment; executing hard reset operation on the development board through the hardware debugging and monitoring equipment so as to restart the development board; After the development board is restarted, the upper computer control end automatically reloads the development board and triggers the execution of the test cases so as to continue the test flow.
  5. 5. The method for testing the automated stability of the development board according to claim 1, wherein the step of dynamically adjusting the testing parameters by a predictive algorithm based on the system field information and the historical testing data comprises the following steps: Collecting the system field information and the historical test data, sorting the system field information and the historical test data to obtain sorted data, constructing a training data set according to the sorted data, and training a machine learning model based on the training data set to obtain a trained machine learning model; in the test execution process, inputting the real-time monitoring data of the software log and the hardware signals into the trained machine learning model to obtain a system risk level; and dynamically adjusting at least one parameter of an application mode of the CPU load, a change rate of the temperature gradient or a load intensity of the bus pressure in a subsequent test according to the system risk level.
  6. 6. The development board automated stability test method of claim 1, wherein the automated execution of the full process from pressure application, system monitoring to failure analysis and recovery, specifically comprises: The upper computer control end is used for scheduling and coordinating the pressure applying module, the board end proxy module and the hardware debugging and monitoring equipment based on a preset test plan, and sequentially triggering and cooperatively executing pressure applying operation, system monitoring operation and fault recovery operation; Synchronously storing the pressure applying parameters recorded in the pressure applying operation, the monitoring data acquired in the system monitoring operation and the system field information stored in the fault recovery operation into a unified database in real time; And performing fault analysis based on the data stored in the unified database, and feeding back an analysis result to the prediction algorithm to form a closed-loop control flow for dynamically adjusting the test parameters.
  7. 7. The development board automation stability test method of claim 1, the method is characterized by further comprising the following steps of: Before starting to execute an automatic test flow on the development board, recording version identification information of firmware loaded by the development board and hardware version information of the development board; when the condition that the development board fails or has no response is monitored, automatically executing a binary search algorithm by combining the recorded version identification information to judge whether the condition is related to specific software code submission; or performing cross-validation analysis on test data of development boards running different hardware versions of the same firmware version based on the hardware version information to determine whether the situation is related to a specific hardware version; And generating an attribution report based on the judging result, and sending the attribution report to related personnel.
  8. 8. A development board automated stability test system, the development board automated stability test system comprising: The pressure coupling and applying module is used for synchronously applying a dynamically-changed CPU load, an environment temperature gradient and various bus pressures to the development board to be tested in an automatic test environment to obtain the development board under multi-factor coupling; the system comprises a software and hardware collaborative monitoring module, a development board and a development board, wherein the software and hardware collaborative monitoring module is used for acquiring and correlating software logs and hardware signals of the development board in real time through a distributed monitoring system formed by an upper computer control end, a board end proxy module and hardware debugging and monitoring equipment, and performing state monitoring on the development board based on the software logs and the hardware signals; the fault recovery and storage module is used for automatically triggering a recovery mechanism when monitoring that the development board has a fault or has no response, storing system field information containing the software log and hardware signals and restarting a test flow; And the intelligent prediction and optimization module is used for dynamically adjusting test parameters through a prediction algorithm based on the system field information and the historical test data and automatically executing the whole process from pressure application, system monitoring to fault analysis and recovery.
  9. 9. A terminal comprising a memory, a processor and a development board automation stability test program stored on the memory and executable on the processor, the development board automation stability test program when executed by the processor implementing the steps of the development board automation stability test method of any one of claims 1-7.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium stores a development board automation stability test program which, when executed by a processor, implements the steps of the development board automation stability test method of any one of claims 1-7.

Description

Development board automation stability test method, system, terminal and storage medium Technical Field The invention relates to the technical field of development board product testing, in particular to a development board automation stability testing method, a development board automation stability testing system, a development board automation stability testing terminal and a computer readable storage medium. Background The development board is a hardware platform integrating components such as a processor, a memory, an input/output interface and the like, and is specially constructed for embedded system development, debugging and prototype design. The intelligent device is a bridge for connecting software and hardware, so that an developer can quickly verify ideas and construct an intelligent device prototype. The stability test of the existing development board products mainly depends on manual operation, so that the test period is long, the labor cost is high, and the full coverage of all functional points required by users cannot be realized. The method comprises the following steps of testing single scenes, mostly single-point function testing, lack of system stability verification under the effect of multi-factor coupling, incapability of simulating pressure conditions under a real complex environment, short testing period, difficulty in finding stability problems possibly occurring in long-time operation due to the fact that the testing period is short and is covered for 24-48 hours, low testing efficiency caused by too much labor in the testing process, incapability of quickly responding to iteration requirements of products, and failure record passive, lack of an automatic recovery mechanism and failure prediction capability, so that problem positioning and solving efficiency are low. Together, these problems lead to the difficulty in efficiently and comprehensively guaranteeing system robustness and stability in the process of developing board products in rapid iteration and putting on shelf. Accordingly, the prior art is still in need of improvement and development. Disclosure of Invention The invention mainly aims to provide a method, a system, a terminal and a computer readable storage medium for testing the stability of a development board automation, and aims to solve the problems that the efficiency and the depth of the stability test of the development board product are insufficient and the robustness and the stability of the system are difficult to be guaranteed efficiently and comprehensively in the prior art. In order to achieve the above object, the present invention provides a method for testing the automated stability of a development board, comprising the steps of: in an automatic test environment, synchronously applying a dynamically-changed CPU load, an environment temperature gradient and various bus pressures to a to-be-tested development board to obtain a development board under multi-factor coupling; The method comprises the steps that through a distributed monitoring system formed by an upper computer control end, a board end proxy module and hardware debugging and monitoring equipment, a software log and a hardware signal of the development board are collected and associated in real time, and state monitoring is carried out on the development board based on the software log and the hardware signal; When the development board is monitored to have a fault or no response, automatically triggering a recovery mechanism, storing system field information containing the software log and hardware signals, and restarting a test flow; based on the system field information and the historical test data, the test parameters are dynamically adjusted through a prediction algorithm, and the whole process from pressure application, system monitoring to fault analysis and recovery is automatically executed. Optionally, in the development board automation stability testing method, the dynamically changing CPU load, an ambient temperature gradient, and a plurality of bus pressures are synchronously applied to the tested development board, so as to obtain a development board under multi-factor coupling, which specifically includes: dynamically adjusting the CPU utilization rate of the tested development board according to a preset sine wave or square wave mode by using a load generation tool; Placing the development board to be tested in an incubator, and realizing gradient change of the ambient temperature between a preset low temperature value and a preset high temperature value; And applying continuous or periodic pressure load to at least two of a memory, a network interface, a USB interface, a CAN bus and a GPU of the development board to be tested. Optionally, the development board automation stability testing method comprises the step of obtaining kernel stack information and memory dump data when a system crashes through a JTAG debugging interface and monitoring power supply current rip