Wi-Fi stress testing method and device

By simulating manual operations in Wi-Fi stress tests to obtain test data and naming storage according to the number of tests and SSIDs, the problem of inaccurate Wi-Fi performance evaluation is solved, and the accuracy and data volume of evaluation is improved.

CN114780381BActive Publication Date: 2025-04-22HEFEI LONGQI INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210271187.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-18
Publication Date
2025-04-22
Estimated Expiration
2042-03-18

AI Technical Summary

Technical Problem

In Wi-Fi stress tests, multiple rounds of repeated tests result in the data from the last test being replaced, resulting in inaccurate Wi-Fi performance evaluation.

Method used

After the test device is connected to the first Wi-Fi, the control simulation program simulates manual operations, monitors the application response and obtains the test data, obtains the number of test times the test device on the first Wi-Fi, and names and stores the test data according to the SSID and the number of tests.

Benefits of technology

Ensure that the test data names obtained in each test are different, avoid data replacement, and improve the accuracy and data volume of Wi-Fi performance evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114780381B_ABST
    Figure CN114780381B_ABST
Patent Text Reader

Abstract

The present invention provides a Wi-Fi stress test method and device, including: after the test device is connected to Wi-Fi, controlling the simulation program to simulate manual operation to operate the application of the test device, and monitoring the operation of the application in response to the manual operation to obtain the test data corresponding to the Wi-Fi; obtaining the number of tests of the test device on the Wi-Fi; naming the test data according to the Wi-Fi service set identifier SSID and the number of tests, and storing the named test data. In the present invention, the Wi-Fi test data is named based on the number of Wi-Fi tests and the Wi-Fi SSID, so that the name of the test data obtained by each Wi-Fi test is different, so that the test data stored in the previous test will not be replaced when storing, which ensures the data volume of the Wi-Fi performance evaluation and improves the accuracy of the Wi-Fi performance evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to stress testing technology, and in particular to a Wi-Fi stress testing method and device. Background Art

[0002] A Wi-Fi (mobile hotspot) stress test is a test in which a Wi-Fi-connected test device runs the test software for a long time or with an extremely high load to test the performance of the Wi-Fi.

[0003] When Wi-Fi is stress tested, the test data obtained from the test needs to be stored. However, Wi-Fi stress testing requires multiple rounds of repeated tests. When storing the current test data, the test data stored in the previous test will be replaced, resulting in less test data for evaluating Wi-Fi performance, leading to inaccurate Wi-Fi performance evaluation. Summary of the invention

[0004] The present invention provides a Wi-Fi stress testing method and device, which are used to solve the problem of inaccurate performance evaluation of Wi-Fi.

[0005] In one aspect, the present invention provides a Wi-Fi stress test method, which is applied to a test device and includes:

[0006] After the test device is connected to a first Wi-Fi, controlling the simulation program to simulate a manual operation to operate an application of the test device, and monitoring the operation of the application in response to the manual operation to obtain test data corresponding to the first Wi-Fi;

[0007] Obtaining the number of tests performed by the test device on the first Wi-Fi;

[0008] The test data is named according to the service set identifier SSID of the first Wi-Fi and the test number, and the named test data is stored.

[0009] In one embodiment, the step of naming the test data according to the first Wi-Fi service set identifier SSID and the test number includes:

[0010] Obtain an index position of the SSID of the first Wi-Fi in the first document;

[0011] Acquire, in the first document, network connection information corresponding to the first Wi-Fi according to the index position, wherein the first document stores network connection information of a plurality of second Wi-Fis, the network connection information of the second Wi-Fi has a corresponding index position in the first document, and the first Wi-Fi is one of the second Wi-Fis;

[0012] The test data is named according to the network connection information corresponding to the first Wi-Fi and the test number.

[0013] In one embodiment, the step of obtaining the number of tests performed by the test device on the first Wi-Fi includes:

