Industrial Internet of Things terminal automation factory testing method and system
By using XML test templates and collaborating with the cloud, automated factory testing of industrial IoT terminals has been achieved, solving the problems of low efficiency and poor flexibility of traditional testing methods, improving testing efficiency and traceability, and reducing maintenance costs.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XIAMEN RUIGU COMM EQUIP CO LTD
- Filing Date
- 2026-01-30
- Publication Date
- 2026-05-01
AI Technical Summary
Traditional industrial IoT terminal testing methods are inefficient, inflexible, and costly to maintain, making it difficult to adapt to dynamically changing production needs. Furthermore, the lack of unified management of batch device test logs makes troubleshooting difficult.
It uses XML test templates to work in conjunction with cloud servers to achieve automated batch factory testing. By modifying and downloading test templates in the cloud, it can automatically identify faults, record full process logs and upload them to the cloud, and support rapid source tracing and fault location.
It improves the efficiency of adapting to changes in test requirements and product iterations, reduces human error and maintenance costs, enhances test efficiency and traceability, and supports rapid fault location and data analysis.
Smart Images

Figure CN121967470A_ABST
Abstract
Description
An automated factory testing method and system for industrial IoT terminals Technical Field
[0001] This invention relates to the field of industrial IoT terminal testing, and in particular to an automated factory testing method and system for industrial IoT terminals. Background Technology
[0002] Industrial IoT terminals must undergo rigorous testing before leaving the factory to ensure product quality. Traditional factory testing methods often rely on fixed test procedures designed for specific equipment models, which have significant limitations in actual production applications. Regarding testing efficiency and flexibility, when terminal products are updated or testing requirements and procedures change, existing test procedures must be redeveloped, compiled, and tested. This not only results in slow response times but also introduces errors and makes it difficult to adapt to dynamically changing production needs. In terms of controllability and traceability, traditional solutions lack unified management of batch equipment test logs and data. If a terminal exhibits testing anomalies, it is difficult to quickly trace its batch or easily retrieve complete test process logs, hindering troubleshooting.
[0003] In addition, traditional testing systems rely on a lot of human intervention, which reduces testing efficiency and is prone to test anomalies due to operational errors; moreover, the testing logic is embedded in the system, and process adjustments require system maintenance and secondary development, resulting in high maintenance costs. Summary of the Invention
[0004] The main objective of this invention is to overcome the shortcomings of low testing efficiency, poor flexibility and high maintenance costs in the existing technology, and to propose an automated factory testing method and system for industrial IoT terminals, so as to realize automated batch factory testing, improve the adaptability to changes in testing requirements and product iterations, and reduce human error and maintenance costs.
[0005] The present invention adopts the following technical solution:
[0006] An automated factory testing method for industrial IoT terminals includes creating or modifying XML test templates in advance according to the testing requirements of the industrial IoT terminals and uploading them to a cloud server; it also includes:
[0007] Obtain the production information of the industrial IoT terminal to be tested, download the corresponding XML test template from the cloud server based on the production information, and load the XML test template;
[0008] Based on the loaded XML test template, test instructions are issued to the industrial IoT terminal under test, and the instruction feedback results returned by the industrial IoT terminal under test are received. Based on the instruction feedback results, it is determined whether the industrial IoT terminal under test has a fault.
[0009] The XML test template includes test items, test steps, test instructions, and instruction feedback judgment criteria. Modification of the XML test template includes adding, deleting, or adjusting the corresponding content in the XML test template file.
[0010] The stored XML test template can be directly modified through the cloud server, and the modified XML test template can be obtained from the cloud server in real time.
[0011] The production information is pre-stored on the cloud server, including equipment batch information, equipment model, equipment version number, and user-customized content.
[0012] It also includes log information that records data throughout the entire testing process. After the test is completed, the log information is uploaded to the cloud server to provide data support for subsequent equipment batch problem tracing and test process analysis.
[0013] The log information includes test time, device identifier, test instruction content, instruction feedback results, and execution records of each test step.
[0014] If a fault is detected in the industrial IoT terminal, a fault message containing the fault type and corresponding test step identifier is generated and pushed to the test personnel to prompt intervention and troubleshooting.
[0015] An industrial IoT terminal automated factory testing system includes:
[0016] Cloud server; used to store XML test templates, production information of industrial IoT terminals under test, and to receive and store test-related data;
[0017] An automated factory testing device, communicatively connected to the cloud server and the industrial IoT terminal to be tested, includes:
[0018] The template processing module is used to create or modify XML test templates in advance according to the testing requirements of the industrial IoT terminal, and upload the XML test templates to the cloud server. It is also used to download the corresponding XML test templates from the cloud server based on the acquired production information and load them.
[0019] The production information acquisition module is used to acquire production information of the industrial IoT terminal to be tested.
[0020] The instruction interaction module is used to issue test instructions to the industrial IoT terminal under test according to the XML test template loaded by the template processing module, receive the instruction feedback results returned by the industrial IoT terminal under test, and determine whether the industrial IoT terminal under test has a fault based on the instruction feedback results.
[0021] The automated factory testing device also includes a fault indication module. When the instruction interaction module determines that the industrial IoT terminal under test has a fault, the fault indication module generates fault indication information containing the fault type and the corresponding test step identifier, and pushes it to the test personnel to prompt the test personnel to intervene in the fault troubleshooting.
[0022] The automated factory testing device also includes a log management module, which is used to record data from the entire testing process to form log information and upload the log information to the cloud server after the test is completed, providing data support for subsequent equipment batch problem tracing and test process analysis.
[0023] As can be seen from the above description of the present invention, compared with the prior art, the present invention has the following beneficial effects:
[0024] 1. In this invention, by decoupling the XML test template from the automated factory testing device and realizing the dynamic loading of test logic based on cloud storage and on-demand download mechanism, the same automated factory testing device can adapt to the testing needs of different terminal models without modifying the program, thereby improving the reusability of the equipment and the flexibility of the test configuration.
[0025] 2. In this invention, the XML test template defines test items, steps, instructions and feedback judgment criteria in a structured way, and supports adjusting the test logic by only modifying the XML configuration content, avoiding the recompilation and deployment of the core system code, and reducing the technical threshold and maintenance cost of changing the test process.
[0026] 3. In this invention, the updated XML test template is directly modified and distributed in real time through the cloud server, so that the iteration of test logic does not require on-site operation or equipment restart, realizing remote and seamless updates of test strategies and improving the response efficiency to product iteration and production line changes.
[0027] 4. In this invention, by recording a full-process log including test time, device identification, instruction content, feedback results, and step execution records, and uploading it uniformly to the cloud, a traceable and reproducible data foundation is provided for batch quality issues, supporting precise location of abnormal links and reducing the scope of investigation.
[0028] 5. In this invention, after fault diagnosis, prompt information containing fault type and corresponding test step identifier is automatically generated, which helps testers quickly focus on the problem link, avoids manual review of the entire process, shortens the handling time of abnormal equipment, and improves the overall testing efficiency of the production line. Attached Figure Description
[0029] Figure 1 is a main flowchart of the method of the present invention;
[0030] Figure 2 is a diagram of the system of the present invention.
[0031] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Detailed Implementation
[0032] The present invention will be further described below through specific embodiments.
[0033] Referring to Figure 1, an automated factory testing method for industrial IoT terminals is proposed. To adapt to the testing requirements of different models of industrial IoT terminals and flexibly respond to changes in the testing process, an XML test template is created or modified in advance according to the testing requirements of the industrial IoT terminals and uploaded to the cloud server.
[0034] The testing requirements refer to the specific requirements for verifying terminal performance, functional integrity, and compliance, based on the device model, hardware / software functional indicators, user customization requirements, and batch production testing specifications of the industrial IoT terminal. The XML test template is the core file carrying the testing logic, including test items, test steps, test instructions, and instruction feedback judgment criteria. Test items are the terminal functional modules or performance parameters that need to be specifically verified, such as data acquisition functions, network connectivity, and instruction response speed. Test steps are the test execution flow ordered according to a preset logic, clarifying the start conditions, execution order, and connection requirements for each test item. Test instructions are the specific operation instructions issued to the terminal, such as parameter configuration instructions, function start / stop instructions, and data reporting instructions. Instruction feedback judgment criteria are the preset thresholds, characteristic conditions, or compliance ranges used to determine whether the instruction feedback results are qualified.
[0035] Modifying the XML test template involves adding, deleting, or adjusting corresponding content within the XML test template file, without altering the core program code of the automated factory testing system. For example, this can be accomplished by adding new test items, test steps, or test instructions, deleting redundant test content, or adjusting the corresponding configuration content in the XML file, such as the order of test steps, instruction parameters, and feedback judgment criteria. This allows for flexible adaptation to different terminal models and changed testing requirements.
[0036] Furthermore, testers can directly modify the stored XML test templates via the cloud server. By retrieving the modified XML test templates from the cloud server in real time, test logic can be updated without additional configuration. This simplifies the steps for adjusting the test process and improves the responsiveness to changes in test requirements and product iterations.
[0037] The method in this embodiment specifically includes the following steps:
[0038] S1 acquires the production information of the industrial IoT terminal to be tested, downloads the corresponding XML test template from the cloud server based on the production information, and loads the XML test template.
[0039] The production information is compiled from the equipment-related information and customized content ordered by users. It is pre-stored on the cloud server and includes equipment batch information, equipment model, equipment version number and user-customized content. This information is the core basis for achieving XML test template matching.
[0040] In this step, production information can be acquired through methods such as production system integration, equipment barcode scanning, or simple equipment startup. After acquiring the production information of the industrial IoT terminal under test, the automated factory testing device automatically matches this production information with the XML test template in the cloud server, identifies the XML test template that matches the industrial IoT terminal under test, and downloads and loads the corresponding XML test template. The loaded template information is then synchronously displayed on the UI interface of the automated factory testing device, allowing testers to intuitively verify and ensure the accuracy of the compatibility between the test template and the industrial IoT terminal under test.
[0041] S2 issues test instructions to the industrial IoT terminal under test based on the loaded XML test template, and receives the instruction feedback results returned by the industrial IoT terminal under test. Based on the instruction feedback results, it determines whether the industrial IoT terminal under test has a fault.
[0042] In this step, the automated factory testing device compares the feedback results from the industrial IoT terminal under test with the preset instruction feedback judgment criteria in the XML template, automatically determining whether the industrial IoT terminal under test has a fault. By comparing the feedback results with preset standards, the device can automatically and quickly determine whether the test items of the industrial IoT terminal under test are qualified, thereby clarifying whether the terminal has a fault. The entire judgment process does not require manual intervention to interpret the data, which not only improves the consistency and accuracy of fault judgment, but also shortens the testing cycle of a single terminal, providing core support for efficient factory testing of large numbers of terminals.
[0043] If, after the above comparison, the automated factory testing device determines that the industrial IoT terminal is faulty, it generates a fault message containing the fault type and corresponding test step identifier and pushes it to the testers through the UI interface, prompting them to intervene and investigate. This message helps testers quickly locate the specific test step and core issue where the fault occurred, eliminating the need to check all test steps one by one, reducing the time cost of fault investigation, and ensuring that abnormal equipment can be dealt with in a timely and targeted manner. This not only ensures the smooth progress of the overall testing process but also preserves key fault information for subsequent equipment quality traceability.
[0044] This embodiment also includes a step of recording data throughout the entire testing process to form log information. This log information covers all stages, ensuring the testing process is traceable and the data is verifiable. After the test is completed, the automated factory testing device uploads the log information to a cloud server for storage, providing data support for subsequent batch problem tracing and testing process analysis.
[0045] The log information includes test time, device identification, test command content, command feedback results, and execution records of each test step. This information comprehensively covers the core elements of the test, enabling precise location of the entire testing process for a single terminal through device identification, and also allowing the aggregation of test data from the same batch of devices through batch information, providing clear data evidence for batch investigation of potential problems and tracing quality responsibility.
[0046] The method in this embodiment achieves efficient and flexible factory testing through XML test templates and cloud collaboration: XML test templates are created or modified according to test requirements and uploaded to the cloud. The XML test templates are separated from the automated factory testing equipment and can be directly modified in the cloud without modifying the core code to adapt to changes in requirements. During testing, pre-stored production information is obtained from the cloud, and the corresponding XML test template is automatically matched, downloaded, and loaded. Test instructions are issued in batches according to the templates, feedback is received in real time and compared with preset standards to determine faults. When a fault occurs, a prompt containing the fault type and corresponding test step identifier is pushed. At the same time, a full-process log covering core elements is recorded. After the test is completed, it is uploaded to the cloud to support traceability and analysis, ultimately realizing batch automated testing, improving efficiency and flexibility, strengthening traceability, and reducing human error and maintenance costs.
[0047] In this embodiment, referring to Figure 2, an automated factory testing system for industrial IoT terminals is also proposed to execute the above-mentioned automated factory testing method for industrial IoT terminals. The system includes a cloud server and an automated factory testing device, etc. The two interact through data to achieve centralized management and automated execution of the testing process, which is adapted to the batch factory testing needs of industrial IoT terminals.
[0048] The cloud server is used to store XML test templates, production information of industrial IoT terminals to be tested, and to receive and store test-related data; as well as to receive and store test-related data such as full-process test logs, so as to achieve centralized management and control of templates, production information and logs.
[0049] An automated factory testing device, communicating with a cloud server and the industrial IoT terminal to be tested, includes:
[0050] The template processing module is used to create or modify XML test templates in advance according to the testing requirements of industrial IoT terminals, and upload the XML test templates to the cloud server. At the same time, it is also used to download the corresponding XML test templates from the cloud server based on the acquired production information and load them, and then display them synchronously on the UI interface after loading is completed.
[0051] The production information acquisition module is used to acquire the production information of the industrial IoT terminal to be tested through production system integration, equipment scanning access, or simple equipment startup access, providing the core basis for template matching.
[0052] The instruction interaction module is used to issue test instructions to the industrial IoT terminal under test according to the XML test template loaded by the template processing module, receive the instruction feedback results returned by the industrial IoT terminal under test, and determine whether the industrial IoT terminal under test has a fault based on the instruction feedback results.
[0053] The automated factory testing device also includes a fault indication module. When the instruction interaction module determines that the industrial IoT terminal under test has a fault, the fault indication module generates a fault indication message containing the fault type and the corresponding test step identifier, and pushes it to the tester through the UI interface, prompting the tester to intervene in the fault troubleshooting.
[0054] The automated factory testing equipment also includes a log management module. The log management module is used to record data from the entire testing process to form log information and upload the log information to the cloud server after the test is completed, providing data support for subsequent equipment batch problem tracing and test process analysis.
[0055] The present invention also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist alone and not assembled into the electronic device.
[0056] The aforementioned computer-readable medium carries one or more programs that, when executed by an electronic device, cause the electronic device to implement the methods described in the above embodiments.
[0057] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0058] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this disclosure.
[0059] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.
[0060] The above are merely specific embodiments of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantial modifications made to the present invention using this concept shall be considered as infringing upon the protection scope of the present invention.
Claims
1. An automated factory testing method for industrial IoT terminals, characterized in that, Based on the testing requirements of industrial IoT terminals, create or modify XML test templates in advance and upload them to the cloud server; It also includes: obtaining production information of the industrial IoT terminal to be tested, downloading the corresponding XML test template from the cloud server based on the production information, and loading the XML test template; issuing test instructions to the industrial IoT terminal to be tested according to the loaded XML test template, receiving the instruction feedback results returned by the industrial IoT terminal to be tested, and determining whether the industrial IoT terminal to be tested has a fault based on the instruction feedback results.
2. The industrial IoT terminal automated factory testing method as described in claim 1, characterized in that, The XML test template includes test items, test steps, test instructions, and instruction feedback judgment criteria. Modification of the XML test template includes adding, deleting, or adjusting the corresponding content in the XML test template file.
3. The industrial IoT terminal automated factory testing method as described in claim 1, characterized in that, The stored XML test template can be directly modified through the cloud server, and the modified XML test template can be obtained from the cloud server in real time.
4. The industrial IoT terminal automated factory testing method as described in claim 1, characterized in that, The production information is pre-stored on the cloud server, including equipment batch information, equipment model, equipment version number, and user-customized content.
5. The industrial IoT terminal automated factory testing method as described in claim 1, characterized in that, It also includes log information that records data throughout the entire testing process. After the test is completed, the log information is uploaded to the cloud server to provide data support for subsequent equipment batch problem tracing and test process analysis.
6. The industrial IoT terminal automated factory testing method as described in claim 5, characterized in that, The log information includes test time, device identifier, test instruction content, instruction feedback results, and execution records of each test step.
7. The industrial IoT terminal automated factory testing method as described in claim 1, characterized in that, If a fault is detected in the industrial IoT terminal, a fault message containing the fault type and corresponding test step identifier is generated and pushed to the test personnel to prompt intervention and troubleshooting.
8. An automated factory testing system for industrial IoT terminals, characterized in that, include: Cloud server; Used to store XML test templates, production information of industrial IoT terminals under test, and to receive and store test-related data; An automated factory testing device, communicatively connected to the cloud server and the industrial IoT terminal under test, includes: a template processing module, used to pre-create or modify XML test templates according to the testing requirements of the industrial IoT terminal, and upload the XML test templates to the cloud server; it is also used to download and load the corresponding XML test templates from the cloud server based on acquired production information; a production information acquisition module, used to acquire production information of the industrial IoT terminal under test; and an instruction interaction module, used to issue test instructions to the industrial IoT terminal under test according to the XML test templates loaded by the template processing module, receive instruction feedback results returned by the industrial IoT terminal under test, and determine whether the industrial IoT terminal under test has a fault based on the instruction feedback results.
9. The industrial IoT terminal automated factory testing system as described in claim 8, characterized in that, The automated factory testing device also includes a fault indication module. When the instruction interaction module determines that the industrial IoT terminal under test has a fault, the fault indication module generates fault indication information containing the fault type and the corresponding test step identifier, and pushes it to the test personnel to prompt the test personnel to intervene in the fault troubleshooting.
10. An industrial IoT terminal automated factory testing system as described in claim 8, characterized in that, The automated factory testing device also includes a log management module, which is used to record data from the entire testing process to form log information and upload the log information to the cloud server after the test is completed, providing data support for subsequent equipment batch problem tracing and test process analysis.