Automatic batch test method and test equipment for network equipment

Through automated batch testing methods for network equipment, including basic test environment initialization, information collection of equipment under test, testing unit generation and execution, test result summary and report generation, the existing automation testing tools are solved, and efficient, flexible and easy-to-maintain automated testing is achieved.

CN119945958APending Publication Date: 2025-05-06CLP KESHENTAI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510242659.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

Existing automation testing tools are mostly targeted at specific devices, lack the ability to cover multiple network devices in a comprehensive range, especially in parallel multi-device testing, and hardware automation testing faces challenges such as customization, interface complexity, configuration diversity and rapidly changing technical standards, resulting in lack of flexibility and maintenance difficulty in testing.

Method used

It provides an automated batch testing method for network equipment, including initialization of the basic test environment, collection of information of the equipment under test, generation and execution of test units, summary of test results and generation of report. This method uses thread pool or process pool management testing units to dynamically generate test tasks for different devices, and monitors the test environment automatically installs dependencies in real time to ensure the integrity and smooth progress of the test environment.

Benefits of technology

It significantly improves the efficiency, flexibility and easy maintenance of automated testing, can fully cover a variety of network equipment and optimize targetedly, adapt to the needs of parallel testing of multiple devices, and reduces the maintenance difficulty and complexity of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119945958A_ABST
    Figure CN119945958A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic batch testing method for network equipment. The automatic batch testing method comprises the steps of initializing a basic testing environment, collecting information of tested equipment, generating and executing a testing unit, summarizing testing results, generating a detailed testing report and the like. The test units are managed by using a thread pool or a process pool, so that the high efficiency and manageability of the test are ensured; and detailed information collection and customized test task distribution are carried out on the tested equipment, so that the test can comprehensively cover various network equipment and is optimized in a targeted manner, and the multi-equipment parallel test requirement is met. By monitoring the test environment in real time and automatically installing the dependencies, the integrity and smooth proceeding of the test environment are guaranteed, multiple test tasks are covered, and the comprehensiveness and deepness of the test are guaranteed. The generated test report not only records key indexes such as equipment quantity, test passing rate, test execution time and the like in detail, but also contains detailed technical support and analysis basis, so that subsequent technical problem positioning, optimization and improvement are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to an automated batch testing method and testing equipment for network equipment. Background Art

[0002] As the number and complexity of network devices grow, traditional manual testing can no longer meet the needs, and automated testing is needed to improve efficiency and accuracy.

[0003] Existing automated testing tools are mostly targeted at specific devices and lack the ability to fully cover a variety of network devices, especially in parallel testing of multiple devices, which lacks targeted optimization. At the same time, hardware automated testing faces challenges such as customization, interface complexity, configuration diversity, and rapidly changing technical standards, which leads to a lack of flexibility and difficulty in maintenance.

[0004] Therefore, developing efficient, flexible and easy-to-maintain automated batch testing solutions for network equipment is a key direction for future technology research. Summary of the invention

[0005] The purpose of the present invention is to provide an automated batch testing method and testing equipment for network equipment to solve the problems in the background technology.

[0006] To solve the above technical problems, the present invention provides an automated batch testing method for network devices, comprising the following steps: S101, initialization of basic test environment; The initialized basic test environment includes software tools, configuration files, test case libraries, log file storage paths, and ensures smooth network connection with the device under test; S102, collecting information of the device under test; Use tools to scan the network, collect information including the target device model, IP address, operating system version, and store it in a secure data structure; S103, test unit generation and execution; Traverse the collected device information, generate independent test units for each device, and assign and execute specific test tasks; S104, test result summary and report generation; Wait for all test units to be executed, collect the results of all test units and generate a detailed test report.

[0007] In one embodiment, the test unit is managed by a thread pool or a process pool, and each test unit contains a test task specific to the device; each thread independently runs a test unit, and the thread selects test cases and executes corresponding test tasks based on the type of the device under test and the operating system version information.

[0008] In one embodiment, the allocating and executing the specific test task in step S103 includes: S201, test case selection: import relevant test cases from the pre-configured test case set according to device information, and add device information judgment to the test cases; S202, test environment optimization: for the selected test task, check whether new dependencies are introduced; if new dependencies are found, install them in time to ensure the integrity of the test environment and the smooth progress of the test task; S203, sending and executing the test task: sending the test task to the device under test, executing the test task on the device under test, and ensuring that the results are correctly collected and returned to the test device after the test is completed through the network interface; S204, collection and return of test results: after the test task is completed, the test results are returned to the test equipment.