[0014] Obtaining the number of completions of the first Wi-Fi recorded in the second document, wherein the testing device updates the number of completions of the second Wi-Fi in the second document each time the testing device completes the test of the second Wi-Fi in the first document, and the second document records the number of completions of each second Wi-Fi in the first document;

[0015] The completion number is determined as the number of tests performed by the test device on the first Wi-Fi.

[0016] In one embodiment, the test data includes the number of freezes, signal strength, throughput, and ping value, and the step of monitoring the operation of the application in response to the manual operation to obtain the test data corresponding to the first Wi-Fi includes:

[0017] After the application responds to the manual operation, the number of video freezes is obtained according to the first thread, the signal strength and throughput of the first Wi-Fi are obtained according to the second thread, and the ping value is obtained according to the third thread, wherein the application includes a video playback application and a network diagnostic program, and the ping value is obtained by diagnosing a router corresponding to the first Wi-Fi according to the network diagnostic program.

[0018] In one embodiment, after the step of storing the named test data, the method further includes:

[0019] After completing the stress test on the first Wi-Fi, acquiring the test data stored in each test of the first Wi-Fi from a data table, wherein the named test data is stored in the data table;

[0020] Performing data screening on each of the test data based on a preset script to obtain target test data, wherein the target test data is performance data of the first Wi-Fi;

[0021] A test result of the first Wi-Fi is determined according to the target test data.

[0022] In one embodiment, the step of filtering each of the test data based on a preset script to obtain target test data includes:

[0023] Controlling the preset script to determine test data whose parameter values ​​are within a preset range as candidate test data;

[0024] The average value corresponding to the parameter values ​​belonging to the same type in each of the candidate test data is determined as the target test data.

[0025] In one embodiment, the test data further includes the number of connections, the number of disconnections, the total connection duration, the total disconnection duration, the connection time point, and the disconnection time point between the test device and the first Wi-Fi.

[0026] On the other hand, the present invention also provides a testing device, comprising:

[0027] A monitoring module, configured to monitor the operation of the application program in response to the manual operation after the test device is connected to the first Wi-Fi to obtain test data corresponding to the first Wi-Fi;

[0028] An acquisition module, used to acquire the number of tests performed by the test device on the first Wi-Fi;

[0029] A storage module is used to name the test data according to the service set identifier SSID of the first Wi-Fi and the test number, and store the named test data.

[0030] On the other hand, the present invention also provides a testing device, comprising: a memory and a processor;

[0031] The memory stores computer-executable instructions;

[0032] The processor executes the computer-executable instructions stored in the memory, so that the processor performs the Wi-Fi stress testing method as described above.

[0033] On the other hand, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the Wi-Fi stress testing method as described above.

[0034] The Wi-Fi stress test method and device provided by the present invention, after the test device is connected to the first Wi-Fi, controls the simulation program to simulate manual operation to operate the application in the test device, and monitors the operation of the application to obtain the test data corresponding to the first Wi-Fi, and then obtains the number of tests of the first Wi-Fi by the test device, so as to name the test data according to the first Wi-Fi and the number of tests, and then stores the named test data. In the present invention, the test data of Wi-Fi is named based on the number of tests of Wi-Fi and the SSID of Wi-Fi, so that the name of the test data obtained by each Wi-Fi test is different, therefore, when the test data obtained by the current test is stored, the test data stored in the previous test will not be replaced, thereby ensuring the data volume of Wi-Fi performance evaluation and improving the accuracy of Wi-Fi performance evaluation. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0036] Figure 1 A system architecture diagram of a Wi-Fi stress test method implemented by the present invention;

[0037] Figure 2 A schematic diagram of a flow chart of a first embodiment of a Wi-Fi stress testing method of the present invention;

[0038] Figure 3 This is a detailed flow chart of step S30 in the second embodiment of the Wi-Fi stress testing method of the present invention;

[0039] Figure 4 This is a detailed flow chart of step S20 in the third embodiment of the Wi-Fi stress testing method of the present invention;

[0040] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a Wi-Fi stress testing method of the present invention;

[0041] Figure 6 It is a module schematic diagram of the testing device of the present invention;

