Gateway batch testing device and method and readable medium
Through gateway batch testing devices and methods, the problem of collaborative testing of multi-device is solved, efficient and automated gateway equipment testing is realized, testing efficiency and accuracy are improved, and detailed performance analysis and problem diagnosis support is provided.
Patent Information
- Application Number
- CN202410857631.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-12-13
AI Technical Summary
When existing gateway device testing systems handle parallel testing of large-scale and multi-type gateway devices, there is a problem that multiple devices are difficult to test together, resulting in inefficient testing and waste of resources.
Provide a gateway batch testing device and method, including connecting modules, test task generation modules, batch testing control modules, automated execution modules and data acquisition modules, which are used to connect multiple gateway devices at the same time, generate and schedule test tasks, and automatically execute tests. , collect running status data in real time and generate test reports.
Connecting multiple gateway devices through independent communication channels ensures the stability and independence of the test environment, improves the targetedness and efficiency of the test, simplifies the test process, reduces the possibility of manual operations and errors, and provides detailed performance analysis and problem diagnosis support.
Smart Images

Figure CN119135566A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication testing technology, and in particular to a gateway batch testing device, method and readable medium. Background Art
[0002] With the development of emerging technologies such as the Internet of Things, 5G, and smart cities, gateway devices, as key network nodes, have assumed many important functions such as data transmission, protocol conversion, and security protection. The deployment and management of large-scale gateway devices has become increasingly complex, so it is very important to test gateway devices efficiently and accurately.
[0003] At present, the testing of gateway devices has developed towards automation and intelligence. Some advanced test systems have certain automation capabilities and can perform standard functional tests and performance verification. Nevertheless, although the existing automated test systems can perform comprehensive tests on a single device, when dealing with large-scale, multi-type gateway device parallel testing, there is a problem that multiple devices are difficult to test collaboratively, which easily leads to low test efficiency and waste of resources. Summary of the invention
[0004] The present invention provides a gateway batch testing device, method and readable medium to solve the technical problem that multiple devices are difficult to test collaboratively in the existing gateway device testing system.
[0005] The technical solution of the present invention to solve the above technical problems is as follows:
[0006] In a first aspect, the present application provides a gateway batch testing device, the testing device comprising:
[0007] A connection module, used to simultaneously connect multiple gateway devices to be tested and provide an independent communication channel for each gateway device;
[0008] A test task generation module is used to generate multiple test tasks according to preset test scenarios;
[0009] A batch test control module, used to control the connection and initialization of a plurality of the gateway devices and the scheduling of the test tasks;
[0010] An automated execution module, used to automatically execute the test task;
[0011] A data collection module, used to collect test data of each gateway device during the execution of the test task;
[0012] A report generating module is used to generate a test report based on the collected test data.
[0013] In a second aspect, the present application provides a gateway batch testing method, using the gateway batch testing device as described above, characterized in that the testing method comprises the following steps:
[0014] Establishing connections with multiple gateway devices and verifying the legitimacy of the identities of each of the gateway devices;
[0015] According to the preset test scenarios, the test task generation module generates multiple test tasks;
[0016] The batch test control module dispatches the test task to the automation execution module;
[0017] Calling a corresponding test script according to the test task, and executing the test task by the automation execution module;
[0018] During the test, the data acquisition module collects the operating status data of each gateway device in real time;
[0019] After the test is completed, the report generation module generates a test report based on the collected operating status data.
[0020] In a third aspect, the present application provides a readable medium having a computer-readable program stored thereon, and the readable program, when executed by a computer, implements the gateway batch testing method as described above.
[0021] The beneficial effects of the present invention are:
[0022] The present invention simultaneously connects multiple gateway devices through a connection module and provides an independent communication channel for each device, thereby ensuring the stability of the test environment and the independence of the test process, effectively avoiding communication interference between devices, and providing a reliable basis for the execution of subsequent test tasks.
[0023] Furthermore, the test task generation module generates multiple test tasks according to the preset test scenarios, making the test closer to the actual application scenario and improving the pertinence and effectiveness of the test. The automated generation of test tasks reduces the workload of manual configuration and improves test efficiency.
[0024] Furthermore, the batch test control module is responsible for coordinating the connection, initialization and scheduling of test tasks of multiple gateway devices to ensure the orderly progress of the test process, simplify the management of the test process and improve the level of test automation.
[0025] Furthermore, the automated execution module automatically executes test tasks by calling corresponding test scripts, which greatly reduces the intervention of manual operations and the possibility of human errors. It not only improves the test speed but also ensures the accuracy and reproducibility of the test results.
[0026] The data acquisition module collects the operating status data of each gateway device in real time during the test, including but not limited to key performance indicators such as response time, data transmission rate, and error rate. The real-time collection of these data provides detailed data support for subsequent performance analysis and problem diagnosis. The report generation module generates a test report based on the collected data, providing users with an intuitive display of test results. The report not only contains a summary of the test results, but may also include in-depth information such as performance analysis and problem location, helping users quickly understand the test results and make decisions accordingly.
[0027] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 It is a schematic diagram of the principle of a testing device in one embodiment of the present invention;
[0029] Figure 2 A module diagram of a batch test control module in one embodiment of the present invention;
[0030] Figure 3 A module diagram of an automatic execution module in one embodiment of the present invention;
[0031] Figure 4 It is a module diagram of a data acquisition module in one embodiment of the present invention;
[0032] Figure 5 A module diagram of a report generation module in one embodiment of the present invention;
[0033] Figure 6 A flow chart of a testing method in one embodiment of the present invention;
[0034] Figure 7 A flowchart of verifying the legitimacy of the identity of each gateway device in one embodiment of the present invention;
[0035] Figure 8 A flowchart of calling a test script in one embodiment of the present invention;
[0036] Fig. 9 This is a flow chart of a data collection module collecting the operation status data of each gateway device in real time in one embodiment of the present invention;
[0037] Fig.10 This is a flow chart of a report generation module in one embodiment of the present invention generating a test report based on the collected running status data. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention. In addition, it should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0039] The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. Of course, they are merely examples, and the purpose is not to limit the present invention. In addition, the present invention may repeat reference numbers and / or reference letters in different examples, and such repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. In addition, the present invention provides examples of various specific processes and materials, but those of ordinary skill in the art may be aware of the application of other processes and / or the use scenarios of other materials.
[0040] The present invention provides the following preferred embodiments:
[0041] Embodiment 1
[0042] refer to Figure 1 As shown, a gateway batch testing device is provided, and the testing device includes:
[0043] A connection module is used to simultaneously connect multiple gateway devices to be tested and provide an independent communication channel for each gateway device;
[0044] A test task generation module is used to generate multiple test tasks according to preset test scenarios;
[0045] Batch test control module, used to control the connection, initialization and scheduling of test tasks of multiple gateway devices;
[0046] Automatic execution module, used to automatically execute test tasks;
[0047] The data collection module is used to collect the test data of each gateway device during the execution of the test task;
[0048] The report generation module is used to generate a test report based on the collected test data.
[0049] This embodiment provides a gateway batch test device, which includes: a connection module, a test task generation module, a batch test control module, an automation execution module, a data acquisition module and a report generation module. This embodiment specifically describes the collaboration between the modules and the working principle and function of each module.
[0050] Furthermore, the connection module in the gateway batch testing device is used to simultaneously connect multiple gateway devices to be tested and provide an independent communication channel for each gateway device. It should be understood that in order to ensure that the tests between the gateway devices are not interfered with, the design of the independent communication channel can not only realize the synchronous testing of multiple devices, but also improve the stability and accuracy of the test.
[0051] Furthermore, the test task generation module generates multiple test tasks according to the preset test scenarios. It is understandable that the preset test scenarios usually cover various environments and conditions in the actual operation of the gateway device, including but not limited to different network topologies, different data traffic patterns, etc. The test task generation module generates corresponding test tasks by analyzing these scenarios, and these test tasks specifically include but are not limited to functional testing, performance testing, security testing, etc.
[0052] Further, on this basis, the batch test control module controls multiple gateway devices connected to the connection module, including the connection, initialization and scheduling of test tasks of the devices. It should be understood that batch testing of gateway devices is different from single device testing, which requires effective coordination and scheduling among multiple devices. The batch test control module uses a built-in scheduling algorithm to accurately allocate each test task to each gateway device to be tested according to the output of the test task generation module, and comprehensively manages the initialization of the device to ensure the smooth progress of the test.
[0053] Furthermore, the automated execution module is used to automatically execute the corresponding test tasks according to the scheduling plan of the batch test control module. It can be understood that automated execution can not only greatly reduce the complexity and errors of manual operations, but also achieve a more efficient and larger-scale testing process. The automated execution module has built-in multiple test script management mechanisms to ensure that appropriate test scripts are selected and executed for different test tasks.
[0054] Furthermore, the data acquisition module is used to collect data from each gateway device during the execution of the test task. It should be understood that the data acquisition module not only collects basic test data, such as the number of packets sent and received, transmission delay, etc., but also collects deeper data such as system logs and abnormal events. The collected data will be classified, stored and analyzed by the data monitoring unit, log management unit and statistical analysis unit in the data acquisition module for subsequent test result evaluation and troubleshooting.
[0055] Furthermore, the report generation module generates a test report based on the data collected by the data acquisition module. It is understandable that the report generation module is not just a simple data presentation, but also intuitively displays the test results in the form of charts, text, etc. by deeply mining and analyzing the data. The report generation module usually includes a data archiving unit, a report template management unit, and a report generation engine. By using predefined report templates, the test data is formatted and visualized, thereby generating a detailed test report to provide strong support for subsequent decision-making.
[0056] The benefit of this embodiment is that through highly integrated functional modules, efficient and automated testing of a large number of gateway devices can be achieved. The connection module ensures the parallel testing capability of multiple devices; the test task generation module ensures the diversity and authenticity of the test tasks; the batch test control module realizes the scheduling and management of the test process; the automated execution module simplifies the test execution process; the data acquisition module and the report generation module provide comprehensive data collection, analysis and display, ensuring the accuracy of the test results. Through this embodiment, the complexity of batch testing of gateway devices has been significantly reduced, and the test efficiency and accuracy have been greatly improved. At the same time, this embodiment also has good scalability, and each functional module can be adjusted and optimized according to specific needs to meet the testing needs of different scales and scenarios.
[0057] Embodiment 2
[0058] refer to Figure 1 and Figure 2 As shown, the batch test control module further includes:
[0059] A gateway device identity authentication unit, used to verify the legitimacy of the identity of each gateway device;
[0060] A connection management unit, used to manage and monitor the connection status between the connection module and the plurality of gateway devices;
[0061] The planning and scheduling unit is used to schedule the test tasks to each of the gateway devices according to a predetermined test plan.
[0062] According to the gateway batch test device described in the above embodiment, the batch test control module further includes: a gateway device identity authentication unit, a connection management unit and a planning and scheduling unit. This embodiment explains the specific functions of these units and their collaboration in detail, and for the convenience of explanation, also provides appropriate auxiliary technical features.
[0063] Specifically, the gateway device identity authentication unit is used to verify the legitimacy of the identity of each gateway device. It should be understood that before any detection operation is performed, it is necessary to ensure that each gateway device is legal, that is, its hardware and software status meet the preset specifications. The identity authentication process can include a variety of methods, such as digital certificate verification, two-factor verification, unique identification based on hardware feature codes, etc. The identity authentication unit will first perform identity authentication each time a gateway device accesses the system, and only after the device passes the verification will it be allowed to participate in the subsequent testing process.
[0064] Furthermore, the connection management unit is used to manage and monitor the connection status of the connection module and multiple gateway devices. It is understandable that since multiple gateway devices need to be connected to the test device at the same time, it is very important to manage their connection status. The connection management unit can monitor the health status of each connection in real time, such as whether the connection is disconnected, whether the data transmission is normal, etc. Once an abnormal connection is detected, the connection management unit can automatically perform a reconnection operation or notify the operator to intervene. At the same time, the connection management unit is also responsible for managing the connection strategy of the connection module to optimize the utilization of network bandwidth and ensure the overall stable operation of the system.
[0065] Furthermore, the planning and scheduling unit is used to schedule test tasks according to a predetermined test plan. It should be understood that test plans are usually formulated by test engineers based on actual needs and preset test scenarios, and these plans will involve the specific execution time and sequence of multiple test tasks. The core task of the planning and scheduling unit is to accurately allocate and manage the execution order of test tasks according to these predetermined plans. Therefore, it will comprehensively consider factors such as the dependencies of test tasks, the occupancy of hardware resources, and the operating status of gateway devices to formulate the optimal scheduling strategy. The scheduling process may involve dynamic adjustment of the test queue to cope with sudden changes in the operating environment.
[0066] The benefits of this embodiment are: by introducing identity authentication, connection management and scheduling functions, the batch test control module is made more complete and intelligent. The gateway device identity authentication unit ensures the legitimacy and security of the test object; the connection management unit ensures the stability of the connection and the continuity of the test process through real-time monitoring and dynamic management; the scheduling unit uses optimized scheduling strategies to improve the efficiency and scientificity of test task execution.
[0067] Through this embodiment, the batch test control module can maintain efficient operation in a complex test environment, whether it is dealing with a large number of device accesses or handling variable test task scheduling. In addition, this embodiment can be further expanded to make it more compatible and adaptable. For example, a variety of verification methods can be added to the identity authentication unit to cope with scenarios with different security requirements; advanced network traffic analysis technology can be introduced in the connection management unit to improve the accuracy and timeliness of connection status monitoring; machine learning algorithms can be used in the planning and scheduling unit to further optimize the scheduling strategy, improve the scheduling effect and the ability to adapt to various complex test plans.
[0068] Through these improvements and extensions, this embodiment can not only meet the current batch testing needs, but also adapt to the challenges of future complex testing environments and provide more accurate, intelligent and efficient batch testing services.
[0069] Embodiment 3
[0070] refer to Figure 1 and Figure 3 As shown, the automation execution module includes:
[0071] Test script management unit, used to manage and store test scripts in different test scenarios;
[0072] The script execution engine is used to call the corresponding test script according to the test task to execute the test;
[0073] The exception handling unit is used to detect and handle test exceptions during the test execution process.
[0074] According to the gateway batch testing device described in the above embodiment, the automated execution module includes: a test script management unit, a script execution engine and an exception handling unit. This embodiment will further explain the functional implementation of these units and the collaborative working mechanism between them.
[0075] Furthermore, the test script management unit is used to manage and store test scripts for different test scenarios. It should be understood that the test script is the core instruction set for executing automated test tasks, and the content and logic of the test script vary depending on the test scenarios. In order to efficiently manage and call these scripts, the test script management unit usually uses a database or other efficient storage mechanism to classify and store the scripts. The unit can record metadata such as version information, applicable scenarios, and execution dependencies of each test script, so that the correct script can be quickly located and called when needed. This not only improves the efficiency of script management, but also ensures the maintainability and traceability of the script.
[0076] Furthermore, the script execution engine is used to call the corresponding test script according to the test task to execute the test. It is understandable that the core function of the script execution engine is to parse and run the test script to ensure that the test task can be executed accurately. The script execution engine needs to have strong parsing capabilities and be able to support multiple script languages and various complex script logics. At the same time, in order to ensure execution efficiency, the execution engine is usually equipped with a multi-threaded or parallel execution mechanism to handle a large number of concurrent test tasks. During the execution process, the execution engine is not only responsible for converting the instructions in the script into specific operations, but also needs to monitor the execution status in real time, and adjust the execution strategy when necessary to ensure the reliability and effectiveness of the test process.
[0077] Furthermore, the exception handling unit is used to detect and handle test exceptions during the test process. It is understandable that various abnormal situations will inevitably occur during the automated testing process, such as test script errors, gateway device failures, network connection problems, etc. The exception handling unit is designed to detect these exceptions in a timely manner and take appropriate processing measures. The detection process is usually implemented by real-time monitoring of execution logs and device status. The exception handling unit is equipped with a variety of detection algorithms and rules to quickly identify abnormal signals. Once an exception is detected, the processing unit will perform operations such as retrying execution, recording detailed logs, and notifying administrators according to the predefined exception handling strategy to minimize the impact on the overall test process.
[0078] The benefit of this embodiment is that by integrating the test script management, script execution and exception handling functions into the automated execution module, comprehensive automated management of test tasks is achieved. The test script management unit ensures the centralized management and efficient calling of test scripts; the script execution engine provides efficient and accurate test task execution capabilities; the exception handling unit ensures the stability and continuity of the test process and can effectively handle various operational exceptions.
[0079] Through this embodiment, the automated execution module can operate efficiently in a complex test environment, ensuring that batch test tasks can be completed smoothly according to the predetermined plan, and can respond to and handle various unexpected abnormal situations in a timely manner. In addition, this embodiment also has good scalability, and more script management and execution functions can be added in the future, such as dynamic adjustment and optimization of scripts, introduction of anomaly detection and processing mechanisms based on machine learning, etc., thereby greatly improving the intelligence level of the entire test process and the ability to cope with complex test scenarios.
[0080] Through these improvements and extensions, the efficiency and reliability of automated execution have been significantly improved, which can better support large-scale batch testing tasks of gateway devices. The modular, intelligent, and integrated design concept provides a solid technical foundation for more diverse and complex gateway batch testing in the future, and also ensures that excellent test performance and work efficiency are maintained in the ever-changing test requirements.
[0081] Embodiment 4
[0082] refer to Figure 1 and Figure 4 As shown, the data acquisition module includes:
[0083] A data monitoring unit, used to monitor and collect the operation status data of the gateway device in real time;
[0084] Log management unit, used to collect and organize the log information of the gateway device during the test process;
[0085] The statistical analysis unit is used to perform statistics and analysis on the test data.
[0086] According to the gateway batch testing device described in the above embodiment, the data acquisition module includes: a data monitoring unit, a log management unit and a statistical analysis unit. For ease of understanding, this embodiment will describe in detail the specific functions of these units and how they work together during the test process.
[0087] Furthermore, the data monitoring unit is used to monitor and collect the operating status data of the gateway device in real time. It should be understood that real-time monitoring is essential for identifying the operating status of the gateway device during the test. The data monitoring unit continuously obtains various data on the working status of the device, such as CPU usage, memory consumption, network traffic, and various system indicators, through various sensors and detectors deployed inside and outside the gateway device. These data will be transmitted to the data acquisition module in a high-frequency and low-latency manner, so that the system can capture every detail of the device operation in a timely manner and perform real-time status evaluation.
[0088] Furthermore, the log management unit is used to collect and organize the log information of the gateway device during the test process. It is understandable that log information is an important data source that reflects system behavior and state changes. Each gateway device generates a large number of logs during its operation, recording various operations, events and abnormal situations. The log management unit is responsible for collecting these logs from each gateway device, and archiving and organizing them. In order to facilitate subsequent review and analysis, the log management unit will classify and index the logs, and use compression and encryption technologies to improve storage efficiency and security. Perfect log management can help testers better trace back and analyze problems encountered during the test process.
[0089] Furthermore, the statistical analysis unit is used to perform statistics and analysis on the collected data. It should be understood that simple data collection cannot directly provide support for subsequent decision-making. A large amount of raw data must be processed and interpreted through scientific statistical and analytical methods. The statistical analysis unit uses a variety of advanced statistical analysis tools and algorithms to conduct in-depth analysis of the data collected from the data monitoring unit and the log management unit. The analysis content includes but is not limited to the time series changes of data, abnormal pattern recognition, trend analysis of key performance indicators, etc. Through these analyses, testers can find potential problems and bottlenecks, and provide a reliable basis for optimizing and improving the performance of gateway devices.
[0090] The benefit of this embodiment is that, by introducing data monitoring, log management and statistical analysis functions, the data acquisition module can achieve comprehensive monitoring and in-depth analysis of the operation status of the gateway device. The data monitoring unit ensures the real-time acquisition of the operation status data, which is the basis for immediate status evaluation; the log management unit saves detailed operation and event records, providing solid data support for problem tracing and solving; and the statistical analysis unit reveals the laws and anomalies in the operation of the system through efficient processing and in-depth mining of the data, and provides optimization suggestions and improvement directions.
[0091] Through this embodiment, the data acquisition module can operate efficiently in a complex test environment, not only can it monitor the device status in real time and capture abnormalities in operation in a timely manner, but it can also provide data support for the comprehensive evaluation and optimization of gateway devices through detailed logs and in-depth statistical analysis. In addition, this embodiment has good scalability, and more data analysis tools and methods can be added, such as introducing artificial intelligence technology to perform predictive analysis and modeling on operating data, thereby further improving the intelligence level of data collection and analysis.
[0092] Through these improvements, the adaptability and processing capabilities of the data acquisition module in large-scale batch testing are enhanced, which can better meet the increasingly complex and changing needs of future gateway device testing. The modular, systematic and intelligent design concept provides a solid technical foundation for more efficient and accurate gateway batch testing in the future, which helps to further improve test efficiency and quality and ensure the reliability and stability of gateway devices in various complex application scenarios.
[0093] Embodiment 5
[0094] refer to Figure 1 and Figure 5 As shown, the report generation module includes:
[0095] A data archiving unit, used for archiving test data;
[0096] Report template management unit, used to manage different types of test report templates;
[0097] The report generation engine is used to generate a test report based on the test report template and test data.
[0098] According to the gateway batch testing device described in the above embodiment, the report generation module includes: a data archiving unit, a report template management unit and a report generation engine. In order to fully explain the content of this embodiment, the functions of these components and their interaction and collaboration will be described in detail below.
[0099] Furthermore, the data archiving unit is used to archive the collected data. It should be understood that the archiving operation is the basis for ensuring data management and subsequent analysis and processing. Through the data archiving unit, all test data obtained from the data acquisition module, including operating status data, log information and statistical analysis results, will be stored and managed in a coordinated manner. The archiving process uses an efficient storage structure, which usually includes metadata such as timestamp, data type, source device, etc., so that the data can be quickly retrieved and accessed when needed. In addition, the data archiving unit should also have data compression and encryption functions to improve the space utilization efficiency and security of data storage.
[0100] Furthermore, the report template management unit is used to manage different types of test report templates. It is understandable that the test reports generated under different test scenarios and requirements may be very different. The report template management unit ensures that the appropriate report format and content can be customized for various test requirements by providing flexible template management functions. The management unit can store a variety of templates, covering different test indicators, data display methods, and layout designs. These templates can be flexibly modified and expanded according to specific needs, ensuring the diversity and pertinence of report generation. At the same time, template management can also include version management functions to record and trace the modification history of the template to ensure the consistency and maintainability of report generation.
[0101] The report generation engine is used to generate test reports based on the report template and collected data. It should be understood that report generation is the last link in the test process, but it is the most critical step in the display of test results. The core function of the report generation engine is to combine the archived data with the report template to generate a test report with complete format and detailed content. The engine will clean, associate and visualize the data to ensure that each data point can be presented in the report in the most appropriate way. The generated report can include multiple parts, such as test overview, detailed data analysis, key findings and recommendations, etc., to provide a comprehensive display of test results. In addition, in order to improve the readability and professionalism of the report, the report generation engine can integrate a variety of data visualization tools, such as charts, statistical charts, etc., and support the generation of report files in multiple formats, such as PDF, HTML, etc., to facilitate use and dissemination in different scenarios.
[0102] The benefit of this embodiment is that by integrating data archiving, report template management and report generation functions, the report generation module realizes systematic management and efficient display of test data. The data archiving unit ensures that all test data is effectively stored and managed, providing a reliable data foundation; the report template management unit ensures that the generated test report can meet different needs by providing rich template options and flexible customization functions; and the report generation engine generates high-quality test reports by combining data and templates, providing strong support for evaluation and decision-making.
[0103] Through this embodiment, the report generation module not only improves the automation level of test report generation, but also significantly improves the professionalism and pertinence of the report. The modular, flexible and integrated design ensures the efficient operation of the entire report generation process and can adapt to the diverse needs of different test projects. In the future, the report generation module can further integrate artificial intelligence and big data analysis technologies to achieve more intelligent report generation, such as automatically identifying key trends and anomalies, and providing more in-depth analysis and decision-making recommendations. Through these further improvements, the report generation module will be able to better support batch testing of large-scale gateway devices and improve the efficiency and accuracy of overall testing work.
[0104] Embodiment 6
[0105] Furthermore, the batch test control module uses the formula Calculate the data transmission success rate, where:
[0106] P is the success rate, Dr is the number of packets received, and Dt is the number of packets sent;
[0107] The batch test control module also includes a comparison unit for comparing the test result of each gateway device with a preset standard.
[0108] According to the gateway batch test device described in the above embodiment, the batch test control module uses the formula The data transmission success rate is calculated, where: P is the success rate, Dr is the number of received data packets, and Dt is the number of sent data packets; the batch test control module also includes a comparison unit for comparing the test results of each gateway device with a preset standard.
[0109] Specifically, the batch test control module calculates the data transmission success rate through the above formula. It should be understood that the data transmission success rate is one of the important indicators for evaluating the performance of the gateway device in the network environment. This formula reflects the proportion of data packets successfully received by the gateway device to the total number of data packets sent in a specific time period.
[0110] Furthermore, during the operation, the batch test control module first needs to monitor and record the number of packets sent and received by each gateway device during the test. Through precise counters and data acquisition tools, the number of sent packets Dt and the number of received packets Dr are obtained in real time. Once the data acquisition is completed, the control module will immediately apply the above formula to calculate, thereby obtaining the data transmission success rate P of the current device during the test.
[0111] Furthermore, the batch test control module also includes a comparison unit, which is used to compare the test results of each gateway device with the preset standard. It is understandable that simply calculating the data transmission success rate cannot directly draw a conclusion, and a clear reference standard is also required. The main function of the comparison unit is to compare and analyze the success rate P calculated in real time with the success rate standard preset by the system. The preset standard is usually set according to different test scenarios and application requirements, and includes the system's basic requirements and expectations for data transmission performance.
[0112] In the specific implementation process, the comparison unit will first extract the corresponding standard value from the preset standard library. It should be understood that these standard values have fully considered various practical application requirements and industry standards in the design stage. Therefore, when performing the comparison operation, the comparison unit only needs to compare the calculated data transmission success rate with the standard value item by item. If the success rate P is higher than or equal to the standard value, the gateway device is considered to have passed the data transmission performance test; otherwise, it is determined that the device does not meet the expected standards under the current test conditions.
[0113] Furthermore, in order to improve the accuracy and efficiency of comparative analysis, the comparison unit can also conduct a comprehensive evaluation in combination with other performance parameters obtained by the data acquisition module, such as delay, jitter, packet loss rate, etc. The comprehensive comparison of these parameters helps to fully understand the overall performance of the gateway device, rather than relying solely on a single indicator, thereby providing a more scientific and comprehensive evaluation result.
[0114] Furthermore, in order to facilitate the display and subsequent analysis of the test results, the comparison unit can classify and mark the comparison results. For example, the comparison unit can classify the test results of each gateway device, mark them as "passed", "failed" or "critical", and export these results to the report generation module to generate detailed test analysis reports. These reports can intuitively reflect the performance of each gateway device during the test and provide specific improvement suggestions.
[0115] The benefit of this embodiment is that by introducing precise calculation formulas and comprehensive comparative analysis functions, the batch test control module can effectively evaluate the actual transmission performance of each gateway device. By applying the formula for calculating the data transmission success rate, a scientific and quantitative method for calculating the success rate is provided to ensure the accuracy and consistency of data calculation; and the comparison unit achieves a comprehensive evaluation of the device performance by comparing with the preset standard, helping to identify and solve potential problems and ensure the reliability and stability of the gateway device in actual applications.
[0116] Through this embodiment, the batch test control module not only enhances the ability to calculate and analyze the success rate of data transmission, but also greatly improves the accuracy and practicality of the test results. The modular, systematic and intelligent design enables the batch test control module to perform well in large-scale testing of gateway devices, and can provide solid technical support for more complex and diverse testing needs in the future. This embodiment can also further integrate intelligent learning algorithms and predictive analysis models to achieve more dynamic and intelligent test evaluation, continuously improve the scientificity and accuracy of the test, and provide more powerful technical support for efficient and reliable gateway device testing.
[0117] Embodiment 7
[0118] refer to Figure 6 As shown, a gateway batch testing method is provided, using the above gateway batch testing device, the testing method includes the following steps:
[0119] S1: Establish connections with multiple gateway devices and verify the legitimacy of the identities of each gateway device;
[0120] S2: According to the preset test scenario, the test task generation module generates multiple test tasks;
[0121] S3: The batch test control module dispatches the test task to the automation execution module;
[0122] S4: Call the corresponding test script according to the test task, and the automatic execution module executes the test task;
[0123] S5: During the test, the data acquisition module collects the operating status data of each gateway device in real time;
[0124] S6: After the test is completed, the report generation module generates a test report based on the collected operating status data.
[0125] According to the gateway batch testing method described in the above embodiment, a plurality of gateway devices are systematically tested by using a gateway batch testing device. The detailed steps include:
[0126] S1: Establish connections with multiple gateway devices and verify the legitimacy of the identities of each gateway device;
[0127] S2: According to the preset test scenario, the test task generation module generates multiple test tasks;
[0128] S3: The batch test control module dispatches the test task to the automation execution module;
[0129] S4: Call the corresponding test script according to the test task, and the automatic execution module executes the test task;
[0130] S5: During the test, the data acquisition module collects the operating status data of each gateway device in real time;
[0131] S6: After the test is completed, the report generation module generates a test report based on the collected operating status data.
[0132] First, in step S1, the test method establishes connections with multiple gateway devices through a batch test control module. In order to ensure the reliability and security of the test, it should be understood that each gateway device will be authenticated during the connection process, and only devices that pass the authentication will be allowed to participate in the subsequent test process. Authentication can be achieved by using techniques such as password authentication, digital certificates, or other encryption technologies to ensure the legitimacy and authenticity of each gateway device. This not only improves the security of the test, but also ensures the accuracy and integrity of the data.
[0133] Further, in step S2, a plurality of test tasks are generated according to the preset test scenarios by the test task generation module. It is understandable that the preset test scenarios are set according to the actual application requirements and target performance indicators. These test tasks are arranged by analyzing the specific functions and performance indicators of the required tests to ensure that a comprehensive and systematic investigation of the gateway device is covered. Each test task includes detailed test objectives, test steps, expected results, etc., forming a complete test plan, which lays the foundation for subsequent automated testing.
[0134] In step S3, the batch test control module schedules the generated test tasks to the automated execution module. It is understandable that the scheduling process needs to consider multiple factors, such as the current state of the gateway device, the execution priority of the task, the availability of resources, etc. The scheduling process should also ensure that multiple test tasks can be executed in parallel to improve test efficiency. By using an efficient task scheduling algorithm, the batch test control module can dynamically allocate test resources to ensure that each gateway device executes the corresponding test task at the right time.
[0135] In step S4, the corresponding test script is called according to the scheduled test task, and the test task is executed by the automated execution module. The test script is a pre-implanted automated script file for specific test operations. It is understandable that the test script needs to cover the different functions and performance characteristics of each gateway device, including but not limited to network connection test, data transmission test, interface stability test, etc. After receiving the test task, the automated execution module will step by step execute each test according to the test script and record the key data during the test. These automated operations not only reduce the need for manual intervention, but also ensure the objectivity and repeatability of the test results through consistent test steps.
[0136] Furthermore, in step S5, the data acquisition module collects the operating status data of each gateway device in real time during the test. It is understandable that the operating status data includes multiple aspects such as the performance indicators, log information, and error reports of the device. These data provide an important basis for evaluating the overall function and performance of the gateway device. The data acquisition module ensures that real-time data can be accurately and timely reported to the control center through an efficient data acquisition and transmission mechanism. By using high-precision sensors and acquisition tools, the data acquisition module can capture various detailed information during the dynamic test process and provide rich raw data for subsequent analysis.
[0137] Further, in step S6, after the test is completed, the report generation module generates a test report based on the collected operating status data. It should be understood that the test report is an important document that comprehensively reflects the test results of the gateway device. The report generation module first comprehensively analyzes and processes the operating status data, including data cleaning, statistical analysis, and trend analysis. Then, according to the pre-set report template, the report generation module integrates various types of data and analysis results to generate a structured and easy-to-read test report. The test report usually includes test overview, detailed data analysis, key findings, recommended improvement measures, etc., providing a scientific and detailed reference for technicians and decision makers.
[0138] The benefit of this embodiment is that, through systematic step arrangement and modular design, the gateway batch testing method realizes efficient control of simultaneous testing of multiple devices. Through the identity authentication step, it ensures that the devices participating in the test are legal and reliable; through the generation and scheduling of test tasks, it ensures that the test coverage is comprehensive and the execution is efficient; through automated execution and data collection, the test process is accurate and controllable; and finally, through the report generation module, a detailed and structured test result display is provided. Each step is closely connected to form a complete test closed loop.
[0139] Through this embodiment, not only the efficiency and accuracy of batch testing of gateway devices are significantly improved, but also a solid foundation is laid for future large-scale equipment testing and performance evaluation. The modular design and flexibility of this method also enable it to adapt to changing technical requirements and application scenarios, providing long-term technical support and guarantee for network equipment testing. In addition, from the perspective of practical operation, this method greatly reduces the workload of testers and reduces testing costs through automation and intelligent means, providing greater value for enterprises in network equipment management and maintenance.
[0140] Embodiment 8
[0141] Furthermore, the test method implements batch testing of multiple gateway devices by deploying multi-threading or parallel processing technology. Specifically, multiple test tasks T are assigned to N threads, and the tasks processed by each thread are Where i is the gateway device number;
[0142] The instruction of the test task generated by the test task generation module is Ci, and the number of the corresponding gateway device is Di. The test task sent to the gateway device is expressed as:
[0143] Mi=f(Ci,Di,Ei), where:
[0144] Mi represents the test task sent to the i-th gateway device, f represents the instruction generation function, and Ei represents the test environment parameters.
[0145] According to the gateway batch testing method described in the above embodiment, batch testing of multiple gateway devices is achieved by deploying multi-threading or parallel processing technology. The specific implementation method includes that the test task T is assigned to N threads, each thread processes the task Ti=T / N, and sends the test task Mi=(Ci, Di, Ei) to the gateway device through the instruction Ci and the number Di. The possible corresponding implementation methods are described in detail as follows:
[0146] In actual operation, by deploying multi-threading or parallel processing technology, the batch testing method allocates multiple tasks T to N threads to achieve simultaneous testing of multiple gateway devices. After the test task generation module generates the test tasks, it is reasonably divided according to the number of threads N, and each thread is responsible for processing the test tasks of different gateway devices. This parallel processing method effectively improves the test efficiency and achieves the purpose of testing multiple devices at the same time.
[0147] Furthermore, according to the test task instruction Ci generated by the test task generation module and the corresponding gateway device number Di, a test task Mi = (Ci, Di, Ei) sent to the gateway device will be formed. Here, Ci represents a specific test instruction, Di represents the number of the corresponding gateway device, and Ei includes the test environment parameters. By combining this information to form the test task Mi, the system can accurately send the specified instruction to the corresponding gateway device and pass the environmental parameters required for the test.
[0148] It should be understood that the test task Mi sent in this way realizes the differentiated test requirements for different gateway devices. After receiving the corresponding task, each gateway device performs the corresponding function and performance test according to the test instruction Ci, and adapts the test environment according to the environmental parameter Ei to ensure the accuracy and reliability of the test results. By calling the instruction generation function f, the test task is connected to the communication of the specific gateway device, realizing the coordination of the task issuance and execution process.
[0149] During the implementation process, the system will distribute the generated multiple test tasks to each thread evenly according to the number of threads based on the principle of parallel processing of N threads, ensuring balanced execution of test tasks. This flexible task division method not only improves the overall efficiency of the test, but also reduces the system's demand for resources. At the same time, the i in the task Ti=T / N processed by each thread is the gateway device number, which realizes personalized testing requirements for different devices and enhances the pertinence and coverage of the test.
[0150] By deploying multi-threading or parallel processing technology, batch testing of multiple gateway devices is achieved, improving test efficiency and coverage. The entire test process is more intelligent and automated, and through reasonable task division and task distribution, efficient execution of test tasks and timely integration of data results are achieved. This implementation method not only simplifies the test process, but also improves the controllability and reliability of the test, providing important support for network equipment performance evaluation and problem diagnosis.
[0151] Through this embodiment, the batch testing method can better meet the needs of large-scale gateway device testing and improve the overall efficiency and reliability of the test. The application of parallel processing and multi-threading technology brings new possibilities for optimizing the test process and provides a more efficient and reliable solution for future network device testing. At the same time, this implementation method improves the distribution and coordination mechanism of test tasks and provides a more convenient and operable way for the management and monitoring of the batch testing process.
[0152] Embodiment 9
[0153] refer to Figures 7 to 10 As shown, step S1 further includes:
[0154] S11: managing the connection status with multiple gateway devices through a connection management unit;
[0155] S12: Count the response time of each gateway device and calculate the response time using the formula Rt=Tr-Ts, where:
[0156] Rt is the response time, Tr is the response timestamp, and Ts is the sending timestamp;
[0157] Calculate the data transfer rate using the formula Calculate the transmission rate, where:
[0158] Tp is the transmission rate, D is the amount of data transmitted, and t is the transmission time;
[0159] S13: After verification, each gateway device is initialized;
[0160] Step S4 further comprises:
[0161] S41: When executing a test task, a corresponding test script is called through a script execution engine;
[0162] S42: During the test, detect and handle any test anomalies;
[0163] Step S5 further comprises:
[0164] S51: Monitor and collect running status data of the gateway device through the data monitoring unit;
[0165] S52: Collecting and organizing log information of the gateway device through the log management unit;
[0166] Step S6 further comprises:
[0167] S61: Archiving the collected data through a data archiving unit;
[0168] S62: Selecting an appropriate report template through the report template management unit;
[0169] S63: Generate a test report based on the report template and the collected data through a report generation engine.
[0170] According to the gateway batch testing method described in the above-mentioned embodiment, this embodiment will elaborate on how to perform a comprehensive test on the gateway device through a series of specific steps.
[0171] Furthermore, in step S1, the connection status with multiple gateway devices is managed by the connection management unit. This unit is responsible for monitoring the stability of the connection to ensure that the communication with the gateway device is unimpeded during the test. At the same time, the response time of each gateway device is counted and the response time is calculated by the formula Rt=Tr-Ts, where Rt is the response time, Tr is the response timestamp, and Ts is the sending timestamp. In addition, the data transmission rate is calculated by the formula Calculate the transmission rate, where Tp is the transmission rate, D is the amount of data transmitted, and t is the transmission time. The calculation of these performance indicators provides an important basis for evaluating the performance of gateway devices.
[0172] Furthermore, after the verification is passed, each gateway device is initialized. The initialization process includes operations such as resetting device parameters and clearing cache data to ensure that the gateway device is in a standard state and provide consistent starting conditions for subsequent tests.
[0173] Further, in step S4, the corresponding test script is called by the script execution engine. The script execution engine is responsible for interpreting and executing the test script to ensure that the test task is carried out according to the predetermined steps. During the test process, any test exceptions are detected and handled to ensure the smooth progress of the test.
[0174] Furthermore, in step S5, the operation status data of the gateway device is monitored and collected by the data monitoring unit. The unit monitors the operation status of the gateway device in real time, including key indicators such as CPU usage, memory usage, network traffic, etc. At the same time, the log information of the gateway device is collected and sorted by the log management unit, which is crucial for analyzing test results and locating problems.
[0175] Further, in step S6, the collected data is archived by the data archiving unit. The archiving process includes the organization, storage and backup of data to ensure the security and traceability of the test data. The appropriate report template is selected by the report template management unit to meet different test scenarios and user needs. Finally, the report generation engine generates a test report based on the report template and the collected data. The report generation engine is responsible for integrating the data and analysis results into a structured report document to provide users with an intuitive display of test results.
[0176] Furthermore, by calling the test script through the script execution engine, the test task can be carried out according to the pre-planned steps, making the test process more automated and repeatable. It should be understood that the script execution engine can not only execute the predetermined test tasks, but also capture and handle abnormal situations that occur during the test to ensure the integrity and accuracy of the test. Timely detection and handling of test anomalies avoids the omission of potential problems and enhances the robustness of the test system.
[0177] Furthermore, the data monitoring unit collects the running status data of the gateway device in real time, which helps to fully understand the performance of the device under different loads. This real-time monitoring can promptly discover bottlenecks in the operation of the device and provide data support for subsequent performance improvement. At the same time, the log information collected and organized by the log management unit can record the execution of each test step in detail, providing a detailed basis for problem cause analysis and troubleshooting.
[0178] Furthermore, in the data archiving stage, the data archiving unit will store and back up the collected test data in an orderly manner, ensuring the security and traceability of the data. Test reports for different test scenarios and user needs can be met through the selection of the report template management unit. This flexible report generation method enables end users to obtain the required test information according to specific needs. The test report generated by the report generation engine, combined with the report template and the actual collected data, not only improves the efficiency of report generation, but also ensures the standardization and specification of the report format.
[0179] Through this embodiment, the method of batch testing of the entire gateway is more systematic and scientific. The application of multi-threading and parallel processing technology makes batch testing of multiple gateway devices possible, greatly improving the test efficiency. At the same time, through refined data statistics and status monitoring, a comprehensive evaluation of device performance is achieved. The automation and intelligent characteristics of the test process significantly reduce the impact of human factors on the test results.
[0180] The advantage of this embodiment is that it has been carefully designed and optimized in many details, providing a comprehensive solution for batch testing of gateway devices. Through the organic combination of connection management, response time statistics, data transmission rate calculation, device initialization, script execution, exception handling, data monitoring, log management, data archiving and report generation, a complete test closed-loop system is formed. This systematic testing method not only improves the efficiency and accuracy of the test, but also provides a scientific basis and technical support for performance optimization and troubleshooting of the equipment.
[0181] Through this embodiment, not only efficient batch testing of multiple gateway devices is achieved, but also powerful tools and methods are provided for the development and maintenance of network equipment. The application of this method can significantly improve product quality, reduce testing and maintenance costs, and enhance the competitiveness of enterprises in the market. At the same time, the large amount of data and experience accumulated during the testing process also provides valuable reference for the innovation and improvement of future equipment.
[0182] Embodiment 10
[0183] A readable medium is provided, on which a computer readable program is stored, and when the readable program is executed by a computer, the above gateway batch testing method is implemented;
[0184] The computer readable program includes the following functional modules:
[0185] A connection and identity authentication module, used to implement step S1;
[0186] A test task generation module, used to implement step S2;
[0187] A test task processing module, used to implement steps S3 and S4;
[0188] A data acquisition module, used to implement step S5;
[0189] The report generation module is used to implement step S6.
[0190] This embodiment provides a readable medium on which a computer readable program is stored, and when the program is executed by a computer, batch testing of gateway devices can be implemented. Specifically, the computer readable program includes several functional modules, each module assumes different functions in the overall test process, and achieves seamless connection between steps to ensure the effectiveness of the test process and the accuracy of the data.
[0191] First, the connection and authentication module is responsible for implementing step S1. This functional module implements connection monitoring and status management for multiple gateway devices through the connection management unit to ensure that each device is in a normal connection state. This module also performs identity authentication operations to verify the legitimacy and authenticity of each gateway device to prevent unauthorized devices from participating in the test. Through this process, it can be ensured that the starting point of the test is unified and reliable.
[0192] Furthermore, the test task generation module implements the function of step S2, that is, formulating specific test tasks. The test task generation module generates a serialized test task list based on the preset test strategy and objectives. These tasks cover performance evaluation at all levels, including but not limited to functional testing, performance testing, security testing, etc. It should be understood that this module not only generates a task list based on the standard test plan, but also allows users to customize tasks on demand, providing flexibility and scalability.
[0193] The role of the test task processing module is to implement the execution and management of the generated test tasks through steps S3 and S4 during the test process. First, in step S3, the module ensures that the test tasks can be efficiently allocated to each gateway device, and uses parallel processing technology to improve the test efficiency. In step S4, the test task processing module schedules the script execution engine to call the corresponding test script to complete the specific test operation. At the same time, the module has real-time monitoring and exception handling functions to ensure that any abnormal situation in the test can be captured and resolved in time, thereby ensuring the continuity and stability of the entire test process.
[0194] The data acquisition module plays an important role in step S5. This module is responsible for real-time monitoring and collecting various operating status data of the gateway device, including key indicators such as response time, data transmission rate, and device logs. These data are not only the basis for evaluating device performance, but can also be used for fault location and cause analysis. It should be understood that the data acquisition module collects data in a regular and event-driven manner to ensure the integrity and timeliness of the data.
[0195] The report generation module implements the function of step S6. After the data collection is completed, the module organizes and analyzes the data and generates a structured test report. Through the data archiving unit, the collected data is archived and stored in a predetermined format to ensure the security and traceability of the data. The report template management unit provides a variety of preset report templates, and users can select a suitable template to generate a report according to their needs. The report generation engine combines the archived data with the selected template to generate a detailed test report, providing users with an intuitive display of test results and analysis conclusions.
[0196] The benefit of this embodiment is that, through the organic combination of various functional modules, a complete and efficient gateway batch testing system is formed. The connection and identity authentication module ensures the legitimacy and reliability of the test starting point, and the test task generation module provides a flexible task generation method to meet different test requirements. The task processing module efficiently allocates and executes test tasks during the test process, ensuring that the test process is smooth and abnormal situations are handled in a timely manner. The data acquisition module ensures the comprehensiveness and accuracy of the test data, and provides a reliable data basis for subsequent data analysis. Finally, the report generation module professionally processes and displays the collected data, allowing users to quickly understand and use the test results.
[0197] Through this embodiment, batch testing and system evaluation of gateway devices are realized, which not only improves the test efficiency, but also enhances the reliability and practicality of the test results. The method and system can be widely used in the development, testing and maintenance of various network devices, providing a scientific testing solution for the industry and promoting technological progress and industrial upgrading.
[0198] The beneficial effects of the present invention are specifically embodied in that the above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A gateway batch testing device, characterized in that: The testing device comprises: A connection module, used to simultaneously connect multiple gateway devices to be tested and provide an independent communication channel for each gateway device; A test task generation module is used to generate multiple test tasks according to preset test scenarios; A batch test control module, used to control the connection and initialization of multiple gateway devices and the scheduling of the test tasks; An automated execution module, configured to automatically execute the test task; A data acquisition module, used to collect test data of each gateway device during the execution of the test task; A report generating module is used to generate a test report based on the collected test data.
2. The gateway batch testing device according to claim 1, wherein: The batch test control module includes: A gateway device identity authentication unit, used to verify the legitimacy of the identity of each gateway device; A connection management unit, configured to manage and monitor the connection status between the connection module and the plurality of gateway devices; The planning and scheduling unit is used to schedule the test tasks to each of the gateway devices according to a predetermined test plan.
3. The gateway batch testing device according to claim 1, wherein: The automation execution module includes: Test script management unit, used to manage and store test scripts in different test scenarios; A script execution engine, configured to call the corresponding test script according to the test task to execute the test; The exception handling unit is used to detect and handle test exceptions during the test execution process.
4. The gateway batch testing device according to claim 1, wherein: The data acquisition module includes: A data monitoring unit, configured to monitor and collect the operating status data of the gateway device in real time; A log management unit, used to collect and organize log information of the gateway device during the test process; The statistical analysis unit is used to perform statistics and analysis on the test data.
5. The gateway batch testing device according to claim 1, wherein: The report generation module includes: A data archiving unit, configured to archive the test data; Report template management unit, used to manage different types of test report templates; A report generation engine is used to generate the test report according to the test report template and the test data.
6. The gateway batch testing device according to claim 2, characterized in that: The batch test control module is controlled by formula Calculate the test data transmission success rate, where: P is the success rate, Dr is the number of packets received, and Dt is the number of packets sent; The batch test control module further includes a comparison unit configured to compare the test result of each gateway device with a preset standard.
7. A gateway batch testing method, using the gateway batch testing device according to any one of claims 1 to 6, characterized in that: The test method comprises the following steps: Establishing connections with multiple gateway devices and verifying the legitimacy of the identities of each of the gateway devices; According to the preset test scenarios, the test task generation module generates multiple test tasks; The batch test control module dispatches the test tasks to the automation execution module; Calling a corresponding test script according to the test task, and executing the test task by the automation execution module; During the test, the data acquisition module collects the operating status data of each gateway device in real time; After the test is completed, the report generation module generates a test report based on the collected operating status data.
8. The gateway batch testing method according to claim 7, wherein: The test method implements batch testing of multiple gateway devices by deploying multi-threading or parallel processing technology, which is specifically implemented as follows: multiple test tasks T are assigned to N threads, and the tasks processed by each thread are Wherein i is the number of one of the gateway devices; The instruction of the test task is Ci, and the number of the corresponding gateway device is Di. Then the test task sent to the gateway device is expressed as: Mi=f(Ci,Di,Ei), where: Mi represents the test task sent to the i-th gateway device, f represents the instruction generation function, and Ei represents the test environment parameters.
9. The gateway batch testing method according to claim 7, wherein: The step of verifying the legitimacy of the identity of each gateway device includes: Managing the connection status between the connection module and the plurality of gateway devices through a connection management unit; The response time of each gateway device is counted and calculated using the formula Rt=Tr-Ts, where: Rt is the response time, Tr is the response timestamp, and Ts is the sending timestamp; Calculate the test data transmission rate by the formula Calculate the transmission rate, where: Tp is the transmission rate, D is the amount of data transmitted, and t is the transmission time; After the verification is passed, initializing each of the gateway devices; The steps of the automated execution module executing the test task include: When executing the test task, calling the corresponding test script through the script execution engine; During the testing process, detect and handle any test anomalies; The step of the data acquisition module collecting the operating status data of each gateway device in real time includes: Monitoring and collecting the operating status data through a data monitoring unit; Collecting and organizing log information of the gateway device through a log management unit; The step of the report generating module generating a test report based on the collected operating status data includes: Archiving the collected operating status data through a data archiving unit; Select the appropriate report template through the Report Template Management Unit; A test report is generated by a report generation engine based on the report template and the collected operating status data.
10. A computer-readable medium having a computer-readable program stored thereon, characterized in that: When the readable program is executed by a computer, the gateway batch testing method according to any one of claims 8 to 9 is implemented.
