Roaming test method and related equipment

By gradually reducing the wireless network signal strength and obtaining mobile terminal log data to determine the roaming test results, it solves the problems of low efficiency and high cost of existing roaming tests and achieves more efficient and accurate test results.

CN118764902APending Publication Date: 2024-10-11SPREADTRUM SEMICON(CHENGDU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410895355.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing roaming test methods are inefficient and costly, making it difficult to effectively optimize network configuration parameters to improve user experience.

Method used

Roaming is triggered by gradually reducing the signal strength of the wireless network currently accessed by the mobile terminal, and the log data of the mobile terminal is obtained to judge the test results and determine whether the roaming is successful or failed.

Benefits of technology

It improves the testing efficiency of roaming automated testing, enhances the accuracy of test results, and reduces testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764902A_ABST
    Figure CN118764902A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a roaming test method and related equipment. The method comprises the following steps: generating a plurality of wireless networks matched with a to-be-tested roaming scene according to the to-be-tested roaming scene; controlling the mobile terminal to be connected to a target wireless network in the plurality of wireless networks; gradually reducing the signal strength of the target wireless network until a first trigger signal of a test stop condition is detected; acquiring log data of the mobile terminal in a period from connection to the target wireless network to detection of the first trigger signal; determining a test result of the to-be-tested roaming scene based on the log data; the test result comprises roaming success and roaming failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a roaming test method and related equipment. Background Art

[0002] Roaming refers to the process in which a wireless device moves from the wireless network coverage of one router to the wireless network coverage of another router, and the mobile terminal switches to the new router while maintaining the continuity of the network connection. Roaming depends on the protocol and function support between the wireless device and the router. The wireless device and the router need to support the roaming function to realize the roaming function. Different roaming scenarios correspond to different network configuration parameters, and how to test different roaming scenarios and optimize the network configuration parameters to improve the user's roaming experience is a problem that needs to be solved urgently. The prior art proposes a method in which a tester slowly moves a mobile terminal from the wireless network coverage of one router to the wireless network coverage of another router to perform a roaming test. Alternatively, a trolley is used to replace the tester, and the trolley is controlled to carry the mobile terminal and slowly move from the wireless network coverage of one router to the wireless network coverage of another router. This method requires a large site support, high cost, and the roaming test takes a long time and has poor test efficiency. Summary of the invention

[0003] In view of this, the present application provides a roaming test method, which triggers the roaming of a mobile terminal by gradually reducing the signal strength of the wireless network to which the mobile terminal is currently connected during the test process, and accurately judges the test result of this roaming by obtaining the log data of the mobile terminal after the roaming is triggered.

[0004] In a first aspect, an embodiment of the present invention provides a roaming test method, including:

[0005] Generating, according to the roaming scenario to be tested, a plurality of wireless networks matching the roaming scenario to be tested;

[0006] Controlling the mobile terminal to connect to a target wireless network among the multiple wireless networks;

[0007] gradually reducing the signal strength of the target wireless network until a first trigger signal of a test stop condition is detected;

[0008] Acquiring log data of the mobile terminal from the time of connecting to the target wireless network to the time of detecting the first trigger signal;

[0009] A test result of the roaming scenario to be tested is determined based on the log data; the test result includes roaming success and roaming failure.

[0010] In a possible implementation manner, the generating, according to the roaming scenario to be tested, a plurality of wireless networks matching the roaming scenario to be tested includes:

[0011] Determine the roaming type of the roaming scenario to be tested; the roaming type includes normal roaming and fast roaming;

[0012] A plurality of corresponding wireless networks are generated according to the roaming type.

[0013] In a possible implementation manner, generating a plurality of corresponding wireless networks according to the roaming type includes:

[0014] According to the fast roaming, multiple wireless networks of access controller networking are generated; or,

[0015] According to the common roaming, a plurality of wireless networks which are not networked by the access controller are generated.

[0016] In a possible implementation manner, the step of gradually reducing the signal strength of the target wireless network includes:

[0017] Obtaining received signal strength indication information of the mobile terminal;

[0018] Determine a first attenuation step length according to the received signal strength indication information;

[0019] Controlling the signal strength of the target wireless network to reduce the first attenuation step;

[0020] When the first trigger signal is still not detected after the signal strength of the target wireless network is controlled to be reduced by the first attenuation step, the signal strength of the target wireless network is controlled to be reduced by a second attenuation step until the first trigger signal is detected; wherein the second attenuation step is smaller than the first attenuation step.

[0021] In a possible implementation manner, determining the first attenuation step size according to the received signal strength indication information includes:

[0022] Determine a first difference between the received signal strength indication information and a roaming trigger threshold;

[0023] The first attenuation step length is determined according to the first difference; wherein an absolute value of the first difference value is greater than an absolute value of the first attenuation step length.

[0024] In a possible implementation, the detecting of the first trigger signal of the test stop condition includes:

[0025] When it is detected that the wireless network accessed by the mobile terminal is switched from the target wireless network to another wireless network among the multiple wireless networks, it is determined that the first trigger signal is detected; or,

[0026] When it is detected that the received signal strength indication information of the mobile terminal is less than a roaming trigger threshold, it is determined that the first trigger signal is detected.

[0027] In a possible implementation manner, determining the test result of the roaming scenario to be tested based on the log data includes:

[0028] Determining whether there is keyword information indicating network disconnection in the log data;

[0029] When the log data contains the keyword information indicating that the network connection is disconnected, determining that the test result of the roaming scenario to be tested is roaming failure; or,

[0030] When the keyword information of the network connection disconnection does not exist in the log data, it is determined that the test result of the roaming scenario to be tested is roaming success.

[0031] In a possible implementation manner, the test result of the roaming scenario to be tested is that roaming is successful, and the method further includes:

[0032] The integrity of the roaming process is detected according to the log data.

[0033] In a possible implementation manner, the test result of the roaming scenario to be tested is that roaming is successful, and the method further includes:

[0034] Determine, according to the log data, a first time when the mobile terminal triggers roaming and a second time when the roaming ends;

[0035] Determine a roaming delay according to the first time and the second time;

[0036] Determining whether the roaming delay is greater than or equal to a roaming delay threshold;

[0037] When the roaming delay is greater than or equal to the roaming delay threshold, the test result of the roaming scenario to be tested is modified from roaming success to roaming failure.

[0038] In a second aspect, an embodiment of the present invention provides a roaming test device, including:

[0039] A network configuration module, used to generate a plurality of wireless networks matching the roaming scenario to be tested according to the roaming scenario to be tested;

[0040] A processing module, used for controlling the mobile terminal to connect to a target wireless network among the multiple wireless networks;

[0041] A signal strength adjustment module, used to gradually reduce the signal strength of the target wireless network;

[0042] an acquisition module, configured to acquire log data of the mobile terminal from the time of connecting to the target wireless network to the time of detecting the first trigger signal when a first trigger signal of a test stop condition is detected;

[0043] The analysis module is used to determine the test result of the roaming scenario to be tested based on the log data; the test result includes roaming success and roaming failure.

[0044] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0045] at least one processor; and