[0042] Figure 7 Schematic diagram of the hardware structure of the testing device of the present invention.

[0043] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0044] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0045] The present invention provides a Wi-Fi stress test method, which can be Figure 1 The system architecture diagram shown in the figure is implemented. Figure 1 As shown, the test device 100 is located in a communication environment including multiple Wi-Fi signals 200, each of which can be connected to the test device 100, and the test device 100 can perform Wi-Fi stress testing through the connected Wi-Fi signals 200, that is, by running the application in the test device 100, the test data of the application under the connected Wi-Fi signal 200 is obtained, and the test data is, for example, the throughput of the Wi-Fi signal 200, the jamming of the application (the network speed, packet loss rate, etc. of the Wi-Fi signal 200), and the Ping value of the router corresponding to the Wi-Fi signal 200. The test device can determine the performance of the Wi-Fi signal 200 by the test data obtained through multiple rounds of testing of the same Wi-Fi signal 200.

[0046] The following specific embodiments are used to describe in detail the technical solutions of the present invention and how the technical solutions of the present application solve the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0047] Reference Figure 2 , Figure 2 The first embodiment of the Wi-Fi stress testing method of the present invention includes the following steps:

[0048] Step S10, after the test device is connected to the first Wi-Fi, the simulation program is controlled to simulate manual operation to operate the application of the test device, and the operation of the application in response to the manual operation is monitored to obtain test data corresponding to the first Wi-Fi.

[0049] In this embodiment, the test device is in an environment of multiple Wi-Fi signals, and each Wi-Fi signal can be connected and available. The test device is loaded with a simulation program, which is used to simulate manual operation. Manual operation is, for example, a click operation, a sliding operation, etc. The simulation program can be an API (Application Programming Interface) simulation program written by the Android user interface automation framework Uiautomator2.

[0050] Multiple applications are loaded in the test device. The applications include video player programs, search engine programs, and monitoring programs. After the test device is connected to the first Wi-Fi (the first Wi-Fi is the Wi-Fi that the test device is currently connected to), the test device controls the simulation program to simulate manual operations to operate the applications in the test device. Manual operations are click operations, sliding operations, etc. to open and control the applications. For example, when the application is a video player, the manual operation is the operation of clicking on the video to play, and when the application is a search engine, the manual operation is the operation of clicking on the input key.

[0051] After the test device is operated by the simulation program to simulate manual operation, the test device monitors the operation of the application in response to the manual operation, thereby obtaining the test data corresponding to the first Wi-Fi. For example, after the video player program plays the video, if the video is stuck, a stuck circle will appear in the video, that is, the test device monitors whether the video has a stuck circle to determine whether the video is stuck during playback. In addition, the test device also needs to monitor the Wi-Fi throughput, RSSI (Received Signal Strength Indication), the Ping value of the router and other data. These data can be obtained through monitoring of specific applications in the test device.

[0052] Step S20: Obtain the number of tests performed by the test device on the first Wi-Fi.

[0053] The test device needs to test the Wi-Fi signal multiple times. Therefore, each time the test device obtains the test data of the first Wi-Fi, it records the test times of the first Wi-Fi.

[0054] Step S30: Name the test data according to the service set identifier SSID of the first Wi-Fi and the test times, and store the named test data.

[0055] The test device needs to test multiple Wi-Fis, and when storing test data, it also needs to obtain the Wi-Fi identifier. That is, after determining the test times of the first Wi-Fi, the test device will also obtain the SSID (Service Set Identifier) ​​of the first Wi-Fi. The test device commands the test data based on the test times and the SSID of the first Wi-Fi, and then stores the named data.

[0056] In the technical solution provided in this embodiment, after the test device is connected to the first Wi-Fi, the control simulation program simulates manual operation to operate the application in the test device, and monitors the operation of the application to obtain the test data corresponding to the first Wi-Fi, and then obtains the number of tests of the test device on the first Wi-Fi, so as to name the test data according to the first Wi-Fi and the number of tests, and then store the named test data. In the present invention, the test data of Wi-Fi is named based on the number of tests of Wi-Fi and the SSID of Wi-Fi, so that the name of the test data obtained by each Wi-Fi test is different. Therefore, when the test data obtained by the current test is stored, the test data stored in the previous test will not be replaced, thereby ensuring the data volume of Wi-Fi performance evaluation and improving the accuracy of Wi-Fi performance evaluation.

