Disclosure of Invention
The application provides a WIFI roaming automatic test method and system, and aims to solve the problems of low test precision and low efficiency of a traditional WIFI roaming test method.
On one hand, the application provides a WIFI roaming automatic test method, which comprises the following steps:
the control platform establishes wireless connection with a management wireless network card on the program-controlled test vehicle through a management network AP;
the control platform sends a test instruction to the program-controlled test vehicle to control the program-controlled test vehicle to run in a test scene according to a preset track;
the program-controlled test vehicle establishes wireless connection with a plurality of roaming test APs in the test scene successively through a test wireless network card in the running process so as to be connected with a service platform;
the service platform captures an air interface message of the program-controlled test vehicle when the program-controlled test vehicle establishes wireless connection with the roaming test AP by starting an air interface capture packet, wherein the air interface message comprises control frame data and/or management frame data;
the service platform sends the air interface message to the control platform, so that the control platform generates WIFI data information according to the air interface message, wherein the WIFI data information includes: whether roaming occurs and wireless signal strength;
and the control platform generates a roaming test report according to the WIFI data information.
Optionally, the WIFI data information further includes a service interruption duration, and after the control platform sends a test instruction to the program-controlled test vehicle, the method further includes:
the program-controlled test vehicle runs the test instruction;
the program-controlled test vehicle sends test flow data to the service platform through the roaming test AP; the test traffic data comprises analog traffic data types under a plurality of service traffic scenes;
and the service platform determines the service interruption duration in different service scenes according to the time for receiving the test flow data.
Optionally, the generating, by the control platform, the WIFI data information according to the air interface message includes:
the control platform reads an ESSID address corresponding to the roaming test AP in the air interface message and a timestamp in the air interface message;
judging whether roaming occurs or not according to the ESSID address;
and when the judgment result is that the roaming occurs, calculating the time consumed for switching the roaming test AP according to the timestamp to be used as the roaming switching duration.
Optionally, after the step of establishing a wireless connection between the control platform and the management wireless network card on the program-controlled test vehicle through the management network AP, the method includes:
checking whether the control platform and the management wireless network card on the program-controlled test vehicle successfully establish connection;
if the connection is successfully established, the control platform sends the test instruction to the program-controlled test vehicle;
if the connection is not successfully established, the control platform generates a network exception report.
Optionally, the method checks whether the control platform and the management wireless network card on the program-controlled test vehicle successfully establish a connection according to the following steps:
the control platform sends an interconnection judgment instruction to the program-controlled test vehicle through the management network AP;
after receiving the interconnection judgment instruction, the program-controlled test vehicle sends an interconnection receipt instruction to the control platform through the management network AP;
if the control platform receives the interconnection receipt instruction within the preset time, judging that the control platform and the management wireless network card on the program-controlled test vehicle are successfully connected;
and if the control platform does not receive the interconnection receipt instruction within the preset time, judging that the control platform is not successfully connected with the management wireless network card on the program-controlled test vehicle.
Optionally, after the program-controlled test vehicle establishes a wireless connection with each roaming test AP through the test wireless network card, the method further includes:
checking whether the test wireless network card of the program-controlled test vehicle is successfully connected with the service platform;
if the connection is successfully established, the service platform starts an air interface packet capturing;
if the connection is not successfully established, the program-controlled test vehicle stops running and checks whether the test wireless network card of the program-controlled test vehicle is successfully established with the service platform again after the preset waiting time;
if the program-controlled test vehicle is not successfully connected with the service platform after the preset waiting time, marking the current roaming test AP as an invalid AP;
and the program-controlled test vehicle continues to operate to the coverage area of other roaming test APs for testing according to the test instruction.
Optionally, the method checks whether the test wireless network card of the program-controlled test vehicle is successfully connected with the service platform according to the following steps:
the program-controlled test vehicle sends an interconnection judgment instruction to the service platform through testing the wireless network card and the current roaming test AP;
after receiving the interconnection judgment instruction, the service platform sends an interconnection receipt instruction to the program-controlled test vehicle through the current roaming test AP;
if the program-controlled test vehicle receives the interconnection receipt instruction within the preset time, judging that the program-controlled test vehicle and the service platform successfully establish connection through the current roaming test AP;
and if the program-controlled test vehicle does not receive the interconnection receipt instruction within the preset time, judging that the program-controlled test vehicle and the service platform are not successfully connected through the current roaming test AP.
Optionally, the test instruction includes a start test instruction and a navigation instruction, and the step of generating, by the service platform according to the air interface message, the WIFI data information includes:
the program-controlled test vehicle starts to operate after receiving the starting test instruction;
the program-controlled test vehicle passes through the areas covered by the plurality of roaming test APs in the test scene in sequence according to the running path planned by the navigation instruction;
acquiring the position of the program-controlled test vehicle, and judging the running area of the program-controlled test vehicle according to the position of the program-controlled test vehicle;
if the program-controlled test vehicle runs in the area covered by the single roaming test AP, acquiring the wireless signal intensity;
and if the program-controlled test vehicle runs in an area jointly covered by a plurality of roaming test APs, acquiring the wireless signal intensity and judging whether roaming occurs.
Optionally, after completing the test once, the method further includes:
adjusting the signal output power of one or more roaming test APs in the test scene, and testing again until wireless signals in all areas of the test scene meet the requirement of a preset network;
switching the running modes of all the roaming test APs in the test scene, adjusting the test wireless network card on the program-controlled test vehicle to the type corresponding to the running mode of the roaming test APs, and repeatedly carrying out the test, wherein the running modes comprise: channel, traffic forwarding mode, and associated authentication method.
On the other hand, this application still provides a WIFI automatic test system that roams, includes: the system comprises a control platform, a service platform, a program-controlled test vehicle, a plurality of roaming test APs and a management network AP, wherein the roaming test APs and the management network AP are arranged in a test scene;
the wireless network service range of the management network AP covers the whole test scene; the program-controlled test vehicle is provided with a management wireless network card and a test wireless network card; the control platform establishes wireless connection with a management wireless network card on the program-controlled test vehicle through a management network AP; the service platform establishes wireless connection with a test wireless network card on the program-controlled test vehicle through the roaming test AP;
the control platform is configured to perform the following program steps:
sending a test instruction to the program-controlled test vehicle, and controlling the program-controlled test vehicle to run in a test scene according to a preset track so that the program-controlled test vehicle is connected with the service platform;
receiving an air interface message sent by the service platform, generating WIFI data information according to the air interface message, and generating a roaming test report according to the WIFI data information; the WIFI data information comprises: whether roaming and wireless signal strength occurred;
the service platform is configured to perform the following procedural steps:
grabbing an air interface message of the program-controlled test vehicle when the program-controlled test vehicle establishes wireless connection with the roaming test AP by starting an air interface grab packet, wherein the air interface message comprises control frame data and/or management frame data;
and sending the air interface message to the control platform;
the programmed test vehicle is configured to perform the following procedural steps:
receiving a test instruction sent by the control platform, and operating in a test scene according to a preset track; and establishing wireless connection with the plurality of roaming test APs in the test scene through testing the wireless network card.
According to the technical scheme, the WIFI roaming automatic test method and the system are provided, and the method comprises the steps that firstly, wireless connection is established between a control platform and a management wireless network card on a program-controlled test vehicle through a management network AP; then the control platform sends a test instruction to the program-controlled test vehicle, the program-controlled test vehicle is controlled to run in a test scene according to a preset track, and the program-controlled test vehicle is sequentially in wireless connection with a plurality of roaming test APs in the test scene through a test wireless network card; the service platform starts an air interface packet, captures an air interface message of the program-controlled test vehicle when the program-controlled test vehicle establishes wireless connection with the roaming test AP, and sends the air interface message to the control platform to generate WIFI data information; and finally, generating a roaming test report by the control platform according to the WIFI data information, and completing the roaming function test of the roaming test AP in the test scene. The method can automatically complete the network test of each area in a test scene by taking the program-controlled test vehicle as a roaming test carrier, can truly simulate the roaming scene and has higher test efficiency.
Detailed Description
Reference will now be made in detail to embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following examples do not represent all embodiments consistent with the present application. But merely as exemplifications of systems and methods consistent with certain aspects of the application, as recited in the claims.
According to the technical scheme, the WIFI network to be tested is a WIFI network consisting of a plurality of AP devices built in a specific application scene, the built WIFI network has different scales according to different application scenes, obviously, the larger the scale is, the more the number of the AP devices is, the more easily an area covered by the plurality of APs is, and when a mobile terminal of a user enters the area, the WIFI roaming function is required to be utilized, so that uninterrupted wireless network connection is realized. It should be noted that, in order to express convenience and eliminate partial ambiguity, the words about the scenes, such as the application scene, the test scene, the WIFI network environment to be tested, and the real scene, referred to in this application, refer to the specific application scene in which the WIFI network to be tested is established, except for other descriptions.
The AP equipment comprises two types, wherein one type is the AP equipment which is used for transmitting detection data in the test process and enabling the PC control platform and the program-controlled test vehicle to realize network connection, and the AP equipment is called as a management network AP in the application; the other is the tested AP device, which is referred to herein as a roving test AP. In practical application, the management network AP may be an AP device product of any manufacturer, and it is ensured that the coverage of the management network AP is large enough to completely cover the entire test scenario, and in order to meet the coverage requirement of wireless signals, a management network may be built by selecting a high-power AP with high power and wide coverage signals, and/or a roaming network may be assembled by using a plurality of management network APs, and the roaming network is only used to transmit test data, so that it is not necessary to consider the influence on the roaming test result, or adjust the roaming function of the management network to the most appropriate state in advance.
The program-controlled test vehicle is internally provided with an independent controller and a control program, has a remote control walking function, and can move on a specified path according to a control instruction sent by a control platform. The program-controlled test vehicle is provided with wheels or crawler wheel sets which can adapt to different test scene terrains and building environments, the wheels or the crawler wheel sets are driven by a motor in the program-controlled test vehicle, the motor is powered by a storage battery, and other energy supply modes such as a solar battery can be adopted. The wheels or sets of track wheels can be freely turned, stopped and reversed under the control of the internal controller to accomplish a variety of different test condition requirements. It should be understood that, in order to eliminate the path planning error and the interference of the obstacles in the scene during the operation of the program-controlled test vehicle, collision-avoidance radars or cameras, such as laser scanning radars or 360-degree panoramic cameras, may be further provided.
Each program control test vehicle is provided with a management wireless network card and a test wireless network card, wherein the management wireless network card can be marked as wlan0 for establishing data intercommunication with the control platform through a management network AP; the test wireless network card is marked as wlan1 and used as a signal for searching the roaming test AP and establishing connection with the roaming test AP, and the roaming test AP can also establish network connection with the control platform, so that the program control trolley can establish data intercommunication with the control platform through the test wireless network card wlan1 and the roaming test AP. It should be noted that the test wireless network card wlan1 may be replaced by a mobile terminal, for example, a mobile phone with a WIFI internet access function or an external mobile hotspot, and correspondingly, in order to facilitate transmission of test data, the mobile terminal and the program-controlled test vehicle may be connected by adding a USB data line, and the mobile terminal may be used to replace the wireless network card wlan1, so that compatibility of different terminals in a roaming scenario may also be tested.
The control platform needs to include at least one PC (Personal Computer), an operating system of the PC may be Windows or l inux at will, and the control platform may access the management network in a wired or wireless manner, that is, establish network connection with the management network AP. The control platform is internally provided with a control program or control software of the program-controlled test vehicle, illustratively, the control program can be built on the basis of a raspberry pi (raspberry pi) or other similar platforms, and is equipped with an operating system (such as an ubuntu system) capable of being remotely accessed, and the behavior of the program-controlled test vehicle is controlled in a program control mode, such as: and carrying out test work such as running track, distance measurement, obstacle avoidance, data acquisition, data report and the like.
The system comprises a service platform and a control platform, wherein the service platform also needs at least one PC, the operating system of the PC can be consistent with the control platform, namely Windows or linux, the PC of the service platform as a server can be used for simulating external network resources, and a test wireless network card in a program control test vehicle can access the server after being associated with a roaming test AP, namely the simulation of accessing the external network; in addition, the PC is configured with a wireless network card for air interface packet capturing, and mainly capturing 802.11 control frames and management frame data.
In addition, before testing, the technical scheme provided by the application needs to complete the construction of hardware testing equipment, namely, the control platform is firstly connected to a management network in a wired or wireless mode, then the program-controlled testing vehicle is arranged at a preset starting point position in a testing scene, and the control platform automatically plans or an operator manually plans a motion path, namely a preset motion track. And the roaming test AP is built according to actual requirements.
Fig. 1 is a schematic flow chart of a WIFI roaming automation test method. Fig. 1 shows that the WIFI roaming automatic test method provided by the present application includes the following steps:
s1: the control platform establishes wireless connection with a management wireless network card on the program-controlled test vehicle through a management network AP;
in this embodiment, a connection is first established between the control platform and the program-controlled test cart, and in practical applications, the management wireless network card wlan0 on the program-controlled test cart may automatically associate with the management network through the static IP allocated by the management network AP, thereby implementing data intercommunication with the control platform. It should be noted that, the wireless connection here refers to a wireless connection between the program-controlled test vehicle and the management network AP, and the management network AP may be a wireless connection or a wired connection with the control platform.
In order to ensure that a stable wireless connection can be established between the control platform and the program-controlled test cart, in some embodiments of the present application, the connection quality of the wireless connection may also be verified after the wireless connection is established, that is, as shown in fig. 2, after the step of establishing the wireless connection between the control platform and the management wireless network card on the program-controlled test cart through the management network AP, the method includes the following steps:
s11: checking whether the control platform and the management wireless network card on the program-controlled test vehicle successfully establish connection;
s12: if the connection is successfully established, the control platform sends a test instruction to the program-controlled test vehicle;
s13: and if the connection is not successfully established, the control platform generates a network exception report.
In other words, in this embodiment, before the formal test is started, whether the connection is successfully established or not needs to be checked, if the wireless connection between the control platform and the program-controlled test vehicle is successfully established, the control platform sends a formal test instruction to the program-controlled test vehicle, and if it is checked that the stable wireless connection between the control platform and the program-controlled test vehicle is not established, a corresponding network anomaly report is generated to notify the tester of the current network anomaly. Obviously, in the case of unsuccessful connection establishment, the network connection may be established again by automatic resetting, automatic maintenance, parameter setting, etc. of the network configuration, so as to eliminate network failures caused by software setting. Further, as shown in fig. 3, the method may check whether the control platform and the management wireless network card on the program-controlled test vehicle successfully establish a connection according to the following steps:
s111: the control platform sends an interconnection judgment instruction to the program-controlled test vehicle through the management network AP;
s112: after receiving the interconnection judgment instruction, the program-controlled test vehicle sends an interconnection receipt instruction to the control platform through the management network AP;
s113: if the control platform receives the interconnection receipt instruction within the preset time, the control platform is judged to be successfully connected with the management wireless network card on the program-controlled test vehicle;
s114: and if the control platform does not receive the interconnection receipt instruction within the preset time, judging that the control platform is not successfully connected with the management wireless network card on the program-controlled test vehicle.
In this embodiment, in order to keep the stability of connection between the control platform and the program-controlled test cart in the long-time movement process of the program-controlled test cart, so that the control platform can control the movement track of the program-controlled test cart, the control platform can send an interconnection judgment instruction to the program-controlled test cart at intervals in the whole test process. For the judgment of the interconnection related instruction, the control platform and the program-controlled test vehicle in this embodiment may perform judgment according to the instruction sent by each other to verify the network connection.
On one hand, if the control platform does not receive the interconnection receipt instruction matched with the control platform within a preset time when the control platform sends the interconnection judgment instruction once, the control platform generates a connection abnormity report and can generate corresponding acousto-optic prompt signals such as whistling and red light so as to prompt the personnel participating in the test to overhaul. On the other hand, if the program-controlled test vehicle does not receive the interconnection judgment instruction again or receives the test termination instruction within the preset time interval after receiving the interconnection judgment instruction at any time, the corresponding emergency program can be started in the program-controlled test vehicle.
The emergency program can comprise a test termination instruction and an exception report instruction, wherein the test termination instruction can stop the running of the program-controlled test vehicle under the condition of no control of the control platform, so that the program-controlled test vehicle is prevented from losing control; the exception reporting instruction may try to acquire the ESSID address from the management network AP again when it is determined that the network connection is in an exception condition, so as to achieve the purpose of reconnection. If the test vehicle cannot be connected to the control platform again through the management network AP, the abnormity report command can control the program-controlled test vehicle to try to send data information of network abnormity to the control platform through the roaming test AP, so that the control platform can make prompt signals of the same emergency program as the connection abnormity report.
Furthermore, if the AP cannot be connected to the control platform through the roaming test, other types of communication modes can be arranged on the program-controlled test vehicle so as to send an abnormality report command. Or, a corresponding audible and visual alarm, such as a whistle, a red light and the like, can be arranged on the program-controlled test vehicle to inform nearby test personnel of exception handling.
In this embodiment, through the interconnection judgment instruction and the interconnection receipt instruction sent to and from the control platform and the program-controlled test vehicle, stable network connection can be maintained between the control platform and the program-controlled test vehicle within the test duration, so that transmission of test data and motion navigation of the program-controlled test vehicle are facilitated. In addition, in terms of the overall scheme, the running control program of the program-controlled test vehicle is built in the PC control platform instead of the controller of the program-controlled test vehicle, so that stable network connection between the control platform and the program-controlled test vehicle is maintained conveniently, and the phenomenon that when the control platform and the program-controlled test vehicle lose connection, the program-controlled test vehicle still runs according to a preset program, test data in a partial area is lost, and wrong roaming function judgment is caused is avoided.
S2: and the control platform sends a test instruction to the program-controlled test vehicle to control the program-controlled test vehicle to run in a test scene according to a preset track.
For step S2, the preset movement track of the programmed test vehicle is not absolutely constant, and the programmed test vehicle is influenced by factors such as terrain, and is likely to deviate from the preset path, and when other programmed test vehicles are in operation in the test environment, the programmed test vehicles need to be prevented from colliding with each other, and a certain movement direction and position are changed, so that an error may exist between the movement track of the programmed test vehicle and the preset track for smooth operation of the test process. An error band can be defined according to the preset track, the running state of the program-controlled test car is not changed as long as the program-controlled test car is located within the error band, and when the program-controlled test car exceeds the error band, the control platform sends a running correction instruction again to enable the program-controlled test car to run back to the correct preset track.
According to the technical scheme, the program-controlled test vehicle can successively pass through the areas covered by the plurality of roaming test APs in the test scene along with the test process, namely, the program-controlled test vehicle can successively establish wireless connection with the plurality of roaming test APs through the test wireless network card so as to test WIFI signals at different positions in the following process.
As shown in fig. 4, after the programmable test vehicle establishes a wireless connection with each roaming test AP through the test wireless network card, the method further includes the following steps:
s21: checking whether the test wireless network card of the program-controlled test vehicle is successfully connected with the service platform;
s22: if the connection is successfully established, the service platform starts an air interface packet capturing;
s23: if the connection is not successfully established, the program-controlled test vehicle stops running and checks whether the test wireless network card of the program-controlled test vehicle is successfully established with the service platform or not again after the preset waiting time.
In this embodiment, in an actual network operation environment, when the test wlan card wlan1 switches between two roaming test APs, if the roaming function does not meet the requirement, the switching time is long, or the switching cannot be realized, so that the user terminal is connected to the last roaming test AP by a weak signal. The user terminal may be in a state of no network connection for a period of time. Therefore, during actual testing, if it is checked that the test wireless network card wlan1 is not successfully connected with the roaming test AP, the program-controlled test vehicle stops running and after a preset waiting time, it is checked again whether the test wireless network card of the program-controlled test vehicle is successfully connected with the control platform, so as to determine whether the connection abnormality of the current area is caused by the failure of the roaming test AP or caused by the roaming function defect of the roaming test AP.
Further, as shown in fig. 5, the method checks whether the test wireless network card of the program-controlled test vehicle is successfully connected with the control platform according to the following steps:
s211: the program-controlled test vehicle sends an interconnection judgment instruction to the service platform through testing the wireless network card and the current roaming test AP;
s212: after receiving the interconnection judgment instruction, the service platform sends an interconnection receipt instruction to the program-controlled test vehicle through the current roaming test AP;
s213: if the program-controlled test vehicle receives the interconnection receipt instruction within the preset time, judging that the program-controlled test vehicle and the service platform successfully establish connection through the current roaming test AP;
s214: and if the program-controlled test vehicle does not receive the interconnection receipt instruction within the preset time, judging that the program-controlled test vehicle and the service platform are not successfully connected through the current roaming test AP.
It can be seen that, in this embodiment, the method for checking whether the test wireless network card of the program-controlled test vehicle successfully establishes the connection with the service platform is basically the same as the method for checking whether the management wireless network card and the control platform successfully establish the connection, and is implemented by sending an interconnection judgment instruction and an interconnection receipt instruction to each other. The difference is that the interconnection judgment instruction in this embodiment is initiated by the control system of the program-controlled test vehicle, so that when a plurality of program-controlled test vehicles exist in an application scene, it can be accurately judged which roaming test AP the program-controlled test vehicle currently is in, so as to obtain the identification information of the corresponding roaming test AP, and record the roaming defect point and the roaming test AP with the fault.
Further, as shown in fig. 4, in step S23, if the connection is not successfully established, after the step of stopping the running of the program-controlled test cart and checking again whether the test wireless network card of the program-controlled test cart is successfully established with the service platform after the preset waiting time, the method further includes:
s24: if the program-controlled test vehicle is not successfully connected with the service platform after the preset waiting time, marking the current roaming test AP as an invalid AP;
s25: and the program-controlled test vehicle continues to operate to the coverage area of other roaming test APs for testing according to the test instruction.
The above steps are aimed at determining that the roaming test AP which cannot establish wireless connection between the programmed test vehicle and the service platform is an invalid AP, that is, the roaming test AP corresponding to the current area may have a fault. And after the roaming test AP with the fault is marked as an invalid AP, the subsequent test is continuously carried out according to the preset track, so that the test process is ensured to be carried out smoothly.
S3: and the program-controlled test vehicle establishes wireless connection with a plurality of roaming test APs in the test scene successively through testing a wireless network card in the running process so as to connect the program-controlled test vehicle with the service platform.
According to the technical scheme, the program-controlled test vehicle starts to move in the application scene after receiving the test instruction, and passes through the coverage area corresponding to each roaming test AP in the test scene in sequence, so that the WIFI signal operation condition information in the coverage area of each roaming test AP can be tested.
S4: and the service platform captures an air interface message of the program-controlled test vehicle when the program-controlled test vehicle establishes wireless connection with the roaming test AP by starting an air interface capture packet, wherein the air interface message comprises control frame data and/or management frame data.
According to the technical scheme, when the test wireless network card on the program-controlled test vehicle establishes wireless connection with each roaming test AP, a series of control processes or management processes such as connection-verification-address allocation need to be carried out, and a plurality of control frames or management frame data exist in the series of processes. The service platform captures an air interface message in the connection process by opening an air interface packet so as to analyze the message, and can directly determine the roaming state of the program control test vehicle, such as: confirming whether roaming or re-association occurs, whether service flow is interrupted, whether ESSID associated with the wireless network card wlan1 is changed, etc. In practical applications, the data captured by the service platform is 802.11 control frames and/or management frame data.
S5: the service platform sends the air interface message to the control platform, so that the control platform generates WIFI data information according to the air interface message, wherein the WIFI data information includes: whether roaming has occurred and the wireless signal strength.
In the present application, whether roaming occurs or not is determined by collecting the association information between the test wireless network card wlan1 and the two roaming test APs, and determining whether the roaming test AP is switched or not. The radio Signal Strength can be determined by measuring a Received Signal Strength (RSSI) value during roaming. The RSSI value can directly reflect the quality of network signals when roaming occurs, i.e. a quantitative index is used to measure whether the roaming function meets the actual requirement.
As shown in fig. 6, the step of generating, by the control platform, WIFI data information according to the air interface message includes:
s501: the control platform reads an ESSID address corresponding to the roaming test AP in the air interface message and a timestamp in the air interface message;
s502: judging whether roaming occurs or not according to the ESSID address;
s503: and when the judgment result is that the roaming occurs, calculating the time consumed for switching the roaming test AP according to the timestamp to be used as the roaming switching duration.
In this embodiment, when the ESSID address corresponding to the roaming test AP of the test wireless network card in the program-controlled test vehicle changes, two situations may occur, where one situation is roaming, that is, the test wireless network card is roamed from one roaming test AP to another roaming test AP, and the other situation is re-association, that is, the test wireless network card is disconnected from one roaming test AP first and then re-established with another roaming test AP. Obviously, if re-association occurs in the current test scenario, a network outage occurs for a longer time, affecting the connection. And by comparing the changed time intervals of the ESSID, whether roaming or reassociation occurs can be determined.
When re-association occurs, it is indicated that in the test area, the roaming function of the roaming test AP does not meet the preset requirement, and needs to be adjusted again. When roaming occurs, the roaming function of the roaming test AP can meet the design requirement by recording the roaming switching duration.
Further, as shown in fig. 7, the WIFI data information further includes a service interruption duration, and after the control platform sends a test instruction to the program-controlled test vehicle, the method further includes:
s504: the program-controlled test vehicle runs the test instruction;
s505: the program-controlled test vehicle sends test flow data to the service platform through the roaming test AP; the test traffic data comprises analog traffic data types under a plurality of service traffic scenes;
s506: and the service platform determines the service interruption duration in different service scenes according to the time for receiving the test flow data.
In this embodiment, in order to test the influence of roaming on the service, various scene services, such as http/ftp/tftp uploading and downloading, video stream playing, and the like, may be executed on the program-controlled test vehicle, so as to test whether the data traffic corresponding to the service is interrupted or not and whether the interruption is time duration in a plurality of different service scenarios. In the embodiment, the WIFI environment can be tested more comprehensively by simulating the data traffic in a plurality of service scenes, and the influence of the failure condition of the wireless connection in individual service scenes on the roaming condition test is avoided.
Further, in some embodiments of the present application, the test instruction may include a start test instruction and a navigation instruction, and as shown in fig. 8, the step of generating, by the control platform, the WIFI data information according to the air interface packet includes:
s51: after receiving a starting test instruction, the program-controlled test vehicle starts to operate;
s52: the test vehicle is programmed to pass through areas covered by a plurality of roaming test APs in a test scene in sequence according to a running path planned by a navigation instruction;
s53: acquiring the position of the program-controlled test vehicle, and judging the running area of the program-controlled test vehicle according to the position of the program-controlled test vehicle;
s54: if the program-controlled test vehicle runs in the area covered by the single roaming test AP, acquiring the wireless signal intensity;
s55: and if the program-controlled test vehicle runs in an area jointly covered by a plurality of roaming test APs, acquiring the wireless signal intensity and judging whether roaming occurs.
In this embodiment, the start test instruction may include start time of the program-controlled test vehicle, a start driving direction, and operation path information within a period of time after the start. The navigation instruction can continuously send the driving direction and the driving speed within the future preset time to the program-controlled test vehicle. The obtained WIFI data information of the program-controlled test vehicle is different according to different areas, for example, when the program-controlled test vehicle runs in an area covered by a single roaming test AP, the test wireless network card on the program-controlled test vehicle cannot roam, so that when the program-controlled test vehicle runs in the area, only the strength of a wireless signal needs to be obtained. When the AP operates in an area covered by multiple roaming test APs, a roaming phenomenon may occur, and therefore, roaming occurrence point information, wireless signal strength, and RSSI value during roaming need to be obtained to generate the roaming occurrence point information.
S6: and the control platform generates a roaming test report according to the WIFI data information.
The roaming test report generated in this embodiment may be in various forms, for example: the wireless signal intensity map can be generated according to the data detected by the program-controlled test vehicle and the installation position of the roaming test AP, so that the signal coverage defects of the positions in the currently-built WIFI environment are reflected. A roaming occurrence point map may also be generated based on the detected roaming occurrence point information and the installation location of the roaming test AP, so as to determine whether there is a deviation between the location where roaming occurs and the actual expected location, and whether the deviation is within a reasonable range.
Further, in order to gradually improve the entire WIFI network scenario, as shown in fig. 9, after completing a test, the method further includes:
s7: adjusting the signal output power of one or more roaming test APs in the test scene, and testing again until wireless signals in all areas of the test scene meet the requirement of a preset network;
s8: switching the running modes of all the roaming test APs in the test scene, adjusting the test wireless network card on the program-controlled test vehicle to the type corresponding to the running mode of the roaming test APs, and repeatedly carrying out the test, wherein the running modes comprise: channel, traffic forwarding mode, and associated authentication method.
In this embodiment, the radio frequency mode of the roaming test AP may be adjusted, for example: 2.4G or 5G, transmit power (TxPower) and Channel (Channel), repeatedly perform the test, and may further adjust the traffic forwarding mode of the roaming test AP, such as: centralized forwarding 8023tunnel or local forwarding localbridge, and an association authentication method of the roaming test AP, such as: open, WEP, WAP, WPA2, EAP, etc., repeatedly perform the test. On one hand, a more comprehensive test result can be obtained through repeated tests for many times so as to accurately evaluate the WIFI roaming function in the current application scene; on the other hand, by repeating the process of 'test-adjustment-retest' for multiple times, the WIFI roaming function in the current application scene can meet the preset requirement or be adjusted to the optimal state by using continuous adjustment.
Based on the above-mentioned WIFI roaming automated testing method, the present application further provides a WIFI roaming automated testing system, as shown in fig. 10, the system includes: the system comprises a control platform 1, a program-controlled test vehicle 2, a plurality of roaming test APs 3, a management network AP4 and a service platform 5, wherein the roaming test APs 3 and the management network AP4 are arranged in a test scene;
the wireless network service range of the management network AP4 covers the whole test scene; the program-controlled test vehicle 2 is provided with a management wireless network card 21 and a test wireless network card 22; the control platform 1 establishes wireless connection with the management wireless network card 21 on the program-controlled test vehicle 2 through the management network AP 4; the service platform 5 establishes wireless connection with the test wireless network card 22 on the program-controlled test vehicle 2 through the roaming test AP 3;
the control platform 1 is configured to perform the following program steps:
sending a test instruction to the program-controlled test vehicle 2, and controlling the program-controlled test vehicle 2 to operate in a test scene according to a preset track, so that the program-controlled test vehicle 2 is connected with the service platform 5;
receiving an air interface message sent by the service platform 5, generating WIFI data information according to the air interface message, and generating a roaming test report; the WIFI data information comprises: whether roaming and wireless signal strength occurred;
the service platform 5 is configured to perform the following program steps:
grabbing an air interface message of the program-controlled test vehicle 2 when establishing wireless connection with the roaming test AP3 by opening an air interface grab packet, wherein the air interface message comprises control frame data and/or management frame data;
and sending the air interface message to the control platform 1;
the programmable test vehicle 2 is configured to perform the following program steps:
receiving a test instruction sent by the control platform 1, and operating in a test scene according to a preset track;
and establishing wireless connection with the plurality of roaming test APs 3 in the test scenario sequentially by testing the wireless network card 22.
It should be noted that, according to the technical scheme provided by the application, the number of the roaming test APs 3 and the number of the program-controlled test carts 2 are increased according to an actual situation during testing, roaming situations under multiple terminal situations can be simulated according to multiple program-controlled test carts 2 in an application scene during actual testing, and the running tracks of the multiple program-controlled test carts 2 can be the same, so that information can be aggregated and analyzed; or may be different, in order to simulate a real application scenario and avoid collision between the programmed test vehicles 2. And the control platform 1 receives various WIFI related information according to the test requirements and draws a curve graph.
According to the technical scheme, the WIFI roaming automatic test method and the system are provided, and the method comprises the steps that firstly, wireless connection is established between a control platform and a management wireless network card on a program-controlled test vehicle through a management network AP; then the control platform sends a test instruction to the program-controlled test vehicle, the program-controlled test vehicle is controlled to run in a test scene according to a preset track, and the program-controlled test vehicle is sequentially in wireless connection with a plurality of roaming test APs in the test scene through a test wireless network card; the service platform starts an air interface packet, captures an air interface message of the program-controlled test vehicle when the program-controlled test vehicle establishes wireless connection with the roaming test AP, and sends the air interface message to the control platform to generate WIFI data information; and finally, generating a roaming test report by the control platform according to the WIFI data information, and completing the roaming function test of the roaming test AP in the test scene. The method can automatically complete the network test of each area in a test scene by taking the program-controlled test vehicle as a roaming test carrier, can truly simulate the roaming scene and has higher test efficiency.
The embodiments provided in the present application are only a few examples of the general concept of the present application, and do not limit the scope of the present application. Any other embodiments extended according to the scheme of the present application without inventive efforts will be within the scope of protection of the present application for a person skilled in the art.