Automatic test system
Through the automated test system, parallel testing of preset test cases is carried out using test machines and testers, which solves the problems of low testing efficiency and poor accuracy of hardware equipment in the prior art, and achieves efficient and accurate multi-device parallel testing.
Patent Information
- Application Number
- CN202411716188.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-05-06
AI Technical Summary
The existing hardware equipment testing methods are inefficient, cost-effective, and difficult to guarantee, and cannot effectively adapt to automated testing in complex environments.
It provides an automated testing system, including a test machine and a tester, and connects multiple modules to be tested in parallel through preset test cases to realize the automated testing process and form a test report.
The testing process of multiple types of equipment is simplified, and the parallel testing of multiple equipment is realized, testing efficiency is improved, the accuracy of test results is ensured, and data inaccuracy is avoided caused by manual operations.
Smart Images

Figure CN119945935A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of hardware device testing, and in particular to an automated testing system, a storage medium, and a computer device. Background Art
[0002] The hardware testing of communication module products and other hardware equipment testing processes involve testing of multiple parameters, such as current, radio frequency, etc. The current testing method has many drawbacks. The existing tests mainly involve manually operating the equipment, manually reading the test instrument data, recording the results and performing calculations, and finally evaluating whether the test results meet the design requirements. This manual operation method exposes many problems when facing some tasks that require a long time and multiple tests. The operation process is cumbersome and requires testers to be on duty for a long time, which leads to high labor costs. In addition, due to the characteristics of manual operation, controlling the device under test and reading data cannot be performed at the same time. Often, after the control command is issued, the data of the detection instrument is observed. In this process, there may be time deviations, which leads to abnormal test results.
[0003] Some of the automated testing methods currently available on the market also have limitations. For example, some testing methods are basic automated tests provided by single testers or instrument manufacturers, and automated testing in complex environments is basically impossible. The automated tools provided by manufacturers also have certain limitations, and most of them cannot be redeveloped. A large number of tests still rely on manual completion, which leads to problems such as low testing efficiency and high testing costs. The existing technology has problems such as low efficiency, high cost, difficulty in ensuring accuracy, and poor adaptability to complex environments in hardware equipment testing. Summary of the invention
[0004] The present application mainly provides an automated testing system to solve the problem of low testing efficiency of multiple types of hardware devices.
[0005] In order to solve the above technical problems, a technical solution adopted in the present application is: to provide an automated testing system, including: a testing machine, which stores test cases and is used to connect multiple modules under test in parallel; a testing instrument, which is connected to the testing machine through a control bus and is used to connect multiple modules under test in parallel through signal lines; wherein the testing machine is used to debug the status of each module under test through the testing instrument, and when each module under test is in a normal state, call the test case matching the module under test, so as to test the module under test and form a test report.
[0006] By presetting test cases and automatically executing the test process based on instructions, the test process of multiple types of devices is simplified, multi-device parallel testing is achieved, and test efficiency is improved.
[0007] In some embodiments, the test machine is integrated with a network interface, a serial interface, a universal bus interface and a remote access protocol port to adapt to various modules under test.
[0008] Integrate multiple interfaces to adapt to the modules under test with different transmission protocols.
[0009] In some embodiments, the test machine sends a corresponding type of connection signal to each of the modules under test in response to the control bus connection between the test machine and the modules under test, so as to exchange information through the control bus.
[0010] In some embodiments, the automated testing system further includes a control terminal; the control terminal is communicatively connected to the testing machine and is used to send control instructions to the testing machine, and the testing machine responds to the control instructions and executes the test case corresponding to the control instructions.
[0011] In some embodiments, the automated testing system further includes a cloud platform; the testing machine uploads the test report to the cloud platform in real time, and the cloud platform synchronizes the test report to the control terminal.
[0012] In some embodiments, the control terminal automatically repairs in response to a processable exception that occurs during the test.
[0013] In some embodiments, the control terminal repairs the anomalies that are not automatically repaired during the test process based on the input control instructions.
[0014] In some embodiments, the testing machine also uploads all anomalies that occur during the testing process to the cloud platform for recording.
[0015] In some embodiments, the tester includes at least one of an Agilent current tester and a wireless integrated tester.
[0016] In some embodiments, the test machine sends a corresponding type of connection signal to each module under test in response to the communication connection with the module under test, so as to exchange information through the communication connection.
[0017] The beneficial effects of the present application are as follows: Different from the prior art, the present application discloses an automated testing system, which performs an automated testing process by storing a test case test machine to perform parallel testing of multiple modules under test. The system also includes a tester connected to the test machine through a control bus, which is used to feed back the data collected by the tester to the test machine. The tester is connected to multiple modules under test in parallel through a signal line to collect test information and status of multiple modules under test. The test machine is used to debug the status of each module under test through the tester, and call the test case matching the module under test when each module under test is in a normal state to test the module under test, and form a test report, simplify the equipment testing process, and improve the equipment testing efficiency. It effectively avoids the inaccurate data caused by the test and observation segmentation, automatically collects data and forms a test report, and improves the accuracy of the equipment test results. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below 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 work, among which:
[0019] Figure 1 It is a structural schematic diagram of an embodiment of an automated testing system provided by the present application;
[0020] Figure 2 It is a structural diagram of another embodiment of the automated testing system provided by the present application. DETAILED DESCRIPTION
[0021] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0022] The terms "first", "second", "third" in the embodiments of the present application are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, the features defined as "first", "second", "third" can expressly or implicitly include at least one of the features. In the description of the present application, the meaning of "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.
[0023] See also Figure 1 , Figure 1 1 is a schematic diagram of the structure of an embodiment of an automated testing system provided by the present application. The automated testing system 100 includes:
[0024] The test machine 10 stores test cases therein and is used to connect multiple modules under test in parallel; the tester 20 is connected to the test machine 10 via a control bus 21 and is used to connect multiple modules under test in parallel via a signal line 22.
[0025] The test machine 10 is used to debug the status of each module under test through the tester 20, and call the test case matching the module under test when each module under test is in a normal state to test the module under test and form a test report.
[0026] The test machine 10 is a device specially designed for automated testing, and its core function is to execute pre-written test cases to verify the performance, functionality and reliability of various modules under test (such as hardware components, software modules or system parts).
[0027] Each test case includes test steps, expected results and related test data. By executing these test cases, the test machine 10 can test multiple modules under test in parallel, thereby greatly improving the test efficiency.
[0028] Specifically, test cases may include functional testing, performance testing, compatibility testing, security testing and other types to meet the needs of different testing scenarios.
[0029] Through the automated testing framework and tools, the testing machine 10 can automatically execute test cases and collect test results, thereby reducing the burden on testers.
[0030] The test machine 10 communicates with the tester 20 through an interface and sends test parameters and control instructions to the tester 20. The tester 20 performs corresponding settings and controls on the device under test according to the received parameters and instructions. The tester 20 performs status detection on the device under test and collects relevant test data. These data are transmitted to the test machine 10 through the interface, and the tester 10 performs further processing and analysis. The test machine 10 judges and evaluates the test results based on the collected test data and the preset test standards. Finally, the test machine 10 will output the test results to the user so that the user can understand the performance and status of the device under test.
[0031] Optionally, the test machine 10 is integrated with a network interface, a serial interface, a universal interface bus and a remote access protocol port to adapt to various modules under test.
[0032] The network interface is a bridge for the test machine 10 to communicate with the external network. It allows the test machine 10 to transmit and communicate data with the module under test, other test equipment or servers through the network. The network interface usually supports multiple network protocols, such as TCP / IP, HTTP, etc., to meet the needs of different modules under test. During the test process, the network interface can be used for functions such as remote monitoring, data sharing and remote access to improve test efficiency and accuracy.
[0033] A serial interface is an interface that transmits data one bit at a time, usually for low-speed, long-distance communications. On the test machine 10, the serial interface can be used for data transmission and control with the module under test. It supports a variety of serial communication protocols, such as RS-232, RS-422, RS-485, etc., to meet the communication requirements of different modules under test. The serial interface has the advantages of high stability and low cost during the test process, and is particularly suitable for test scenarios that require long-distance communication or low-speed data transmission.
[0034] The general purpose bus interface (GPBI) is an interface circuit between a device connected to the bus and the bus. It allows the tester 10 to transfer and control data with the module under test through the bus. The general purpose bus interface usually has functions such as control, data caching, state setting, and data conversion to ensure the accuracy and reliability of data transmission. During the test process, the general purpose bus interface can be used to connect multiple different types of modules under test to improve the flexibility and scalability of the test.
[0035] The remote access protocol port allows the test machine 10 to communicate with the module under test through the remote access protocol. Common remote access protocols include SSH (Secure Shell), Telnet, RDP (Remote Desktop Protocol), etc. These protocols provide security mechanisms such as encryption, authentication, and authorization to ensure the security of remote access. During the test process, the tester can remotely connect to the module under test through the remote access protocol port to perform remote monitoring, configuration, and troubleshooting operations.
[0036] These interfaces on the test machine 10 support a variety of communication protocols and connection methods, and can adapt to the needs of different modules under test. Whether it is network communication, serial communication or bus communication, the test machine 10 can provide corresponding interface and protocol support. The interface design on the test machine 10 is flexible and can be configured and expanded according to the characteristics and needs of the module under test. For example, for a module under test that requires high-speed network communication, a network interface can be used; for a module under test that requires long-distance communication, a serial interface can be used; for a module under test that requires multiple devices to be connected and controlled, a universal bus interface can be used. The remote access protocol port provides a safe and reliable remote access method to ensure the security and privacy of testers when remotely connecting to the module under test.
[0037] Optionally, the test machine 10 sends a connection signal of a corresponding type to each module under test in response to the communication connection with the module under test, so as to exchange information through the communication connection.
[0038] Specifically, according to different interface types, the test machine 10 responds to the connection of the interface and sends different connection information to complete the construction of the information channel with the module under test.
[0039] Optionally, in response to the connection of the network interface, the test machine 10 sends a hypertext transfer protocol connection request to the module under test to establish a communication connection based on the hypertext transfer protocol with the module under test.
[0040] The network interface of the test machine 10 is connected to the network interface of the module under test through a physical medium such as a network cable or optical fiber. On the test machine 10 and the module under test, the corresponding network parameters such as IP address, subnet mask, gateway, etc. are configured respectively to ensure that they are in the same network segment and can communicate with each other. After the test machine 10 and the module under test are turned on, they will respectively initialize their respective network protocol stacks, including protocols at various levels such as the physical layer, data link layer, network layer, transport layer and application layer. At the network layer, the test machine 10 and the module under test will resolve the MAC address corresponding to the other party's IP address through protocols such as the Address Resolution Protocol (ARP). At the transport layer, the two parties will establish a Transmission Control Protocol (TCP) or User Datagram Protocol (UDP) connection. For a TCP connection, the two parties will perform a three-way handshake process to establish a reliable connection. Once the connection is established, the test machine 10 can send test data or control instructions to the module under test through the network interface. These data or instructions will be encapsulated according to the various levels of the TCP / IP protocol stack and transmitted to the module under test through a physical medium.
[0041] Optionally, in response to the connection of the universal interface bus, the test machine 10 sends a universal interface bus command to the module under test to establish a communication connection with the module under test based on the universal interface bus.
[0042] Use appropriate connecting wires or cables to connect the universal interface bus of the test machine 10 to the corresponding interface of the module under test. After the connection is completed, the test machine 10 and the module under test need to follow the same communication protocol for data transmission. Set the parameters required for communication with the module under test on the test machine 10, such as baud rate, data bit, stop bit, check bit, etc. After the communication protocol is set, the test machine 10 starts to send test data or control instructions to the module under test through the universal interface bus.
[0043] Optionally, in response to the connection of the serial interface, the test machine 10 sends the parameters of the serial interface to the module under test to establish a communication connection based on serial communication with the module under test.
[0044] According to the requirements of the module under test and the configuration of the test machine 10, select an appropriate serial interface, such as RS-232, RS-422, RS-485, etc. Use a standard serial connection line, such as DB9, DB25, etc., to connect the serial interface of the test machine 10 to the serial interface of the module under test. According to the requirements of the module under test, set the corresponding baud rate on the test machine 10. In the serial port configuration interface of the test machine 10, set the correct serial port parameters, including baud rate, data bit, stop bit, check bit, etc. After the configuration is completed, the test machine 10 starts to send test data or control instructions to the module under test through the serial interface.
[0045] Optionally, in response to the connection of the remote access protocol port, the test machine 10 sends a remote access protocol connection request to the module under test to establish a communication connection based on the remote access protocol with the module under test.
[0046] According to the requirements of the module under test and the configuration of the test machine 10, select an appropriate remote access protocol, such as Telnet, SSH, Remote Desktop Protocol (RDP), Virtual Network Computing (VNC), etc. Make sure that the test machine 10 and the module under test are in the same network, or interconnected through routers, switches and other devices. Install the required remote access software on the test machine 10 and the module under test, such as Telnet client, SSH client, remote desktop client, etc. Start the selected remote access software on the test machine 10, and enter the IP address and remote access port number of the module under test. The test machine 10 will try to establish a connection with the module under test through the specified remote access protocol and port.
[0047] Optionally, see Figure 2 , Figure 2 FIG. 1 is a schematic diagram of another embodiment of an automated testing system 100 provided in the present application. The automated testing system 100 includes: Figure 1 The test machine 10 and the tester 20 shown further include a control terminal 30 .
[0048] The control terminal 30 is communicatively connected to the test machine 10 and is used for sending control instructions to the test machine 10 . The test machine 10 responds to the control instructions and executes the test cases corresponding to the control instructions.
[0049] The control terminal 30 is a computer or a dedicated test device used to run the automated test program, responsible for generating and sending control instructions, and receiving and analyzing test results. The automated test program generates corresponding control instructions according to the test requirements, and the test machine 10 responds to the control instructions and executes the test objectives, test conditions, expected results and other information contained in the test case. The control terminal 30 sends the control instructions to the test machine 10 through a communication connection. The test machine 10 receives the control instructions from the control terminal 30 and parses them. The test machine 10 generates corresponding test cases based on the parsed test tasks.
[0050] Optionally, the automated testing system 100 further includes a cloud platform 40 .
[0051] The testing machine 10 uploads the test report to the cloud platform 40 in real time, and the cloud platform 40 synchronizes the test report to the control terminal 30 .
[0052] Ensure that the test machine 10 is able to connect to the Internet and has the necessary permissions to access the cloud platform 40, and regularly generate and upload reports after establishing a communication connection with the cloud platform 40. After a successful upload, a storage URL for the test report is generated. This storage URL can be used for direct access or embedding on a web interface. If the report is HTML or PDF, you can embed an iframe directly on the web page or use a tag to provide a download link. If the report is a dynamic page, use a front-end framework such as React, Vue.js, etc. to dynamically load and display the report content. If the report is in JSON format, it can be parsed and displayed on the front end as a chart or table.
[0053] Optionally, the control terminal 30 performs automatic repair in response to a processable exception that occurs during the test.
[0054] Exception handling logic is embedded in the automation processing program of the control terminal 30 to detect and handle simple exceptions, such as network timeout, page loading failure, etc. For exceptions that can be automatically recovered, write recovery code, such as reconnecting to the network, refreshing the page, etc. For complex exceptions that cannot be automatically recovered, record the exception information and continue to execute other test tasks.
[0055] Optionally, the control terminal 30 repairs the anomalies that are not automatically repaired during the test process based on the input control instructions.
[0056] During the test process, the test results are collected in real time, including the test success / failure status, performance indicators, exception information, etc. All detected exceptions (whether simple or complex) are recorded, including the exception type, occurrence time, system status and other information, and the test results and exception information are recorded using logging tools. For complex exceptions or problems encountered during the test process, a remote control interface is provided to allow testers to remotely control the automated testing software in the test machine 10 through a web interface or command line tool. The remote control function should include stopping / starting the test, viewing real-time logs, downloading test reports, etc.
[0057] Optionally, the testing machine 10 also uploads all anomalies occurring during the testing process to the cloud platform 40 for recording.
[0058] All detected anomalies are uploaded to the cloud platform 40 for recording, including information such as the anomaly type, occurrence time, and system status. The cloud platform 40 database or file is used to store the anomaly records for subsequent analysis and processing.
[0059] Optionally, the tester 20 includes at least one of an Agilent current meter and a wireless integrated tester 20 .
[0060] Agilent oscilloscopes usually measure current based on the voltage measurement principle, that is, the current signal is converted into a voltage signal, which is then measured and analyzed by the oscilloscope.
[0061] The wireless integrated tester 20 is used for testing mobile communication equipment. It sends test signals based on the test cases of the tester 10 and records the corresponding test results, and feeds back test results such as signal strength, signal-to-noise ratio, bit error rate, rate and other indicators.
[0062] Different from the prior art, the present application provides an automated testing system 100, which performs parallel automatic testing on different types of equipment through preset test cases, and collects test data of the tested module in real time through the tester 20, and feeds it back to the tester 10 to form a test report. It solves the problems of complex manual testing operations, errors in reading data, low recording efficiency, and the need for personnel to monitor the test process. The test conclusion is directly output based on the matching results of the returned data, and the parallel testing of different types of test equipment is automatically completed, which improves the testing efficiency of the equipment.
[0063] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
Claims
1. An automated testing system, characterized in that: include: A test machine, which stores test cases and is used to connect multiple modules under test in parallel; A tester, connected to the test machine via a control bus, and used to connect multiple tested modules in parallel via signal lines; Among them, the testing machine is used to debug the status of each of the modules under test through the tester, and call the test case matching the module under test when each of the modules under test is in a normal state, so as to test the module under test and form a test report.
2. The automated testing system according to claim 1, characterized in that: The test machine is integrated with a network interface, a serial interface, a universal bus interface and a remote access protocol port to adapt to various modules under test.
3. The automated testing system according to claim 2, characterized in that: In response to the control bus connection between the test machine and the tested modules, the test machine sends a corresponding type of connection signal to each of the tested modules to exchange information through the control bus.
4. The automated testing system according to claim 1, characterized in that: The automated testing system also includes a control terminal; The control terminal is communicatively connected to the test machine and is used to send control instructions to the test machine. The test machine responds to the control instructions and executes the test case corresponding to the control instructions.
5. The automated testing system according to claim 4, characterized in that: The automated testing system also includes a cloud platform; The testing machine uploads the test report to the cloud platform in real time, and the cloud platform synchronizes the test report to the control terminal.
6. The automated testing system according to claim 5, characterized in that: The control terminal automatically repairs in response to a processable anomaly that occurs during the test.
7. The automated testing system according to claim 6, characterized in that: The control terminal repairs the anomalies that are not automatically repaired during the test process based on the input control instructions.
8. The automated testing system according to claim 5, characterized in that: The testing machine also uploads all abnormalities that occur during the test to the cloud platform for recording.
9. The automated testing system according to claim 1, characterized in that: The tester includes at least one of an Agilent current tester and a wireless integrated tester.
10. The automated testing system according to claim 1, characterized in that: In response to the communication connection between the test machine and the tested modules, the test machine sends a corresponding type of connection signal to each tested module to exchange information through the communication connection.