[0057] Reference Figure 3 , Figure 3 This is the second embodiment of the Wi-Fi stress testing method of the present invention. Based on the first embodiment, step S30 includes:

[0058] Step S31: Obtain an index position of the SSID of the first Wi-Fi in the first document.

[0059] Step S32: Obtain network connection information corresponding to the first Wi-Fi in the first document according to the index position, wherein the first document stores network connection information of multiple second Wi-Fis, the network connection information of the second Wi-Fi has a corresponding index position in the first document, and the network connection information of the first Wi-Fi is one of the second Wi-Fi.

[0060] Step S33: Name the test data according to the network connection information corresponding to the first Wi-Fi and the number of tests.

[0061] In this embodiment, a first document is stored in the test device, and the first document stores the network connection information of each Wi-Fi that the test device needs to perform stress testing. Each Wi-Fi stored in the first document is defined as a second Wi-Fi, and each second Wi-Fi has a corresponding index position in the first document, and the first Wi-Fi currently connected to the test device is any second Wi-Fi, that is, the first Wi-Fi is one of the second Wi-Fis. The index position can be understood as the location of the network connection information of the second Wi-Fi in the second document.

[0062] The test device needs to test each second Wi-Fi in the first document, and after completing the test of all the second Wi-Fi in the first document, the test device re-tests each second Wi-Fi in the first document.

[0063] The test device stores an association relationship between the SSID of each second Wi-Fi in the first document and the index position of the SSID in the first document. After obtaining the number of tests of the first Wi-Fi, the test device obtains the SSID of the first Wi-Fi, thereby determining the corresponding association relationship based on the obtained SSID, and finally obtains the index position of the SSID in the first document through the association information.

[0064] After obtaining the index position, the test device can obtain the network connection information of the first Wi-Fi in the first document based on the index position. The network connection information represents the identity of the Wi-Fi, for example, the network connection information includes the name of the first Wi-Fi.

[0065] After the test device obtains the network connection information of the first Wi-Fi, it can name the test data according to the network connection information and the test data.

[0066] In the technical solution provided in this embodiment, the test device obtains the index position of the SSID of the first Wi-Fi in the first document, and obtains the network connection information corresponding to the first Wi-Fi in the first document according to the index position, so as to name the test data according to the network connection information of the first Wi-Fi and the number of tests, so as to avoid duplication of the saved names of the test data of each Wi-Fi.

[0067] Reference Figure 4 , Figure 4 This is a third embodiment of the Wi-Fi stress testing method of the present invention. Based on the second embodiment, step S20 includes:

[0068] Step S21, obtaining the completion count of the first Wi-Fi recorded in the second document, wherein the testing device updates the completion count of the second Wi-Fi in the second document each time the testing of all second Wi-Fi in the first document is completed, and the second document records the completion count of each second Wi-Fi in the first document.

[0069] Step S22: determine the number of completions as the number of tests performed by the test device on the first Wi-Fi.

[0070] In this embodiment, a second document is stored in the test device. The second document is used to record the number of Wi-Fi tests. Specifically, the test device needs to test all second Wi-Fis in the first document, and after all second Wi-Fis in the first document are tested, the test device re-tests all second Wi-Fis in the first document.

[0071] The second document stores the completion times corresponding to each second Wi-Fi. When the test device completes the test of the second Wi-Fi in the first document, the completion times of the second Wi-Fi in the second document are updated, that is, the completion times of the second Wi-Fi in the second document + 1.

[0072] The testing device obtains the number of completions of the first Wi-Fi recorded in the second document, and determines the completion time as the number of tests of the first Wi-Fi by the testing device.