[0046] at least one memory in communication with the processor, wherein:

[0047] The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the first aspect.

[0048] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method described in the first aspect.

[0049] In the embodiment of the present invention, the test efficiency of the roaming automation test can be improved by adaptively adjusting the network signal strength, and the success of the roaming can be determined by obtaining the log data of the mobile terminal during the roaming process, thereby improving the accuracy of the test result. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0051] Figure 1 A flow chart of a roaming test method provided by an embodiment of the present invention;

[0052] Figure 2 A network topology diagram of a roaming test system provided by an embodiment of the present invention;

[0053] Figure 3 A flowchart of another roaming test method provided by an embodiment of the present invention;

[0054] Figure 4 A schematic diagram of the structure of a roaming test device provided by an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0057] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0058] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0059] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0060] In order to solve the problems of low efficiency and large occupied space of roaming automatic test in the prior art, an embodiment of the present invention provides a roaming test method. Figure 1 A flow chart of a roaming test method provided by an embodiment of the present invention. Figure 1 As shown in , the method includes:

[0061] Step 101: Generate multiple wireless networks matching the roaming scenario to be tested according to the roaming scenario to be tested.

[0062] Among them, different roaming scenarios can be traversed and collected in advance to obtain corresponding multiple test cases to form a test case set. Afterwards, the test cases to be tested in the test case set are tagged. The tagged test cases are the roaming scenarios to be tested.

