A method, device and terminal device for automatically testing WiFi performance

Automatically switch WiFi frequency bands by generating and traversing multi-dimensional arrays to achieve automatic testing of WiFi performance, solving the problems of low efficiency and error-prone manual testing, and improving the accuracy and efficiency of testing.

CN117615407BActive Publication Date: 2024-09-27GUANGZHOU TOZED KANGWEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311685661.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2024-09-27
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

Existing WiFi performance testing requires manual operations, which is inefficient and error-prone.

Method used

Generate an array by obtaining the test type of the WiFi to be tested, iterate through the array one by one to perform iterative rate testing on WiFi, automatically switch to different frequency bands for testing, and output the rate test results under each test type.

Benefits of technology

It improves the efficiency of WiFi performance testing, avoids human operation errors, and enhances the accuracy of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117615407B
    Figure CN117615407B
Patent Text Reader

Abstract

The present invention discloses a method, device and terminal device for automatically testing Wi Fi performance. The method invention obtains a test type of several frequency band types for indicating the required test of the Wi Fi to be tested, thereby generating a corresponding array, and the array contains different frequency band types under different test types, so that when the rate of Wi Fi is subsequently tested, by traversing the array, different frequency bands can be automatically switched to complete different test types, so as to achieve the rate test of Wi Fi under different frequency bands, and output the rate test results under each frequency band type corresponding to each test type. Compared with the prior art, the present invention does not need to manually change the frequency band to be tested, and only needs to traverse the element value corresponding to each position subscript in the array, so as to achieve automatic switching of multiple frequency bands, which not only improves the efficiency of Wi Fi performance testing, but also avoids errors caused by human operation, and improves the accuracy of the test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer processing technology, and in particular to an automatic testing method, device and terminal equipment for WiFi performance. Background Art

[0002] WiFi testing is an important part of ensuring the performance and reliability of WiFi products, and is of great significance for improving user experience and product quality. WiFi testing usually includes preparing the test environment, connecting WiFi devices, executing tests, analyzing test data to obtain test results, and optimizing and improving based on test results. Among them, preparing the test environment includes setting up the test site, debugging the test equipment, and selecting appropriate test software.

[0003] However, when the current WIFI performance indicators such as speed and startup time need to be tested, manual testing is often required to obtain the indicator results, which is not only inefficient but also prone to errors. Summary of the invention

[0004] The embodiments of the present invention provide a method, an apparatus and a terminal device for automatically testing WiFi performance, which can effectively solve the problem in the prior art that manual testing is often required to obtain index results, which is not only inefficient but also prone to errors.

[0005] An embodiment of the present invention provides a method for automatically testing WiFi performance, including:

[0006] When it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected, the test type of the WiFi to be tested is obtained; wherein the test type indicates several frequency band types required to be tested;

[0007] Generate an array according to the test type; wherein the element value corresponding to each position subscript in the array is used to indicate the types of several frequency bands required to be tested;

[0008] The element values ​​in the array are traversed one by one, and the rate test is iterated on the WiFi to be tested according to the element value corresponding to each position subscript in the array, until the rate test is completed, and a number of rate test results corresponding to each test type of the WiFi to be tested are output.

[0009] Preferably, before generating an array according to the test type, the method further includes:

[0010] Obtain several frequency band types supported by the WiFi to be tested; wherein the frequency band type includes any one of the following or a combination thereof: a first frequency band and a second frequency band; the first frequency band and the second frequency band are different;

[0011] Obtain a bandwidth number list and a channel number list corresponding to the frequency band type;

[0012] The generating an array according to the test type comprises:

[0013] A multidimensional array is generated according to the test type and frequency band type, as well as a bandwidth number list and a channel number list corresponding to each frequency band type; wherein the element value corresponding to each position subscript in the multidimensional array is used to indicate a test type, as well as a frequency band type, bandwidth number and channel number corresponding to a test type.

[0014] Preferably, generating a multi-dimensional array according to the test type and the frequency band type, and a bandwidth number list and a channel number list corresponding to each frequency band type, includes:

[0015] Generate a blank initial multidimensional array;

[0016] Read the WiFi capability parameters in the terminal device, and assign values ​​to the element values ​​indicating the test type in the initial multi-dimensional array according to the first frequency band WiFi test switch state, the second frequency band WiFi test switch state, and the optional first frequency band or second frequency band test switch state;

[0017] When it is determined that the frequency band type supported by the WiFi to be tested is the first frequency band, the element value used to indicate the frequency band type is assigned a value of 1; when it is determined that the frequency band type supported by the WiFi to be tested is the second frequency band, the element value used to indicate the frequency band type is assigned a value of 2; when it is determined that the frequency band types supported by the WiFi to be tested are the first frequency band and the second frequency band, the element value used to indicate the frequency band type is assigned values ​​of 1 and 2;

[0018] According to the bandwidth number list corresponding to each frequency band type, assign the corresponding bandwidth number to the element value used to indicate the bandwidth number;

[0019] According to the channel number list corresponding to each frequency band type, assign the corresponding channel number to the element value used to indicate the channel number;

[0020] Generates a final multidimensional array based on the initial multidimensional array that has all the values ​​assigned.

[0021] Preferably, assigning values ​​to element values ​​in the initial multi-dimensional array for indicating the test type includes:

[0022] According to the status of each test switch, the test type of the terminal device for each frequency band is obtained;

[0023] When it is determined that the test type is to test only the first frequency band, the element value used to indicate the test type is assigned a value of 1; when it is determined that the test type is to test only the second frequency band, the element value used to indicate the test type is assigned a value of 2; when it is determined that only the first frequency band or only the second frequency band can be tested at the same time, the element value used to indicate the test type is assigned a value of 1 and 2; when it is determined that the first frequency band and the second frequency band can be tested at the same time, the element value used to indicate the test type is assigned a value of 1, 2 and 3.

[0024] Preferably, each rate test includes:

[0025] Adding an element value for indicating the rate result to the multi-dimensional array;

[0026] The rate result of the WiFi to be tested in each rate test is assigned to the element value used to indicate the rate result in the multi-dimensional array.

[0027] Preferably, the outputting of several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type includes:

[0028] The average rate during each test is obtained based on the time taken to start, switch and connect the Wi-Fi under a frequency band type corresponding to a test type during each test, and the data throughput during each test;

[0029] The average rates corresponding to all rate tests are counted, and several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type are generated.

[0030] Preferably, it also includes:

[0031] Obtaining a preset rate indicator corresponding to a target frequency band; wherein the target frequency band is the first frequency band or the second frequency band;

[0032] Determine whether the target frequency band corresponding to the WiFi to be tested meets the standard according to the target rate result of the element value indicating the frequency band type corresponding to the target frequency band in the multi-dimensional array;

[0033] If the target rate result is less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has defects;

[0034] If the target rate result is not less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has no defects.

[0035] Based on the above method embodiments, the present invention provides corresponding device embodiments.

[0036] An embodiment of the present invention provides an automatic test device for WiFi performance, including: a data acquisition module, an array generation module and a rate test module;

[0037] The data acquisition module is used to obtain the test type of the WiFi to be tested when it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected; wherein the test type indicates several frequency band types required to be tested;

[0038] The array generation module is used to generate an array according to the test type; wherein the element value corresponding to each position subscript in the array is used to indicate a number of frequency band types required to be tested;

[0039] The rate testing module is used to traverse the element values ​​in the array one by one, and perform an iterative rate test on the WiFi to be tested according to the element value corresponding to each position subscript in the array, until the rate test is completed, and output a number of rate test results corresponding to each test type of the WiFi to be tested.

[0040] Based on the above method embodiments, the present invention provides corresponding terminal device embodiments.

[0041] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, the automatic testing method of WiFi performance described in the above-mentioned embodiment of the invention is implemented.

[0042] Based on the above method embodiments, the present invention provides corresponding storage medium item embodiments.

[0043] Another embodiment of the present invention provides a storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the automatic testing method for WiFi performance described in the above-mentioned embodiment of the invention.

