Real-time monitoring method and system for automatic test of X86 tablet interface
By building intelligent test scripts and optimizing monitoring parameters, combined with CI/CD processes, the problem of inefficient real-time monitoring of traditional X86 tablet interface automation testing is solved, and efficient and stable automated testing and product quality control are achieved.
Patent Information
- Application Number
- CN202510247170.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-06-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The real-time monitoring of traditional X86 tablet interface automation test lacks intelligent analysis and adaptive adjustment capabilities, and cannot respond to changes in the test process in real time, resulting in inefficient testing.
By determining testing requirements, establishing test environments and network policies, building intelligent test scripts, optimizing test coverage efficiency, analyzing and monitoring adaptive parameters, and establishing CI/CD processes to achieve real-time monitoring and automated testing.
It improves the efficiency of automated testing of X86 tablet interfaces, ensures the stability of product quality, shortens the test cycle, reduces costs, and enhances market competitiveness.
Smart Images

Figure CN120179501A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a real-time monitoring method and system for automated testing of X86 tablet interfaces, belonging to the fields of software engineering and automated testing. Background Art
[0002] Real-time monitoring of automated testing of X86 tablet interfaces refers to the use of a series of technical means and tools to perform automated testing on various interfaces (such as USB, HDMI, Thunderbolt, Ethernet, Wi-Fi, Bluetooth, etc.) on X86 architecture tablets, and to track, record, and analyze test data in real time during the testing process to ensure that the functions and performance of the interfaces meet the expected standards. By implementing real-time monitoring of automated testing of X86 tablet interfaces, the testing efficiency can be greatly improved, the product launch time can be shortened, and the product quality can be ensured to meet the design requirements.
[0003] Traditional real-time monitoring of automated testing of X86 tablet interfaces usually relies on manually writing and executing test scripts, and monitors the interface performance by regularly checking and recording test results. This method often lacks flexibility and has obvious drawbacks: it does not have the ability of intelligent analysis and adaptive adjustment, and cannot respond to changes in the testing process in real time, resulting in low testing efficiency. Summary of the Invention
[0004] The present invention provides a real-time monitoring method and system for automated testing of X86 tablet interfaces, and its main purpose is to improve the automated testing efficiency of X86 tablet interfaces.
[0005] To achieve the above purpose, a real-time monitoring method for automated testing of X86 tablet interfaces provided by the present invention includes:[[]]
[0006] Determine the test requirements of the X86 tablet interface, and based on the test requirements, establish a test environment for the X86 tablet interface, where the test environment includes test hardware and test software, and configure the network policy of the test environment;
[0007] Under the network policy, establish a test script framework for the X86 tablet interface, calculate the modularization and extensibility coefficients of the test script framework, and when the modularization and extensibility coefficients simultaneously meet the preset modularization threshold and extensibility threshold, based on the test script framework, construct an intelligent test script for the X86 tablet interface;
[0008] Calculate the test coverage efficiency of the intelligent test script, optimize the intelligent test script based on the test coverage efficiency to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements;
[0009] According to the test requirements, calculate the test load of the test scenario. Based on the test load, analyze the monitoring adaptive parameters of the optimized intelligent test script. Through the monitoring adaptive parameters, construct a test monitoring network for the X86 tablet interface;
[0010] Establish a CI / CD process for the optimized intelligent test script, and use the optimized intelligent test script to test the X86 tablet interface under the test scenario according to the CI / CD process to obtain a test process. According to the test process, optimize the monitoring adaptive parameters of the test monitoring network to obtain test optimization monitoring parameters, and perform real-time monitoring of the X86 tablet interface automated test based on the test optimization monitoring parameters.
[0011] Optionally, configuring the network policy of the test environment includes:
[0012] Define the network policy requirements of the test environment;
[0013] According to the network policy requirements, determine the network topology of the test environment;
[0014] Based on the network topology, establish the hardware network and software network of the test environment;
[0015] Configure the network policy of the test environment through the hardware network and software network.
[0016] Optionally, establishing a test script framework for the X86 tablet interface under the network policy includes:
[0017] Under the network policy, establish a main script file for the X86 tablet interface;
[0018] Define the sub-script files of the main script file;
[0019] Mark the interface function points of the X86 tablet interface;
[0020] According to the interface function points, establish test cases for the X86 tablet interface;
[0021] According to the main script file, the sub-script files, and the test cases, establish a test script framework for the X86 tablet interface.
[0022] Optionally, calculating the modularity and extensibility coefficients of the test script framework includes:
[0023] Mark the framework modules of the test script framework;
[0024] Identify the number of external dependencies and the number of internal code lines of the framework modules;
[0025] Based on the number of external dependencies and the number of lines of internal code, calculate the modularity of the test script framework using the following formula:
[0026] MC = (1 / (1 + (∑(Dm / Sm))))
[0027] where MC represents the modularity of the test script framework, Dm represents the number of external dependencies, and Sm represents the number of lines of internal code;
[0028] Identify the amount of functionality required to add new functionality to the test script framework;
[0029] Based on the required amount of functionality, calculate the extensibility coefficient of the test script framework using the following formula:
[0030] EC = (1 / (1 + (∑(Wm / Om))))
[0031] where EC represents the extensibility coefficient of the test script framework, Wm represents the amount of functionality required to add new functionality to the test script framework, and Om represents the ideal amount of functionality required to add new functionality to the test script framework
[0032] Optionally, calculating the test coverage efficiency of the intelligent test script includes:
[0033] Obtain the test simulation execution data of the intelligent test script;
[0034] Determine the testable elements of the intelligent test script according to the test simulation execution data, where the testable elements include function points, lines of code, branches, and paths;
[0035] Define the test element weights of the testable elements;
[0036] Calculate the function point coverage, line of code coverage, branch coverage, and path coverage of the function points, lines of code, branches, and paths;
[0037] Calculate the test coverage efficiency of the intelligent test script using the following formula according to the function point coverage, line of code coverage, branch coverage, path coverage, and the test element weights:
[0038] TCE composite = ω1TCE fumction + ω2TCE line + ω3TCE branch + ω4TCE patth
[0039] where TCE composite represents the test coverage efficiency of the intelligent test script, TCE fumctionIndicates the function point coverage rate of the intelligent test script. ω1 represents the test element weight of the function point coverage rate, and TCE line Indicates the line coverage rate of the intelligent test script. ω2 represents the test element weight of the line coverage rate, and TCE branch Indicates the branch coverage rate of the intelligent test script. ω3 represents the test element weight of the branch coverage rate, and TCE path Indicates the path coverage rate of the intelligent test script. ω4 represents the test element weight of the path coverage rate.
[0040] Optionally, calculating the test load of the test scenario according to the test requirements includes:
[0041] Analyzing the scenario characteristics of the test scenario;
[0042] Defining the resource metrics of the test scenario based on the test requirements and the scenario characteristics;
[0043] Determining the load mode of the resource metrics;
[0044] Obtaining the load parameters in the load mode;
[0045] Calculating the test load of the test scenario based on the load parameters.
[0046] Optionally, calculating the test load of the test scenario based on the load parameters includes:
[0047] Serializing the load parameters to obtain serialized load parameters;
[0048] Determining the sequence reference parameter of the serialized load parameters;
[0049] Identifying the load parameter weight of the serialized load parameters;
[0050] Combining the serialized load parameters, the sequence reference parameter, and the load parameter weight, and calculating the test load of the test scenario using the following formula:
[0051]
[0052] where TestLoad(t) represents the test load at time t of the test scenario, R i (t) represents the i-th serialized load parameter at time t of the test scenario, represents the sequence reference parameter of the i-th serialized load parameter at time t of the test scenario, represents the load parameter weight of the i-th serialized load parameter of the test scenario, B represents the number of serialized load parameters, and i represents the i-th serialized load parameter.
[0053] Optionally, building the test monitoring network for the X86 tablet interface includes:
[0054] Defining the test monitoring metrics for the X86 tablet interface;
[0055] Determining the monitoring tools for the X86 tablet interface according to the test monitoring metrics;
[0056] Identifying the monitoring tool functional characteristics of the monitoring tools;
[0057] Building the network topology of the monitoring tools based on the monitoring tool functional characteristics;
[0058] Establishing the test monitoring network for the X86 tablet interface through the network topology.
[0059] Optionally, analyzing the monitoring adaptive parameters of the test monitoring network based on the test load includes:
[0060] Analyzing the test load characteristics of the test load;
[0061] Determining the monitoring adaptive metrics of the test monitoring network according to the test load characteristics;
[0062] Defining the expected response time of the monitoring adaptive metrics;
[0063] Collecting the no-load monitoring data of the test monitoring network;
[0064] Determining the monitoring adaptive parameters of the test monitoring network based on the expected response time and the no-load monitoring data.
[0065] To solve the above problems, the present invention also provides a real-time monitoring system for the automated test of the X86 tablet interface, and the system includes:
[0066] A network policy construction module, configured to determine the test requirements of the X86 tablet interface, establish the test environment of the X86 tablet interface based on the test requirements, where the test environment includes test hardware and test software, and configure the network policy of the test environment;
[0067] A test script construction module, configured to establish the test script framework of the X86 tablet interface under the network policy, calculate the modularity and extensibility coefficients of the test script framework, and when the modularity and extensibility coefficients simultaneously meet the preset modular threshold and extensibility threshold, build the intelligent test script of the X86 tablet interface based on the test script framework;
[0068] A test scenario construction module, which is used to calculate the test coverage efficiency of the intelligent test script, optimize the intelligent test script based on the test coverage efficiency to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements;
[0069] A monitoring network construction module, which is used to calculate the test load of the test scenario according to the test requirements, analyze the monitoring adaptive parameters of the optimized intelligent test script based on the test load, and construct a test monitoring network for the X86 tablet interface through the monitoring adaptive parameters;
[0070] An automated test monitoring module, which is used to establish a CI / CD process for the optimized intelligent test script, and use the optimized intelligent test script to test the X86 tablet interface in the test scenario according to the CI / CD process to obtain a test process. According to the test process, optimize the monitoring adaptive parameters of the test monitoring network to obtain test-optimized monitoring parameters, and perform real-time monitoring of the X86 tablet interface automated test based on the test-optimized monitoring parameters.
[0071] Compared with the problems in the background technology, firstly, the clarification of test requirements ensures the pertinence and effectiveness of test activities, avoiding resource waste. Secondly, the established network strategy and test environment fully consider the compatibility of hardware and software, providing a solid foundation for the smooth progress of automated testing. The modularization of the test script framework and the calculation of the extensibility coefficient make the test script more flexible, easy to maintain and upgrade, greatly improving the development efficiency. The application of the optimized intelligent test script significantly improves the test coverage efficiency, ensuring the comprehensiveness and accuracy of the test. The construction of the test scenario and the calculation of the test load make the test closer to the actual application scenario, enhancing the credibility of the test results. The analysis of the monitoring adaptive parameters and the construction of the test monitoring network realize the real-time monitoring of key performance indicators during the test process, effectively preventing potential performance problems. In addition, the establishment of the CI / CD process realizes the continuous integration and continuous deployment of the test script, shortening the test cycle and accelerating the product iteration speed. Finally, the real-time monitoring based on the test-optimized monitoring parameters not only improves the efficiency of the X86 tablet interface automated test, but also ensures the stability of product quality. The optimization of the entire test process saves a large amount of time and cost for the enterprise, enhances the market competitiveness, and brings a more reliable and high-quality product experience to users. Therefore, the present invention can improve the automated test efficiency of the X86 tablet interface. Description of the Drawings
[0072] Figure 1 It is a schematic flowchart of a real-time monitoring method for the automated test of the X86 tablet interface provided by an embodiment of the present invention;
[0073] Figure 2 The module schematic diagram of the real-time monitoring method for implementing the automated test of the X86 tablet interface provided by an embodiment of the present invention.
[0074] The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments and with reference to the accompanying drawings. Specific embodiments
[0075] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0076] An embodiment of the present application provides a real-time monitoring method for the automated test of the X86 tablet interface. The execution subject of the real-time monitoring method for the automated test of the X86 tablet interface includes, but is not limited to, at least one of electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the real-time monitoring method for the automated test of the X86 tablet interface can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to: a single server, a server cluster, a cloud server, or a cloud server cluster, etc.
[0077] Embodiment 1:
[0078] Refer to Figure 1 As shown, it is a flowchart of the real-time monitoring method for the automated test of the X86 tablet interface provided by an embodiment of the present invention. In this embodiment, the real-time monitoring method for the automated test of the X86 tablet interface includes:
[0079] S1. Determine the test requirements of the X86 tablet interface. Based on the test requirements, establish a test environment for the X86 tablet interface, where the test environment includes test hardware and test software, and configure the network policy of the test environment.
[0080] It should be explained that the X86 tablet interface refers to a physical interface or a software interface on an X86 architecture tablet computer for connecting external devices or communicating with other systems, and the test requirements refer to a detailed description of a series of test activities that need to be carried out to ensure that the X86 tablet interface can work properly according to the design specifications.
[0081] Based on the test requirements, establishing the test environment for the X86 tablet interface can create a complete X86 tablet interface test environment to ensure that the interface meets the predetermined test requirements. Among them, the test hardware refers to the physical devices used to perform physical connections, data transmissions, and verify the functions of the X86 tablet interface. This includes devices such as X86 tablets, USB devices, memory cards, monitors, etc. The test software refers to computer programs used to perform automated tests, performance evaluations, compatibility checks, and function verifications, including operating systems, drivers, performance testing tools, compatibility testing software, stability testing software, etc.
[0082] The network policy for configuring the test environment in the present invention can configure a network environment that is both secure and efficient to support the test requirements of the X86 tablet interface.
[0083] Specifically, the network policy for configuring the test environment includes:
[0084] Define the network policy requirements for the test environment;
[0085] According to the network policy requirements, determine the network topology of the test environment;
[0086] Based on the network topology, establish the hardware network and software network of the test environment;
[0087] Through the hardware network and software network, configure the network policy of the test environment.
[0088] Among them, the network policy requirements refer to the detailed regulations on network configuration and performance to meet the functional and security requirements of the test environment. The network topology refers to the physical and logical layout of devices in the network, including the connection methods between them. The hardware network refers to the network composed of a set of devices that form the physical layer of the network. The software network refers to the network of operating systems, application programs, and network services running on network devices. The network policy refers to a series of rules and configurations used to guide the behavior of the network to ensure the safe, reliable, and efficient operation of the network.
[0089] Optionally, determining the network topology of the test environment according to the network policy requirements can be determined through virtual local area network (VLAN) technology.
[0090] S2. Under the network policy, establish the test script framework for the X86 tablet interface, calculate the modularity and extensibility coefficients of the test script framework. When the modularity and extensibility coefficients simultaneously meet the preset modularity threshold and extensibility threshold, based on the test script framework, construct the intelligent test script for the X86 tablet interface.
[0091] Under the described network policy, establishing a test script framework for the X86 tablet interface can create an X86 tablet interface test script framework that meets the network policy requirements and ensure its effective execution of interface testing.
[0092] Specifically, establishing the test script framework for the X86 tablet interface under the described network policy includes:
[0093] Under the described network policy, establish the main script file for the X86 tablet interface;
[0094] Define the sub-script files of the main script file;
[0095] Mark the interface function points of the X86 tablet interface;
[0096] According to the interface function points, establish test cases for the X86 tablet interface;
[0097] According to the main script file, the sub-script files, and the test cases, establish the test script framework for the X86 tablet interface.
[0098] Among them, the main script file refers to the entry point of the test process, the sub-script file refers to an independent test script for a specific interface or function point, the interface function point refers to the specific functions that need to be tested on the X86 tablet, such as Wi-Fi connection, USB data transfer, Bluetooth pairing, etc., the test case refers to a set of operation steps designed to verify the correctness of a specific interface function point, and the test script framework refers to the structure and organization method of the entire test script, which combines the main script file, sub-script files, and test cases to form a complete automated test system.
[0099] Optionally, the sub-script files that define the main script file can be files such as test_wifi.py, test_usb.py, test_bluetooth.py, etc.
[0100] Calculating the modularity and extensibility coefficients of the test script framework of the present invention can determine the effect of the test script framework, thereby providing a basis for subsequent automated testing.
[0101] Specifically, calculating the modularity and extensibility coefficients of the test script framework includes:
[0102] Mark the framework modules of the test script framework;
[0103] Identify the number of external dependencies and the number of internal code lines of the framework module;
[0104] Based on the number of external dependencies and the number of lines of internal code, use the following formula to calculate the modularity of the test script framework:
[0105] MC = (1 / (1 + (∑(Dm / Sm))))
[0106] Where, MC represents the modularity of the test script framework, Dm represents the number of external dependencies, and Sm represents the number of lines of internal code;
[0107] Identify the amount of functionality required to add new functionality to the test script framework;
[0108] Based on the required amount of functionality, use the following formula to calculate the scalability coefficient of the test script framework:
[0109] EC = (1 / (1 + (∑(Wm / Om))))
[0110] Where, EC represents the scalability coefficient of the test script framework, Wm represents the amount of functionality required to add new functionality to the test script framework, and Om represents the ideal amount of functionality required to add new functionality to the test script framework.
[0111] Where, the framework module refers to an independent and reusable code unit in the test script framework, the number of external dependencies, and the number of lines of internal code refer to the number of lines of code implemented inside the framework module. The modularity is an indicator to measure the modular degree of the test script framework. The required amount of functionality refers to the amount of work required to add new functionality to the test script framework, including coding, testing, documentation writing, etc. The ideal required amount of functionality refers to the minimum amount of work required to add new functionality under the optimal situation. The scalability coefficient is an indicator to measure the scalability of the test script framework.
[0112] In the present invention, when the modularity and the scalability coefficient simultaneously meet the preset modularity threshold and scalability threshold, based on the test script framework, an intelligent test script for the X86 tablet interface can be constructed. An intelligent test script framework can be constructed, which can automatically execute test cases, collect test results, and provide feedback according to the test results. Such a framework helps to improve test efficiency and ensure product quality. Where, the modularity threshold is a preset standard or boundary for measuring the modular degree of a software system (in this example, the test script framework), and the scalability threshold is a standard or boundary for evaluating the scalability of a software system (in this example, the test script framework). The intelligent test script is an automated test script that can not only automatically execute test cases, but also perform some advanced operations, such as adaptive testing, data-based testing, predictive analysis, self-repair and optimization, etc.
[0113] S3. Calculate the test coverage efficiency of the intelligent test script. Based on the test coverage efficiency, optimize the intelligent test script to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements.
[0114] By calculating the test coverage efficiency of the intelligent test script, the present invention can optimize the functions of the intelligent test script in the later stage, thereby improving the test effect on the X86 tablet interface in the later stage.
[0115] Specifically, the calculation of the test coverage efficiency of the intelligent test script includes:
[0116] Obtain the test simulation execution data of the intelligent test script;
[0117] Determine the testable elements of the intelligent test script according to the test simulation execution data, where the testable elements include function points, lines of code, branches, and paths;
[0118] Define the test element weights of the testable elements;
[0119] Calculate the function point coverage rate, line of code coverage rate, branch coverage rate, and path coverage rate of the function points, lines of code, branches, and paths;
[0120] According to the function point coverage rate, line of code coverage rate, branch coverage rate, path coverage rate, and the test element weights, use the following formula to calculate the test coverage efficiency of the intelligent test script:
[0121] TCE composite = ω1TCE fumction + ω2TCE line + ω3TCE branch + ω4TCE path
[0122] Where, TCE composite represents the test coverage efficiency of the intelligent test script, TCE fumction represents the function point coverage rate of the intelligent test script, ω1 represents the test element weight of the function point coverage rate, TCE line represents the line of code coverage rate of the intelligent test script, ω2 represents the test element weight of the line of code coverage rate, TCE branch represents the branch coverage rate of the intelligent test script, ω3 represents the test element weight of the branch coverage rate, TCE path represents the path coverage rate of the intelligent test script, ω4 represents the test element weight of the path coverage rate.
[0123] Among them, the test simulation execution data refers to the data collected when executing a test script in a simulation environment, including the results of test script execution, the code parts covered, the execution time, etc. The function point refers to an independent function in the software. The line of code refers to each line in the source code, including executable code and comments. The branch refers to a decision point in the program, such as each branch in an if statement or a case statement. The path refers to the possible execution paths from the start to the end of the program. The test element weight refers to the importance or priority coefficient assigned to each testable element. The function point coverage rate refers to the ratio of the number of function points covered by the test script to the total number of function points. The line of code coverage rate refers to the ratio of the number of lines of code covered by the test script to the total number of lines of code. The branch coverage rate refers to the ratio of the number of branches covered by the test script to the total number of branches. The path coverage rate refers to the ratio of the number of paths covered by the test script to the total number of possible paths. The test coverage efficiency is used to measure the efficiency of the test script in covering different testable elements.
[0124] Based on the test coverage efficiency, the present invention optimizes the intelligent test script to obtain an optimized intelligent test script, which can have a higher test coverage efficiency. Among them, the optimized intelligent test script refers to a test script after a series of improvement and adjustment processes.
[0125] According to the test requirements, the present invention constructs test scenarios for the X86 tablet interface, which can construct a series of test scenarios for the X86 tablet interface. These scenarios can effectively verify the functions and performance of the interface, ensuring the stability and reliability of the product in actual use. Specifically, the test scenario refers to a set of specific conditions, operation steps, and expected results that simulate actual user operations or system running environments during the software testing process.
[0126] S4. According to the test requirements, calculate the test load of the test scenario, construct a test monitoring network for the X86 tablet interface, and analyze the monitoring adaptive parameters of the test monitoring network based on the test load.
[0127] According to the test requirements, the present invention calculates the test load of the test scenario, which can be used to evaluate the performance of the system under specific loads.
[0128] Specifically, calculating the test load of the test scenario according to the test requirements includes:
[0129] Analyze the scenario characteristics of the test scenario;
[0130] Based on the test requirements and the scenario characteristics, define the resource metrics of the test scenario;
[0131] Determine the load pattern of the resource metrics;
[0132] Obtain the load parameters under the load pattern;
[0133] Calculate the test load of the test scenario based on the load parameters.
[0134] Among them, the scenario features refer to the specific attributes and conditions of the test scenario, and the resource metrics refer to the various metrics used to measure the system performance, which reflect the resource consumption of the system when executing the test scenario. The resource metrics may include CPU usage, memory usage, disk I / O, network bandwidth, response time, transaction processing rate, etc. The load pattern refers to the type of load imposed on the system resources when the test scenario is executed, and the load parameters refer to the specific parameters defining the load pattern, such as the number of concurrent users, requests per second, data transfer rate, transaction size, etc. The test load refers to the pressure and consumption of the system resources generated by the test scenario during execution.
[0135] Furthermore, the calculating the test load of the test scenario based on the load parameters includes:
[0136] Serialize the load parameters to obtain serialized load parameters;
[0137] Determine the sequence reference parameter of the serialized load parameters;
[0138] Identify the load parameter weights of the serialized load parameters;
[0139] Combine the serialized load parameters, the sequence reference parameter, and the load parameter weights, and use the following formula to calculate the test load of the test scenario:
[0140]
[0141] Among them, TestLoad(t) represents the test load at time t of the test scenario, R i (t) represents the i-th serialized load parameter at time t of the test scenario, represents the sequence reference parameter of the i-th serialized load parameter at time t of the test scenario, represents the load parameter weight of the i-th serialized load parameter of the test scenario, B represents the number of serialized load parameters, and i represents the i-th serialized load parameter.
[0142] Among them, the serialized payload parameter refers to a sequence formed by arranging payload parameters in a certain order. The sequence reference parameter refers to the value of the serialized payload parameter under benchmark testing or normal operating conditions. The payload parameter weight indicates the importance of each serialized payload parameter in the overall test load. The test load refers to the comprehensive measurement of the consumption of system resources by the test scenario at a specific moment.
[0143] The test monitoring network for the X86 tablet interface constructed by the present invention can construct a test monitoring network that can automatically adjust monitoring parameters according to network status and performance requirements, thereby ensuring the stable testing of the X86 tablet interface.
[0144] Specifically, the construction of the test monitoring network for the X86 tablet interface includes:
[0145] Define the test monitoring metrics for the X86 tablet interface;
[0146] Determine the monitoring tools for the X86 tablet interface according to the test monitoring metrics;
[0147] Identify the monitoring tool function characteristics of the monitoring tools;
[0148] Based on the monitoring tool function characteristics, construct the network topology of the monitoring tools;
[0149] Through the network topology, establish the test monitoring network for the X86 tablet interface.
[0150] Among them, the test monitoring metrics refer to the specific parameters used to measure the performance and health status of the X86 tablet interface. The monitoring tools refer to the software or hardware used to collect and analyze the data of the above metrics. The monitoring tool function characteristics refer to the main functions and features provided by the monitoring tools. The network topology refers to the physical and logical layout of network devices. The test monitoring network refers to the network that configures and deploys monitoring tools according to the network topology to achieve continuous monitoring of the X86 tablet interface.
[0151] Optionally, the construction of the network topology of the monitoring tools based on the monitoring tool function characteristics can be constructed using a virtual local area network (VLAN).
[0152] Based on the test load, the analysis of the monitoring adaptive parameters of the test monitoring network by the present invention can ensure that the test monitoring network can adaptively adjust the monitoring parameters according to different test loads, thereby more effectively monitoring the network performance. Among them, the monitoring adaptive parameters refer to a series of parameters that the network monitoring system can automatically adjust in order to adapt to different network conditions, load changes, and performance requirements. The parameters include threshold adjustment, sampling frequency, alarm sensitivity, resource allocation, data retention policy, network path selection, and other parameters.
[0153] Specifically, analyzing the monitoring adaptation parameters of the test monitoring network based on the test load includes:
[0154] Analyzing the test load characteristics of the test load;
[0155] Determining the monitoring adaptation metrics of the test monitoring network according to the test load characteristics;
[0156] Defining the expected response time of the monitoring adaptation metrics;
[0157] Collecting the no-load monitoring data of the test monitoring network;
[0158] Determining the monitoring adaptation parameters of the test monitoring network based on the expected response time and the no-load monitoring data.
[0159] Among them, the test load characteristics refer to the specific attributes of the load applied to the X86 tablet interface during the test process, the monitoring adaptation metrics refer to the key performance metrics that need to be monitored to adapt to the test load characteristics, the expected response time refers to the target time for the monitoring system to recognize and respond to changes in the monitoring metrics, and the no-load monitoring data refers to the network performance data collected by the monitoring tool without any test load applied.
[0160] S5. Establish the CI / CD process for the optimized intelligent test script, and use the optimized intelligent test script to test the X86 tablet interface in the test scenario according to the CI / CD process to obtain a test process. According to the test process, optimize the monitoring adaptation parameters of the test monitoring network to obtain test-optimized monitoring parameters, and perform real-time monitoring of the X86 tablet interface automated test based on the test-optimized monitoring parameters.
[0161] The present invention can establish an automated CI / CD process for the optimized intelligent test script for the construction, testing, and deployment of the intelligent test script, thereby improving development efficiency and software quality. Among them, the CI / CD process refers to the practices and processes of continuous integration and continuous deployment or continuous delivery. The test process refers to a series of defined steps and operations used to execute the test script and verify the functions, performance, stability, and other key characteristics of the X86 tablet interface.
[0162] According to the test process, the present invention optimizes the monitoring adaptive parameters of the test monitoring network to obtain test-optimized monitoring parameters, which can ensure the optimization of the monitoring parameters of the test monitoring network, thereby improving the efficiency of the test process and the effectiveness of the monitoring system. Among them, the test-optimized monitoring parameters refer to the parameter set obtained by optimizing the monitoring adaptive parameters.
[0163] Compared with the problems described in the background art, first of all, the clarification of test requirements ensures the pertinence and effectiveness of test activities, avoiding resource waste. Secondly, the established network strategy and test environment fully consider the compatibility of hardware and software, providing a solid foundation for the smooth progress of automated testing. The modularization of the test script framework and the calculation of the extensibility coefficient make the test script more flexible, easy to maintain and upgrade, greatly improving the development efficiency. The optimization of the application of intelligent test scripts significantly improves the test coverage efficiency, ensuring the comprehensiveness and accuracy of the test. The construction of test scenarios and the calculation of test loads make the test closer to the actual application scenario, enhancing the credibility of test results. The analysis of monitoring adaptive parameters and the construction of the test monitoring network realize the real-time monitoring of key performance indicators during the test process, effectively preventing potential performance problems. In addition, the establishment of the CI / CD process realizes the continuous integration and continuous deployment of test scripts, shortening the test cycle and accelerating the product iteration speed. Finally, the real-time monitoring based on the test-optimized monitoring parameters not only improves the efficiency of X86 tablet interface automated testing, but also ensures the stability of product quality. The optimization of the entire test process saves a large amount of time and cost for the enterprise, enhances the market competitiveness, and brings a more reliable and high-quality product experience to users. Therefore, the present invention can improve the efficiency of X86 tablet interface automated testing.
[0164] Embodiment 2:
[0165] As Figure 2 shown, it is a functional module diagram of a real-time monitoring system for X86 tablet interface automated testing according to the present invention.
[0166] The real-time monitoring system 200 for X86 tablet interface automated testing according to the present invention can be installed in an electronic device. According to the functions realized, the real-time monitoring system for X86 tablet interface automated testing can include a network strategy construction module 201, a test script construction module 202, a test scenario construction module 203, a monitoring network construction module 204, and an automated test monitoring module 205. The modules in the present invention can also be referred to as units, which refer to a series of computer program segments that can be executed by the processor of an electronic device and can complete fixed functions, and are stored in the memory of the electronic device.
[0167] In the embodiment of the present invention, the functions of each module / unit are as follows:
[0168] The network policy construction module 201 is used to determine the test requirements of the X86 tablet interface, and based on the test requirements, establish a test environment for the X86 tablet interface, where the test environment includes test hardware and test software, and configure the network policy of the test environment;
[0169] The test script construction module 202 is used to establish a test script framework for the X86 tablet interface under the network policy, calculate the modularization and extensibility coefficients of the test script framework, and when the modularization and extensibility coefficients simultaneously meet the preset modularization threshold and extensibility threshold, construct an intelligent test script for the X86 tablet interface based on the test script framework;
[0170] The test scenario construction module 203 is used to calculate the test coverage efficiency of the intelligent test script, optimize the intelligent test script based on the test coverage efficiency to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements;
[0171] The monitoring network construction module 204 is used to calculate the test load of the test scenario according to the test requirements, analyze the monitoring adaptive parameters of the optimized intelligent test script based on the test load, and construct a test monitoring network for the X86 tablet interface through the monitoring adaptive parameters;
[0172] The automated test monitoring module 205 is used to establish a CI / CD process for the optimized intelligent test script, and use the optimized intelligent test script to test the X86 tablet interface under the test scenario according to the CI / CD process to obtain a test process, optimize the monitoring adaptive parameters of the test monitoring network according to the test process to obtain test-optimized monitoring parameters, and perform real-time monitoring of the X86 tablet interface automated test based on the test-optimized monitoring parameters.
[0173] Specifically, each module in the real-time monitoring system 200 for the X86 tablet interface automated test in the embodiment of the present invention adopts the same technical means as the Figure 1 real-time monitoring method for the X86 tablet interface automated test described above, and can produce the same technical effects, which will not be elaborated here.
[0174] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms.
[0175] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention.
Claims
1. A real-time monitoring method for automated testing of an X86 tablet interface, characterized in that: The method comprises: Determine the test requirements of the X86 flat panel interface, and based on the test requirements, establish a test environment for the X86 flat panel interface, wherein the test environment includes test hardware and test software, and configure a network policy for the test environment; Under the network strategy, a test script framework of the X86 flat panel interface is established, and the modularity and scalability coefficients of the test script framework are calculated. When the modularity and scalability coefficients simultaneously meet the preset modularity threshold and scalability threshold, an intelligent test script of the X86 flat panel interface is constructed based on the test script framework; Calculate the test coverage efficiency of the intelligent test script, optimize the intelligent test script based on the test coverage efficiency to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements; According to the test requirements, the test load of the test scenario is calculated, based on the test load, the monitoring adaptive parameters of the optimized intelligent test script are analyzed, and the test monitoring network of the X86 tablet interface is constructed through the monitoring adaptive parameters; A CI / CD process for the optimized intelligent test script is established, and the X86 tablet interface in the test scenario is tested using the optimized intelligent test script according to the CI / CD process to obtain a test process. According to the test process, the monitoring adaptive parameters of the test monitoring network are optimized to obtain test optimized monitoring parameters, and real-time monitoring of the X86 tablet interface automated test is performed based on the test optimized monitoring parameters.
2. The real-time monitoring method for automated testing of an X86 tablet interface as claimed in claim 1, characterized in that: The network policy for configuring the test environment includes: defining network policy requirements for the test environment; Determining the network topology of the test environment according to the network policy requirements; Based on the network topology, establish a hardware network and a software network of the test environment; The network policy of the test environment is configured through the hardware network and the software network.
3. The real-time monitoring method for automated testing of an X86 tablet interface as claimed in claim 2, characterized in that: The test script framework of the X86 flat panel interface is established under the network strategy, including: Under the network strategy, establish the main script file of the X86 tablet interface; Define a sub-script file of the main script file; Mark the interface function points of the X86 tablet interface; According to the interface function points, establish a test case for the X86 tablet interface; A test script framework for the X86 tablet interface is established based on the main script file, the sub-script file and the test case.
4. The real-time monitoring method for automated testing of an X86 tablet interface as claimed in claim 3, characterized in that: The calculating the modularity and extensibility coefficient of the test script framework includes: Marking a framework module of the test script framework; Identify the number of external dependencies and internal lines of code of the framework module; Based on the number of external dependencies and the number of internal code lines, the modularity of the test script framework is calculated using the following formula: MC=(1 / (1+(Σ(Dm / Sm)))) Among them, MC represents the modularity of the test script framework, Dm represents the number of external dependencies, and Sm represents the number of internal code lines; Identifying the required functionality of adding new functionality to the test script framework; Based on the required functionality, the scalability factor of the test script framework is calculated using the following formula: EC=(1 / (1+(∑(Wm / Om)))) Among them, EC represents the extensibility coefficient of the test script framework, Wm represents the required functional capacity of the test script framework to add new functions, and Om represents the ideal required functional capacity of the test script framework to add new functions.
5. The real-time monitoring method for the automated testing of the X86 flat panel interface according to claim 4, characterized in that: The calculating the test coverage efficiency of the intelligent test script includes: Obtaining test simulation execution data of the intelligent test script; Determine the testable elements of the intelligent test script according to the test simulation execution data, wherein the testable elements include function points, code lines, branches and paths; defining a test element weight for the testable element; Calculate the function point coverage, code line coverage, branch coverage and path coverage of the function points, code lines, branches and paths; According to the function point coverage, code line coverage, branch coverage, path coverage and the test element weight, the test coverage efficiency of the intelligent test script is calculated using the following formula: TCE composite =ω1TCE fumction +ω2TCE line +ω3TCE branch +ω4TCE path Among them, TCE composite Represents the test coverage efficiency of the intelligent test script, TCE fumction represents the function point coverage of the intelligent test script, ω1 represents the test element weight of the function point coverage, TCE line represents the code line coverage of the intelligent test script, ω2 represents the test element weight of the code line coverage, TCE branch represents the branch coverage of the intelligent test script, ω3 represents the test element weight of the branch coverage, TCE path represents the path coverage of the intelligent test script, and ω4 represents the test element weight of the path coverage.
6. The real-time monitoring method for automated testing of an X86 tablet interface as claimed in claim 5, characterized in that: The calculating the test load of the test scenario according to the test requirement includes: Analyzing scene characteristics of the test scene; Based on the test requirements and the scenario characteristics, define resource indicators for the test scenario; determining a load pattern of the resource indicator; Obtaining load parameters under the load mode; Based on the load parameters, a test load of the test scenario is calculated.
7. The real-time monitoring method for the automated testing of the X86 flat panel interface according to claim 6, characterized in that: The calculating the test load of the test scenario based on the load parameter includes: Serializing the load parameters to obtain serialized load parameters; Determining a sequence reference parameter of the serialized payload parameter; identifying a load parameter weight of the serialized load parameter; The test load of the test scenario is calculated using the following formula in combination with the serialized load parameter, the sequence reference parameter and the load parameter weight: Among them, RestLoad(t) represents the test load at time t of the test scenario, R i (t) represents the i-th serialized load parameter at time t in the test scenario, represents the sequence baseline parameter of the i-th serialized load parameter at time t in the test scenario, represents the load parameter weight of the i-th serialized load parameter in the test scenario, B represents the number of serialized load parameters, and i represents the i-th serialized load parameter.
8. The real-time monitoring method for the automated testing of the X86 tablet interface according to claim 7, characterized in that: The construction of the test monitoring network of the X86 flat panel interface includes: Defining test monitoring indicators of the X86 tablet interface; Determine a monitoring tool for the X86 tablet interface according to the test monitoring indicator; identifying monitoring tool functional characteristics of the monitoring tool; Based on the functional characteristics of the monitoring tool, construct a network topology of the monitoring tool; Through the network topology, a test monitoring network for the X86 flat panel interface is established.
9. The real-time monitoring method for automated testing of an X86 tablet interface as claimed in claim 8, characterized in that: The analyzing the monitoring adaptive parameters of the test monitoring network based on the test load includes: analyzing a test load characteristic of the test load; Determining a monitoring adaptive index of the test monitoring network according to the test load characteristics; Defining an expected response time for the monitoring adaptive indicator; Collecting no-load monitoring data of the test monitoring network; Based on the expected response time and the no-load monitoring data, monitoring adaptation parameters of the test monitoring network are determined.
10. A real-time monitoring system for automated testing of X86 tablet interfaces, characterized in that: The system comprises: A network policy building module, used to determine the test requirements of the X86 flat panel interface, and based on the test requirements, establish a test environment for the X86 flat panel interface, wherein the test environment includes test hardware and test software, and configure a network policy for the test environment; A test script construction module is used to establish a test script framework for the X86 flat panel interface under the network strategy, calculate the modularity and scalability coefficients of the test script framework, and when the modularity and scalability coefficients meet the preset modularity threshold and scalability threshold at the same time, construct an intelligent test script for the X86 flat panel interface based on the test script framework; A test scenario construction module, used to calculate the test coverage efficiency of the intelligent test script, optimize the intelligent test script based on the test coverage efficiency to obtain an optimized intelligent test script, and construct a test scenario for the X86 tablet interface according to the test requirements; A monitoring network construction module, used to calculate the test load of the test scenario according to the test requirements, analyze the monitoring adaptive parameters of the optimized intelligent test script based on the test load, and construct the test monitoring network of the X86 tablet interface through the monitoring adaptive parameters; The automated test monitoring module is used to establish the CI / CD process of the optimized intelligent test script, and use the optimized intelligent test script to test the X86 tablet interface in the test scenario according to the CI / CD process to obtain the test process, and according to the test process, optimize the monitoring adaptive parameters of the test monitoring network to obtain the test optimized monitoring parameters, and perform real-time monitoring of the automated test of the X86 tablet interface based on the test optimized monitoring parameters.