[0063] Specifically, a test case is a description of a test task for a specific target, reflecting the test plan, method, technology and strategy. Its content includes test objectives, test environment, input data, test steps, expected results, test scripts, etc., and finally forms a document. A test case mainly contains four contents: test case title, preconditions, test steps and expected results. The test case title mainly describes the test of a certain function. Preconditions refer to the conditions that the test case title needs to meet. Test steps mainly describe the operation steps of the use case. Expected results refer to meeting the expected requirements (development specifications, requirement documents, user requirements, etc.).

[0064] For the roaming scenario to be tested, the roaming type of the roaming scenario to be tested can be determined first. The roaming type includes normal roaming and fast roaming. Then, multiple corresponding wireless networks are generated according to the roaming type for roaming testing. Specifically, when the roaming type of the roaming scenario to be tested is fast roaming, multiple wireless networks of access controller networking can be generated according to fast roaming. When the roaming type of the roaming scenario to be tested is normal roaming, multiple wireless networks of non-access controller networking can be generated according to normal roaming.

[0065] Step 102: Control the mobile terminal to connect to a target wireless network among multiple wireless networks.

[0066] The mobile terminal is controlled to perform the operation of turning on Wi-Fi and connecting to the router corresponding to the target wireless network by sending a corresponding control instruction to the mobile terminal. The control instruction may include the service set identifier (SSID) of the router corresponding to the target wireless network, so that the mobile terminal connects to the router corresponding to the target wireless network through the SSID and then accesses the target wireless network.

[0067] Step 103: gradually reduce the signal strength of the target wireless network until a first trigger signal of a test stop condition is detected.

[0068] By gradually reducing the signal strength emitted by the target wireless network, the signal strength of the target wireless network received by the mobile terminal is gradually reduced, thereby simulating a scenario where the user is away from the target wireless network. For example, the signal strength can be reduced by 5dBm each time.

[0069] Among them, the first trigger signal can be specifically implemented as follows: when it is detected that the wireless network accessed by the mobile terminal switches from the target wireless network to another wireless network among the multiple wireless networks, it is determined that the first trigger signal is detected. That is, when the router connected to the mobile terminal changes, it can be determined that the mobile terminal has completed roaming, and there is no need to continue to reduce the signal strength of the target flawless network. In some embodiments, it can also be determined that the first trigger signal is detected when it is detected that the received signal strength indication (RSSI) information of the mobile terminal is less than the roaming trigger threshold.

[0070] Step 104: Obtain log data of the mobile terminal from the time the mobile terminal is connected to the target wireless network to the time the mobile terminal detects the first trigger signal.

[0071] The log data of the mobile terminal may be collected when the mobile terminal is connected to the target wireless network, and the collection of the log data continues until the first trigger signal is detected and then stopped, thereby obtaining the log data of the mobile terminal during the networking period.

[0072] Step 105: Determine the test result of the roaming scenario to be tested based on the log data. The test result includes roaming success and roaming failure.