[0044] The following beneficial effects are achieved by implementing the present invention:

[0045] The embodiment of the present invention provides a method, device and terminal device for automatically testing the performance of WiFi. The present invention obtains the test type of several frequency band types for indicating the required test of the WiFi to be tested, thereby generating a corresponding array, and the array contains different frequency band types under different test types, so that when the rate of WiFi is tested later, by traversing the array, different frequency bands can be automatically switched to complete different test types, so as to realize the rate test of WiFi under different frequency bands, and output the rate test results under each frequency band type corresponding to each test type. Compared with the prior art, the present invention does not need to manually change the frequency band for the test, and only needs to traverse the element value corresponding to each position subscript in the array, so as to realize the automatic switching of multiple frequency bands, thereby completing the automatic test of the rate, which not only improves the efficiency of the WiFi performance test, but also avoids the error of human operation through the automated test, reduces the error rate, and thus improves the accuracy of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a flowchart of an automatic testing method for WiFi performance provided by an embodiment of the present invention.

[0047] Figure 2 This is a test flow chart of WiFi performance provided by another embodiment of the present invention.

[0048] Figure 3 It is a structural schematic diagram of an automatic test device for WiFi performance provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0050] like Figure 1 FIG. 1 is a flow chart of an automatic test method for WiFi performance provided by an embodiment of the present invention. The automatic test method for WiFi performance includes:

[0051] Step S1: when it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected, the test type of the WiFi to be tested is obtained; wherein the test type indicates several frequency band types required to be tested;

[0052] Step S2: generating an array according to the test type; wherein the element value corresponding to each position subscript in the array is used to indicate the types of several frequency bands required to be tested;

[0053] Step S3: traverse the element values ​​in the array one by one, and perform an iterative rate test on the WiFi to be tested according to the element value corresponding to each position subscript in the array, until the rate test is completed, and output a number of rate test results corresponding to each test type of the WiFi to be tested.

[0054] For step S1, in a preferred embodiment, it is determined whether the terminal device and the terminal where the test software is located can ping-pair within the "power-on duration". If not, it is determined whether to fail and skip. Failure and skip means continuing to the next step. If failure and skip cannot be performed, the device needs to be restarted and then the ping-pair test is performed.

[0055] Specifically, read the WiFi capability parameters in the terminal device, and obtain the test type of the WiFi to be tested according to the first frequency band WiFi test switch state, the second frequency band WiFi test switch state, and the optional first frequency band or second frequency band test switch state;

[0056] The test type is used to indicate the types of several frequency bands to be tested, including any one of the following or a combination thereof: testing a first frequency band and testing a second frequency band; the frequency band type includes any one of the following or a combination thereof: a first frequency band and a second frequency band; the first frequency band and the second frequency band are different;

[0057] It can be understood that the first frequency band is 2.4G, and the second frequency band is 5.8G, and the test type includes testing only the 2.4G frequency band, or testing only the 5.8G frequency band, or testing both the 2.4G frequency band and the 5.8G frequency band;

[0058] In a preferred embodiment, before generating an array according to the test type and the frequency band type, the embodiment of the present invention further includes:

[0059] Obtain several frequency band types supported by the WiFi to be tested; wherein the frequency band type includes any one of the following or a combination thereof: a first frequency band and a second frequency band; the first frequency band and the second frequency band are different;

[0060] Obtain a bandwidth number list and a channel number list corresponding to the frequency band type.

[0061] It is understandable that the bandwidth number list and the channel number list corresponding to the frequency band type can be obtained according to the WIFI country code and the channel list.

[0062] Then the array is generated according to the test type, which may be specifically:

[0063] A multidimensional array is generated according to the test type and frequency band type, as well as a bandwidth number list and a channel number list corresponding to each frequency band type; wherein the element value corresponding to each position subscript in the multidimensional array is used to indicate a test type, as well as a frequency band type, bandwidth number and channel number corresponding to a test type.

