Internet of Things gateway test method and device, medium and product

By setting up projects and collecting test data at the Internet of Things, combined with automated testing scripts and testing cases, the traditional testing method cannot accurately simulate the problem of large -scale IoT networks, and improves the accuracy and efficiency of testing.

CN119341939APending Publication Date: 2025-01-21北京力控元通科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411441058.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

Traditional IoT gateway testing methods cannot fully simulate the actual use environment of large-scale IoT networks under real-time analysis, multi-dimensional analysis, and large-scale device access, resulting in inaccurate test results and low efficiency.

Method used

By establishing projects, including equipment, communication protocols, and data types to be collected, the project is issued to the Internet of Things, running and collecting test data, using automated test scripts for data analysis, and testing according to the project construction test case.

Benefits of technology

Improved the accuracy and efficiency of the IoT test test, reduced the impact of human factors, avoided duplicate testing, and improved the generality of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341939A_ABST
    Figure CN119341939A_ABST
Patent Text Reader

Abstract

The invention discloses an Internet of Things gateway test method and device, a medium and a product, and relates to the field of gateway testing, and the method comprises the steps: building a project; the project comprises to-be-acquired equipment, a communication protocol between the to-be-acquired equipment and an acquired data type; issuing the project through the Internet of Things gateway, operating the project, and collecting test data; establishing a test case according to the project; and testing the test data by using the test case. According to the invention, the testing accuracy and testing efficiency of the Internet of Things gateway can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of gateway testing, and in particular to an Internet of Things gateway testing method, equipment, medium and product. Background Art

[0002] The IoT gateway is a key device for realizing the intelligent connection of all things. It has functions such as device connection, protocol conversion, and data forwarding. It is an important connector between the perception layer and the transmission layer of the IoT. Therefore, it is particularly important to test the IoT gateway. During the IoT gateway testing process, it is necessary to pay attention to the integrity, security, reliability, and scalability of the data, and formulate and implement an effective test plan. The specific testing process includes the following steps: 1. Test purpose: determine the test case and ensure the integrity and accuracy of the test case. 2. Test steps: perform tests according to the test case, record the test results, and analyze them. 3. Problem location: If the test fails, it is necessary to locate the problem and solve it. 4. Test summary: summarize the test process and form a test report.

[0003] In addition, the IoT gateway testing process should also pay attention to whether the devices with different protocols can access the gateway normally, how many devices can the gateway support simultaneous access, whether the data of the devices accessed by the network management is correct, whether the command is issued normally, whether the functions in the application layer are normal, etc. It can be seen that the IoT gateway testing needs to process a large amount of data. In the traditional testing process, there are some problems in data analysis; especially when real-time analysis and multi-dimensional analysis are required and a large number of devices are connected, the traditional testing method may not be able to fully simulate the actual use environment of a large-scale IoT network, which will result in the inability to obtain accurate test results during the IoT gateway testing process, as well as low test efficiency. Summary of the invention

[0004] The purpose of this application is to provide an Internet of Things gateway testing method, equipment, medium and product that can improve the accuracy and testing efficiency of the Internet of Things gateway testing.

[0005] To achieve the above objectives, this application provides the following solutions:

[0006] In a first aspect, the present application provides an Internet of Things gateway testing method, the Internet of Things gateway testing method comprising:

[0007] Establishing a project; the project includes the equipment to be collected, the communication protocol between the equipment to be collected, and the type of collected data;

[0008] Distribute the project through the IoT gateway, run the project, and collect test data;

[0009] Establish test cases according to the project;

[0010] Use test cases to test the test data.

[0011] Optionally, the project is issued through an IoT gateway, and the project is run to collect test data, specifically including:

[0012] Use automated test scripts to run the project and collect test data.

[0013] Optionally, the project is issued through an Internet of Things gateway, and the project is run to collect test data, and then the following steps are further included:

[0014] Centralized management of test data.

[0015] Optionally, the step of establishing a test case according to the project further includes:

[0016] Construct a test case data model; the test case data model is a framework of the test case and is used to obtain different test cases.

[0017] Optionally, the testing the test data using the test case specifically includes:

[0018] Simulate the device communication protocol according to the test case to obtain simulation data;

[0019] Compare the simulation data with the test data to obtain the comparison results;

[0020] If the comparison result is the same, the test passes; otherwise, the test fails.

[0021] Optionally, the testing of the test data using the test case further includes:

[0022] Store the test results of the current project.

[0023] In a second aspect, the present application provides an Internet of Things gateway testing device, the Internet of Things gateway testing device comprising:

[0024] A configuration tool management module is used to establish a project; the project includes the device to be collected, the communication protocol between the device to be collected, and the type of collected data;

[0025] The execution operation management module is used to issue the project through the IoT gateway, run the project, and collect test data;

[0026] Test case management module, used to create test cases according to projects;

[0027] The test data management module is used to test the test data using test cases.

[0028] In a third aspect, the present application provides a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the IoT gateway testing method.

[0029] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the IoT gateway testing method when executed by a processor.

[0030] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the Internet of Things gateway testing method when executed by a processor.

[0031] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0032] The present application provides an IoT gateway testing method, device, medium and product. By issuing the established project through the IoT gateway, running the project and collecting test data, the corresponding test data can be obtained for different devices, saving the time of creating test data and improving work efficiency; and the test data is tested using the test case established according to the project to ensure the accuracy of the test. The present application can avoid repeated testing work and improve test efficiency and versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] 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 will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0034] Figure 1 This is a flow chart of a method for testing an Internet of Things gateway in an embodiment of the present application;