[0073] Among them, keyword detection can be performed on the obtained log data to determine whether the mobile terminal is disconnected from the network during the roaming process. If so, it means that the roaming has failed. Specifically, it can be determined whether there is keyword information of network disconnection in the log data. When keyword information of network disconnection exists in the log data, the test result of the roaming scenario to be tested is determined to be roaming failure. When keyword information of network disconnection does not exist in the log data, the test result of the roaming scenario to be tested is determined to be roaming success. For the roaming scenario to be tested in which roaming fails, the log data of the mobile terminal can be exported to locate and analyze the abnormal problem.

[0074] In some embodiments, after determining that the test result of the roaming scenario to be tested is roaming success, the integrity of the roaming process can also be checked based on the log data. By obtaining the normal roaming process of the roaming type corresponding to the roaming scenario to be tested, it is detected whether there is corresponding interaction process keyword information in the log data. A count is set for each keyword information. If there is, the count is increased, and if not, the count remains unchanged. Then, it can be determined whether there is a real roaming process based on the final count. If the roaming process integrity check passes, it is determined that the test result of the roaming scenario to be tested is still roaming success. If the roaming process integrity check fails, the test result of the roaming scenario to be tested is changed from roaming success to roaming failure.

[0075] In some embodiments, when the signal strength of the target wireless network is reduced successively, in order to speed up the test efficiency, a larger value can be reduced when the signal strength is reduced for the first time, so that the RSSI value after the first reduction of the signal strength is close to the roaming trigger threshold, but still higher than the roaming trigger threshold, and roaming is not likely to occur. Then, the signal strength of the target wireless network is reduced successively, so that its RSSI value gradually approaches the roaming trigger threshold to simulate the user's low-speed movement scenario. Specifically, the received signal strength indication information of the mobile terminal can be obtained. Then, the first attenuation step length is determined according to the received signal strength indication information, and the signal strength of the target wireless network is controlled to reduce the first attenuation step length. When the first trigger signal is still not detected after the signal strength of the target wireless network is controlled to reduce the first attenuation step length, the signal strength of the target wireless network is controlled to reduce the second attenuation step length until the first trigger signal is detected. Among them, the second attenuation step length is less than the first attenuation step length. Among them, when determining the first attenuation step length, the higher the RSSI value, the larger the first attenuation step length. The smaller the RSSI value, the smaller the first attenuation step length. The second attenuation step length is a fixed value.

[0076] In some embodiments, when determining the first attenuation step length, the first attenuation step length may be determined based on the difference between the received signal strength indication information detected for the first time after the mobile terminal accesses the target and the roaming trigger threshold, so that the signal strength of the target network can be more accurately reduced to close to the roaming trigger threshold, avoiding reducing the signal strength below the roaming trigger threshold at one time. Specifically, the first difference between the received signal strength indication information and the roaming trigger threshold is determined. Then the first attenuation step length is determined based on the first difference. Among them, the absolute value of the first difference is greater than the absolute value of the first attenuation step length. For example, after the mobile terminal is connected to the target wireless network, the current RSSI value of the mobile terminal is collected, recorded as X. It is determined that the first difference between X and the roaming trigger threshold is G. Then the first attenuation step length may be GY. In a specific example, the RSSI value of the mobile terminal is collected as -30, and the roaming trigger threshold is -75. The difference between the RSSI value and the roaming trigger threshold is 45. Then the first attenuation step length may be 45-25=20. Thereafter, the signal strength is reduced by 5 each time until the RSSI value is less than -75 or the router accessed by the mobile terminal changes.

[0077] In some embodiments, after determining that there is no keyword information indicating network disconnection in the log data, the roaming delay needs to be detected, so that the final roaming test result is more accurate. Specifically, the first moment when the mobile terminal triggers roaming and the second moment when the roaming ends are determined based on the log data; the roaming delay is determined based on the first moment and the second moment. The difference between the second moment and the first moment is the roaming delay. Then, it is determined whether the roaming delay is greater than or equal to the roaming delay threshold. When the roaming delay is greater than or equal to the roaming delay threshold, the test result of the roaming scenario to be tested is changed from roaming success to roaming failure.