[0064] For step S2, in a preferred embodiment, the present invention generates a multi-dimensional array to store test parameters in various situations, such as the test parameters corresponding to the frequency band type, bandwidth number and channel number corresponding to a test type, so that different frequency bands can be automatically switched by traversing the multi-dimensional array during testing to achieve rate testing of WiFi in different frequency bands.

[0065] Specifically, a multi-dimensional array may be generated according to the test type and frequency band type, and a bandwidth number list and a channel number list corresponding to each frequency band type;

[0066] The element value corresponding to each position subscript in the multi-dimensional array is used to indicate the frequency band type, bandwidth number and channel number corresponding to a test type.

[0067] Generation of multi-dimensional arrays, including:

[0068] First, a blank initial multi-dimensional array is generated; wherein the initial multi-dimensional array is C[a][b][c][d],

[0069] Read the WiFi capability parameters in the terminal device, and assign a value to the dimension where a in the initial multi-dimensional array is located according to the first frequency band WiFi test switch state, the second frequency band WiFi test switch state, and the optional first frequency band or second frequency band test switch state; it can be understood that the dimension where a is located is the element value used to indicate the test type;

[0070] Indicatively, the test type of the terminal device for testing each frequency band can be obtained according to the state of each test switch;

[0071] When it is determined that the test type is to test only the first frequency band, the dimension where a is located is assigned a value of 1; when it is determined that the test type is to test only the second frequency band, the dimension where a is located is assigned a value of 2; when it is determined that only the first frequency band or only the second frequency band can be tested at the same time, the dimension where a is located is assigned values ​​of 1 and 2; when it is determined that the first frequency band and the second frequency band can be tested at the same time, the dimension where a is located is assigned values ​​of 1, 2 and 3.

[0072] It is understandable that both stand-alone stress testing and aging testing require reading the WIFI capability parameters, WIFI working mode capability parameters, and WIFI country code and channel list in the device;

[0073] Specifically, read the WIFI capability parameters in the device, and assign a value to the dimension where a is located according to "2.4G WIFI test switch", "5.8G WIFI test switch", and "priority test option (optional 2.4G or 5.8G)", indicating the WIFI type to be tested, 1 is to test only 2.4G, 2 is to test only 5.8G, and 3 is to test both 2.4G and 5.8G at the same time;

[0074] For example, the device classifications include: only supports 2.4G wifi; only supports 5.8G wifi; supports 2.4G / 5.8G wifi, but only one wifi is available at the same time; the device supports 2.4G / 5.8G wifi, and both wifi can be available at the same time; indicated by WIFI capability set parameters (1 to 4).

[0075] The WIFI capability set parameter of the current device is 1, which means that the device only supports 2.4G WIFI. Then the dimension a has only one value, which is 1.

[0076] The current device's WIFI capability set parameter is 2, which means the device only supports 5.8G WIFI. Then the dimension a has only one value, which is 2.

[0077] The current device's WIFI capability set parameter is 3, which means the device supports 2.4G / 5.8G wifi, but there is only one type of wifi at the same time, so the dimension a has two values, 1 and 2;

[0078] The current device's WIFI capability set parameter is 4, which means the device supports 2.4G / 5.8G wifi. Both wifi can be used at the same time. Then the dimension a has three values, 1, 2, and 3.

[0079] If the WIFI capability set parameter of the current device is 3 or 4, the values ​​are further eliminated or sorted in combination with "2.4G WIFI test switch", "5.8G WIFI test switch", and "priority test option (optional 2.4G or 5.8G)".

[0080] Further, the WIFI working mode capability parameter is read and a value is assigned to the dimension where b is located; it can be understood that the dimension where b is located is the element value used to indicate the frequency band type;

[0081] When it is determined that the frequency band type supported by the WiFi to be tested is the first frequency band, the dimension where b is located is assigned a value of 1; when it is determined that the frequency band type supported by the WiFi to be tested is the second frequency band, the dimension where b is located is assigned a value of 2; when it is determined that the frequency band types supported by the WiFi to be tested are the first frequency band and the second frequency band, the dimension where b is located is assigned a value of 1 and 2;

