Search

CN-121996507-A - Test state monitoring method and test state monitoring system for automatic test

CN121996507ACN 121996507 ACN121996507 ACN 121996507ACN-121996507-A

Abstract

The invention discloses a test state monitoring method and a test state monitoring system for automatic test, wherein the test state monitoring system comprises test equipment, a monitoring server and alarm equipment, the test equipment is provided with test service, the monitoring server is provided with file monitoring service, the alarm equipment is provided with alarm service, the test equipment calls the test service to perform automatic test on the equipment to be tested and uploads test files to an FTP server, the test service triggers the file monitoring service to monitor the test files in real time, when the test service is interrupted or abnormal conditions occur in the process of the automatic test of the equipment to be tested, the test service triggers the alarm service, and when the file monitoring service determines that the automatic test is interrupted according to the test files, the file monitoring service triggers the alarm service. The method can quickly identify the abnormality of the code or the server, trigger the alarm notification and improve the test fault tolerance and the development efficiency.

Inventors

  • CAI JINLAN
  • ZHANG DONGHUI

Assignees

  • 珠海如然智能科技有限公司

Dates

Publication Date
20260508
Application Date
20260127

Claims (10)

  1. 1. The test state monitoring method for the automatic test is applied to a test state monitoring system and is characterized by comprising test equipment, a monitoring server and alarm equipment, wherein the test equipment is configured with test services, the monitoring server is configured with file monitoring services and the alarm equipment is configured with alarm services, and the test state monitoring method comprises the following steps: The method comprises the steps that an automatic test instruction is obtained, the test equipment calls the test service to automatically test equipment to be tested, and in the process of automatically testing the equipment to be tested, the test service uploads a test file to an FTP server; the test service triggers the file monitoring service so that the file monitoring service monitors the test files in the FTP server in real time; When the test service is interrupted or abnormal conditions occur in the process of carrying out the automatic test on the equipment to be tested, the test service triggers the alarm service so that the alarm equipment sends an alarm notice to a user, and when the file monitoring service determines that the automatic test is interrupted according to the test file, the file monitoring service triggers the alarm service so that the alarm equipment sends the alarm notice to the user.
  2. 2. The method for monitoring the test state of the automatic test according to claim 1, wherein a plurality of monitoring servers are provided, each monitoring server is configured with the file monitoring service, and all the file monitoring services monitor the test files in the FTP server in real time at the same time.
  3. 3. The method for monitoring the test state of the automated test according to claim 1, wherein in the file monitoring service, when it is monitored that the file content of the test file does not change within a first preset time period, or when it is monitored that the file size of the test file does not change within the first preset time period, it is determined that the automated test is interrupted.
  4. 4. The method of claim 3, wherein the monitoring server adjusts the first preset duration in response to receiving a duration adjustment command.
  5. 5. The method for monitoring the test status of the automated test of claim 1, wherein the alert device sends the alert notification to the user by sending a mail to the user or by a chat tool.
  6. 6. The method for monitoring the test state of the automated test according to claim 1, wherein the automated test of the device to be tested comprises: the test equipment sends a test instruction to the equipment to be tested; The equipment to be tested executes the test instruction and feeds back test information to the test equipment; and the test equipment generates the test file according to the test information.
  7. 7. A test condition monitoring system for automated testing, comprising: The test equipment is configured with test service, and the test equipment responds to the acquisition of an automatic test instruction and invokes the test service to automatically test the equipment to be tested, wherein in the process of automatically testing the equipment to be tested, the test service uploads a test file to an FTP server; The monitoring server is configured with a file monitoring service, and the testing service triggers the file monitoring service so that the file monitoring service monitors the testing files in the FTP server in real time; The system comprises a test device, an alarm device, a file monitoring service and a file monitoring service, wherein the test device is configured with the alarm service, when the test service is interrupted or abnormal conditions occur in the process of carrying out the automatic test on the device to be tested, the test service triggers the alarm service so that the alarm device sends alarm notification to a user, and when the file monitoring service determines that the automatic test is interrupted according to the test file, the file monitoring service triggers the alarm service so that the alarm device sends alarm notification to the user.
  8. 8. The automated test equipment test state monitoring system according to claim 7, wherein a plurality of monitoring servers are provided, each of the monitoring servers is configured with the file monitoring service, and all of the file monitoring services monitor the test files in the FTP server in real time at the same time.
  9. 9. The automated test equipment test state monitoring system of claim 7, wherein in the file monitoring service, when it is detected that file contents of the test file have not changed within a first preset time period, or when it is detected that file sizes of the test file have not changed within the first preset time period, it is determined that the automated test equipment test is interrupted.
  10. 10. The automated test equipment test condition monitoring system of claim 7, wherein the automated test equipment to be tested comprises: the test equipment sends a test instruction to the equipment to be tested; The equipment to be tested executes the test instruction and feeds back test information to the test equipment; and the test equipment generates the test file according to the test information.