[0035] Figure 2 This is a schematic diagram of the principle of an Internet of Things gateway testing method in one embodiment of the present application. DETAILED DESCRIPTION

[0036] 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.

[0037] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0038] In an exemplary embodiment, Figure 1 and Figure 2 As shown, a method for testing an Internet of Things gateway is provided, the method comprising the following S101 to S104. Wherein:

[0039] S101, establishing a project; the project includes the device to be collected, the communication protocol between the device to be collected, and the type of collected data; establishing the project provides parameters such as the type of collected data, device address, etc.

[0040] S102, issuing the project through the IoT gateway, running the project, and collecting test data;

[0041] In order to reduce the impact of human factors on test data, repeatedly execute the same test method frequently, and improve the accuracy and reliability of test data, this application uses an automated test script to run the project and collect test data; among them, the automated test script is a tool that can repeatedly execute a certain operation.

[0042] In order to uniformly manage and maintain the test data of different test cases and facilitate sharing and updating of test data among different testers, S102 and subsequent steps also include:

[0043] Centralized management of test data.

[0044] S103, establish test cases according to the project; a test case is a description of a test task for a specific product, including test conditions, test environment, input data, test steps, expected results, etc., to check whether the specified quality standards are met.

[0045] Before S103, it also included:

[0046] Construct a test case data model; the test case data model is a framework of the test case and is used to obtain different test cases.

[0047] For example, if stability testing is required in all projects, a common test case model can be designed, and only a few test parameters need to be modified in different projects. Most test case data models can be reused to write test cases, thereby improving the reusability of test data.

[0048] S104: Testing the test data using the test case.

[0049] S104 specifically includes:

[0050] Simulate the device communication protocol according to the test case to obtain simulation data; the simulation data is the normal result data obtained;

[0051] Compare the simulation data with the test data to obtain the comparison results;

[0052] If the comparison result is the same, the test passes; otherwise, the test fails.

[0053] In an exemplary embodiment, the simulation end runs the device protocol simulation data, and the monitoring end monitors the data and displays the collection of real-time data.

[0054] S104 and later also include:

[0055] Store the test results of the current project.

[0056] Based on the same inventive concept, the embodiment of the present application also provides an IoT gateway testing device for implementing the IoT gateway testing method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more IoT gateway testing device embodiments provided below can refer to the limitations of the IoT gateway testing method above, and will not be repeated here.

[0057] In an exemplary embodiment, an Internet of Things gateway testing device is provided, comprising:

[0058] A configuration tool management module is used to establish a project; the project includes the device to be collected, the communication protocol between the device to be collected, and the type of collected data;

[0059] The execution operation management module is used to issue the project through the IoT gateway, run the project, and collect test data;

[0060] Test case management module, used to create test cases according to projects;

[0061] The test data management module is used to test the test data using test cases.

[0062] In an exemplary embodiment, a computer device is provided, which may be a server or a terminal. The computer device includes a processor, a memory, an input / output interface (I / O for short) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for testing an Internet of Things gateway is implemented.

[0063] In an exemplary embodiment, a computer-readable storage medium is provided, storing a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0064] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above method embodiments are implemented.

[0065] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0066] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0067] The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. The non-relational database may include a distributed database based on blockchain, etc., but is not limited thereto. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but is not limited thereto.

[0068] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0069] This article uses specific examples to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. At the same time, for those skilled in the art, according to the ideas of this application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting this application.

Claims

1. A method for testing an Internet of Things gateway, characterized in that: The Internet of Things gateway testing method comprises: Establishing a project; the project includes the equipment to be collected, the communication protocol between the equipment to be collected, and the type of collected data; Distribute the project through the IoT gateway, run the project, and collect test data; Establish test cases according to the project; Use test cases to test the test data.

2. The Internet of Things gateway testing method according to claim 1, characterized in that: The project is issued through the IoT gateway, and the project is run to collect test data, including: Use automated test scripts to run the project and collect test data.

3. The Internet of Things gateway testing method according to claim 1, characterized in that: The project is issued through the IoT gateway, and the project is run to collect test data, and then the following is also included: Centralized management of test data.

4. The Internet of Things gateway testing method according to claim 1, characterized in that: The test cases are established according to the project, and previously include: Construct a test case data model; the test case data model is a framework of the test case and is used to obtain different test cases.

5. The Internet of Things gateway testing method according to claim 1, characterized in that: The testing of the test data using the test case specifically includes: Simulate the device communication protocol according to the test case to obtain simulation data; Compare the simulation data with the test data to obtain the comparison results; If the comparison result is the same, the test passes; otherwise, the test fails.

6. The Internet of Things gateway testing method according to claim 1, characterized in that: The method of testing the test data using the test case further includes: Store the test results of the current project.

7. An Internet of Things gateway testing device, characterized in that: The IoT gateway test equipment includes: A configuration tool management module is used to establish a project; the project includes the device to be collected, the communication protocol between the device to be collected, and the type of collected data; The execution operation management module is used to issue the project through the IoT gateway, run the project, and collect test data; Test case management module, used to create test cases according to projects; The test data management module is used to test the test data using test cases.

8. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the Internet of Things gateway testing method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the Internet of Things gateway testing method described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the Internet of Things gateway testing method described in any one of claims 1 to 6 is implemented.