[0082] Further, according to the bandwidth number list corresponding to each frequency band type, the corresponding bandwidth number is assigned to the dimension where c is located, that is, the most complete bandwidth list supported by the device can be generated according to its WIFI working mode capability parameters, and then a bandwidth test order list is randomly generated, and then the dimension where c is located is assigned; that is, according to the bandwidth number list corresponding to each frequency band type, the corresponding bandwidth number can be assigned to the dimension where c is located; it can be understood that the dimension where c is located is the element value used to indicate the bandwidth number;

[0083] Further, read its WIFI country code, and read the channel list of the corresponding type of WIFI according to the WIFI capability parameter. For example, if the current WIFI capability parameter is 1 (only supports 2.4G), read the 2.4G WIFI channel list, and then assign a value to the dimension where d is located. That is, according to the channel number list corresponding to each frequency band type, assign the corresponding channel number to the dimension where d is located; it can be understood that the dimension where d is located is the element value used to indicate the channel number;

[0084] Finally, the final multidimensional array is generated based on the initial multidimensional array that has been fully assigned. The arrangement and combination of the element values ​​in the final multidimensional array can represent the corresponding frequency band type, bandwidth number and channel number under a certain test type. For example, according to the element values ​​in the multidimensional array, when the test type is to test the first frequency band and the second frequency band at the same time, the test parameters of the frequency band type being the first frequency band, the bandwidth number being A, and the channel number being B can be obtained, so that the corresponding rate result can be obtained.

[0085] For step S3, in a preferred embodiment, Figure 2 The test flow chart shown in the figure can perform iterative rate test on the WiFi to be tested by traversing the element values ​​in the multidimensional array one by one, thereby taking the element value corresponding to each position subscript in the multidimensional array as a test parameter, until the rate test is completed, and outputting several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type;

[0086] Specifically, the switch status of the WIFI that needs to be tested can be read according to the test parameter array C[a][b][c][d]. If the current device only supports 2.4G WIFI, then read its switch status and check whether the WIFI needs to be restarted in combination with the working mode, bandwidth, channel and other parameters recorded in the test array;

[0087] That is, check whether the current WIFI working mode of the current device is consistent with the highest working mode, and check whether the WIFI status, bandwidth, channel and the WIFI type, bandwidth and channel that the test software is currently preparing to test are consistent; if there is any inconsistency, restart the WIFI, if it is consistent, initiate a WIFI connection command for all wireless network cards;

[0088] Furthermore, based on the principle that the wireless network card of the terminal where the test software is located can ping the device under test 5 times in a row with a delay of less than 150ms, it is determined whether the wireless network card is successfully connected to the current device;

[0089] A minimum concurrent number is set to determine whether the connection is successful. After connecting to WiFi based on the number of "minimum concurrent number", a rate test is performed, the rate is recorded once per second, the ping output results are continuously recorded, and all WiFi connections are disconnected after the rate test is completed. The total average rate and total average delay are calculated; schematically, the recorded total average rate and total average delay can be stored in a multidimensional array, and the corresponding total average rate and total average delay can be stored by adding f and g dimensions.

[0090] It should be noted that the average rate of a single connection of the present invention is processed according to the principle of "eliminating 5% of the maximum and minimum respectively, and considering 1 as 1 if the 5% is less than 1, and taking the arithmetic mean of the rest", that is, after obtaining U1 to U10, they are arranged, the maximum and minimum values ​​are eliminated, and the average of the remaining 8 values ​​is taken to obtain the average value of U; the average value of D is obtained in the same way. Finally, the U level and D level of each connection are taken to obtain the total average rate corresponding to the uplink and downlink. It can be understood that the total average rate is the rate result under a test type and a frequency band type corresponding to the test type.

[0091] Check whether the failure skipping has been set. If so, update the test parameter array. The update rules are as follows: the channel value of the d dimension is increased by one. If it exceeds the channel range, the bandwidth of the c dimension is increased by one. Similarly, if the c dimension is out of range, the b dimension is increased by one. Similarly, if the b dimension is out of range, the a dimension is increased by one. If the a dimension is out of range, the number of tests is increased by 1.