[0009] In one implementation, the test tasks include connectivity testing, peripheral hardware interface testing, performance testing, security testing, and stability testing.

[0010] In one implementation, the test task is sent to the device under test through a tool and the test result is returned to the testing device.

[0011] In one embodiment, the content of the test report includes the number of devices, the number of test cases applied to each device, the device test pass rate, the reason for device test failure, the test execution time, the test environment overview and the log information during the test execution process to provide more detailed technical support and analysis basis.

[0012] In one embodiment, the test report is output in a format that is easy to read and analyze, and includes log information during the test execution process.

[0013] The present invention also provides a testing device based on the above-mentioned automated batch testing method for network devices, comprising: A processor, a network interface, and a memory communicatively connected to the processor; The network interface is used to communicate with the device under test. The memory stores a computer program, and the computer program can be executed by the processor to perform a testing method.

[0014] The present invention provides an automated batch testing method and testing equipment for network devices, including initializing a basic test environment, collecting information about the device under test, generating and executing test units, and summarizing test results and generating detailed test reports, which significantly improves the efficiency, flexibility and maintainability of automated testing. The present invention effectively solves the problems of low efficiency and insufficient coverage of traditional manual testing, and provides a set of efficient, flexible and easy-to-maintain systematic methods for automated batch testing of network devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 This is a flow chart of an automated batch testing method for network devices according to an embodiment of the present invention; Figure 2 A schematic diagram of a process for allocating and executing specific test tasks in an embodiment of the present invention; Figure 3 This is a schematic diagram of an automated batch testing device for network devices in an embodiment of the present invention; Figure 4 The present invention is a schematic diagram of the deployment of an automated batch testing device for network devices in an embodiment of the present invention. DETAILED DESCRIPTION

[0016] The following is a further detailed description of an automated batch testing method and testing device for network devices proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description. It should be noted that the accompanying drawings are all in a very simplified form and are not in precise proportions, and are only used to conveniently and clearly assist in explaining the purpose of the embodiments of the present invention.

[0017] like Figure 1 As shown, the present invention provides an automated batch testing method for network devices, and its specific implementation steps are as follows: S101, initialization of basic test environment; Specifically, before the test begins, the test system will initialize the basic test environment, including installing and configuring common software tools, configuring the test case library, setting the storage path for log files, and ensuring that these files are accessible.

[0018] Before the test begins, the test system must also correctly configure the test equipment's network to ensure that it can communicate with the device under test.

[0019] This step ensures the integrity and connectivity of the test environment when testing begins.

[0020] S102, collecting information of the device under test; Specifically, a third-party scanning tool is used to collect information of all tested network devices through network scanning, and store it in a manageable data structure to ensure secure storage and classified access of data.

[0021] S103, test unit generation and execution; Specifically, based on the collected information about the device under test, the system dynamically generates a test unit for each device under test, each test unit contains a test task specific to the device; then, these test units are allocated and executed through a thread pool or process pool mechanism. For example, each thread independently runs a test unit, and the thread selects test cases and executes corresponding test tasks based on information such as the type of the device under test and the operating system version.

[0022] Furthermore, if Figure 2 The flowchart shown details the specific steps of test unit generation and execution, as follows: S201, test case selection; Specifically, according to different types of tested network devices and their operating systems, corresponding test cases are selected from the test case library for import. In order to meet specific requirements, device information judgment logic can be embedded in the test case to ensure that the selected test case matches the device information.

[0023] S202, test environment optimization; Specifically, check whether there are new dependencies for the selected test task; if new dependencies are found, they should be automatically installed to ensure the completeness of the test environment. The test environment should be dynamically adjusted to meet the needs of the current test task as much as possible to reduce problems encountered during the test process.

[0024] S203, sending and executing the test task; Specifically, an automated operation and maintenance tool is used to send the test task to the device under test to ensure that the test task is executed according to the preset plan, and through the network interface, it is ensured that the results are correctly collected and returned to the test device after the test is completed.

[0025] S204, collection and return of test results; Specifically, the test results after execution are received from the device under test and further processed to generate a formatted and readable report.

[0026] S104. Test result summary and report generation: Specifically, after all test units are completed, the system collects test results and generates a detailed test report, including detailed information such as the number of devices, the number of test cases executed, the test pass rate, the reasons for test failure, and the log files generated during the test. This information can help users quickly identify problematic devices and specific problems for subsequent repairs and optimizations.