[0078] Corresponding to the above-mentioned roaming test method, an embodiment of the present invention provides a roaming test system. Figure 2 A network topology diagram of a roaming test system provided by an embodiment of the present invention. Figure 2 As shown in the figure, the roaming test system includes: a host computer 01, a roaming system 02 controlled by an access controller (AC), a roaming system 03 controlled by a non-access controller, a shielding box device 04, and a high-performance wireless router 05. The host computer 01 can be implemented in the form of a personal computer (PC).

[0079] Specifically, the AC controlled roaming system 02 specifically includes an access controller 021, a switch device 022, a first wireless thin wireless access point (Access Point, AP) device 023, a second wireless thin AP device 024, a first data attenuator 025 and a second digital attenuator 026. Among them, the switch device 022 can be specifically implemented as a Power over Ethernet, POE switch.

[0080] The non-AC controlled roaming system 03 specifically includes a first wireless fat AP device 031 , a second wireless fat AP device 032 , a third digital attenuator 033 and a fourth digital attenuator 034 .

[0081] The wireless network signal emitted by the first wireless thin AP device 023 is transmitted to the shielded wire device 04 after passing through the first digital attenuator 025, which is the wireless access point 1 (AP1). The wireless network signal emitted by the second wireless thin AP device 024 is transmitted to the shielded wire device 04 after passing through the second digital attenuator 026, which is the wireless access point 2 (AP2). The wireless network signal emitted by the first wireless fat AP device 031 is transmitted to the shielded wire device 04 after passing through the third digital attenuator 033, which is the wireless access point 3 (AP3). The wireless network signal emitted by the second wireless fat AP device 032 is transmitted to the shielded wire device 04 after passing through the fourth digital attenuator 034, which is the wireless access point 4 (AP4). Under the shielding effect of the shielding box device 04, the mobile terminal 041 therein can only receive the signals of AP1~AP4. The above-mentioned first wireless thin AP device 023, the second wireless thin AP device 023, the first wireless fat AP device 031 and the second wireless fat AP device can be specifically implemented in the form of a router.

[0082] The host computer 01 is connected to the mobile terminal 041 by a data line or the like. The four digital attenuators are connected to the host computer 01 by a data line or the like. The host computer 01 is connected to the high-performance wireless router 05, and an Internet Protocol (IP) address is allocated by accessing the high-performance wireless router 05. The host computer 01 accesses and controls the AC controller 021 by a serial port.

[0083] The LAN port of the high-performance wireless router 05 is connected to the switch device 022, and is used to act as a Dynamic Host Configuration Protocol (DHCP) server of the roaming system 02 under AC control, providing DHCP function for the first wireless thin AP device 023 and the second wireless thin AP device 024.

[0084] The high-performance wireless router 05 also forms a network based on the network cable and the WAN end of the first wireless fat AP device 031 and the second wireless fat AP device 032 in the roaming system 03 under non-AC control, and then configures the router parameters of the first wireless fat AP device 031 and the second wireless fat AP device 032.

[0085] Optionally, a power splitter may be provided between each wireless AP device and its respective digital attenuator to

[0086] based on Figure 2 The roaming test system shown in the figure, the embodiment of the present invention provides a flowchart of another roaming test method. Figure 3 As shown in

[0087] Step S201, the host computer 01 determines the test cases to be tested from the test case set. The host computer 01 screens the test cases in the test case set by using the labels, thereby determining the test cases that need to be tested as the test cases to be tested. If no label is set, all the test cases in the test case set are tested. The host computer 01 obtains the serial number (SN) of the mobile terminal and passes it to the test case with the label.

[0088] Step S202, the host computer 01 obtains the parameters of the test case, including the roaming type (normal roaming or fast roaming), the wireless router SSID identifier, the encryption type, etc.