[0092] Determine whether the test times have been completed. If not, check whether power off is required. If necessary, wait for the "power off waiting time after test success" and then power off for the "power off duration". Then power on and perform iterative testing. If power off is not required, directly perform the next test again. If the test times have been completed, stop the test.

[0093] If no failure skipping is set, determine whether the test times have been completed. If not, check whether power off is required. If necessary, wait for the "power off waiting time after test success" and then power off for the "power off duration". Then power on and perform iterative testing. If power off is not required, directly perform the next test again. If the test times have been completed, stop the test.

[0094] When outputting several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type, it includes:

[0095] The average rate during each test is obtained based on the time taken to start, switch and connect the Wi-Fi under a frequency band type corresponding to a test type during each test, and the data throughput during each test;

[0096] The average rates corresponding to all rate tests are counted, and several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type are generated.

[0097] In principle, testing the WiFi rate generally refers to testing the data transmission rate of the WiFi network, that is, how many packets or bytes are transmitted per second. The test results are usually in megabits per second (Mb / s) or megabytes per second (MB / s). For example, the WiFi rate can be obtained based on the following data:

[0098] Throughput: This is one of the most important indicators of network performance, indicating the number of bytes that pass through the network in a given time. For WiFi testing, throughput is usually measured in Mb / s or MB / s.

[0099] Latency: Indicates the time it takes for a data packet to be sent and received, measured in milliseconds (ms). The longer the latency, the slower the network response.

[0100] Packet loss rate: indicates the ratio of data packets lost during network transmission to the total number of data packets. The higher the packet loss rate, the worse the network performance.

[0101] Jitter: Indicates the degree of fluctuation in the arrival time of data packets. The greater the jitter, the more unstable the network performance.

[0102] Signal strength: Indicates the strength of the WiFi signal, usually in decibel-milliwatts (dBm). The stronger the signal strength, the more stable the network connection.

[0103] By testing these data, we can obtain information about the WiFi network's rate, response time, stability, and reliability, thereby evaluating the performance of the WiFi network.

[0104] In a preferred embodiment, the present invention can also perform multi-machine production testing or aging testing to identify defective equipment; that is, set a rate threshold, that is, a rate index, to verify the performance of the machine through the rate index and screen out defective terminal equipment.

[0105] Specifically, a preset rate indicator corresponding to a target frequency band is obtained; wherein the target frequency band is the first frequency band or the second frequency band;

[0106] According to the target rate result under the e dimension corresponding to the target frequency band in the multi-dimensional array, determining whether the target frequency band corresponding to the WiFi to be tested meets the standard;

[0107] If the target rate result is less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has defects;

[0108] If the target rate result is not less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has no defects.

[0109] The present invention stores the test type and the frequency band type through a multidimensional array, so that by traversing the multidimensional array, different frequency bands can be automatically switched to realize the rate test of WiFi in different frequency bands, without manually changing the frequency band to be tested, and only the element value corresponding to each position subscript in the multidimensional array needs to be traversed to realize the automatic switching of multiple frequency bands, thereby completing the automatic test of the rate; and the automatic test can significantly improve the reliability of the test. In manual testing, due to factors such as fatigue, negligence or ability limitation of the tester, the test results may be inaccurate or abnormal. Automatic testing can avoid these problems and ensure the accuracy and stability of the test results.

[0110] The present invention stores test types and frequency band types through a multidimensional array and traverses the values ​​of each element, so that a unified test standard and specification can be formulated, so that the test results have better comparability, and at the same time, it is convenient to manage and analyze the test data. Further, the automatic test of the present invention has good scalability. When a new test type or frequency band type needs to be added, it only needs to add the corresponding element in the multidimensional array, and there is no need to make major modifications to the entire test process.

[0111] The present invention stores test types and frequency band types in a multidimensional array and then performs automatic testing, which can greatly improve the efficiency, reliability and flexibility of the test and is suitable for various scenarios requiring a large number of tests.