[0073] In the technical solution provided in this embodiment, the test device obtains the completion number of the first Wi-Fi recorded in the second document, and thus determines the completion number as the test number of the first Wi-Fi performed by the test device.

[0074] In one embodiment, step S10 includes:

[0075] After the application responds to the manual operation, the number of video freezes is obtained according to the first thread, the signal strength and throughput of the first Wi-Fi are obtained according to the second thread, and the ping value is obtained according to the third thread, wherein the application includes a video playback application and a network diagnostic program, and the ping value is obtained by diagnosing a router corresponding to the first Wi-Fi according to the network diagnostic program.

[0076] In this embodiment, the application includes a video playback application and a network diagnostic program. After the application responds to the manual operation, the test device can monitor the operation of each application. The test device is provided with at least three sub-threads, which are defined as the first sub-thread, the second sub-thread and the third sub-thread. The first sub-thread obtains the number of video freezes, the second sub-thread obtains the signal strength RSSI and throughput of the first Wi-Fi, and the third sub-thread obtains the ping value. The ping value is obtained by the network diagnostic program diagnosing the router corresponding to the first Wi-Fi, that is, the network diagnostic program pings the router to obtain the ping value.

[0077] In this embodiment, the third sub-thread obtains the ping value, and its purpose is to prevent the first sub-thread and the second sub-thread from being preempted during the ping operation, causing delays in other sub-threads, that is, to prevent the test device from being unable to simultaneously obtain the number of freezes, throughput, RSSI, ping value, etc. of the first Wi-Fi.

[0078] In addition, the test data also includes the number of connections and disconnections between the test device and the first Wi-Fi, the total connection duration, the total disconnection duration, the connection time point, and the disconnection time point. That is, the test device also needs to monitor the connection status of the first Wi-Fi, and the connection status is the number of connections and disconnections and the time corresponding to the number of connections and disconnections.

[0079] Reference Figure 5 , Figure 5 The fourth embodiment of the Wi-Fi stress testing method of the present invention is based on any one of the first to third embodiments, and after step S30, further includes:

[0080] Step S40, after completing the stress test on the first Wi-Fi, obtaining the test data stored in each test of the first Wi-Fi from the data table, wherein the named test data is stored in the data table.

[0081] Step S50: Screening each test data based on a preset script to obtain target test data, wherein the target test data is performance data of the first Wi-Fi.

[0082] Step S60: Determine a test result of the first Wi-Fi according to the target test data.

[0083] In this embodiment, for the mobile phone of the test data, the test device will create multiple List sets, obtain the data once every second and store it in the List, and finally save the List to an Excel table after the test is completed, that is, the named test data is stored in the data table (Excel table). After completing the stress test on the first Wi-Fi, the test data stored in each test of the first Wi-Fi is obtained from the data table (Excel table).

[0084] After the test is completed, a lot of data will be generated. Since the entire test process is executed in the form of Android APK (Android application package), the final amount of test data is huge. The test device uses a preset script to filter and summarize the data. The preset script can be Python.

[0085] The test device screens the test data of the first Wi-Fi based on a preset script to obtain target test data, where the target test data is data that characterizes the performance of the first Wi-Fi, that is, the target test data is performance data of the first Wi-Fi. The test device can determine the test result of the first Wi-Fi based on the target test data.

[0086] Specifically, the test device controls the preset script to determine the test data whose parameter values ​​are within the preset range as candidate test data, that is, the preset script removes the smaller parameter value and the larger parameter value to obtain the candidate test data. The test device uses the average value corresponding to the parameter values ​​of the same type in each candidate test data as the target test data. For example, the test device uses the average value corresponding to all throughputs as the target test data.

[0087] In the technical solution provided in this embodiment, the test device can complete the screening of Wi-Fi performance data in a short time through a preset script, thereby quickly determining the test result of Wi-Fi.

[0088] The present invention also provides a testing device, referring to Figure 6 , the testing device 600 comprises:

[0089] The control module 610 is used to control the simulation program to simulate manual operation to operate the application of the test device after the test device is connected to the first Wi-Fi, and monitor the operation of the application in response to the manual operation to obtain test data corresponding to the first Wi-Fi;

[0090] The acquisition module 620 is used to obtain the number of tests performed by the test device on the first Wi-Fi;

[0091] The storage module 630 is configured to name the test data according to the service set identifier SSID of the first Wi-Fi and the test number, and store the named test data.

[0092] In one embodiment, the testing device 600 includes:

[0093] An acquisition module 620 is configured to acquire an index position of the SSID of the first Wi-Fi network in the first document;

[0094] an acquisition module 620, configured to acquire, in the first document according to the index position, network connection information corresponding to the first Wi-Fi, wherein the first document stores network connection information of multiple second Wi-Fis, the network connection information of the second Wi-Fis has a corresponding index position in the first document, and the first Wi-Fi is one of the second Wi-Fis;

[0095] The naming module is used to name the test data according to the network connection information corresponding to the first Wi-Fi and the test number.

[0096] In one embodiment, the testing device 600 includes:

[0097] The acquisition module 620 is configured to acquire the completion count of the first Wi-Fi recorded in the second document, wherein the test device updates the completion count of the second Wi-Fi in the second document each time the test of the second Wi-Fi in the first document is completed, and the second document records the completion count of each second Wi-Fi in the first document;

[0098] The determination module is used to determine the number of completions as the number of tests performed by the test device on the first Wi-Fi.

[0099] In one embodiment, the testing device 600 includes:

[0100] The acquisition module 620 is used to acquire the number of video freezes according to the first thread, acquire the signal strength and throughput of the first Wi-Fi according to the second thread, and acquire the ping value according to the third thread after the application responds to the manual operation, wherein the application includes a video playback application and a network diagnostic program, and the ping value is obtained by diagnosing a router corresponding to the first Wi-Fi according to the network diagnostic program.

[0101] In one embodiment, the testing device 600 includes:

[0102] The acquisition module 620 is used to acquire the test data stored in each test of the first Wi-Fi from the data table after completing the stress test on the first Wi-Fi, wherein the named test data is stored in the data table;

[0103] A screening module, configured to screen each test data based on a preset script to obtain target test data, wherein the target test data is performance data of the first Wi-Fi;

[0104] The determination module is used to determine the test result of the first Wi-Fi according to the target test data.

[0105] In one embodiment, the testing device 600 includes:

[0106] A control module 610 is used to control a preset script to determine test data with parameter values ​​within a preset range as candidate test data;

[0107] The determination module is used to determine the average value corresponding to the parameter values ​​belonging to the same type in each candidate test data as the target test data.

[0108] Figure 7 The figure is a hardware structure diagram of a testing device according to an exemplary embodiment.

[0109] The test device 700 may include: a processor 701, such as a CPU, a memory 702, and a transceiver 703. Those skilled in the art will appreciate that Figure 7 The structure shown in the figure does not constitute a limitation of the test device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0110] The processor 701 may call a computer program stored in the memory 702 to complete all or part of the steps of the above-mentioned Wi-Fi stress testing method.

[0111] The transceiver 703 is used to receive information sent by an external device and send information to the external device.

[0112] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of a test device, enables the test device to perform the above-mentioned Wi-Fi stress testing method.

[0113] A computer program product includes a computer program. When the computer program is executed by a processor of a test device, the test device is enabled to perform the above-mentioned Wi-Fi stress test method.