[0089] Step S203, the host computer 01 determines whether it is a roaming system under AC control according to the roaming type. If so, step S204 is executed. If not, step S205 is executed.

[0090] Non-AC system.

[0091] Step S204, the host computer 01 sends a configuration parameter command to the AC controller 021 through the serial port. The host computer 01 configures the network identification SSID, encryption type, channel, frequency band and other information of the first wireless thin AP device 023 and the second wireless thin AP device 024 by sending the configuration parameter command.

[0092] In step S205, the host computer 01 sends a configuration parameter command to the high-performance wireless router 05 via HTTPS. The host computer 01 connects to the WAN end of the high-performance wireless router 05, accesses the high-performance wireless router 05 via IP+port, and configures the network parameters thereof to ensure the effectiveness of the high-performance wireless router 05 in accessing the Internet, and then configures the first wireless fat AP device 031 and the second wireless fat AP device 032 covered by the high-performance wireless router 05.

[0093] Step S206, the host computer 01 controls the mobile terminal 041 to connect to a wireless router. The host computer 01 controls the mobile terminal to perform operations such as Wi-Fi opening, scanning, and connecting to a wireless router. When the roaming scenario is normal roaming, the host computer 01 controls the mobile terminal 041 to connect to one of the two wireless fat AP devices. When the roaming scenario is fast roaming, the host computer 01 controls the mobile terminal 041 to connect to one of the two wireless thin AP devices.

[0094] Step S207 , the host computer 01 obtains the basic service set identifier BSSID and the received signal strength RSSI value of the wireless router to which the mobile terminal 041 is currently connected.

[0095] Step S208, the host computer 01 obtains the log data of the mobile terminal 041 in real time. After determining that the mobile terminal 041 is connected to the wireless router, the log acquisition module is started and the log acquisition module is kept running continuously in the background. Among them, before the log acquisition module is started, the log clearing module needs to be called to clear the log data previously cached in the log host computer 01. Check whether the log data is cleared successfully through the log viewing module. After success, the log acquisition module is started again (according to the filtering conditions) to capture valid log data and direct it to the log file, and the obtained log data is saved through the log saving module. Avoid excessive log data causing large files to cause processing problems.

[0096] In step S209, the host computer 01 sets the value of the corresponding attenuator to the first attenuation step length. The host computer 01 determines the COM port of the digital attenuator corresponding to the corresponding wireless router through the BSSID and sets the attenuation value to the first attenuation step length. Before setting, the digital attenuator signal value of the wireless router currently being accessed by the mobile terminal needs to be initialized to 0, and then set to the first attenuation step length. For the first attenuation step length, the first attenuation step length can be dynamically calculated based on the difference between the RSSI value and the roaming trigger threshold. The method for calculating the first attenuation step length is to first determine the difference G between the current RSSI value and the roaming trigger threshold (-75). Then the first attenuation step length is G-20, and this value varies according to the products of different companies. Then, the first step length setting is performed on the digital attenuator of the wireless router currently connected to the mobile terminal 041. Among them, after the first attenuation step length is set, the roaming trigger threshold for triggering roaming is not reached.

[0097] Step S210, the host computer 01 increases the value of the digital attenuator.

[0098] In step S211, the host computer 01 determines whether the stop condition is met. If so, step 212 is executed. If not, step 213 is executed. The stop condition includes two conditions: the RSSI value is less than the roaming trigger threshold and the BSSID changes. If any one of the conditions is met, it is determined that the stop condition is met.

[0099] Step S212: the host computer 01 stops acquiring log data and performs log keyword analysis.

[0100] Step S213, continuously increase the value of the digital attenuator, and update the current RSSI value and BSSID of the mobile terminal 041. In step S210 and step S213, the second attenuation step is added to the value of the digital attenuator each time. The second attenuation step is a fixed value with a smaller value, which is used to simulate a low-speed user movement scenario. The RSSI value and BSSID of the mobile terminal 041 are updated each time the value of the digital attenuator is added.