[0027] like Figure 3 The figure shows a schematic diagram of an automated batch testing device for network devices in an embodiment of the present invention, which includes the following components: Processor: As the core processing unit of the device, it is responsible for executing specific instructions for various tasks during the test, including logic processing, data processing, etc. Network interface (network port): used to connect the device under test and related network resource nodes to achieve data transmission and command return; Memory: Stores software tools, configuration files, log files and other information required for running automated batch tests of network devices; the memory should have sufficient storage capacity and high access speed to ensure efficient data storage and access.

[0028] like Figure 4 FIG. 1 is a schematic diagram of the deployment of an automated batch test device for network devices in an embodiment of the present invention, showing a configuration example, including: A test device that can collect information, assign test tasks, and summarize test results; A network interconnection device, which can be a hub, a switch or a router; One or more devices under test can be deployed according to the resource configuration of the test equipment.

[0029] In addition, the test equipment and the device under test will be connected to the network interconnection device, and the test equipment and the device under test will exchange information securely through the network protocol (such as SSH).

[0030] The present invention provides an efficient, flexible and easy-to-maintain automated batch testing method and equipment for network devices, which effectively improves the test work efficiency, test efficiency flexibility and maintainability. Specifically, by using a thread pool or a process pool to manage the test unit, the efficiency and manageability of the test are ensured; and by collecting detailed information and customizing the test task allocation for the tested device, the test can comprehensively cover a variety of network devices and be optimized in a targeted manner to meet the needs of parallel testing of multiple devices. In addition, by real-time monitoring of the test environment and automatically installing dependencies, the integrity and smooth progress of the test environment are guaranteed. At the same time, it covers a variety of test tasks such as connectivity, performance, security, and stability, ensuring the comprehensiveness and depth of the test. Finally, the generated test report not only records in detail key indicators such as the number of devices, test pass rate, and test execution time, but also contains detailed technical support and analysis basis, which is convenient for subsequent technical problem location and optimization and improvement.

[0031] The above description is only a description of the preferred embodiments of the present invention, and is not intended to limit the scope of the present invention. Any changes or modifications made by a person skilled in the art in the field of the present invention based on the above disclosure shall fall within the scope of protection of the claims.

Claims

1. An automated batch testing method for network devices, characterized in that: The following steps are involved: S101, initialization of basic test environment; The initialized basic test environment includes software tools, configuration files, test case libraries, log file storage paths, and ensures smooth network connection with the device under test; S102, collecting information of the device under test; Use tools to scan the network, collect information including the target device model, IP address, operating system version, and store it in a secure data structure; S103, test unit generation and execution; Traverse the collected device information, generate independent test units for each device, and assign and execute specific test tasks; S104, test result summary and report generation; Wait for all test units to be executed, collect the results of all test units and generate a detailed test report.

2. The automated batch testing method for network devices according to claim 1, characterized in that: The test units are managed by a thread pool or a process pool, and each test unit contains a test task specific to the device; each thread independently runs a test unit, and the thread selects test cases and executes corresponding test tasks according to the type of the device under test and the operating system version information.

3. The automated batch testing method for network devices according to claim 2, characterized in that: The allocation and execution of the specific test task in step S103 includes: S201, test case selection: import relevant test cases from the pre-configured test case set according to device information, and add device information judgment to the test cases; S202, test environment optimization: for the selected test task, check whether new dependencies are introduced; if new dependencies are found, install them in time to ensure the integrity of the test environment and the smooth progress of the test task; S203, sending and executing the test task: sending the test task to the device under test, executing the test task on the device under test, and ensuring that the results are correctly collected and returned to the test device after the test is completed through the network interface; S204, collection and return of test results: after the test task is completed, the test results are returned to the test equipment.

4. The automated batch testing method for network devices according to claim 1, characterized in that: The testing tasks include connectivity testing, peripheral hardware interface testing, performance testing, security testing, and stability testing.

5. The automated batch testing method for network devices according to claim 1, characterized in that: The test task is sent to the device under test through the tool and the test result is returned to the testing device.

6. The automated batch testing method for network devices according to claim 1, characterized in that: The content of the test report includes the number of devices, the number of test cases applied to each device, the device test pass rate, the reason for device test failure, the test execution time, the test environment overview and the log information during the test execution process, so as to provide more detailed technical support and analysis basis.

7. The automated batch testing method for network devices according to claim 1, characterized in that: The test report is output in a format that is easy to read and analyze, and contains log information during the test execution process.

8. An automated batch testing device for network devices, using the automated batch testing method for network devices as claimed in any one of claims 1 to 7, characterized in that: include: A processor, a network interface, and a memory communicatively connected to the processor; The network interface is used to communicate with the device under test. The memory stores a computer program, and the computer program can be executed by the processor to perform a testing method.