Description

Test state monitoring method and test state monitoring system for automatic test Technical Field The present invention relates to the field of electronic device testing technologies, and in particular, to a test status monitoring method and a test status monitoring system for automated testing. Background In the current automatic test of intelligent equipment, the problem of test interruption (such as abnormal code execution and server downtime) usually depends on manual inspection or post log analysis, so that response delay and low repair efficiency are caused, development efficiency cannot be effectively improved, and large-scale distributed test requirements are difficult to meet. Disclosure of Invention The invention aims to at least solve one of the technical problems in the prior art, and provides a test state monitoring method and a test state monitoring system for automatic test, which can rapidly identify code or server abnormality and trigger alarm notification, thereby improving test fault tolerance and development efficiency. In a first aspect, an embodiment of the present invention provides a test status monitoring method for an automated test, where the test status monitoring system is applied to a test status monitoring system, and the test status monitoring system includes a test device, a monitoring server, and an alarm device, where the test device is configured with a test service, the monitoring server is configured with a file monitoring service, and the alarm device is configured with an alarm service, and the test status monitoring method includes: The method comprises the steps that an automatic test instruction is obtained, the test equipment calls the test service to automatically test equipment to be tested, and in the process of automatically testing the equipment to be tested, the test service uploads a test file to an FTP server; the test service triggers the file monitoring service so that the file monitoring service monitors the test files in the FTP server in real time; When the test service is interrupted or abnormal conditions occur in the process of carrying out the automatic test on the equipment to be tested, the test service triggers the alarm service so that the alarm equipment sends an alarm notice to a user, and when the file monitoring service determines that the automatic test is interrupted according to the test file, the file monitoring service triggers the alarm service so that the alarm equipment sends the alarm notice to the user. The test state monitoring method for the automatic test has the advantages that after the user initiates the automatic test through the test equipment, the test equipment calls the test service to perform the automatic test on the equipment to be tested, in the process of performing the automatic test, the test service can generate test files according to test information fed back by the test equipment and upload the test files to the FTP server, on one hand, the test service can trigger the alarm service when the test service is interrupted or abnormal conditions occur on the equipment to be tested, on the other hand, the file monitoring service configured on the monitoring server monitors the test files in real time, and can judge whether the automatic test is interrupted or not according to the test files so as to trigger the alarm service when the automatic test is determined to be interrupted, namely, whether the automatic test is interrupted or not is judged through the two services simultaneously, the code or server abnormality can be rapidly identified, the alarm notification is triggered, and the test fault tolerance and the development efficiency are improved. According to the test state monitoring method for automatic testing, a plurality of monitoring servers are arranged, each monitoring server is configured with the file monitoring service, and all the file monitoring services monitor the test files in the FTP server in real time. According to the method for monitoring the test state of the automatic test provided by some embodiments of the present invention, in the file monitoring service, when it is monitored that the file content of the test file does not change within a first preset duration, or when it is monitored that the file size of the test file does not change within the first preset duration, it is determined that the automatic test is interrupted. According to the method for monitoring the test state of the automatic test provided by some embodiments of the present invention, the monitoring server adjusts the first preset duration in response to receiving a duration adjustment instruction. According to the test state monitoring method for the automatic test, which is provided by some embodiments of the present invention, the alarm device sends the alarm notification to the user by sending a mail to the user or by a chat tool. According to the test state monitoring method for automatic test provided by som