[0101] Step S214: Check whether there is a keyword for disconnecting the network connection in the log data. If yes, execute step S217; if no, execute step S215.

[0102] Step S215, the host computer 01 performs roaming process flow keyword analysis and calculates the roaming delay. According to different roaming types (fast and normal roaming), determine the normal process of the corresponding roaming type. Check whether there are interactive process keywords in the process of the acquired log data, set a count for each keyword, if there is, increase the count, if not, keep the count unchanged. The calculation of the roaming delay is: obtain the timestamp T1 in the roaming event log through the roaming event trigger keyword, and then obtain the log time T2 containing the roaming end keyword of the roaming log, and then obtain the roaming delay as T2-T1.

[0103] Step S216, the host computer 01 determines whether the roaming process is complete and the roaming delay is less than the roaming delay threshold. If yes, step S218 is executed. If not, step S217 is executed.

[0104] Step S217, report the test result as roaming failure, and export the complete log data of the mobile terminal 041. After the roaming failure, export the complete log data of the mobile terminal to locate the problem and then repair it. At the same time, restore the configuration information of the wireless router during the test and restore the settings of the attenuator.

[0105] Step S218, reporting the test result as roaming success. The host computer 01 determines the result of the roaming log analysis and the return of the roaming delay during the test process, determines whether the test case passes and reports the result, and restores the configuration information of the wireless router during the test process and restores the settings of the attenuator.

[0106] Corresponding to the above-mentioned roaming test method, an embodiment of the present invention provides a roaming test device. Figure 4 The following is a schematic diagram of the structure of a roaming test device provided in an embodiment of the present invention. Figure 4 As shown in , the device includes: a network configuration module 401, a processing module 402, a signal strength adjustment module 403, an acquisition module 404 and an analysis module 405.

[0107] The network configuration module 401 is used to generate a plurality of wireless networks matching the roaming scenario to be tested according to the roaming scenario to be tested.

[0108] The processing module 402 is used to control the mobile terminal to connect to a target wireless network among the multiple wireless networks.

[0109] The signal strength adjustment module 403 is used to gradually reduce the signal strength of the target wireless network.

[0110] The acquisition module 404 is configured to acquire log data of the mobile terminal from the time when the mobile terminal is connected to the target wireless network to the time when the first trigger signal of the test stop condition is detected.

[0111] The analysis module 405 is used to determine the test result of the roaming scenario to be tested based on the log data. The test result includes roaming success and roaming failure.

[0112] Figure 4 The roaming test device provided in the embodiment shown can be used to implement the present invention Figure 1 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.

[0113] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 5 As shown, the electronic device may include at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions of this specification. Figure 1 The illustrated embodiment provides a roaming test method.

[0114] like Figure 5 As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors 510, communication interface 520 and memory 530, and a communication bus 540 connecting different system components (including memory 530, communication interface 520 and processor 510).

[0115] The communication bus 540 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0116] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.

[0117] The memory 530 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 530 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present specification.

[0118] A program / utility having a set (at least one) of program modules may be stored in memory 530, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.

[0119] The processor 510 executes various functional applications and data processing by running the programs stored in the memory 530, such as implementing the Figure 1 The illustrated embodiment provides a roaming test method.

[0120] The embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 1 The illustrated embodiment provides a roaming test method.

[0121] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasab le Programmab le ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0122] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0123] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0124] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying 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 the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0125] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.

[0126] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0127] It should be noted that the devices involved in the embodiments of this specification may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 displays, MP4 displays, etc.

[0128] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0129] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0130] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a connector, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.

[0131] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

[0132] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

Claims

1. A roaming test method, characterized in that: include: Generating, according to the roaming scenario to be tested, a plurality of wireless networks matching the roaming scenario to be tested; Controlling the mobile terminal to connect to a target wireless network among the multiple wireless networks; gradually reducing the signal strength of the target wireless network until a first trigger signal of a test stop condition is detected; Acquiring log data of the mobile terminal from the time of connecting to the target wireless network to the time of detecting the first trigger signal; Determine a test result of the roaming scenario to be tested based on the log data; The test results include roaming success and roaming failure.

