Network testing method and mobile terminal
By integrating multiple testing functions and flexible configuration capabilities on mobile terminals, the existing network testing tools are solved incomplete coverage and insufficient flexibility in test scenarios, and efficient and accurate network testing results are achieved.
Patent Information
- Application Number
- CN202411064209.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-12
AI Technical Summary
Existing network testing tools have incomplete coverage of test scenarios and are not flexible enough to complete the testing work of all businesses in a single scenario on one tool, resulting in inefficient testing process and inaccurate results.
By encapsulating the test service, forming a business test capability interface, configuring different test scenarios, and integrating them into the unified test portal of the mobile terminal, providing functions such as signal, rate, web page, video and ping test, and supporting flexible configuration of test scenarios and parameters. Achieve full coverage and personalized configuration of testing services.
It realizes that all network testing tasks are completed on a mobile terminal, improves on-site testing efficiency, reduces coordination and communication work, ensures the authenticity and accuracy of test results, and reduces test omissions and insufficient business situations.
Smart Images

Figure CN118945091A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network testing, and in particular to a network testing method and a mobile terminal. Background Art
[0002] Network testing is an important part of daily wireless network maintenance in many scenarios such as subways and roads. The original network testing tools are numerous and scattered, and the coverage of services in the test scenarios is incomplete. The testing process is not flexible and prone to omissions, and it is impossible to complete the testing of all services in a single scenario with one tool. Summary of the invention
[0003] 1. Technical issues to be resolved
[0004] In order to solve the above problems in the prior art, the present invention provides a network testing method and a mobile terminal, which solve the problem that network testing tools do not cover all services and are not flexible enough.
[0005] (II) Technical solution
[0006] In order to achieve the above object, in a first aspect, the technical solution adopted by the present invention is: a network testing method, comprising:
[0007] S1. Package test services to form service test capability interfaces and configure different test scenarios.
[0008] S2. According to the business requirements of the test scenario, the required business test capability interface is applied to the corresponding test scenario;
[0009] S3. Integrate each test scenario into a unified test portal of a terminal and display it in the form of a page.
[0010] As described above, its beneficial effect is that the method of the present invention can be integrated on a mobile terminal, and only one mobile phone is needed to complete the test task. Compared with the traditional computer + mobile phone + GPS test method, it greatly improves the efficiency of on-site testing, avoids the difficulties in test coordination in some residential areas, shopping malls, etc. to a large extent, and greatly reduces the coordination and communication work on the front line. In addition, different test scenarios are uniformly integrated into a mobile terminal. The test scenario can configure the corresponding service test capability interface based on its needs to ensure the comprehensive coverage of the test service of the test scenario, and can complete the testing of all services in a single scenario under one tool, effectively reducing the omission of test services and insufficient test scenarios, and improving the true accuracy of network test results.
[0011] Preferably, the testing service includes:
[0012] Signal test: obtain the current signal strength, signal quality and network standard of the mobile terminal, and obtain the base station information to which the mobile terminal is connected;
[0013] Rate test: Based on the mobile terminal, multi-threaded FTP is connected, and upload and download operations are performed to calculate the rate information of upload and download operations;
[0014] Web page test: By simulating HTTP requests, the time interval from sending an HTTP request to receiving the first returned data packet is recorded, and the data transmission rate during page loading is recorded, as well as the total time required for the page to be fully loaded;
[0015] Video test: record the time interval from the user's request to play a video to the start of the first frame of the video, monitor the freeze phenomenon caused by network problems or insufficient device performance during video playback, record the duration and number of freezes, and monitor the download rate of video data in real time;
[0016] Ping test: records the time interval from sending a request to receiving a response, including one-way and round-trip delays, counts the number of data packets lost during the test, and calculates the download rate by continuously sending data packets and calculating the number of data packets received per unit time.
[0017] As mentioned above, the above testing services can ensure the comprehensiveness of the testing.
[0018] Preferably, after S3, the step further includes:
[0019] Based on specific business testing requirements, configure the test scenario in real time and select the corresponding business testing capability interface, and configure specific parameters of the business test, including test rounds, test duration and interval duration.
[0020] As mentioned above, traditional tools may have relatively fixed configurations of test services and specific parameters, and cannot flexibly respond to different test requirements. Corresponding test services can be configured based on specific business test requirements, achieving configuration decoupling of different test scenarios and different test services, and can flexibly adjust specific test parameters for flexible testing, achieving personalized configuration based on test requirements.
[0021] Preferably, the method further comprises: classifying the test logs of each test scenario based on the category of the test scenario, incorporating the test logs into a unified log entry, and displaying the test logs in the form of a page, wherein the test logs are integrated with upload, share, playback, share code and share function interfaces;
[0022] The upload function interface is used to upload the current local test log to the server;
[0023] The playback function interface is used to playback the network test process of the current test log;
[0024] The sharing function interface is used to share the current test log with other mobile terminals;
[0025] The sharing code function interface is used to import the test logs shared by other mobile terminals to the local computer for viewing.
[0026] As mentioned above, the test logs can be categorized and viewed based on the test scenarios, making it convenient for staff to browse and search the test logs. At the same time, upload, share, playback, share code and share functions are provided, which can facilitate online archiving, test review and test sharing.
[0027] Preferably, the test log is also integrated with a statistical function interface;
[0028] The statistical function interface is used to analyze the test logs and output comprehensive evaluations and test details of various business tests.
[0029] As mentioned above, the test logs can be analyzed based on the statistical function interface without the need for manual analysis and sorting, which greatly saves human resources.
[0030] In a second aspect, the technical solution adopted by the present invention is: a network test mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0031] S1. Package test services to form service test capability interfaces and configure different test scenarios.
[0032] S2. According to the business requirements of the test scenario, the required business test capability interface is applied to the corresponding test scenario;
[0033] S3. Integrate each test scenario into the unified test portal of the mobile terminal and display it in the form of a page.
[0034] As described above, its beneficial effect is that the method of the present invention can be integrated on a mobile terminal, and only one mobile phone is needed to complete the test task. Compared with the traditional computer + mobile phone + GPS test method, it greatly improves the efficiency of on-site testing, avoids the difficulties in test coordination in some residential areas, shopping malls, etc. to a large extent, and greatly reduces the coordination and communication work on the front line. In addition, different test scenarios are uniformly integrated into a mobile terminal. The test scenario can configure the corresponding service test capability interface based on its needs to ensure the comprehensive coverage of the test service of the test scenario, and can complete the testing of all services in a single scenario under one tool, effectively reducing the omission of test services and insufficient test scenarios, and improving the true accuracy of network test results.
[0035] Preferably, the testing service includes:
[0036] Signal test: obtain the current signal strength, signal quality and network standard of the mobile terminal, and obtain the base station information to which the mobile terminal is connected;
[0037] Rate test: Based on the mobile terminal, multi-threaded FTP is connected, and upload and download operations are performed to calculate the rate information of upload and download operations;
[0038] Web page test: By simulating HTTP requests, the time interval from sending an HTTP request to receiving the first returned data packet is recorded, and the data transmission rate during page loading is recorded, as well as the total time required for the page to be fully loaded;
[0039] Video test: record the time interval from the user's request to play a video to the start of the first frame of the video, monitor the freeze phenomenon caused by network problems or insufficient device performance during video playback, record the duration and number of freezes, and monitor the download rate of video data in real time;
[0040] Ping test: records the time interval from sending a request to receiving a response, including one-way and round-trip delays, counts the number of data packets lost during the test, and calculates the download rate by continuously sending data packets and calculating the number of data packets received per unit time.
[0041] As mentioned above, the above testing services can ensure the comprehensiveness of the testing.
[0042] Preferably, after S3, the step further includes:
[0043] Based on specific business testing requirements, configure the test scenario in real time and select the corresponding business testing capability interface, and configure specific parameters of the business test, including test rounds, test duration and interval duration.
[0044] As mentioned above, traditional tools may have relatively fixed configurations of test services and specific parameters, and cannot flexibly respond to different test requirements. Corresponding test services can be configured based on specific business test requirements, achieving configuration decoupling of different test scenarios and different test services, and can flexibly adjust specific test parameters for flexible testing, achieving personalized configuration based on test requirements.
[0045] Preferably, it also includes: classifying the test logs of each test scenario based on the category of the test scenario, incorporating them into a unified log entry, and displaying them in the form of a page, wherein the test logs are integrated with upload, sharing, playback, sharing code and sharing function interfaces;
[0046] The upload function interface is used to upload the current local test log to the server;
[0047] The playback function interface is used to playback the network test process of the current test log;
[0048] The sharing function interface is used to share the current test log with other mobile terminals;
[0049] The sharing code function interface is used to import the test logs shared by other mobile terminals to the local computer for viewing.
[0050] As mentioned above, the test logs can be categorized and viewed based on the test scenarios, making it convenient for staff to browse and search the test logs. At the same time, upload, share, playback, share code and share functions are provided, which can facilitate online archiving, test review and test sharing.
[0051] Preferably, the test log is also integrated with a statistical function interface;
[0052] The statistical function interface is used to analyze the test logs and output comprehensive evaluations and test details of various business tests.
[0053] As mentioned above, the test logs can be analyzed based on the statistical function interface without the need for manual analysis and sorting, which greatly saves human resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 A flow chart of a network testing method of the present invention;
[0055] Figure 2 A schematic diagram of the structure of a network test mobile terminal of the present invention;
[0056] Figure 3 This is a schematic diagram of overall parameter configuration of the test service in the test scenario in Example 1;
[0057] Figure 4 This is a schematic diagram of parameter configuration of a specific test service in the test scenario in Example 1;
[0058] Figure 5 This is a schematic diagram of the page for testing log entry in Example 1;
[0059] Figure 6 This is a schematic diagram of analyzing the test log through the statistical function interface in Example 1;
[0060] Figure 7 It is a schematic diagram of the test process in Example 1;
[0061] [Description of Reference Numerals]
[0062] 1. A network testing mobile terminal; 2. A memory; 3. A processor. DETAILED DESCRIPTION
[0063] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0064] Embodiment 1
[0065] Please refer to Figure 1 As shown, a network testing method includes:
[0066] S1. Encapsulate test services to form a service test capability interface and configure different test scenarios, including subway scenarios, road scenarios, and building scanning scenarios;
[0067] S2. According to the business requirements of the test scenario, the required business test capability interface is applied to the corresponding test scenario;
[0068] S3. Integrate each test scenario into the unified test portal of the mobile terminal and display it in the form of a page. Supported mobile terminal systems include Android, HarmonyOS and other systems.
[0069] Among them, the method of the present invention can be implemented in the form of SDK. Taking the Android platform as an example, considering the diversity of the Android platform, we will conduct in-depth research and adapt the API changes of different Android versions, as well as the customized features of various manufacturers. Through extensive testing and optimization, we ensure that our SDK runs stably on more than 90% of Android devices, including but not limited to the adaptation work of mainstream manufacturers such as Samsung, Xiaomi, and Huawei. In order to better integrate with upper-level applications, our SDK will provide a flexible configuration interface, allowing developers to adjust parameters such as data collection frequency and collection duration according to actual needs. This customization capability can meet the needs of data acquisition granularity in different application scenarios, thereby optimizing user experience and power consumption control.
[0070] The test service includes:
[0071] Signal test: Based on the system API of the mobile terminal, obtain the current signal strength (such as RSSI), signal quality (such as SINR) and network standard (such as LTE, 3G, 2G, etc.) of the mobile terminal;
[0072] Based on the system API of the mobile terminal, the base station information to which the mobile terminal is connected is obtained, including base station ID, location area code (LAC), cell ID (CID), etc. This information helps to accurately locate the user's location and supports positioning services and location-related application functions;
[0073] The above information is crucial for evaluating the quality of network connections, and supports customizing configuration data through the configuration interface, such as customizing the collection frequency and maximum duration, to meet the test requirements of different test scenarios;
[0074] Rate test: Based on the mobile terminal, multi-threaded FTP is connected, and upload and download operations are performed to calculate the rate information of upload and download operations. The operation process can refer to the following example:
[0075] 1) The mobile terminal initiates a dispatch request and obtains the speed measurement address;
[0076] 2) The mobile terminal simultaneously initiates 6 download requests to the node, which lasts for 15 seconds;
[0077] 3) The mobile terminal calculates the average download rate and peak rate;
[0078] 4) The mobile terminal simultaneously initiates 6 upload requests to the node, which lasts for 15 seconds;
[0079] 5) The mobile terminal calculates the average upload rate and peak rate;
[0080] 6) The mobile terminal calls the reporting interface to report the speed measurement results to the upper layer application;
[0081] In order to better integrate with upper-layer applications, a flexible configuration interface is provided, which can adjust the speed test server information, speed test package size, speed test duration and other information according to actual needs.
[0082] Web page test: By simulating HTTP requests, the time interval from sending an HTTP request to receiving the first returned data packet is recorded. This will include sub-items such as DNS resolution time, connection establishment time, and server response time to comprehensively evaluate the time performance of page loading;
[0083] The data transfer rate during page loading is recorded, usually expressed as the amount of data transferred per second (such as KB / s or MB / s). This can help evaluate the utilization of network bandwidth and its impact on loading speed.
[0084] Records the total time required for the page to be fully loaded, that is, the time interval from when the request is sent to when the last resource (such as an image, CSS file, etc.) is loaded, which reflects the page loading speed that the user ultimately perceives;
[0085] In order to better integrate with upper-layer applications, this test project provides a flexible configuration interface, which can adjust website information, test times, interval duration and other information according to actual needs;
[0086] Video test: records the time interval from when the user requests to play a video to when the first frame of the video starts playing, that is, the first play buffering time, which includes the time consumed by network requests, video loading, decoding, etc.
[0087] Monitor the freeze phenomenon caused by network problems or insufficient device performance during video playback, record the duration and number of freezes, and evaluate the playback smoothness and user experience;
[0088] Real-time monitoring of video data download rate, usually expressed as the amount of data transferred per second (such as KB / s or MB / s), which helps to evaluate network bandwidth utilization and its impact on video playback performance;
[0089] In order to better integrate with upper-level applications, this test project provides a flexible configuration interface that can adjust video information, test times, interval duration and other information according to actual needs.
[0090] Ping test: records the time interval from sending a request to receiving a response, including one-way and round-trip delays;
[0091] Count the number of packets lost during the test, usually expressed as a percentage;
[0092] The download rate is calculated by continuously sending data packets and counting the number of data packets received per unit time.
[0093] In order to better integrate with upper-layer applications, this test project provides a flexible configuration interface, which can adjust the ping test address, test times, interval duration and other information according to actual needs.
[0094] Wherein, after S3, the following steps are also included:
[0095] Traditional tools may not cover all possible test scenarios, resulting in missed tests or failure to capture real-world usage scenarios. Figure 3 As shown, the network test smart tool using the method of the present invention can realize the ability call of different test scenarios. For example, in different environments such as subways, roads, and building scanning, based on specific business test requirements, the test scenario is configured in real time and the corresponding business test capability interface is selected. Figure 4 As shown, the specific parameters of the service test are configured to simulate the real user experience, thereby improving the authenticity and accuracy of the test; the specific parameters include test rounds, test duration, and interval duration. For example, the test duration can be adjusted according to the degree of network congestion, or the priority of the test service can be adjusted according to the network characteristics of different regions, so as to better adapt to different test scenarios and needs. For example, when testing the road test scenario, the corresponding test service can be selected according to the service needs. Figure 4As shown, if the test service of the download test is set and the test download package size of the test service is configured, if the download time meets the "single test duration" each time and the download is not completed, or the download is completed within the "single test duration", it will pause for the full test interval time, and then start the download from the beginning again. Each "single test duration" is a small polling until the polling fills the "test duration"; if the single duration is unlimited, then each time the configured test package size is downloaded, the test interval pause is completed, and then the test continues from the beginning until the "test duration" is full; end or enter the next non-long test service test.
[0096] refer to Figure 7 As shown, after the selection is completed, the configured test business will be automatically executed. After the test is completed, it will automatically remind you whether to save the test log. It also supports manual termination of the test midway.
[0097] Through the above improvements, the smart test tool can significantly improve the accuracy of test results. Users can more comprehensively cover various network services and test scenarios to ensure that the test does not miss key test services and test scenarios. Flexible configuration capabilities also mean that real-world network usage can be better simulated, making test results more realistic and reliable.
[0098] It also includes: classifying the test logs of each test scenario based on the category of the test scenario, incorporating them into the unified log entry, and displaying them in the form of a page. The test log is integrated with upload, share, playback, share code and share function interfaces, refer to Figure 5 As shown, the above functional interface is displayed in the form of buttons on the page to facilitate user operation;
[0099] The upload function interface is used to upload the current local test log to the server;
[0100] The playback function interface is used to playback the network test process of the current test log;
[0101] The sharing function interface is used to share the current test log with other mobile terminals;
[0102] The sharing code function interface is used to import the test logs shared by other mobile terminals to the local computer for viewing.
[0103] Wherein, the test log is also integrated with a statistical function interface;
[0104] refer to Figure 6 As shown, the statistical function interface is used to analyze the test logs and output comprehensive evaluations and test details of various business tests.
[0105] Embodiment 2
[0106] Please refer to Figure 2 A network testing mobile terminal 1 includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, the steps in the first embodiment are implemented.
[0107] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A network testing method, characterized in that: include: S1. Package test services to form service test capability interfaces and configure different test scenarios. S2. According to the business requirements of the test scenario, the required business test capability interface is applied to the corresponding test scenario; S3. Integrate each test scenario into the unified test portal of the mobile terminal and display it in the form of a page.
2. The network testing method according to claim 1, characterized in that: The testing services include: Signal test: obtain the current signal strength, signal quality and network standard of the mobile terminal, and obtain the base station information to which the mobile terminal is connected; Rate test: Based on the mobile terminal, multi-threaded FTP is connected, and upload and download operations are performed to calculate the rate information of upload and download operations; Web page test: By simulating HTTP requests, the time interval from sending an HTTP request to receiving the first returned data packet is recorded, and the data transmission rate during page loading is recorded, as well as the total time required for the page to be fully loaded; Video test: record the time interval from the user's request to play a video to the start of the first frame of the video, monitor the freeze phenomenon caused by network problems or insufficient device performance during video playback, record the duration and number of freezes, and monitor the download rate of video data in real time; Ping test: records the time interval from sending a request to receiving a response, including one-way and round-trip delays, counts the number of data packets lost during the test, and calculates the download rate by continuously sending data packets and calculating the number of data packets received per unit time.
3. The network testing method according to claim 1, characterized in that: The S3 also includes: Based on specific business testing requirements, configure the test scenario in real time and select the corresponding business testing capability interface, and configure specific parameters of the business test, including test rounds, test duration and interval duration.
4. The network testing method according to claim 1, characterized in that: Also includes: The test logs of each test scenario are classified based on the category of the test scenario, incorporated into the unified log entry, and displayed in the form of a page, and the test log is integrated with upload, share, playback, share code and share function interfaces; The upload function interface is used to upload the current local test log to the server; The playback function interface is used to playback the network test process of the current test log; The sharing function interface is used to share the current test log with other mobile terminals; The sharing code function interface is used to import the test logs shared by other mobile terminals to the local computer for viewing.
5. The network testing method according to claim 4, characterized in that: The test log is also integrated with a statistical function interface; The statistical function interface is used to analyze the test logs and output comprehensive evaluations and test details of various business tests.
6. A network test mobile terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: S1. Package test services to form service test capability interfaces and configure different test scenarios. S2. According to the business requirements of the test scenario, the required business test capability interface is applied to the corresponding test scenario; S3. Integrate each test scenario into the unified test portal of the mobile terminal and display it in the form of a page.
7. The network testing mobile terminal according to claim 6, characterized in that: The testing services include: Signal test: obtain the current signal strength, signal quality and network standard of the mobile terminal, and obtain the base station information to which the mobile terminal is connected; Rate test: Based on the mobile terminal, multi-threaded FTP is connected, and upload and download operations are performed to calculate the rate information of upload and download operations; Web page test: By simulating HTTP requests, the time interval from sending an HTTP request to receiving the first returned data packet is recorded, and the data transmission rate during page loading is recorded, as well as the total time required for the page to be fully loaded; Video test: record the time interval from the user's request to play a video to the start of the first frame of the video, monitor the freeze phenomenon caused by network problems or insufficient device performance during video playback, record the duration and number of freezes, and monitor the download rate of video data in real time; Ping test: records the time interval from sending a request to receiving a response, including one-way and round-trip delays, counts the number of data packets lost during the test, and calculates the download rate by continuously sending data packets and calculating the number of data packets received per unit time.
8. The network testing mobile terminal according to claim 6, characterized in that: The S3 also includes: Based on specific business testing requirements, configure the test scenario in real time and select the corresponding business testing capability interface, and configure specific parameters of the business test, including test rounds, test duration and interval duration.
9. The network testing mobile terminal according to claim 6, characterized in that: Also includes: The test logs of each test scenario are classified based on the category of the test scenario, incorporated into the unified log entry, and displayed in the form of a page, and the test log is integrated with upload, share, playback, share code and share function interfaces; The upload function interface is used to upload the current local test log to the server; The playback function interface is used to playback the network test process of the current test log; The sharing function interface is used to share the current test log with other mobile terminals; The sharing code function interface is used to import the test logs shared by other mobile terminals to the local computer for viewing.
10. The network testing mobile terminal according to claim 9, characterized in that: The test log is also integrated with a statistical function interface; The statistical function interface is used to analyze the test logs and output comprehensive evaluations and test details of various business tests.