[0112] like Figure 3 As shown, based on the above-mentioned various embodiments of the automatic testing method for WiFi performance, the present invention provides a corresponding device embodiment;

[0113] An embodiment of the present invention provides an automatic test device for WiFi performance, including: a data acquisition module, an array generation module and a rate test module;

[0114] The data acquisition module is used to obtain the test type of the WiFi to be tested when it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected; wherein the test type indicates several frequency band types required to be tested;

[0115] The array generation module is used to generate an array according to the test type; wherein the element value corresponding to each position subscript in the array is used to indicate a number of frequency band types required to be tested;

[0116] The rate testing module is used to traverse the element values ​​in the array one by one, and perform an iterative rate test on the WiFi to be tested according to the element value corresponding to each position subscript in the array, until the rate test is completed, and output a number of rate test results corresponding to each test type of the WiFi to be tested.

[0117] It should be noted that the device embodiments described above are merely schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, and may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without paying creative labor.

[0118] Those skilled in the art can clearly understand that, for the sake of convenience and simplicity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0119] Based on the above-mentioned embodiments of the method for automatically testing the performance of various WiFi devices, the present invention provides corresponding embodiments of terminal equipment items.

[0120] An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an automatic testing method for WiFi performance described in any method embodiment of the present invention is implemented.

[0121] The terminal device may be a computing terminal device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0122] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0123] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.

[0124] Based on the above-mentioned various embodiments of the automatic testing method for WiFi performance, the present invention provides corresponding storage medium item embodiments.

[0125] An embodiment of the present invention provides a storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute an automatic testing method for WiFi performance described in any method embodiment of the present invention.

[0126] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each method embodiment described above can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0127] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for automatically testing WiFi performance, characterized in that: include: When it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected, the test type of the WiFi to be tested is obtained; wherein the test type indicates several frequency band types required to be tested; the frequency band type includes any one of the following or a combination thereof: a first frequency band and a second frequency band; the first frequency band and the second frequency band are different; Get the bandwidth number list and channel number list corresponding to each frequency band type; Generate a multidimensional array according to the test type and frequency band type, and a bandwidth number list and a channel number list corresponding to each frequency band type; wherein the element value corresponding to each position subscript in the multidimensional array is used to indicate a test type, and a frequency band type, bandwidth number, and channel number corresponding to a test type; Iterate through the element values ​​in the multidimensional array one by one, and perform an iterative rate test on the WiFi to be tested according to the element value corresponding to each position subscript in the multidimensional array, until the rate test is completed, and output a number of rate test results corresponding to each test type of the WiFi to be tested; The generation of the multi-dimensional array includes: Generate a blank initial multidimensional array; Read the WiFi capability parameters in the terminal device, and assign values ​​to the element values ​​indicating the test type in the initial multi-dimensional array according to the first frequency band WiFi test switch state, the second frequency band WiFi test switch state, and the optional first frequency band or second frequency band test switch state; When it is determined that the frequency band type supported by the WiFi to be tested is the first frequency band, the element value used to indicate the frequency band type is assigned a value of 1; when it is determined that the frequency band type supported by the WiFi to be tested is the second frequency band, the element value used to indicate the frequency band type is assigned a value of 2; when it is determined that the frequency band types supported by the WiFi to be tested are the first frequency band and the second frequency band, the element value used to indicate the frequency band type is assigned values ​​of 1 and 2; According to the bandwidth number list corresponding to each frequency band type, assign the corresponding bandwidth number to the element value used to indicate the bandwidth number; According to the channel number list corresponding to each frequency band type, assign the corresponding channel number to the element value used to indicate the channel number; Generates a final multidimensional array based on the initial multidimensional array that has all the values ​​assigned.