[0114] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0115] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A Wi-Fi stress testing method, applied to a test device, characterized in that: include: After the test device is connected to a first Wi-Fi, controlling the simulation program to simulate a manual operation to operate an application of the test device, and monitoring the operation of the application in response to the manual operation to obtain test data corresponding to the first Wi-Fi; Obtaining the number of tests performed by the test device on the first Wi-Fi; Naming the test data according to the service set identifier SSID of the first Wi-Fi and the test number, and storing the named test data; The step of naming the test data according to the first Wi-Fi service set identifier SSID and the test number includes: Obtain an index position of the SSID of the first Wi-Fi in the first document; Acquire, in the first document, network connection information corresponding to the first Wi-Fi according to the index position, wherein the first document stores network connection information of a plurality of second Wi-Fis, the network connection information of the second Wi-Fi has a corresponding index position in the first document, and the first Wi-Fi is one of the second Wi-Fis; Naming the test data according to the network connection information corresponding to the first Wi-Fi and the test number; The step of obtaining the number of tests performed by the test device on the first Wi-Fi network includes: Obtaining the number of completions of the first Wi-Fi recorded in the second document, wherein the testing device updates the number of completions of the second Wi-Fi in the second document each time the testing device completes the test of the second Wi-Fi in the first document, and the second document records the number of completions of each second Wi-Fi in the first document; The completion number is determined as the number of tests performed by the test device on the first Wi-Fi.

2. The Wi-Fi stress testing method according to claim 1, characterized in that: The test data includes the number of freezes, signal strength, throughput, and ping value, and the step of monitoring the operation of the application program in response to the manual operation to obtain the test data corresponding to the first Wi-Fi includes: After the application responds to the manual operation, the number of video freezes is obtained according to the first thread, the signal strength and throughput of the first Wi-Fi are obtained according to the second thread, and the ping value is obtained according to the third thread, wherein the application includes a video playback application and a network diagnostic program, and the ping value is obtained by diagnosing a router corresponding to the first Wi-Fi according to the network diagnostic program.

3. The Wi-Fi stress testing method according to any one of claims 1 to 2, characterized in that: After the step of storing the named test data, the method further includes: After completing the stress test on the first Wi-Fi, acquiring the test data stored in each test of the first Wi-Fi from a data table, wherein the named test data is stored in the data table; Performing data screening on each of the test data based on a preset script to obtain target test data, wherein the target test data is performance data of the first Wi-Fi; A test result of the first Wi-Fi is determined according to the target test data.

4. The Wi-Fi stress testing method according to claim 3, characterized in that: The step of filtering each of the test data based on a preset script to obtain target test data includes: Controlling the preset script to determine test data whose parameter values ​​are within a preset range as candidate test data; The average value corresponding to the parameter values ​​belonging to the same type in each of the candidate test data is determined as the target test data.

5. The Wi-Fi stress testing method according to any one of claims 1 to 2, characterized in that: The test data also includes the number of connections, the number of disconnections, the total connection duration, the total disconnection duration, the connection time point, and the disconnection time point between the test device and the first Wi-Fi.

6. A testing device, characterized in that: include: A monitoring module, configured to monitor the operation of the application program in response to a manual operation after the test device is connected to the first Wi-Fi to obtain test data corresponding to the first Wi-Fi; An acquisition module, used to acquire the number of tests performed by the test device on the first Wi-Fi; A storage module, configured to name the test data according to the service set identifier SSID of the first Wi-Fi and the test number, and store the named test data; An acquisition module, configured to acquire an index position of the SSID of the first Wi-Fi in the first document; an acquisition module, configured to acquire, in the first document according to the index position, network connection information corresponding to the first Wi-Fi, wherein the first document stores network connection information of a plurality of second Wi-Fis, the network connection information of the second Wi-Fis has a corresponding index position in the first document, and the first Wi-Fi is one of the second Wi-Fis; Also includes: A naming module, used to name the test data according to the network connection information corresponding to the first Wi-Fi and the number of tests; an acquisition module, configured to acquire the completion count of the first Wi-Fi recorded in the second document, wherein the test device updates the completion count of the second Wi-Fi in the second document each time the test of the second Wi-Fi in the first document is completed, and the second document records the completion count of each second Wi-Fi in the first document; Also includes: The determination module is used to determine the number of completions as the number of tests performed by the test device on the first Wi-Fi.

7. A testing device, characterized in that: include: Memory and processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the Wi-Fi stress testing method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the Wi-Fi stress testing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Automatic test method for WiFi (Wireless Fidelity) network connection of mobile phone

    CN102413489A