Automatic testing system and method for full functions of router
The fully automated testing system and method for routers solves the problem of the inability to automatically test router peripheral interfaces in existing technologies. It enables efficient and accurate testing in complex network environments, improves the stability and reliability of test results, and reduces maintenance costs.
Patent Information
- Application Number
- CN202511426073.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-30
- Publication Date
- 2025-12-05
AI Technical Summary
Existing automated testing systems for Selenium-based router products cannot automate testing of multiple peripheral interfaces of the router, and their testing efficiency and accuracy are affected in complex network environments, making it difficult to meet high-standard testing requirements.
A fully automated testing system and method for routers is provided, including interface and web page test driver modules, main network interface partitioning, SIM card compatibility testing modules, wired network parameter validity testing modules, and wireless network parameter validity testing modules. The system automatically switches device connections through an intelligent scheduling system to achieve automated testing of all router functions and peripheral interfaces.
It enables efficient and accurate testing in complex network environments, reduces manual intervention, improves the stability and reliability of test results, and lowers maintenance costs.
Smart Images

Figure CN121077950A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of automated testing, and in particular relates to a fully automated testing system and method for routers. Background Technology
[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.
[0003] Existing technology provides an automated testing system for Selenium-based router products, but it can only test some of the router's functions. For the router's multiple peripheral interfaces, manual intervention is required to adjust the connections between different devices and the test router. This makes it impossible to automate testing when the peripheral interfaces need to be driven to function, thus failing to meet the automated testing needs of today's increasingly feature-rich router products. Furthermore, this automated testing system for Selenium-based router products suffers inefficiency and accuracy when handling complex network environments, making it difficult to meet high-standard testing requirements. Summary of the Invention
[0004] To address the technical problems mentioned above, this invention provides a fully automated testing system and method for routers, which covers all router functions and peripheral interfaces. It requires no manual intervention and automatically switches device connections through an intelligent scheduling system, ensuring efficient and accurate testing in complex network environments, improving the stability and reliability of test results, and reducing maintenance costs.
[0005] To achieve the above objectives, the present invention adopts the following technical solution: The first aspect of the present invention provides a fully automated testing system for routers.
[0006] A fully automated testing system for routers includes: an interface that is communicatively connected to the controller of the router's motherboard card, a web page test driver module, a main test network interface partition, a SIM card compatibility test module, a wired network parameter validity test module, and a wireless network parameter validity test module. The webpage test driver module is used to operate the built-in webpage of the router motherboard to locate the position of elements on the page and fill test data into the corresponding parameter boxes; the main test network interface partition is used to connect different network ports of the router motherboard; the interface is connected to the host computer software, so that the host computer software sends control commands to the controller of the router motherboard to read the test script of any one of the SIM card compatibility test module, wired network parameter validity test module and wireless network parameter validity test module, and start the test process of the corresponding module.
[0007] In one implementation, the SIM card compatibility testing module includes a cellular SIM control partition, which is used to control the physical connection between different SIM cards and the router motherboard.
[0008] In one implementation, the wireless network parameter validity testing module includes a wireless network partition, which is used to query wireless connection information and send it back to the host computer software for comparison with the parameters of the router motherboard card to test the validity of the wireless network function parameters.
[0009] In one implementation, the wired network parameter validity testing module includes an auxiliary test network interface partition, which is used to connect auxiliary test hardware modules required in the test.
[0010] In one implementation, the auxiliary testing hardware module is also connected to the auxiliary testing driver module; the auxiliary testing hardware module is used to automatically switch and detect peripheral interfaces; the auxiliary testing driver module is used to drive the auxiliary testing hardware module.
[0011] As one implementation, the fully automated router testing system further includes a script editing module, which, together with the controller of the router motherboard, is used to edit, import, and export test scripts.
[0012] A second aspect of the present invention provides a fully automated testing method for routers.
[0013] A fully automated testing method for routers includes: Receive control commands sent from the host computer software to the controller of the router's motherboard card; Read the test scripts from any one of the SIM card compatibility test module, wired network parameter validity test module, and wireless network parameter validity test module, start the test process of the corresponding module, and implement SIM card compatibility test, wired network parameter validity test, and wireless network parameter validity test respectively.
[0014] As one implementation method, the SIM card compatibility testing process is as follows: Read the test script corresponding to the SIM card compatibility test module; The cellular SIM control partition is used to control the physical connection between different SIM cards and the router motherboard card; Access the built-in webpage of the router's motherboard card through the webpage test driver module, set the cellular network parameters, and apply them; Check the cellular network status and compare it with the test results in the test cases; Record the test results and process log until the test is completed.
[0015] As one implementation method, the wired network parameter validity testing process is as follows: Read the test script corresponding to the wired network parameter validity test module; The different auxiliary test network ports connected to the PC network ports are connected separately using the auxiliary test network interface partitions. Access the built-in webpage of the router's motherboard card through the webpage test driver module, set the wired network parameters, and apply them; Read the IP address obtained from the PC's network port and compare it with the set wired network parameters; Record test results and process logs until the test is completed; As one implementation method, the wireless network parameter validity test process is as follows: Read the test script corresponding to the wireless network parameter validity test module; Access the built-in webpage of the router's motherboard card through the webpage test driver module, set the corresponding AP function parameters of the router's motherboard card, and apply them; The driver test board searches for the AP under test and establishes a connection. The test board returns the established wireless connection parameters to the software, which is then compared with the AP function parameters of the router's motherboard. Record the test results and process log until the test is completed.
[0016] The beneficial effects of this invention are: (1) The present invention uses host computer software to send control commands to the controller of the router motherboard card, read the corresponding test scripts in the SIM card compatibility test module, wired network parameter validity test module and wireless network parameter validity test module, start the test process of the corresponding module, and thus realize the automatic adjustment of the test scenario according to the preset automated test cases in the test script, reduce the workload of manual testing, and improve testing efficiency.
[0017] (2) By reading the SIM card compatibility test module, the wired network parameter validity test module and the wireless network parameter validity test module, the test environment can be solidified into the system, realizing the reuse of the test environment, reducing the workload of repeatedly building the test environment, and improving test efficiency; the test steps and test scenarios are unified, reducing the test errors caused by the inconsistent test environment during manual testing.
[0018] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0019] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.
[0020] Figure 1 This is an overall block diagram of the fully automated router testing system according to an embodiment of the present invention; Figure 2 This is an internal communication control diagram of the fully automated router testing system according to an embodiment of the present invention; Figure 3 This is a flowchart of the SIM card compatibility test according to an embodiment of the present invention; Figure 4 This is a flowchart of the wired network parameter validity test according to an embodiment of the present invention. Detailed Implementation
[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0022] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.
[0023] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of exemplary embodiments according to the invention. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.
[0024] Existing automated testing systems for Selenium framework router products rely on dedicated testing equipment for unified peripheral control and detection. This approach fails to guarantee test consistency, potentially leading to significant fluctuations in test results and difficulties in standardization. To address these issues and the problems outlined in the background, this invention provides a fully automated router testing system and method. This system covers all router functions and peripheral interfaces, requiring no manual intervention. An intelligent scheduling system automatically switches device connections, ensuring efficient and accurate testing in complex network environments. This improves the stability and reliability of test results and reduces maintenance costs.
[0025] according to Figure 1 and Figure 2As shown in the figure, an embodiment of the present invention provides a fully automated router testing system, comprising: an interface (e.g., a serial port interface such as USB) communicatively connected to the controller of the router motherboard, a web page test driver module, a main test network interface partition, a SIM card compatibility test module, a wired network parameter validity test module, and a wireless network parameter validity test module; the web page test driver module is used to operate the built-in web page of the router motherboard to locate the position of elements on the page and fill test data into the corresponding parameter boxes; the main test network interface partition is used to connect different network ports of the router motherboard; the interface is connected to the host computer software, enabling the host computer software to send control commands to the controller of the router motherboard to read the test script of any one of the SIM card compatibility test module, the wired network parameter validity test module, and the wireless network parameter validity test module, and start the test process of the corresponding module.
[0026] according to Figure 1 and Figure 2 The main test network interface partition of this embodiment of the invention includes several network interfaces of the device under test, namely router network interfaces.
[0027] This embodiment uses host computer software to send control commands to the controller of the router motherboard card, read the corresponding test scripts in the SIM card compatibility test module, wired network parameter validity test module, and wireless network parameter validity test module, start the test process of the corresponding module, and thus realize the automatic adjustment of the test scenario according to the preset automated test cases in the test script, reduce the workload of manual testing, and improve testing efficiency.
[0028] In this embodiment of the invention, the SIM card compatibility testing module includes a cellular SIM control partition, which is used to control the physical connection between different SIM cards and the router motherboard. This allows for the management and control of the physical connection between SIM cards in different SIM card slots and the testing equipment, and enables SIM card compatibility testing in conjunction with a web-based test driver module and corresponding test scripts.
[0029] according to Figure 1 and Figure 2 The cellular SIM control partition of this invention includes several cellular SIM card interfaces, each cellular SIM card interface is connected to a corresponding SIM card slot, and a SIM card can be installed on each SIM card slot.
[0030] In this embodiment of the invention, the wireless network parameter validity testing module includes a wireless network partition, which is used to query wireless connection information and transmit it back to the host computer software for comparison with the parameters of the router motherboard card to test the validity of the wireless network function parameters. The wireless network partition can test the wireless network function of the device under test, supports AP and STA functions, can query connection information, and transmit the queried wireless connection information back to the host computer software for comparison with the parameters entered by the device under test, thereby testing the validity of the wireless network function parameters.
[0031] In this embodiment of the invention, the wired network parameter validity testing module includes an auxiliary test network interface partition, which is used to connect to the auxiliary test hardware module required in the test. The auxiliary test hardware module is also connected to an auxiliary test driver module; the auxiliary test hardware module is used to automatically switch and detect peripheral interfaces; the auxiliary test driver module is used to drive the auxiliary test hardware module.
[0032] according to Figure 1 and Figure 2 The auxiliary test network interface partition in this embodiment of the invention includes several auxiliary test device network interfaces. The auxiliary test hardware module here can be an auxiliary test board, with an existing structure. The auxiliary test driver module also uses an existing driver circuit structure.
[0033] In the specific implementation process, the router full-function automated testing system also includes: a script editing module, which, together with the controller of the router motherboard card, is used to edit, import, and export test scripts.
[0034] This embodiment can solidify the test environment into the system by reading the SIM card compatibility test module, wired network parameter validity test module, and wireless network parameter validity test module, enabling the reuse of the test environment, reducing the workload of repeatedly setting up the test environment, and improving test efficiency; it also unifies the test steps and test scenarios, reducing test errors caused by inconsistent test environments during manual testing.
[0035] based on Figure 1 and Figure 2 The router full-function automated testing system shown includes the following testing methods: Step 1: Receive control commands sent from the host computer software to the controller of the router's motherboard card; Step 2: Read the test scripts of any one of the SIM card compatibility test module, wired network parameter validity test module, and wireless network parameter validity test module, start the test process of the corresponding module, and implement the SIM card compatibility test, wired network parameter validity test, and wireless network parameter validity test respectively.
[0036] Specifically, such as Figure 3As shown, the SIM card compatibility testing process is as follows: Step a1: Read the test script corresponding to the SIM card compatibility test module; Step a2: Use the cellular SIM control partition to control the physical connection between different SIM cards and the router motherboard card; Step a3: Access the built-in webpage of the router's motherboard card through the webpage test driver module, set the cellular network parameters, and apply them; Step a4: Check the cellular network status and compare it with the test results in the test case; Step a5: Record the test results and process log until the test is completed.
[0037] like Figure 4 As shown, the wired network parameter validity test process is as follows: Step b1: Read the test script corresponding to the wired network parameter validity test module; Step b2: Connect the different auxiliary test network ports connected to the PC network port using the auxiliary test network interface partitions; Step b3: Access the built-in webpage of the router's motherboard card through the webpage test driver module, set the wired network parameters, and apply them; Step b4: Read the IP address obtained from the PC's network port and compare it with the set wired network parameters; Step b5: Record the test results and process log until the test is completed; In other embodiments, the wireless network parameter validity testing process is as follows: Step c1: Read the test script corresponding to the wireless network parameter validity test module; Step c2: Access the built-in webpage of the router motherboard card through the webpage test driver module, set the corresponding AP function parameters of the router motherboard card and apply them; Step c3: Drive the test board to search for the AP under test and establish a connection; Step c4: The test board returns the established wireless connection parameters to the software and compares them with the AP function parameters of the router's motherboard card; Step c5: Record the test results and process log until the test is completed.
[0038] This embodiment can embed the test environment into the system by reading the SIM card compatibility test module, wired network parameter validity test module, and wireless network parameter validity test module, enabling the reuse of the test environment, reducing the workload of repeatedly setting up the test environment, and improving test efficiency; it also unifies the test steps and test scenarios, reducing test errors caused by inconsistent test environments during manual testing.
[0039] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A router fully functional automated test system, characterized by, The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system.
2. The router fully functional automated test system of claim 1, wherein, The application relates to a router full-function automatic test system.
3. The router fully functional automated test system of claim 1, wherein, The application relates to a router full-function automatic test system.
4. The router fully functional automated test system of claim 1, wherein, The application relates to a router full-function automatic test system.
5. The router fully functional automated test system of claim 4, wherein, The application relates to a router full-function automatic test system.
6. The router fully functional automated test system of claim 1, wherein, The application relates to a router full-function automatic test system.
7. A test method based on the router full-function automated test system according to any one of claims 1 to 6, characterized by, The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system.
8. The test method of claim 7, wherein, The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system.
9. The test method of claim 7, wherein, The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function automatic test system. The application relates to a router full-function 10. The test method of claim 7, wherein, The wireless network parameter validity test process is as follows: reading a test script corresponding to the wireless network parameter validity test module; entering an inbuilt web page of an operating router mainboard card through a web test driving module, setting corresponding AP function parameters of the router mainboard card and applying the same; driving the test board card, searching for an AP of a device under test and establishing a connection; returning the established wireless connection parameters to software by the test board card, and comparing the same with the AP function parameters of the router mainboard card; recording test results and process logs until the test is completed.