2. The method according to claim 1, characterized in that The step of generating a plurality of wireless networks matching the roaming scenario to be tested according to the roaming scenario to be tested includes: Determine the roaming type of the roaming scenario to be tested; the roaming type includes normal roaming and fast roaming; A plurality of corresponding wireless networks are generated according to the roaming type.

3. The method according to claim 2, characterized in that The generating a plurality of corresponding wireless networks according to the roaming type includes: According to the fast roaming, multiple wireless networks of access controller networking are generated; or, According to the common roaming, a plurality of wireless networks which are not networked by the access controller are generated.

4. The method according to claim 1, characterized in that: The step of gradually reducing the signal strength of the target wireless network includes: Obtaining received signal strength indication information of the mobile terminal; Determine a first attenuation step length according to the received signal strength indication information; Controlling the signal strength of the target wireless network to reduce the first attenuation step; When the first trigger signal is still not detected after the signal strength of the target wireless network is controlled to be reduced by the first attenuation step, the signal strength of the target wireless network is controlled to be reduced by a second attenuation step until the first trigger signal is detected; wherein the second attenuation step is smaller than the first attenuation step.

5. The method according to claim 4, characterized in that The determining a first attenuation step length according to the received signal strength indication information comprises: Determine a first difference between the received signal strength indication information and a roaming trigger threshold; The first attenuation step length is determined according to the first difference; wherein an absolute value of the first difference value is greater than an absolute value of the first attenuation step length.

6. The method according to claim 1, characterized in that The first trigger signal of detecting the test stop condition comprises: When it is detected that the wireless network accessed by the mobile terminal is switched from the target wireless network to another wireless network among the multiple wireless networks, it is determined that the first trigger signal is detected; or, When it is detected that the received signal strength indication information of the mobile terminal is less than a roaming trigger threshold, it is determined that the first trigger signal is detected.

7. The method according to claim 1, characterized in that The determining the test result of the roaming scenario to be tested based on the log data includes: Determining whether there is keyword information indicating network disconnection in the log data; When the log data contains the keyword information indicating that the network connection is disconnected, determining that the test result of the roaming scenario to be tested is roaming failure; or, When the keyword information of the network connection disconnection does not exist in the log data, it is determined that the test result of the roaming scenario to be tested is roaming success.

8. The method according to claim 1, characterized in that The test result of the roaming scenario to be tested is that roaming is successful, and the method further includes: The integrity of the roaming process is detected according to the log data.

9. The method according to claim 1, characterized in that: The test result of the roaming scenario to be tested is that roaming is successful, and the method further includes: Determine, according to the log data, a first time when the mobile terminal triggers roaming and a second time when the roaming ends; Determine a roaming delay according to the first time and the second time; Determining whether the roaming delay is greater than or equal to a roaming delay threshold; When the roaming delay is greater than or equal to the roaming delay threshold, the test result of the roaming scenario to be tested is modified from roaming success to roaming failure.

10. A roaming test device, characterized in that: include: A network configuration module, used to generate a plurality of wireless networks matching the roaming scenario to be tested according to the roaming scenario to be tested; a processing module, configured to control the mobile terminal to connect to a target wireless network among the plurality of wireless networks; A signal strength adjustment module, used to gradually reduce the signal strength of the target wireless network; an acquisition module, configured to acquire log data of the mobile terminal from the time of connecting to the target wireless network to the time of detecting the first trigger signal when a first trigger signal of a test stop condition is detected; An analysis module, configured to determine a test result of the roaming scenario to be tested based on the log data; The test results include roaming success and roaming failure.

11. An electronic device, characterized in that: include: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 9 by calling the program instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method according to any one of claims 1 to 9.