2. The automatic test method for WiFi performance according to claim 1, characterized in that: The assigning of values ​​to the elements in the initial multi-dimensional array for indicating the test type includes: According to the status of each test switch, the test type of the terminal device for each frequency band is obtained; When it is determined that the test type is to test only the first frequency band, the element value used to indicate the test type is assigned a value of 1; when it is determined that the test type is to test only the second frequency band, the element value used to indicate the test type is assigned a value of 2; when it is determined that only the first frequency band or only the second frequency band can be tested at the same time, the element value used to indicate the test type is assigned a value of 1 and 2; when it is determined that the first frequency band and the second frequency band can be tested at the same time, the element value used to indicate the test type is assigned a value of 1, 2 and 3.

3. The automatic test method for WiFi performance according to claim 2, characterized in that: During each rate test, include: Adding an element value for indicating the rate result to the multi-dimensional array; The rate result of the WiFi to be tested during each rate test is assigned to the element value used to indicate the rate result in the multi-dimensional array.

4. The automatic test method for WiFi performance according to claim 3, characterized in that: The output of several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type includes: The average rate during each test is obtained based on the time taken to start, switch and connect the Wi-Fi under a frequency band type corresponding to a test type during each test, and the data throughput during each test; The average rates corresponding to all rate tests are counted, and several rate test results of the WiFi to be tested under several frequency band types corresponding to each test type are generated.

5. The automatic test method for WiFi performance according to claim 4, characterized in that: Also includes: Obtaining a preset rate indicator corresponding to a target frequency band; wherein the target frequency band is the first frequency band or the second frequency band; According to the target rate result of the element value indicating the frequency band type corresponding to the target frequency band in the multi-dimensional array, determining whether the target frequency band corresponding to the WiFi to be tested meets the standard; If the target rate result is less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has defects; If the target rate result is not less than the preset rate index, it is determined that the terminal device corresponding to the WiFi to be tested has no defects.

6. An automatic test device for WiFi performance, characterized in that: include: Data acquisition module, array generation module and rate testing module; The data acquisition module is used to acquire the test type of the WiFi to be tested when it is determined that the terminal device corresponding to the WiFi to be tested is successfully connected; wherein the test type indicates several frequency band types required to be tested; the frequency band type includes any one of the following or a combination thereof: a first frequency band and a second frequency band; the first frequency band and the second frequency band are different; The array generation module is used to obtain a bandwidth number list and a channel number list corresponding to each frequency band type; generate a multi-dimensional array according to the test type and frequency band type, and the bandwidth number list and the channel number list corresponding to each frequency band type; the element value corresponding to each position subscript in the multi-dimensional array is used to indicate a test type, and the frequency band type, bandwidth number and channel number corresponding to the test type; The rate testing module is used to iterate through the element values ​​in the multidimensional array one by one, and perform an iterative rate test on the WiFi to be tested according to the element value corresponding to each position subscript in the multidimensional array, until the rate test is completed, and output a number of rate test results corresponding to each test type of the WiFi to be tested; The generation of the multi-dimensional array includes: Generate a blank initial multidimensional array; Read the WiFi capability parameters in the terminal device, and assign values ​​to the element values ​​indicating the test type in the initial multi-dimensional array according to the first frequency band WiFi test switch state, the second frequency band WiFi test switch state, and the optional first frequency band or second frequency band test switch state; When it is determined that the frequency band type supported by the WiFi to be tested is the first frequency band, the element value used to indicate the frequency band type is assigned a value of 1; when it is determined that the frequency band type supported by the WiFi to be tested is the second frequency band, the element value used to indicate the frequency band type is assigned a value of 2; when it is determined that the frequency band types supported by the WiFi to be tested are the first frequency band and the second frequency band, the element value used to indicate the frequency band type is assigned values ​​of 1 and 2; According to the bandwidth number list corresponding to each frequency band type, assign the corresponding bandwidth number to the element value used to indicate the bandwidth number; According to the channel number list corresponding to each frequency band type, assign the corresponding channel number to the element value used to indicate the channel number; Generates a final multidimensional array based on the initial multidimensional array that has all the values ​​assigned.

7. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, an automatic testing method for WiFi performance as described in any one of claims 1 to 5 is implemented.

8. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the automatic testing method for WiFi performance according to any one of claims 1 to 5.