WiFi signal stability test method and system, terminal and storage medium
By detecting the test button click of the target device during the WiFi signal stability test, obtaining WiFi connection information, matching network information, and performing functional tests according to the target test plan, the insufficient and inefficient WiFi signal stability test in the existing technology is solved. problem, achieving more accurate and efficient test results.
Patent Information
- Application Number
- CN202411279530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-24
AI Technical Summary
The stability test of WiFi signals in the prior art is not comprehensive enough, resulting in inaccurate test results and low test efficiency.
A WiFi signal stability testing method is provided, which includes detecting when the test button of the target device is clicked, obtaining WiFi connection information and matching network information to determine the WiFi signal to be tested. Test the scanning function, connection function and delay function according to the target test plan, and judge the stability of the WiFi signal based on the test results.
Through comprehensive testing methods, the accuracy of WiFi signal stability testing is improved, and testing efficiency is improved through automated testing.
Smart Images

Figure CN119364388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication testing technology, and in particular to a WiFi signal stability testing method, system, terminal and computer-readable storage medium. Background Art
[0002] With the development of the Internet, short-range wireless communication technology is needed in more and more scenarios. WiFi belongs to short-range wireless communication technology. For example, in the development of equipment, iterative upgrades of system versions, etc., the stability of WiFi is particularly important during the application process.
[0003] However, the WiFi stability test in the prior art is not comprehensive enough, resulting in inaccurate WiFi stability test results, which affects the user experience; when there are many WiFi interfaces of the corresponding device, if each WiFi interface is tested manually, the test takes a long time, resulting in low efficiency of WiFi stability test.
[0004] Therefore, the prior art still needs to be improved and developed. Summary of the invention
[0005] The main purpose of the present invention is to provide a WiFi signal stability test method, system, terminal and storage medium, aiming to solve the problems in the prior art that the WiFi stability test results are not accurate enough and the WiFi stability test efficiency is low.
[0006] To achieve the above object, the present invention provides a method for testing the stability of a WiFi signal, the method comprising the following steps:
[0007] When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and if the WiFi connection information contains a WiFi signal to be tested, a target test scheme of the WiFi signal to be tested is obtained;
[0008] A stability test is performed on the WiFi signal to be tested according to the target test scheme to obtain a stability test result. If the stability test result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
[0009] Optionally, the method for testing the stability of a WiFi signal, wherein when it is detected that a test button of a target device is clicked, obtaining WiFi connection information of the target device, if the WiFi connection information contains a WiFi signal to be tested, and obtaining a target test scheme for the WiFi signal to be tested, specifically includes:
[0010] Obtain network information of the WiFi signal to be tested, wherein the network information includes WiFi name, IP address and gateway information;
[0011] When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and the network information is matched with the WiFi connection information to obtain a matching result;
[0012] If the matching result is a successful match, it is determined that there is a WiFi signal to be tested in the WiFi connection information, and a target test scheme for the WiFi signal to be tested is obtained, wherein the target test scheme includes a scanning function test scheme, a connection function test scheme, and a delay function test scheme.
[0013] Optionally, the method for testing the stability of a WiFi signal, wherein the step of performing a stability test on the WiFi signal to be tested according to the test scheme to obtain a stability test result, specifically includes:
[0014] Perform a scan test on the WiFi signal to be tested according to the scan function test scheme to obtain a scan test result;
[0015] Perform a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result;
[0016] Perform a delay test on the WiFi signal to be tested according to the delay function test solution to obtain a delay test result;
[0017] The scan test result, the connection test result and the delay test result are combined to obtain a stability test result.
[0018] Optionally, the method for testing the stability of a WiFi signal, wherein if the stability test result meets a preset requirement, determining that the WiFi signal to be tested is stable, specifically includes:
[0019] Respectively obtain the number of failures of the scan test result, the connection test result and the delay test result to obtain the number of scan test failures, the number of connection test failures and the number of delay test failures;
[0020] Calculate the corresponding scan test failure probability according to the number of scan test failures, calculate the corresponding connection test failure probability according to the number of connection test failures, and calculate the corresponding delay test failure probability according to the number of delay test failures;
[0021] Respectively comparing the scan test failure probability, the connection test failure probability and the delay test failure probability with a preset probability threshold to obtain a first comparison result, a second comparison result and a third comparison result, and combining the first comparison result, the second comparison result and the third comparison result to obtain a target comparison result;
[0022] If the target comparison result is that the scan test failure probability, the connection test failure probability and the delay test failure probability are all less than the preset probability threshold, it means that the stability test result meets the preset requirements and it is determined that the WiFi signal to be tested is stable.
[0023] Optionally, the method for testing the stability of a WiFi signal, wherein the step of performing a scan test on the WiFi signal to be tested according to a scan function test scheme to obtain a scan test result, specifically includes:
[0024] Testing the scanning function of the WiFi signal to be tested according to the scanning function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times;
[0025] If the test number reaches the preset number, it is determined that the scanning function test of the WiFi signal to be tested has been completed, and a corresponding scanning test result is obtained, wherein the scanning test result includes the number of scanning test successes and the number of scanning test failures.
[0026] Optionally, the method for testing the stability of a WiFi signal, wherein the step of performing a connection test on the WiFi signal to be tested according to a connection function test scheme to obtain a connection test result, specifically includes:
[0027] Testing the connection function of the WiFi signal to be tested according to the connection function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the connection function includes connection time and connection status;
[0028] If the test number reaches the preset number, it is determined that the connection function test of the WiFi signal to be tested has been completed, and a corresponding connection test result is obtained, wherein the connection test result includes the number of connection test successes and the number of connection test failures.
[0029] Optionally, the method for testing the stability of a WiFi signal, wherein the delay test is performed on the WiFi signal to be tested according to the delay function test scheme to obtain the delay test result, specifically comprising:
[0030] Testing the delay function of the WiFi signal to be tested according to the delay function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the delay function includes the web page opening state and the web page response time;
[0031] If the test number reaches the preset number, it is determined that the delay function test of the WiFi signal to be tested has been completed, and a corresponding delay test result is obtained, wherein the delay test result includes the number of delay test successes and the number of delay test failures.
[0032] Optionally, in the WiFi signal stability testing method, the WiFi signal stability testing system comprises:
[0033] An information determination module, configured to obtain WiFi connection information of the target device when detecting that a test button of the target device is clicked, and if the WiFi connection information contains a WiFi signal to be tested, obtain a target test solution for the WiFi signal to be tested;
[0034] The stability testing module is used to perform a stability test on the WiFi signal to be tested according to the target testing scheme to obtain a stability testing result. If the stability testing result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and a WiFi signal stability test program stored in the memory and executable on the processor, and when the WiFi signal stability test program is executed by the processor, the steps of the WiFi signal stability test method as described above are implemented.
[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a stability test program for a WiFi signal, and when the stability test program for a WiFi signal is executed by a processor, the steps of the stability test method for a WiFi signal as described above are implemented.
[0037] In the present invention, when it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, if the WiFi connection information has a WiFi signal to be tested, and the target test scheme of the WiFi signal to be tested is obtained; the stability test of the WiFi signal to be tested is performed according to the target test scheme to obtain a stability test result, and if the stability test result meets the preset requirements, it is determined that the WiFi signal to be tested is stable. The present invention can test the stability of WiFi more comprehensively, thereby improving the accuracy of the WiFi stability test result, and can automatically complete the WiFi stability test, thereby improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 It is a flow chart of a preferred embodiment of the method for testing the stability of WiFi signals in the present invention;
[0039] Figure 2 It is a structural diagram of a preferred embodiment of a WiFi signal stability test system of the present invention;
[0040] Figure 3 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0042] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0043] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0044] The stability testing method of the WiFi signal described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the WiFi signal stability testing method includes the following steps:
[0045] Step S10: When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained. If the WiFi connection information contains a WiFi signal to be tested, a target test solution of the WiFi signal to be tested is obtained.
[0046] The step S10 comprises:
[0047] Step S11, obtaining network information of the WiFi signal to be tested, wherein the network information includes WiFi name, IP address and gateway information;
[0048] Step S12: when it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and the network information is matched with the WiFi connection information to obtain a matching result;
[0049] Step S13: If the matching result is a successful match, it is determined that there is a WiFi signal to be tested in the WiFi connection information, and a target test scheme for the WiFi signal to be tested is obtained, wherein the target test scheme includes a scanning function test scheme, a connection function test scheme, and a delay function test scheme.
[0050] Specifically, when it is necessary to perform a stability test on a WiFi signal, network information of the WiFi signal to be tested is obtained, wherein the network information includes a WiFi name, an IP address, and gateway information; when it is detected that the test button of the target device is clicked, it indicates that it is necessary to start testing the WiFi signal to be tested, and it is necessary to determine whether the WiFi signal to be tested has been connected, specifically, the WiFi connection information of the target device is obtained, and the network information is matched with the WiFi connection information to obtain a matching result; if there is a WiFi signal matching the network information in the current WiFi connection information, it indicates that the WiFi signal to be tested has been connected, that is, the matching result is a successful match, and a target test scheme of the WiFi signal to be tested is obtained, wherein the target test scheme includes a scanning function test scheme, a connection function test scheme, and a delay function test scheme, the scanning function test scheme includes the number of tests (for example, 100 times), scanning function on, and scanning function off, the connection function test scheme includes the number of tests, connection time, and connection status (for example, opening the connection or closing the connection), and the delay function test scheme includes the number of tests, web page opening status, and web page response time.
[0051] Step S20: Perform a stability test on the WiFi signal to be tested according to the target test scheme to obtain a stability test result. If the stability test result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
[0052] The step S20 comprises:
[0053] Step S21, performing a scan test on the WiFi signal to be tested according to a scan function test scheme to obtain a scan test result;
[0054] Step S22: performing a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result;
[0055] Step S23: perform a delay test on the WiFi signal to be tested according to the delay function test solution to obtain a delay test result;
[0056] Step S24: perform a delay test on the WiFi signal to be tested according to the delay function test solution to obtain a delay test result;
[0057] Step S25, respectively obtaining the number of failures of the scan test result, the connection test result and the delay test result, to obtain the number of scan test failures, the number of connection test failures and the number of delay test failures;
[0058] Step S26, calculating the corresponding scan test failure probability according to the scan test failure number, calculating the corresponding connection test failure probability according to the connection test failure number, and calculating the corresponding delay test failure probability according to the delay test failure number;
[0059] Step S27, respectively compare the scan test failure probability, the connection test failure probability and the delay test failure probability with a preset probability threshold to obtain a first comparison result, a second comparison result and a third comparison result, and combine the first comparison result, the second comparison result and the third comparison result to obtain a target comparison result;
[0060] Step S28: If the target comparison result is that the scan test failure probability, the connection test failure probability and the delay test failure probability are all less than the preset probability threshold, it means that the stability test result meets the preset requirement, and it is determined that the WiFi signal to be tested is stable.
[0061] Specifically, in an embodiment of the present invention, after obtaining the target test scheme of the WiFi signal to be tested, it is necessary to perform a stability test on the WiFi signal to be tested according to the target test scheme to obtain a corresponding stability test result, wherein the stability test result includes a scan test result, a connection test result and a delay test result; for the scan test result, the WiFi signal to be tested is scanned and tested according to the scan function test scheme of the target test scheme to obtain a scan test result. The specific process is to test the scan function of the WiFi signal to be tested according to the scan function test scheme and record the corresponding test times, wherein each test tests the scan function on and off of the WiFi signal to be tested. Afterwards, it is determined whether the scan function test of the WiFi signal to be tested is completed according to the test times. If the test times reach a preset number (for example, 100 times), it is determined that the WiFi signal to be tested is The scanning function of the signal has completed the test, and the corresponding scanning test result is obtained, wherein the scanning test result includes the number of scanning test successes and the number of scanning test failures, the number of scanning test successes is the number of times the scanning function test of the WiFi signal to be tested is successful in the current test, and the scanning function test success means that the scanning function of the WiFi signal to be tested is turned on and the scanning function is turned off normally; the number of scanning test failures is the number of times the scanning function test of the WiFi signal to be tested fails in the current test, and the scanning function test failure means that there is an abnormality in the scanning function turning on or the scanning function turning off of the WiFi signal to be tested, that is, there is an abnormality in both the scanning function turning on and the scanning function turning off of the WiFi signal to be tested, the scanning function of the WiFi signal to be tested is turned on normally and there is an abnormality in the scanning function turning off, and there is an abnormality in the scanning function turning on of the WiFi signal to be tested and the scanning function turning off is normal, all of which are scanning function test failures of the WiFi signal to be tested.
[0062] Afterwards, for the connection test result, a connection test is performed on the WiFi signal to be tested according to the connection function test scheme of the target test scheme to obtain a scanning test result. The specific process is to test the connection function of the WiFi signal to be tested according to the connection function test scheme, and record the corresponding test times, wherein each test tests the connection time and connection status of the WiFi signal to be tested. Afterwards, whether the connection function test of the WiFi signal to be tested is completed is determined according to the test times. If the test times reach a preset number (for example, 100 times), it is determined that the connection function of the WiFi signal to be tested has been tested, and the corresponding connection test result is obtained, wherein the connection test result includes the number of connection test successes and the number of connection test failures. The number of connection test successes is in the current test. The number of successful connection function tests of the WiFi signal to be tested, and a successful connection function test means that the connection time of the WiFi signal to be tested is less than the preset connection time and the connection state is connected; the number of failed connection tests is the number of failed connection tests of the WiFi signal to be tested in the current test, and a failed connection function test means that the connection time of the WiFi signal to be tested is greater than or equal to the preset connection time or the connection state is not connected, that is, the connection time of the WiFi signal to be tested is greater than or equal to the preset connection time and the connection state is connected, the connection time of the WiFi signal to be tested is greater than or equal to the preset connection time and the connection state is not connected, and the connection time of the WiFi signal to be tested is less than the preset connection time and the connection state is not connected, all of which are failures in the connection function test of the WiFi signal to be tested.
[0063] Afterwards, for the delay test result, a delay test is performed on the WiFi signal to be tested according to the delay function test scheme of the target test scheme to obtain a delay test result. The specific process is to test the delay function of the WiFi signal to be tested according to the delay function test scheme, and record the corresponding test times, wherein each test tests the web page opening state and web page response time of the WiFi signal to be tested. Afterwards, whether the delay function test of the WiFi signal to be tested is completed is determined according to the test times. If the test times reach a preset number (for example, 100 times), it is determined that the delay function of the WiFi signal to be tested has been tested, and the corresponding delay test result is obtained, wherein the delay test result includes the number of delay test successes and the number of delay test failures. The number of delay test successes is the number of delay test failures in the current test. The number of successful delay function tests of the WiFi signal is tested, and a successful delay function test means that the web page opening state of the WiFi signal to be tested is opened and the web page response time is less than the preset response time; the number of delay test failures is the number of times the delay test of the WiFi signal to be tested fails in the current test, and a delay function test failure means that the web page opening state of the WiFi signal to be tested is not opened or the web page response time is greater than or equal to the preset response time, that is, the web page opening state of the WiFi signal to be tested is not opened and the web page response time is greater than or equal to the preset response time, the web page opening state of the WiFi signal to be tested is opened and the web page response time is greater than or equal to the preset response time, and the web page opening state of the WiFi signal to be tested is not opened and the web page response time is less than the preset response time, all of which are failures of the delay function test of the WiFi signal to be tested.
[0064] Afterwards, the number of failures of the scan test result, the connection test result and the delay test result are obtained respectively to obtain the number of scan test failures, the number of connection test failures and the number of delay test failures; the corresponding scan test failure probability is calculated according to the number of scan test failures, the corresponding connection test failure probability is calculated according to the number of connection test failures, and the corresponding delay test failure probability is calculated according to the number of delay test failures; the scan test failure probability is compared with a preset probability threshold (for example, 10%) to obtain a first comparison result, the connection test failure probability is compared with a preset probability threshold to obtain a second comparison result, the delay test failure probability is compared with a preset probability threshold to obtain a third comparison result, and the first comparison result, the second comparison result and the third comparison result are combined to obtain a target comparison result; if the target result is that the scan test failure probability, the connection test failure probability and the delay test failure probability are all less than the preset probability threshold, it means that the stability test result meets the preset requirements, and it is determined that the WiFi signal to be tested is stable.
[0065] Furthermore, if the target result is that any one of the scan test failure probability, the connection test failure probability and the delay test failure probability is greater than or equal to the preset probability threshold, it means that the stability test result does not meet the preset requirements, and it is determined that the WiFi signal to be tested is unstable.
[0066] The present invention can test the stability of WiFi more comprehensively, thereby improving the accuracy of the WiFi stability test result, and can automatically complete the WiFi stability test, thereby improving the test efficiency.
[0067] Furthermore, if Figure 2 As shown, based on the above WiFi signal stability test method, the present invention also provides a WiFi signal stability test system, and the WiFi signal stability test system includes:
[0068] The information determination module 51 is used to obtain the WiFi connection information of the target device when it is detected that the test button of the target device is clicked, and if the WiFi connection information contains a WiFi signal to be tested, obtain the target test scheme of the WiFi signal to be tested;
[0069] The stability testing module 52 is used to perform a stability test on the WiFi signal to be tested according to the target testing scheme to obtain a stability test result. If the stability test result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
[0070] Furthermore, if Figure 3As shown, based on the above WiFi signal stability testing method, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.
[0071] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, a stability test program 40 of a WiFi signal is stored on the memory 20, and the stability test program 40 of the WiFi signal can be executed by the processor 10, thereby realizing the stability test method of the WiFi signal in the present application.
[0072] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the WiFi signal stability test method.
[0073] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
[0074] In one embodiment, when the processor 10 executes the WiFi signal stability test program 40 in the memory 20, the following steps are implemented:
[0075] When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and if the WiFi connection information contains a WiFi signal to be tested, a target test scheme of the WiFi signal to be tested is obtained;
[0076] A stability test is performed on the WiFi signal to be tested according to the target test scheme to obtain a stability test result. If the stability test result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
[0077] When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, if the WiFi connection information contains a WiFi signal to be tested, and the target test scheme of the WiFi signal to be tested is obtained, specifically including:
[0078] Obtain network information of the WiFi signal to be tested, wherein the network information includes WiFi name, IP address and gateway information;
[0079] When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and the network information is matched with the WiFi connection information to obtain a matching result;
[0080] If the matching result is a successful match, it is determined that there is a WiFi signal to be tested in the WiFi connection information, and a target test scheme for the WiFi signal to be tested is obtained, wherein the target test scheme includes a scanning function test scheme, a connection function test scheme, and a delay function test scheme.
[0081] The step of performing a stability test on the WiFi signal to be tested according to the test scheme to obtain a stability test result specifically includes:
[0082] Perform a scan test on the WiFi signal to be tested according to the scan function test scheme to obtain a scan test result;
[0083] Perform a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result;
[0084] Perform a delay test on the WiFi signal to be tested according to the delay function test solution to obtain a delay test result;
[0085] The scan test result, the connection test result and the delay test result are combined to obtain a stability test result.
[0086] If the stability test result meets the preset requirement, determining that the WiFi signal to be tested is stable specifically includes:
[0087] Respectively obtain the number of failures of the scan test result, the connection test result and the delay test result to obtain the number of scan test failures, the number of connection test failures and the number of delay test failures;
[0088] Calculate the corresponding scan test failure probability according to the number of scan test failures, calculate the corresponding connection test failure probability according to the number of connection test failures, and calculate the corresponding delay test failure probability according to the number of delay test failures;
[0089] Respectively comparing the scan test failure probability, the connection test failure probability and the delay test failure probability with a preset probability threshold to obtain a first comparison result, a second comparison result and a third comparison result, and combining the first comparison result, the second comparison result and the third comparison result to obtain a target comparison result;
[0090] If the target comparison result is that the scan test failure probability, the connection test failure probability and the delay test failure probability are all less than the preset probability threshold, it means that the stability test result meets the preset requirements and it is determined that the WiFi signal to be tested is stable.
[0091] The scanning test of the WiFi signal to be tested according to the scanning function test scheme to obtain the scanning test result specifically includes:
[0092] Testing the scanning function of the WiFi signal to be tested according to the scanning function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times;
[0093] If the test number reaches the preset number, it is determined that the scanning function test of the WiFi signal to be tested has been completed, and a corresponding scanning test result is obtained, wherein the scanning test result includes the number of scanning test successes and the number of scanning test failures.
[0094] The step of performing a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result specifically includes:
[0095] Testing the connection function of the WiFi signal to be tested according to the connection function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the connection function includes connection time and connection status;
[0096] If the test number reaches the preset number, it is determined that the connection function test of the WiFi signal to be tested has been completed, and a corresponding connection test result is obtained, wherein the connection test result includes the number of connection test successes and the number of connection test failures.
[0097] Among them, the delay test is performed on the WiFi signal to be tested according to the delay function test scheme to obtain the delay test result, specifically including:
[0098] Testing the delay function of the WiFi signal to be tested according to the delay function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the delay function includes the web page opening state and the web page response time;
[0099] If the test number reaches the preset number, it is determined that the delay function test of the WiFi signal to be tested has been completed, and a corresponding delay test result is obtained, wherein the delay test result includes the number of delay test successes and the number of delay test failures.
[0100] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a WiFi signal stability test program, and when the WiFi signal stability test program is executed by a processor, the steps of the WiFi signal stability test method described above are implemented.
[0101] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0102] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.
[0103] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for testing the stability of a WiFi signal, characterized in that: The WiFi signal stability testing method includes: When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and if the WiFi connection information contains a WiFi signal to be tested, a target test scheme of the WiFi signal to be tested is obtained; A stability test is performed on the WiFi signal to be tested according to the target test scheme to obtain a stability test result. If the stability test result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
2. The method for testing the stability of a WiFi signal according to claim 1, characterized in that: When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, if the WiFi connection information contains a WiFi signal to be tested, and the target test scheme of the WiFi signal to be tested is obtained, specifically including: Obtain network information of the WiFi signal to be tested, wherein the network information includes WiFi name, IP address and gateway information; When it is detected that the test button of the target device is clicked, the WiFi connection information of the target device is obtained, and the network information is matched with the WiFi connection information to obtain a matching result; If the matching result is a successful match, it is determined that there is a WiFi signal to be tested in the WiFi connection information, and a target test scheme for the WiFi signal to be tested is obtained, wherein the target test scheme includes a scanning function test scheme, a connection function test scheme, and a delay function test scheme.
3. The method for testing the stability of a WiFi signal according to claim 2, characterized in that: The performing a stability test on the WiFi signal to be tested according to the test scheme to obtain a stability test result specifically includes: Perform a scan test on the WiFi signal to be tested according to the scan function test scheme to obtain a scan test result; Perform a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result; Perform a delay test on the WiFi signal to be tested according to the delay function test solution to obtain a delay test result; The scan test result, the connection test result and the delay test result are combined to obtain a stability test result.
4. The method for testing the stability of a WiFi signal according to claim 3, characterized in that: If the stability test result meets the preset requirement, determining that the WiFi signal to be tested is stable specifically includes: Respectively obtain the number of failures of the scan test result, the connection test result and the delay test result to obtain the number of scan test failures, the number of connection test failures and the number of delay test failures; Calculate the corresponding scan test failure probability according to the number of scan test failures, calculate the corresponding connection test failure probability according to the number of connection test failures, and calculate the corresponding delay test failure probability according to the number of delay test failures; Respectively comparing the scan test failure probability, the connection test failure probability and the delay test failure probability with a preset probability threshold to obtain a first comparison result, a second comparison result and a third comparison result, and combining the first comparison result, the second comparison result and the third comparison result to obtain a target comparison result; If the target comparison result is that the scan test failure probability, the connection test failure probability and the delay test failure probability are all less than the preset probability threshold, it means that the stability test result meets the preset requirement, and it is determined that the WiFi signal to be tested is stable.
5. The method for testing the stability of a WiFi signal according to claim 3, characterized in that: The scanning test is performed on the WiFi signal to be tested according to the scanning function test scheme to obtain the scanning test result, specifically including: Testing the scanning function of the WiFi signal to be tested according to the scanning function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times; If the test number reaches the preset number, it is determined that the scanning function test of the WiFi signal to be tested has been completed, and a corresponding scanning test result is obtained, wherein the scanning test result includes the number of scanning test successes and the number of scanning test failures.
6. The method for testing the stability of a WiFi signal according to claim 3, characterized in that: The performing a connection test on the WiFi signal to be tested according to the connection function test scheme to obtain a connection test result specifically includes: Testing the connection function of the WiFi signal to be tested according to the connection function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the connection function includes connection time and connection status; If the test times reach the preset times, it is determined that the connection function test of the WiFi signal to be tested has been completed, and a corresponding connection test result is obtained, wherein the connection test result includes the number of connection test successes and the number of connection test failures.
7. The method for testing the stability of a WiFi signal according to claim 3, characterized in that: The delay test is performed on the WiFi signal to be tested according to the delay function test scheme to obtain the delay test result, specifically including: Testing the delay function of the WiFi signal to be tested according to the delay function test scheme, and recording the corresponding test times, and judging whether the scanning function test of the WiFi signal to be tested is completed according to the test times, wherein the delay function includes the webpage opening state and the webpage response time; If the test number reaches the preset number, it is determined that the delay function test of the WiFi signal to be tested has been completed, and a corresponding delay test result is obtained, wherein the delay test result includes the number of delay test successes and the number of delay test failures.
8. A WiFi signal stability test system, characterized in that: The WiFi signal stability testing system includes: An information determination module, configured to obtain WiFi connection information of the target device when detecting that a test button of the target device is clicked, and if the WiFi connection information contains a WiFi signal to be tested, obtain a target test solution for the WiFi signal to be tested; The stability testing module is used to perform a stability test on the WiFi signal to be tested according to the target testing scheme to obtain a stability testing result. If the stability testing result meets a preset requirement, it is determined that the WiFi signal to be tested is stable.
9. A terminal, characterized in that: The terminal includes a memory, a processor, and a WiFi signal stability test program stored in the memory and executable on the processor. When the WiFi signal stability test program is executed by the processor, the steps of the WiFi signal stability test method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer-readable storage medium stores a WiFi signal stability test program. When the WiFi signal stability test program is executed by a processor, the steps of the WiFi signal stability test method as described in any one of claims 1 to 7 are implemented.