Terminal testing method and device, equipment and storage medium
By establishing a test connection link between a simulated server and the target test terminal in the communication equipment, and using various simulation test protocols for automated data testing, the problems of incomplete test items and poor accuracy in existing technologies are solved, and efficient and accurate data performance evaluation is achieved.
Patent Information
- Application Number
- CN202511127238.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-12
- Publication Date
- 2025-11-18
AI Technical Summary
Existing data performance testing for communication equipment suffers from incomplete test items, requires manual recording of test results, and fails to accurately reflect equipment performance, resulting in low testing efficiency and poor accuracy.
By establishing a test connection link between the target test terminal and the simulation server, automated data testing is performed using various simulation test protocols to generate test report data. The data processing model is then used to automatically parse and generate the test report.
It enables stable and comprehensive testing of the data transmission performance of communication equipment, improving testing efficiency and accuracy.
Smart Images

Figure CN120979993A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal testing technology, specifically to a terminal testing method, apparatus, device, and storage medium. Background Technology
[0002] Currently, with the rapid development of internet technology and communication devices such as mobile phones, higher requirements have been placed on the data transmission performance of these devices. Therefore, manufacturers typically conduct data performance tests, such as forward link testing, to evaluate the data transmission performance of communication devices during production. However, existing data performance tests generally suffer from incomplete test items, require manual recording of test results, and fail to accurately reflect the data transmission performance of the communication device, resulting in low testing efficiency and poor accuracy. Summary of the Invention
[0003] This application provides a terminal testing method, apparatus, device, and storage medium, aiming to solve the technical problems of low data testing efficiency and poor testing accuracy in the prior art.
[0004] On one hand, embodiments of this application provide a terminal testing method, which includes the following steps:
[0005] In response to a terminal test request, establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server;
[0006] The target test terminal is tested according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data;
[0007] Test report data for the target test terminal is generated based on the test data of each terminal and the data processing model.
[0008] In one possible implementation of this application, establishing the test connection link between the target test terminal corresponding to the terminal test request and the simulation server includes:
[0009] Obtain the simulation test protocol corresponding to the terminal test request, and deploy a simulation server according to the simulation test protocol and the target test interface;
[0010] Obtain the target test terminal corresponding to the terminal test request, and establish a test connection link based on the target test interface of the simulation server and the target test.
[0011] In one possible implementation of this application, the simulation test protocol includes any one or more of a first test protocol, a second test protocol, and a third test protocol;
[0012] The first test protocol is a data test protocol used to control the simulation server and the target test terminal to perform hypertext transmission tests.
[0013] The second test protocol is a data test protocol used to control the bidirectional bandwidth test between the simulation server and the target test terminal;
[0014] The third test protocol is a data test protocol used to control the transmission status test between the simulation server and the target test terminal.
[0015] In one possible implementation of this application, the step of performing data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data includes:
[0016] Obtain the test configuration file associated with the target test terminal in the simulation test protocol, and load the test configuration file;
[0017] Based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test command, data tests are performed on the target test terminal to obtain terminal test data.
[0018] In one possible implementation of this application, the step of performing data testing on the target test terminal based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test instructions to obtain terminal test data includes:
[0019] According to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, the target test terminal is controlled to perform hypertext transmission test to obtain the first test data;
[0020] According to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, the target test terminal is controlled to perform bidirectional bandwidth testing to obtain the second test data;
[0021] According to the third test data packet and third test instruction corresponding to the third test protocol, and the test configuration file, the target test terminal is controlled to perform transmission status test to obtain the third test data;
[0022] Terminal test data is generated based on the first test data, the second test data, and the third test data.
[0023] In one possible implementation of this application, generating the test report data for the target test terminal based on the terminal test data and data processing model includes:
[0024] The terminal test data is processed according to the respective simulation test protocols to obtain the target test data;
[0025] Data processing is performed based on the data processing model and the target test data to obtain the test report data of the target test terminal.
[0026] In one possible implementation of this application, the step of processing data according to the data processing model and the target test data to obtain the test report data of the target test terminal includes:
[0027] Obtain the number of test cycles corresponding to the target test terminal;
[0028] If the number of test cycles exceeds the target number threshold, then test report data for the target test terminal is generated based on the data processing model and the target test data.
[0029] On the other hand, this application provides a terminal testing device, the terminal testing device comprising:
[0030] The test setup module is configured to respond to terminal test requests and establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server.
[0031] The terminal testing module is configured to perform data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link, and obtain terminal test data.
[0032] The result generation module is configured to generate test report data for the target test terminal based on the test data of each terminal and the data processing model.
[0033] On the other hand, this application also provides a terminal testing device, the terminal testing device comprising:
[0034] One or more processors;
[0035] Memory; and
[0036] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the terminal testing method.
[0037] On the other hand, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute the steps in the terminal testing method.
[0038] This application establishes a test connection link between the target test terminal and the simulation server in response to a terminal test request. Data testing is performed on the target test terminal according to the simulation server's simulation test protocol and the test connection link to obtain terminal test data. Test report data for the target test terminal is generated based on the terminal test data and a data processing model. This achieves the following: during data transmission testing on the terminal, a test connection link is established between the simulation server and the simulation server by configuring a simulation server that supports multiple simulation test protocols. Multiple automated tests are performed on the target test terminal using this test connection link and multiple simulation test protocols, obtaining terminal test data that ensures test stability, comprehensiveness, and improves test efficiency. Furthermore, after obtaining the terminal test data, the data processing model automatically parses the terminal test data and generates test report data to evaluate the data transmission performance of the target test terminal, thereby improving evaluation efficiency. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This is a schematic diagram of a scenario for the terminal testing method in an embodiment of this application;
[0041] Figure 2 This is a flowchart illustrating one embodiment of the terminal testing method in this application.
[0042] Figure 3 A flowchart illustrating an embodiment of the terminal testing method provided in this application for performing parallel testing;
[0043] Figure 4 A flowchart illustrating one embodiment of the terminal testing method for generating test report data provided in this application;
[0044] Figure 5 This is a schematic diagram of an embodiment of the terminal testing device provided in this application.
[0045] Figure 6 This is a schematic diagram of an embodiment of the terminal testing device provided in this application. Detailed Implementation
[0046] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0047] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0048] In this application, the term "exemplary" is used to mean "serving as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0049] Currently, with the rapid development of internet technology and communication devices such as mobile phones, higher requirements have been placed on the data transmission performance of these devices. Therefore, manufacturers typically conduct data performance tests, such as forward link testing, to evaluate the data transmission performance of communication devices during production. However, existing data performance tests generally suffer from incomplete test items, require manual recording of test results, and fail to accurately reflect the data transmission performance of the communication device, resulting in low testing efficiency and poor accuracy.
[0050] Based on this, this application proposes a terminal testing method, apparatus, device, and computer-readable storage medium to solve the technical problems of low data testing efficiency and poor testing accuracy in the prior art.
[0051] The terminal testing method in this embodiment of the invention is applied to a terminal testing device, which is set in a terminal testing equipment. The terminal testing equipment is equipped with one or more processors, a memory, and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the terminal testing method. The terminal testing equipment can be a smart terminal, such as a mobile phone, tablet computer, network device, and smart computer. Optionally, the terminal testing equipment can also be a server or a service cluster composed of multiple servers.
[0052] like Figure 1 As shown, Figure 1 This is a schematic diagram of a terminal testing method according to an embodiment of this application. The terminal testing scenario in this embodiment includes a terminal testing device 100 (which integrates a terminal testing apparatus), a simulation server 200, and a target test terminal 300. The terminal testing device 100 runs a computer-readable storage medium corresponding to the terminal testing method to execute the steps of the terminal testing method. The simulation server 200 is configured to communicate with the target test terminal 300 and the terminal testing device 100, and is a virtual server used to perform data transmission and reception tests on the target test terminal 300. The target test terminal 300 is a communication terminal device to be tested for data transmission.
[0053] Understandable, Figure 1 The terminal testing equipment in the terminal testing method scenario shown, or the devices included in the terminal testing equipment, do not constitute a limitation on the embodiments of the present invention. That is, the number or type of terminal testing equipment included in the terminal testing method scenario, or the number or type of devices included in each device, do not affect the overall implementation of the technical solution in the embodiments of the present invention, and can all be considered as equivalent substitutions or derivatives of the technical solutions claimed in the embodiments of the present invention.
[0054] In this embodiment of the invention, the terminal testing device 100 is mainly used for: responding to a terminal testing request and establishing a test connection link between the target testing terminal corresponding to the terminal testing request and the simulation server;
[0055] The target test terminal is tested according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data;
[0056] Test report data for the target test terminal is generated based on the test data of each terminal and the data processing model.
[0057] The terminal testing device 100 in this embodiment of the invention can be an independent terminal testing device, such as a mobile phone, tablet computer, network device, server and smart computer, or a terminal testing network or terminal testing cluster composed of multiple terminal testing devices.
[0058] This application provides a terminal testing method, apparatus, device, and computer-readable storage medium, which will be described in detail below.
[0059] It will be understood by those skilled in the art that Figure 1 The application environment shown is only one application scenario related to the solution of this application and does not constitute a limitation on the application scenario of this application. Other application environments may include more than one application scenario. Figure 1 The number of more or fewer terminal test devices shown, or the terminal test network connectivity, for example Figure 1 Only one terminal testing device is shown in the diagram. It is understood that the scenario of this terminal testing method may also include one or more terminal testing devices, which are not specifically limited here. The terminal testing device 100 may also include a memory for storing terminal test data, test report data and other data.
[0060] It should be noted that, Figure 1 The schematic diagram of the terminal testing method shown is merely an example. The scenarios of the terminal testing method described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention and do not constitute a limitation on the technical solutions provided in the embodiments of the present invention.
[0061] Based on the scenarios described above for terminal testing methods, various embodiments of the terminal testing methods disclosed in this invention are proposed.
[0062] like Figure 2 As shown, Figure 2 This is a flowchart illustrating one embodiment of the terminal testing method in this application. The terminal testing method includes the following steps 201 to 203:
[0063] 201. Respond to the terminal test request and establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server;
[0064] The terminal testing method in this embodiment is applied to a terminal testing device. The type and number of terminal testing devices are not specifically limited. That is, the terminal testing device can be one or more smart terminals or servers. In a specific embodiment, the terminal testing device is a smart computer used to control a simulation server to perform data transmission testing on the target test terminal.
[0065] Optionally, the simulation server is a server terminal that deploys multiple simulation test protocols in the data transmission test scenario, and communicates and interacts with the target test terminal based on the simulation test protocols to conduct data transmission tests. Optionally, the simulation server can be a cloud server or other type of server used for data transmission testing. The terminal test equipment uses this simulation server to perform automated data transmission tests on the target test terminal with large data volumes, high bandwidth, and long durations.
[0066] Optionally, the target test terminal is a smart terminal to be tested for data transmission or other tests to determine its performance. Optionally, in one specific embodiment, the target test terminal is a smart device capable of data transmission interaction, such as a mobile phone, tablet computer, smart wearable device, or virtual reality device (including VR, AR, and MR devices). Optionally, the terminal test request is a control event that controls the terminal test device to perform terminal testing on the target test terminal using a simulation server. The terminal test can be a test event for evaluating the data transmission performance of the target test terminal. Optionally, in one specific embodiment, the terminal test can be a data throughput performance test used in a forward link test to evaluate the device's data transmission performance. Optionally, in other specific embodiments, the terminal test can also be other types of test items; this embodiment does not specifically limit the types of tests.
[0067] Optionally, the test connection link is a communication connection link connecting the target test terminal and the simulation server, used for transmitting test data, test commands, or other test information during data transmission tests or other tests. Optionally, in one specific embodiment, the simulation server is equipped with a target test interface, through which a test connection link is established with the target test terminal. Optionally, the test connection link can be a wired connection link or a wireless connection link (e.g., a cellular connection link established by 3G / 4G / 5G cellular networks, a WiFi connection link, and a near-field communication link). For example, in one specific embodiment, the test connection link can be a wireless connection link established based on a cellular network.
[0068] Optionally, during operation, the terminal testing device receives the terminal test request. The triggering method for this terminal test request is not specifically limited here; that is, the terminal test request can be actively triggered by the user. For example, the user can actively trigger the terminal test request by selecting the test item button for the target test terminal on the corresponding test interface of the terminal testing device. Alternatively, the terminal test request can be automatically triggered by the terminal testing device. For example, the terminal testing device can automatically trigger the terminal test request after the target test terminal establishes a connection with the terminal testing device.
[0069] Optionally, the terminal testing device also obtains the terminal test item corresponding to the terminal test request, obtains the corresponding simulation test protocol based on the terminal test item, and deploys the simulation server based on the simulation test protocol and a preset simulation base station design. That is, the terminal testing device deploys the simulation server according to the target test interface corresponding to the simulation test protocol and the simulation base station design. In one specific embodiment, the simulation test protocol corresponding to the terminal test item includes any one or more of a first test protocol, a second test protocol, and a third test protocol.
[0070] Optionally, the terminal test equipment designs corresponding simulation test service modules according to different simulation test protocols, and connects each simulation test service module to the target test equipment through the target test interface.
[0071] The first test protocol is used to control the data testing protocol for hypertext transmission tests between the simulated server and the target test terminal. Optionally, in one specific embodiment, the first test protocol is an HTTP server test protocol. Optionally, the first test protocol may consist of a first test interface, a first test tool, and a proxy service module. The first test interface provides file upload and / or download interfaces for hypertext transmission tests, the first test tool sends standardized hypertext requests (GET / POST), and the proxy service module configures a reverse proxy to achieve load balancing and test routing requests. Optionally, in one specific embodiment, the first test interface may be a Python + FastAPI interface, the first test tool may be a Curl tool, and the proxy service module may be an Nginx + Post module. Optionally, in other embodiments, the first test protocol may also consist of other protocol modules capable of achieving the same functionality.
[0072] The second test protocol is used to control the bidirectional bandwidth testing between the simulated server and the target test terminal. Optionally, in one specific embodiment, the second test protocol is a UDP server test protocol. Optionally, the second test protocol includes a first protocol component and a first protocol testing tool. The first protocol component is used to deploy the corresponding second test protocol, and the first protocol testing tool is used to design test routes and test strategies to achieve bidirectional bandwidth testing of the target test traffic, thereby determining the transmission performance indicators such as throughput, latency, and packet loss corresponding to the test items. Optionally, in one specific embodiment, the first protocol component can be a Fedora+UDP component, and the first protocol testing tool can be the IPERF (Internet Performance Measurement Tool) protocol tool.
[0073] The third test protocol is a data test protocol used to control the transmission status test between the simulated server and the target test terminal. Optionally, in one specific embodiment, the third test protocol includes a second protocol component and a second protocol test tool, wherein the second protocol component is used to deploy the third test protocol, and the second protocol test tool is used to implement request / response information for the target test data and transmission status indicators such as response time or packet loss rate. Optionally, in one specific embodiment, the second protocol component is a Fedora+ICMP component for deploying the ICMP test protocol, and the second protocol test tool is a PING protocol tool.
[0074] Optionally, in other embodiments, the terminal testing device can also select other simulation test protocols according to other terminal test items requested by the terminal test.
[0075] Optionally, after obtaining the simulation test protocol, the terminal test device configures a simulation service module on the backend of a preset cloud server based on the corresponding protocol components in the simulation test protocol, and connects to the target test interface through the module interface of each simulation service module to obtain a simulation server.
[0076] Optionally, after deploying the simulation server, the terminal testing device further parses the terminal test request, determines the target test terminal to be tested for data transmission based on the device under test identifier corresponding to the terminal test request, and establishes a test connection link with the target test device according to the target test interface of the simulation server. Optionally, in a specific embodiment, the target test interface is a unified interface (Server API).
[0077] 202. Perform data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data;
[0078] Optionally, after establishing a test connection link between the simulation server and the target test device, the terminal test device performs data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data. That is, the terminal test device drives the simulation server to send simulation test data packets and simulation test commands corresponding to different terminal test items to the target test terminal through the simulation test protocol and the test connection link to perform data testing on the target test terminal and obtain terminal test data.
[0079] Optionally, after establishing a test connection link with the simulation server, the target test device obtains the test configuration file associated with the target test terminal in the simulation test protocol, and loads the test configuration file associated with the target test terminal from the simulation server during the target test device's runtime. This test configuration file is used to configure the configuration items corresponding to the data test items of each simulation test protocol. Optionally, in a specific embodiment, the test configuration file includes a test project configuration file (DUT), a reference test configuration file (REF), and a service configuration file. The service configuration file is the protocol configuration file corresponding to each simulation test protocol. Optionally, in a specific embodiment, the service configuration file can be an IPERF file, a CURL file, or other configuration files required for testing each simulation test protocol.
[0080] Optionally, the simulation test module corresponding to the simulation test protocol in the simulation server or the target test terminal drives the target test terminal to load the test configuration file through the test connection link. That is, after the simulation server determines the simulation test protocol and the corresponding terminal test module to be executed for the corresponding data test, it pushes the service configuration file corresponding to the simulation test protocol to the specified test target of the target test terminal for loading, so as to generate the terminal test environment of the target test terminal.
[0081] Optionally, after generating the terminal test environment for the target test terminal, the simulation server performs data testing on the target test terminal based on the test configuration file, the simulation test data packets and simulation test commands corresponding to the simulation test protocol, and obtains terminal test data. Specifically, the simulation server sends simulation test data packets and simulation test commands corresponding to the simulation test protocol to the target test terminal through the test configuration file to perform multi-threaded concurrent testing on the target test terminal, and determines the terminal data returned by the target test terminal after executing the simulation test commands as the terminal test data, and collects and transmits this terminal test data to the terminal test device. Note that the simulation test data packets and simulation test commands differ for different test protocols.
[0082] 203. Generate test report data for the target test terminal based on the test data of each terminal and the data processing model.
[0083] Optionally, after acquiring the terminal test data corresponding to the target test terminal and each simulated test protocol, the terminal test equipment generates test report data for the target test terminal based on the terminal test data and the data processing model.
[0084] Optionally, the data processing model is an artificial intelligence model used to receive terminal test data, perform data analysis on the terminal test data to obtain target test data, and generate test report data based on the target test data and a preset test report template. Optionally, in a specific embodiment, the data processing model can be a multimodal large model, which refers to an artificial neural network model with a very large number of parameters. In the field of artificial intelligence, a large model typically refers to a model with hundreds of millions to trillions of parameters. The model usually needs to be trained on a large-scale dataset and requires a large amount of computing resources for optimization and tuning. Large models are commonly used to solve complex multimodal tasks such as natural language processing, computer vision, and speech recognition.
[0085] In this embodiment of the application, the multimodal large-scale model can be DeepSeek, ChatGPT, BERT, XLNet, Zhipu model, Claude, Moonshot AI model, ChatGLM model, Tongyi Qianwen model, MiniMax model, Xinghuo model, Xingzhi model, Llama model, 360GPT model, Qwen model, Baichuan model, Yunque model, vivoLM model, and Wenxin Yiyan, etc., and this embodiment of the application does not limit it.
[0086] Optionally, the data processing model stores reference test data corresponding to different simulation test protocols. After obtaining the terminal test data and the corresponding report generation prompt, it processes the terminal test data according to the data processing strategy corresponding to the simulation test protocol to obtain target test data. The target test data is then compared with the reference test data to determine the simulation test result corresponding to the simulation test protocol. Finally, it generates test report data for the target test terminal according to a preset test report template. This test report data is a test report file containing the simulation test results of data transmission testing with the target test terminal. Optionally, in one specific embodiment, the test report file is an EXCEL format file; alternatively, in other embodiments, the test report data can be displayed in other file formats.
[0087] The target test data refers to the test data characterizing the data transmission performance of the target test terminal under different data test items. For example, in the corresponding embodiment of hypertext transmission and bidirectional bandwidth transmission test, the target test data can be the average data transmission rate in the corresponding single test process. In the corresponding embodiment of data transmission delay test, the target test data can be the target data item in the terminal test data corresponding to the transmission delay test data. In a specific embodiment, the target data item can be key data items characterizing the transmission status, such as round-trip time (RTT), data packet loss rate, data request status, and data response status.
[0088] In this embodiment, the terminal testing device establishes a test connection link between the target test terminal and the simulation server in response to a terminal test request. It then performs data testing on the target test terminal according to the simulation server's simulation test protocol and the test connection link, obtaining terminal test data. Based on the terminal test data and a data processing model, it generates test report data for the target test terminal. This achieves the following: during data transmission testing on the terminal, a test connection link is established between the simulation server and the simulation server by configuring a simulation server that supports multiple simulation test protocols. Through this test connection link and multiple simulation test protocols, various automated tests are performed on the target test terminal, obtaining terminal test data that ensures test stability, comprehensiveness, and improves test efficiency. Furthermore, after obtaining the terminal test data, the data processing model automatically parses the terminal test data and generates test report data, thereby achieving data transmission performance evaluation of the target test terminal and improving evaluation efficiency.
[0089] like Figure 3 As shown, Figure 3 This is a flowchart illustrating an embodiment of the terminal testing method provided in this application for parallel testing. Figure 3 In the illustrated embodiment, the terminal testing method includes steps 301 to 304:
[0090] 301. Control the target test terminal to perform hypertext transmission test according to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, to obtain the first test data;
[0091] 302. Control the target test terminal to perform bidirectional bandwidth testing according to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, to obtain the second test data;
[0092] 303. Control the target test terminal to perform transmission status testing according to the third test data packet and third test instruction corresponding to the third test protocol, and the test configuration file, to obtain the third test data;
[0093] 304. Generate terminal test data based on the first test data, the second test data, and the third test data.
[0094] Based on the above embodiments, in this embodiment, after generating the terminal test environment of the target test terminal, the simulation server performs data testing on the target test terminal based on the test configuration file, the simulation test data packet corresponding to the simulation test protocol, and the simulation test command, to obtain terminal test data. That is, the simulation server sends the simulation test data packet and simulation test command corresponding to the simulation test protocol to the target test terminal through the test configuration file to perform multi-threaded concurrent testing on the target test terminal, and determines the terminal data returned by the target test terminal when executing the simulation test command as the terminal test data, and collects the terminal test data and transmits it to the terminal test device.
[0095] Optionally, the data processing device drives the simulation server to control the target test terminal to perform hypertext transmission testing according to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, to obtain first test data. The first test data packet is a hypertext file used for hypertext transmission testing. The first test instruction is a test control instruction that drives the target test terminal to perform HTTP uplink and downlink transmission of the first test data packet to perform hypertext transmission testing. That is, the simulation server and the target test terminal configure the first test instruction corresponding to the hypertext transmission test based on the test configuration file, and control the target test device to perform hypertext transmission testing based on the first test instruction and the first test data packet to obtain first test data. The first test data consists of test parameters characterizing the hypertext transmission status of the first test data packet in the hypertext transmission test. In a specific embodiment, the first test data can be a status parameter characterizing the successful transmission of the first test data packet and a first test rate characterizing the transmission rate of the first test data packet in the hypertext transmission test.
[0096] Optionally, the data processing device further drives the simulation server in a multi-threaded parallel manner to control the target test terminal to perform bidirectional bandwidth testing according to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, to obtain second test data. The second test data packet is test traffic data used for bidirectional bandwidth testing. Optionally, in a specific embodiment, the second test data packet is UDP traffic. The second test instruction is a test instruction configured by the test configuration file that drives the target test terminal to perform bidirectional bandwidth testing. That is, the simulation server and the target test terminal configure the second test instruction corresponding to bidirectional bandwidth testing based on the test configuration file, and perform bidirectional bandwidth testing based on the second test instruction and second test data packet to drive the target test terminal to return test data corresponding to the bidirectional test bandwidth. Based on this test data, the second test data corresponding to the dual test bandwidth is determined, wherein the second test data is a data transmission indicator characterizing data throughput, test transmission rate, and test latency during the bidirectional bandwidth testing process.
[0097] Optionally, the data processing device also drives the simulation server in a multi-threaded parallel manner to control the target test terminal to perform transmission status testing according to the third test data packet and third test instruction corresponding to the third test protocol, and the test configuration file, to obtain third test data. The third test data packet is test data used for transmission status testing. Optionally, in a specific embodiment, the third test data packet is a RAW Socket data stream. The third test instruction is configured by the test configuration file to drive the target test terminal and the simulation server to perform transmission PING testing. That is, the simulation server and the target test terminal configure the third test instruction corresponding to the transmission status test based on the test configuration file, and perform transmission status testing based on the third test instruction and the third test data packet. Key data items in the process of the target test terminal returning test data during the transmission status test are detected to obtain the third test data. Optionally, in a specific embodiment, the third test data includes key data items characterizing the transmission status, such as round-trip time (RTT), data packet loss rate, data request status, and data response status.
[0098] Optionally, after obtaining the first test data, second test data, and third test data through multi-threaded parallel testing, the data processing device generates terminal test data based on the first test data, the second test data, and the third test data. That is, the data processing device receives the first test data, the second test data, and the third test data, organizes the first test data, the second test data, and the third test data to generate terminal test data, and generates test report data for the target test terminal based on each terminal test data and the data processing model.
[0099] In this embodiment, the data processing device drives the simulation server to control the target test terminal to perform hypertext transmission testing according to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, to obtain first test data; drives the simulation server to control the target test terminal to perform bidirectional bandwidth testing according to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, to obtain second test data; drives the simulation server to control the target test terminal to perform transmission status testing according to the third test data packet and third test instruction corresponding to the third test protocol, and the test configuration file, to obtain third test data; and generates terminal test data based on the first test data, the second test data, and the third test data. This multi-threaded parallel data transmission testing of the target test terminal ensures test stability, comprehensiveness, and improves test efficiency.
[0100] like Figure 4 As shown, Figure 4 A flowchart illustrating one embodiment of the terminal testing method for generating test report data provided in this application is shown below. Figure 4 In the illustrated embodiment, the terminal testing method further includes steps 401 to 402:
[0101] 401. Obtain the number of test cycles corresponding to the target test terminal;
[0102] 402. If the number of test cycles is greater than the target number threshold, then the test report data of the target test terminal is generated according to the data processing model and the target test data.
[0103] In this embodiment, after acquiring the terminal test data corresponding to the target test terminal and each simulated test protocol, the terminal testing device also detects the number of test loops for the target test terminal. This number of test loops represents the number of times each data test item for the target test terminal is executed. That is, the terminal testing device can perform multiple parallel data test items corresponding to each simulated test protocol on the target test terminal using multi-threaded parallel processing, thereby ensuring the accuracy of the test results and reducing the impact of data fluctuations.
[0104] Optionally, after obtaining the number of test cycles, the terminal testing device compares this number with a preset target number threshold to determine whether to terminate the corresponding data test item. Optionally, the target number threshold is a test threshold value used to control the start and stop of the corresponding data test item. Optionally, in one specific embodiment, the target number threshold is 20 times. In other embodiments, the target number threshold can be set to more or fewer test cycles according to actual testing needs; this embodiment does not impose specific limitations here.
[0105] Optionally, if the terminal testing device determines that the number of test cycles is less than the target number threshold, the terminal testing device continues to perform data transmission tests on the corresponding data test items on the target test terminal and obtains the target test data generated by the target test terminal during the test.
[0106] Optionally, if the terminal testing device determines that the number of test cycles is greater than the target number threshold, the terminal testing device will stop performing the corresponding data transmission test on the target test terminal and generate the test report data of the target test terminal based on the data processing model and the target test data.
[0107] In this embodiment, the terminal testing device obtains the number of test cycles corresponding to the target test terminal; if the number of test cycles is greater than a target threshold, it generates test report data for the target test terminal based on the data processing model and the target test data. This enables multiple rounds of cyclic testing on the target test terminal to improve the accuracy of the test results.
[0108] To better implement the terminal testing method in the embodiments of this application, based on the terminal testing method, the embodiments of this application also provide a terminal testing device, such as... Figure 5 As shown, Figure 5 This is a schematic diagram of one embodiment of the terminal testing device provided in this application. Specifically, the terminal testing device 500 includes:
[0109] Test establishment module 501 is configured to respond to terminal test requests and establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server;
[0110] The terminal testing module 502 is configured to perform data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link, and obtain terminal test data.
[0111] The result generation module 503 is configured to generate test report data for the target test terminal based on the test data of each terminal and the data processing model.
[0112] In one possible implementation of this embodiment, the terminal testing device establishes a test connection link between the target test terminal corresponding to the terminal test request and the simulation server, including:
[0113] Obtain the simulation test protocol corresponding to the terminal test request, and deploy a simulation server according to the simulation test protocol and the target test interface;
[0114] Obtain the target test terminal corresponding to the terminal test request, and establish a test connection link based on the target test interface of the simulation server and the target test.
[0115] In one possible implementation of this embodiment, the simulation test protocol of the terminal test device includes any one or more of the first test protocol, the second test protocol, and the third test protocol;
[0116] The first test protocol is a data test protocol used to control the simulation server and the target test terminal to perform hypertext transmission tests.
[0117] The second test protocol is a data test protocol used to control the bidirectional bandwidth test between the simulation server and the target test terminal;
[0118] The third test protocol is a data test protocol used to control the transmission status test between the simulation server and the target test terminal.
[0119] In one possible implementation of this embodiment, the terminal testing device performs data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data, including:
[0120] Obtain the test configuration file associated with the target test terminal in the simulation test protocol, and load the test configuration file;
[0121] Based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test command, data tests are performed on the target test terminal to obtain terminal test data.
[0122] In one possible implementation of this embodiment, the terminal testing device performs data testing on the target test terminal based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test command, to obtain terminal test data, including:
[0123] According to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, the target test terminal is controlled to perform hypertext transmission test to obtain the first test data;
[0124] According to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, the target test terminal is controlled to perform bidirectional bandwidth testing to obtain the second test data;
[0125] According to the third test data packet and third test instruction corresponding to the third test protocol, and the test configuration file, the target test terminal is controlled to perform transmission status test to obtain the third test data;
[0126] Terminal test data is generated based on the first test data, the second test data, and the third test data.
[0127] In one possible implementation of this embodiment, the terminal testing device generates test report data for the target test terminal based on the terminal test data and data processing model, including:
[0128] The terminal test data is processed according to the respective simulation test protocols to obtain the target test data;
[0129] Data processing is performed based on the data processing model and the target test data to obtain the test report data of the target test terminal.
[0130] In one possible implementation of this embodiment, the terminal testing device performs data processing based on the data processing model and the target test data to obtain test report data for the target test terminal, including:
[0131] Obtain the number of test cycles corresponding to the target test terminal;
[0132] If the number of test cycles exceeds the target number threshold, then test report data for the target test terminal is generated based on the data processing model and the target test data.
[0133] In this embodiment, the terminal testing device establishes a test connection link between the target test terminal and the simulation server in response to a terminal test request. It then performs data testing on the target test terminal according to the simulation server's simulation test protocol and the test connection link to obtain terminal test data. Based on the terminal test data and a data processing model, it generates test report data for the target test terminal. This achieves the following: during data transmission testing on the terminal, a test connection link is established between the simulation server and the simulation server, which supports multiple simulation test protocols. Through this test connection link and multiple simulation test protocols, various automated tests are performed on the target test terminal, resulting in terminal test data that ensures test stability, comprehensiveness, and improves test efficiency. Furthermore, after acquiring the terminal test data, the data processing model automatically parses the terminal test data and generates test report data to evaluate the data transmission performance of the target test terminal, thereby improving evaluation efficiency.
[0134] This invention also provides a terminal testing device, such as... Figure 6 As shown, Figure 6 This is a schematic diagram of one embodiment of the terminal testing device provided in this application.
[0135] The terminal testing equipment integrates any of the terminal testing devices provided in the embodiments of the present invention, and the terminal testing equipment includes:
[0136] One or more processors;
[0137] Memory; and
[0138] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor from the steps of the terminal testing method described in any of the embodiments of the above terminal testing method.
[0139] Specifically, the terminal testing equipment may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will understand that... Figure 6 The terminal test equipment structure shown does not constitute a limitation on the terminal test equipment. It may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0140] The processor 601 is the control center of the terminal testing equipment. It connects various parts of the terminal testing equipment via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 602, and by calling data stored in the memory 602, it performs various functions and processes data of the terminal testing equipment, thereby providing overall monitoring of the terminal testing equipment. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 601.
[0141] The memory 602 can be used to store software programs and modules. The processor 601 executes various functional applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created based on the use of the terminal testing device, etc. In addition, the memory 602 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 602 may also include a memory controller to provide the processor 601 with access to the memory 602.
[0142] The terminal testing equipment also includes a power supply 603 that supplies power to the various components. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 603 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0143] The terminal testing device may also include an input unit 604, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0144] Although not shown, the terminal testing device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 601 in the terminal testing device loads the executable files corresponding to the processes of one or more applications into the memory 602 according to the following instructions, and the processor 601 runs the applications stored in the memory 602 to realize various functions, as follows:
[0145] In response to a terminal test request, establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server;
[0146] The target test terminal is tested according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data;
[0147] Test report data for the target test terminal is generated based on the test data of each terminal and the data processing model.
[0148] Therefore, embodiments of the present invention provide a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), a disk, or an optical disk, etc. A computer program is stored thereon, which is loaded by a processor to execute the steps in any of the terminal testing methods provided in the embodiments of the present invention. For example, the computer program loaded by the processor can execute the following steps:
[0149] In response to a terminal test request, establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server;
[0150] The target test terminal is tested according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data;
[0151] Test report data for the target test terminal is generated based on the test data of each terminal and the data processing model.
[0152] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed descriptions of other embodiments above, which will not be repeated here.
[0153] In practice, each of the above units or structures can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units or structures, please refer to the previous method embodiments, which will not be repeated here.
[0154] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0155] The terminal testing method provided by the embodiments of this application has been described in detail above. Specific embodiments have been used to illustrate the principles and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A terminal testing method, characterized in that, The terminal testing method includes: In response to a terminal test request, establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server; The target test terminal is tested according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data; Test report data for the target test terminal is generated based on the test data of each terminal and the data processing model.
2. The terminal testing method according to claim 1, characterized in that, Establishing the test connection link between the target test terminal corresponding to the terminal test request and the simulation server includes: Obtain the simulation test protocol corresponding to the terminal test request, and deploy a simulation server according to the simulation test protocol and the target test interface; Obtain the target test terminal corresponding to the terminal test request, and establish a test connection link with the target test terminal based on the target test interface of the simulation server.
3. The terminal testing method according to claim 2, characterized in that, The simulation test protocol includes any one or more of the first test protocol, the second test protocol, and the third test protocol; The first test protocol is a data test protocol used to control the simulation server and the target test terminal to perform hypertext transmission tests. The second test protocol is a data test protocol used to control the bidirectional bandwidth test between the simulation server and the target test terminal; The third test protocol is a data test protocol used to control the transmission status test between the simulation server and the target test terminal.
4. The terminal testing method according to claim 1, characterized in that, The step of performing data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link to obtain terminal test data includes: Obtain the test configuration file associated with the target test terminal in the simulation test protocol; Based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test command, data tests are performed on the target test terminal to obtain terminal test data.
5. The terminal testing method according to claim 4, characterized in that, The method involves performing data testing on the target test terminal based on the test configuration file, the simulated test data packet corresponding to the simulated test protocol, and the simulated test instructions to obtain terminal test data, including: The simulation server is driven to control the target test terminal to perform hypertext transmission test according to the first test data packet and first test instruction corresponding to the first test protocol, and the test configuration file, so as to obtain the first test data; The simulation server is driven to control the target test terminal to perform bidirectional bandwidth testing according to the second test data packet and second test instruction corresponding to the second test protocol, and the test configuration file, so as to obtain the second test data; The simulation server is driven to control the target test terminal to perform transmission status testing according to the third test data packet and third test instruction corresponding to the third test protocol, as well as the test configuration file, to obtain the third test data; Terminal test data is generated based on the first test data, the second test data, and the third test data.
6. The terminal testing method according to claim 1, characterized in that, The generation of test report data for the target test terminal based on the test data of each terminal and the data processing model includes: The terminal test data is processed according to the respective simulation test protocols to obtain the target test data; Data processing is performed based on the data processing model and the target test data to obtain the test report data of the target test terminal.
7. The terminal testing method according to claim 6, characterized in that, The step of processing data according to the data processing model and the target test data to obtain the test report data of the target test terminal includes: Obtain the number of test cycles corresponding to the target test terminal; If the number of test cycles exceeds the target number threshold, then test report data for the target test terminal is generated based on the data processing model and the target test data.
8. A terminal testing device, characterized in that, The terminal testing device includes: The test setup module is configured to respond to terminal test requests and establish a test connection link between the target test terminal corresponding to the terminal test request and the simulation server. The terminal testing module is configured to perform data testing on the target test terminal according to the simulation test protocol of the simulation server and the test connection link, and obtain terminal test data. The result generation module is configured to generate test report data for the target test terminal based on the test data of each terminal and the data processing model.
9. A terminal testing device, characterized in that, The terminal testing equipment includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps of the terminal testing method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to execute the steps of the terminal testing method according to any one of claims 1 to 7.