CN113742236A - Test configuration method, electronic device and storage medium - Google Patents

Test configuration method, electronic device and storage medium Download PDF

Info

Publication number
CN113742236A
CN113742236A CN202111066912.5A CN202111066912A CN113742236A CN 113742236 A CN113742236 A CN 113742236A CN 202111066912 A CN202111066912 A CN 202111066912A CN 113742236 A CN113742236 A CN 113742236A
Authority
CN
China
Prior art keywords
wireless access
access point
test
configuration
target wireless
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111066912.5A
Other languages
Chinese (zh)
Other versions
CN113742236B (en
Inventor
赵旭
李胜平
姚瑞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202111066912.5A priority Critical patent/CN113742236B/en
Publication of CN113742236A publication Critical patent/CN113742236A/en
Application granted granted Critical
Publication of CN113742236B publication Critical patent/CN113742236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

An embodiment of the present application provides a test configuration method, an electronic device, and a storage medium, where the test configuration method is applied to an electronic device, where the electronic device is connected to at least one wireless access point and at least one tested terminal device, and the electronic device is configured to test the tested terminal device through the wireless access point, and the test configuration method includes: obtaining test parameters, analyzing the test parameters to obtain a test task, and calling a test case corresponding to the test task through the test task; configuring corresponding target wireless access points according to the test cases, wherein the target wireless access points are one or more wireless access points in the at least one wireless access point; and monitoring whether the target wireless access point fails to be configured or not, if the configuration fails and the reset condition is met, controlling the target wireless access point to be restarted, and reconfiguring the restarted target wireless access point according to the test case.

Description

Test configuration method, electronic device and storage medium
[ technical field ] A method for producing a semiconductor device
The embodiment of the application relates to the technical field of wireless communication, in particular to a testing method, electronic equipment and a storage medium.
[ background of the invention ]
The automated flow software may automatically configure configuration parameters of the wireless access point and automatically input the throughput data stream. When the test equipment tests the Wi-Fi performance of the terminal equipment, the terminal equipment is connected with the automatically configured wireless access point, and automatic throughput data flow test can be carried out.
However, the automated streaming software has stability problems in automatically configuring the wireless access points. Specifically, the automated streaming software lacks a mechanism for dealing with failure in configuration of the wireless access point, and cannot ensure stable execution of the Wi-Fi performance test.
[ summary of the invention ]
The embodiment of the application provides a test configuration method, electronic equipment and a storage medium, which effectively monitor the problems occurring in the configuration process of a wireless access point in the configuration process of the wireless access point, ensure the successful configuration of the wireless access point, avoid the configuration parameters of the wireless access point from making mistakes, reconfigure the wireless access point through the setting of reconfiguration conditions under the condition of failed configuration, and ensure the stable execution of the Wi-Fi performance test of the tested terminal equipment.
In a first aspect, an embodiment of the present application provides a test configuration method, which is applied to an electronic device, where the electronic device is connected to at least one wireless access point and at least one terminal device to be tested, and the electronic device is configured to test the terminal device to be tested through the wireless access point, and the method includes:
obtaining test parameters, analyzing the test parameters to obtain a test task, and calling a test case corresponding to the test task through the test task; configuring corresponding target wireless access points according to the test cases, wherein the target wireless access points are one or more wireless access points in the at least one wireless access point; and monitoring whether the target wireless access point fails to be configured or not, if the configuration fails and the reset condition is met, controlling the target wireless access point to be restarted, and reconfiguring the restarted target wireless access point according to the test case.
According to the test configuration method, in the process that the electronic equipment automatically configures the target wireless access point according to the test case, whether the target wireless access point is successfully configured or not is monitored, and then the problem occurring in the configuration of the target wireless access point is found; on the other hand, the automatic configuration efficiency of the target wireless access point is increased, and the probability of manual intervention is reduced.
In one possible implementation manner, if the configuration of the target wireless access point fails, the method further includes:
and updating the configuration times of the target wireless access point.
In one possible implementation manner, the reset condition includes:
and the current configuration times of the target wireless access point are within a preset configuration threshold value.
In a possible implementation manner, the monitoring whether the target wireless access point fails to be configured includes:
judging whether the electronic equipment successfully logs in the target wireless access point or not, and if the electronic equipment fails to log in, determining that the configuration fails;
or after the electronic device successfully logs in the target wireless access point, judging whether the configuration request sent to the target wireless access point is successfully sent or not, and if the configuration request sent to the target wireless access point is failed, determining that the configuration is failed.
In one possible implementation manner, the test case includes configuration parameters for configuring the target wireless access point; the monitoring whether the target wireless access point fails to be configured includes:
judging whether the actual configuration parameters of the target wireless access point are consistent with the configuration parameters; if not, the configuration fails.
In one possible implementation manner, the test case includes configuration parameters for configuring the target wireless access point, and the method further includes:
obtaining inspection parameters; after the test case corresponding to the test task is called through the test task, the method further comprises the following steps:
checking whether the configuration parameters are correct according to the obtained check parameters; if not, terminating the test configuration method; and if so, configuring the corresponding target wireless access point according to the test case.
In one possible implementation manner, the configuration parameter includes a check type parameter and a character of the configuration parameter of the target wireless access point; the checking type parameters comprise a first checking type parameter and a second checking type parameter, the first checking type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with discrete values, and the second checking type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with a character length between intervals;
the checking whether the configuration parameters are correct according to the obtained check parameters includes:
if the check type parameter corresponds to the first check type parameter, judging whether the character of the configuration parameter is equal to the character of the check parameter corresponding to the configuration parameter type; and if the verification type parameter corresponds to the second verification type parameter, judging whether the character length of the configuration parameter is within the character length range corresponding to the configuration parameter type in the check parameter.
In one possible implementation manner, the configuring the test case for the corresponding target wireless access point according to the test case includes:
controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate a test environment corresponding to the test case; and configuring the corresponding powered-on target wireless access point according to the test case.
In one possible implementation manner, the monitoring whether the configuration of the target wireless access point fails, and if the configuration fails and a reset condition is satisfied, controlling the target wireless access point to restart, and reconfiguring the restarted target wireless access point again according to the test case, further includes:
and if the configuration is successful, controlling the tested terminal equipment to be connected with the successfully configured target wireless access point to perform Wi-Fi performance test.
In one possible implementation manner, if the configuration is successful, controlling the tested terminal device to connect to the target wireless access point that is successfully configured to perform the Wi-Fi performance test includes:
controlling the tested terminal to establish throughput data flow connection with the target wireless access point which is configured successfully; acquiring an output throughput data stream corresponding to the test task and transmitted by the tested terminal equipment; packaging the test task and the output throughput data stream corresponding to the test task into a test message packet, and storing the test message packet according to a mode corresponding to a test task field; and comparing the output throughput data flow in the test message packet with the comparison output throughput data flow to obtain a test result.
In a second aspect, an embodiment of the present application provides an electronic device, where the electronic device is connected to at least one wireless access point and at least one terminal device under test, and the electronic device is configured to test the terminal device under test through the wireless access point, and includes:
the acquisition module is used for acquiring test parameters, analyzing the test parameters to acquire a test task, and calling a test case corresponding to the test task through the test task; a configuration module, configured to configure a corresponding target wireless access point according to the test case, where the target wireless access point is one or more wireless access points in the at least one wireless access point; the configuration module is further configured to monitor whether the target wireless access point fails to be configured, control the target wireless access point to be restarted if the configuration fails and a reset condition is met, and reconfigure the restarted target wireless access point according to the test case.
In one possible implementation manner, the configuration module is further configured to update the configuration times of the target wireless access point if the configuration of the target wireless access point fails.
In one possible implementation manner, the reset condition includes:
and the current configuration times of the target wireless access point are within a preset configuration threshold value.
In one possible implementation manner, the configuration module includes:
the first monitoring module is used for judging whether the electronic equipment successfully logs in the target wireless access point or not, and if the electronic equipment fails to log in, the configuration failure exists;
and the second monitoring module is used for judging whether the configuration request is successfully sent to the target wireless access point after the electronic equipment successfully logs in the target wireless access point, and if the configuration request is failed to be sent, the configuration failure exists.
In one possible implementation manner, the test case includes configuration parameters for configuring the target wireless access point; the configuration module further comprises a third monitoring module, wherein the third monitoring module is configured to determine whether an actual configuration parameter of the target wireless access point is consistent with the configuration parameter, and if not, the configuration fails.
In one possible implementation manner, the test case includes configuration parameters for configuring the target wireless access point; the acquisition module is also used for acquiring the inspection parameters; the obtaining module further comprises:
the checking submodule is used for checking whether the configuration parameters are correct or not according to the obtained checking parameters; wherein: if not, the check submodule does not transmit the test case to the configuration module; and if the test case is correct, the verification submodule transmits the test case to the configuration module.
In one possible implementation manner, the configuration parameter includes a check type parameter and a character of the configuration parameter of the target wireless access point; the checking type parameters comprise a first checking type parameter and a second checking type parameter, the first checking type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with discrete values, and the second checking type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with a character length between intervals; wherein: if the check type parameter corresponds to the first check type parameter, the check submodule judges whether the characters of the configuration parameter are equal to the characters corresponding to the configuration parameter type in the check parameter; if the check type parameter corresponds to the second check type parameter, the check submodule determines whether the character length of the configuration parameter is within a character length range corresponding to the configuration parameter type in the check parameter.
In one possible implementation manner, the test case includes power-on and power-off parameters for controlling power-on or power-off of the corresponding target wireless access point; the configuration module includes:
the power-on and power-off module is used for controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate the test environment corresponding to the test case; and the power-on and power-off module sends the power-on message or the power-off message of the corresponding target wireless access point to the configuration module.
In one possible implementation manner, the electronic device further includes:
and the performance test module is used for controlling the tested terminal equipment to be connected with the successfully configured target wireless access point to perform Wi-Fi performance test if receiving the successfully configured message sent by the configuration module.
In one possible implementation manner, the performance testing module includes:
a throughput data stream establishing module, configured to control the tested terminal to establish a throughput data stream connection with the successfully configured target wireless access point;
the first obtaining submodule is used for obtaining the throughput of the tested terminal equipment corresponding to the test task;
the storage module is used for packaging the test task and the output throughput data stream corresponding to the test task into a test message packet and storing the test message packet according to a mode corresponding to a test task field;
and the second obtaining submodule is used for comparing the output throughput data stream in the test message packet with the comparison output throughput data stream to obtain a test result.
In a third aspect, an embodiment of the present application provides an electronic device, including:
at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to be able to perform the method provided by the first aspect.
In a fourth aspect, an embodiment of the present application is a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method provided in the first aspect.
It should be understood that the second to fourth aspects of the embodiment of the present application are consistent with the technical solution of the first aspect of the embodiment of the present application, and beneficial effects obtained by the aspects and the corresponding possible implementation are similar, and are not described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present specification, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic view of a scenario of an embodiment of the present application;
FIG. 2 is a flowchart of a test configuration method according to an embodiment of the present application;
FIG. 3 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 4 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 5 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 6 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 7 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 8 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 9 is a flowchart of a test configuration method according to another embodiment of the present application;
FIG. 10 is a flowchart of a test configuration method according to another embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification;
FIG. 12 is a block diagram of a test system according to an embodiment of the present disclosure;
fig. 13 is a schematic structural diagram of an apparatus provided in an embodiment of the present disclosure.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present application is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present specification.
The terminology used in the embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to fig. 1, terms and concepts related to embodiments of the present application will be explained first.
Local Area Network (LAN): a local area network is a regional network formed by interconnecting a plurality of computer devices in a certain area. A local area network is a private network that may be located in or near a building, such as a home, office, or factory. The local area network may be used to connect the computer device and the terminal device used by the user, so that the computer device and the terminal device used by the user can share resources and exchange information. For example, when a local area network is used within a company, the local area network may be referred to as enterprise network 102.
Enterprise network 102 includes computer devices, network connection devices, and network transmission media.
The Computer device may be a notebook, a Personal Computer (PC), a server, a workstation, or the like. The electronic device 101 according to the embodiment of the present application may be a computer device.
The Network connection device may be a Network Interface Controller (NIC), a hub, a switch, a repeater, a router, or the like.
Network transmission media are used to connect computer devices to network connection devices. The network transmission medium may be coaxial cable, twisted pair, fiber optics, or the like.
Wireless Local Area Network (WLAN): refers to a local area network that is not connected using any wires or transmission cables. Wireless local area networks use wireless electromagnetic waves as the medium for data transmission. A common standard for wireless local area networks is the IEEE 802.11 standard. Illustratively, a Wi-Fi device, a Wi-Fi module, or a Wi-Fi chip can access a wireless local area network.
Wi-Fi: Wi-Fi is a trademark of a alliance's manufacturer, but also serves as an authentication for products. In the embodiment of the application, Wi-Fi is a wireless local area network device conforming to the IEEE 802.11 standard. The user can access the wireless local area network through the Wi-Fi module, the Wi-Fi chip, the Wi-Fi equipment and the like. The Wi-Fi module or chip can work in a 2.4G frequency band or a 5G frequency band. The frequency range of the 2.4G band is: 2400-2488 MHz. The frequency range of the 5G frequency band is: 4910-5835 MHz.
A wireless Access Point (AP) and a Station (STA) are disposed in the wireless lan.
Site: may be a device capable of connecting with the wireless access point 104 to access a wireless local area network. A station may be a device that is deployed with at least a Wi-Fi chip or module.
The station referred to in the embodiments of the present application may refer to the terminal device 105 under test. The tested terminal device 105 may be a mobile phone, a tablet computer, an intelligent wearable device, a data acquisition device, an internet of things device, and the like. The internet of things equipment related to the embodiment of the application can be internet of things equipment with a Wi-Fi chip or module, such as a POS machine, a vehicle-mounted network terminal, a sensor, a smart electric meter, a smart household appliance and the like.
The wireless access point 104: is an access point of a wireless local area network and may be referred to as a hotspot or wireless access point. The wireless access point 104 is capable of providing at least one terminal device under test 105 with access to a wireless local area network. The wireless access point 104 related to the embodiment of the present application may be a device having a Wi-Fi module or a Wi-Fi chip, for example, a wireless router, a wireless repeater, a wireless network card, or the like. The wireless access point 104 may also be a mobile phone, a tablet Computer, a Customer Premise Equipment (CPE), a Personal Computer (PC), an internet of things device, etc.
Channel: may refer to the operating channel of the target wireless access point. The channel includes a center frequency and a bandwidth. For example, referring to table 1, the 2.4G band includes 14 channels. Each channel has a bandwidth of 22MHz, with an effective channel bandwidth of 20MHz, and the remaining 2MHz is used to isolate adjacent channels. The available bandwidth of the 2.4G frequency band is 88MHz, and the center frequency of each channel is separated by 5 MHz.
TABLE 12.4G band channel partitioning
Figure BDA0003258782790000091
Figure BDA0003258782790000101
In addition, the 5G frequency band channels include channels 7-196. The bandwidth of the channels of different channel numbers is different. The bandwidth of the 5G band channel may be 20MHz, 40MHz, 80MHz or 160 MHz. The center frequencies and frequency ranges of the partial channels can be seen in table 2.
TABLE 25G band channel partitioning
Figure BDA0003258782790000102
Figure BDA0003258782790000111
Shielded room environment 106: the electromagnetic signal is limited in a space within a certain range by utilizing the conductive or magnetic conductive material, the electromagnetic signal is prevented from being transmitted to the outside, meanwhile, the interference of the outside electromagnetic signal is inhibited, a relatively closed space is created, and the shielding effect is further achieved.
Fig. 1 is a schematic view of an application scenario in an embodiment of the present application. As shown in FIG. 1, embodiments of the present application may be applied within a shielded room environment 106 for Wi-Fi performance testing of a terminal device 105 under test. Wi-Fi performance testing, as referred to herein, can refer to throughput data flow testing.
And testing the throughput data flow: which may be a wireless local area network between the terminal device 105 under test and the wireless access point 104, the ability to successfully transfer data per unit time may measure the Wi-Fi performance of the terminal device 105 under test.
It should be understood that the throughput data stream to which embodiments of the present application relate may be a set of ordered and data sequences having a start byte and an end byte. The throughput data stream includes an input throughput data stream and an output throughput data stream. In the embodiment of the present application, the incoming throughput data stream may refer to a sequence of throughput data transmitted by the electronic device 101 to the wireless access point 104, and the wireless access point 104 transmits the sequence of throughput data to the terminal device under test 105 through the wireless local area network. The output throughput data stream may refer to a sequence of throughput data successfully received by the test terminal device 105.
It is to be appreciated that the electronic device 101 can be coupled to the wireless access point 104 for transmitting a throughput data stream to the wireless access point 104.
The wireless access point 104 is wirelessly connected to the terminal device 105 to be tested, so that the terminal device 105 to be tested receives the input throughput data stream sent by the electronic device 101 through a Wi-Fi module or chip inside the terminal device 105 to be tested, and is further used for testing the Wi-Fi performance of the terminal device 105 to be tested.
The electronic device 101 may be connected to the terminal device under test 105 in a wired manner, and is configured to obtain a throughput data sequence successfully received by the terminal device under test 105, that is, output a throughput data stream. The electronic device 101 may measure the Wi-Fi performance of the terminal device 105 under test by inputting the throughput data stream and outputting the throughput data stream.
It should be understood that electronic device 101 may be wired to switch 103 through enterprise network 102. The switch 103 may be wired to the wireless access point 104.
It should be understood that the electronic device 101 may be connected with at least one wireless access point 104. The electronic device 101 may be connected with at least one terminal device under test 105.
In the prior art, in the Wi-Fi performance of the terminal device to be tested, the automatic streaming software may automatically configure the configuration parameters of the wireless access point 104 and automatically input the throughput data stream. However, in the process of automatically configuring the wireless access point 104, the automatic streaming software cannot monitor whether the configuration parameters of the wireless access point are correct, so that a wrong throughput data stream test is executed, and an effective test result cannot be obtained. On the other hand, if configuration fails due to an abnormality occurring in the automatic configuration process of the wireless access point 104, the automatic run-off software also lacks a mechanism for coping with the configuration failure of the wireless access point, and cannot ensure stable execution of the Wi-Fi performance test.
Based on the above problems, the embodiments of the present application provide a test configuration method, which can effectively monitor the problems occurring in the configuration process of the wireless access point 104, ensure that the configuration of the wireless access point 104 is successful, avoid the configuration parameters of the wireless access point 104 from being incorrect, and reconfigure the wireless access point 104 by setting the reconfiguration conditions under the condition of failed configuration, so as to ensure that the Wi-Fi performance test of the tested terminal device 105 is stably executed.
Fig. 2 is a flowchart of a test configuration method according to an embodiment of the present application. As shown in fig. 2, the test configuration method may be applied to an electronic device 101, where the electronic device 101 is configured to test a terminal device 105 to be tested through a wireless access point 104, and includes:
step 201, obtaining test parameters, analyzing the test parameters to obtain a test task, and calling a test case corresponding to the test task through the test task.
Alternatively, the test parameters may be transmitted by the computing terminal device. Such as a computer, a cell phone, a cloud test server, etc. The computing terminal device is disposed outside of the shielded room environment 106 or within the shielded room environment 106. For example, a computing terminal device may communicate with the electronic device 101 through the enterprise network 102. For another example, the computing terminal device may be communicatively connected to the electronic device 101 through a USB interface, which is not limited in this embodiment of the present application.
Alternatively, the test parameter may be a character or string of characters. The test parameters include at least test task parameters. The test task parameters are used to characterize the strings of the test task. The test task is used to indicate the test type of the terminal device 105 under test. The test type of the tested terminal device 105 may be a compatibility performance test, a site mode basic performance test, an adjacent channel interference performance test, a preemption performance test, and the like. The test task parameters may be represented numerically as 1, 2, 3, etc. For example, 1 indicates a compatibility performance test, 2 indicates a site mode basic performance test, 3 indicates an adjacent channel interference performance test, and 4 indicates a preemption performance test. The test task parameters may also be represented by a, b, c, d, etc., which are not limited by the embodiments of the present application.
Optionally, the compatibility test requires powering up two sets of wireless access points 104, and the operating frequency bands of the two sets of wireless access points 104 are different, for example, one set of wireless access points 104 operates in the 2.4G frequency band, and the other set of wireless access points 104 operates in the 5G frequency band.
Alternatively, the site mode basic performance test may be performed in connection with a plurality of wireless access points 104 in sequence. For example, one wireless access point 104 is powered on first to perform Wi-Fi performance testing, the wireless access point 104 which has been tested is powered off after the testing is completed, and then another wireless access point 104 is selected to be powered on to perform Wi-Fi performance testing.
Optionally, the adjacent channel interference performance test requires that two adjacent wireless access points 104 operating in the same frequency band are powered on at the same time for testing. For example, two powered up wireless access points 104 each operate in the 2.4G frequency band, where the channel of one wireless access point 104 is set to channel 1 and the channel of the other wireless access point is set to channel 6.
Alternatively, the preemption performance test requires that at least two terminal devices under test 105 connect to the same wireless access point 104 for testing.
Optionally, the electronic device 101 may analyze the test parameters to obtain test task parameters included in the test parameters. The electronic device 101 may invoke the test case through the test task parameters.
Alternatively, the test case may be stored in the electronic device 101 in advance. The test case can also be sent by the computing terminal device. For example, the computing terminal device may send test cases and test parameters to the electronic device 101.
It is understood that the Test Case (Test Case) is a description of the Wi-Fi performance testing task performed by the tested terminal device 105. The test case comprises documents for describing a test target, a test environment, input data, test steps and expected results. The above-mentioned documents may be stored in the form of a script. The test case may include at least one script.
Script (Script): scripts are executable files written in a certain format in a particular descriptive language. When the script is called, the electronic device 101 according to the embodiment of the present application may compile the script, and then execute an executable program or code generated after the script is compiled.
Optionally, the electronic device 101 may execute an executable program or code generated after compiling the script in the test case, so as to perform a Wi-Fi performance test on the terminal device 105 to be tested.
It can be understood that the Wi-Fi performance test on the terminal device 105 under test in the test case at least includes:
powering on or powering off according to the target wireless access point corresponding to the test task;
configuring a powered-on target wireless access point;
controlling the tested terminal equipment 105 to establish throughput data flow connection with the target wireless access point which is configured successfully;
the output throughput data stream transmitted by the terminal device under test 105 is obtained.
Step 202, configuring the corresponding target wireless access point according to the test case.
Optionally, the target wireless access point is one or more of the at least one wireless access point.
Optionally, the test case at least includes configuration parameters for configuring the target wireless access point. The electronic device 101 may perform the act of configuring the target wireless access point in the test case.
Optionally, the electronic device 101 may configure the target wireless access point through a hypertext Transfer Protocol (HTTP) or a hypertext Transfer Protocol over Secure Socket Layer (HTTP).
Optionally, the configuration parameters at least include one or more of a login address, a management user name, a password, a frequency band, a bandwidth, a channel, and an encryption mode of the target wireless access point. The login address may be an ip (internet Protocol address) address, for example 192.168.1.1. The management username and password are used to log in to the target wireless access point. The frequency band may be a 2.4G frequency band or a 5G frequency band.
Optionally, the encryption mode may be Wired Equivalent Privacy protocol (WEP), Protected wireless computer network security (Wi-Fi Protected Access, WPA), or the like. The WPA may include three standards WPA, WPA2, and WPA 3.
And 203, monitoring whether the target wireless access point fails to be configured, if the configuration fails and the reset condition is met, controlling the target wireless access point to be restarted, and configuring the restarted target wireless access point again according to the test case.
Optionally, the reset condition comprises: the current configuration times of the target wireless access point are within a preset configuration threshold value.
Optionally, the electronic device 101 sets a configuration threshold for each wireless access point within the target wireless access point. The configuration threshold may be preset within the test case. For example, the configuration threshold may be a positive integer value of 1, 2, 3, or more in the embodiments of the present application, which is not limited in the embodiments of the present application.
According to the test configuration method, in the process that the electronic equipment 101 automatically configures the target wireless access point according to the test case, whether the target wireless access point is successfully configured or not is monitored, and then the problem occurring in the configuration of the target wireless access point is found; on the other hand, the automatic configuration efficiency of the target wireless access point is increased, and the probability of manual intervention is reduced.
Fig. 3 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 3, in the embodiment shown in fig. 2 of the present application, step 203 may include:
step 301, reading the reconfiguration times.
Alternatively, the electronic device 101 may determine whether the target wireless access point for configuration is initially configured. If the target wireless access point for configuration is configured for the first time, the electronic device 101 may initialize the number of times of reconfiguration of the target wireless access point to zero.
Step 302, monitoring whether the target wireless access point fails to be configured.
Step 303, if the configuration fails, the configuration times of the target wireless access point are updated.
Alternatively, updating the number of configurations of the target wireless access point may be increasing the number of configurations of the target wireless access point. The value of the number of times of configuration of the target wireless access point is increased may be a fixed value, for example, a positive integer of 1, 2, 3, or more.
In step 304, it is determined whether a reset condition is satisfied.
And 305, if the reset condition is met, controlling the target wireless access point to restart, and reconfiguring the restarted target wireless access point again according to the test case.
And step 306, if the reset condition is not met, configuring the optional wireless access points in the target wireless access point according to the test case.
Alternatively, the electronic device 101 may select a different fixed value depending on the type of failure in configuration of the target wireless access point. For example, the target wireless access point may be given different numbers of reboots depending on the type of configuration failure of the target wireless access point.
Because some types of configuration failure of the target wireless access point may not be overcome by restarting the target wireless access point, the target wireless access point is prevented from restarting and performing configuration again by setting a higher fixed value, and the efficiency of configuration of the target wireless access point is improved.
Optionally, the type of the target wireless access point configuration failure may include one or more of the following:
1. the electronic device 101 fails to log in to the target wireless access point;
2. the target wireless access point of the electronic device 101 fails to send the configuration request;
3. the actual configuration parameters of the target wireless access point are not consistent with the configuration parameters sent by the electronic device 101.
For example, the electronic device 101 may allocate the same fixed value to three types of failure in logging into the target wireless access point, failure in sending the configuration request, and inconsistency between the actual configuration parameter of the target access point and the configuration parameter. Alternatively, the electronic device 101 may set a higher fixed value for the failure to log in to the target wireless access point, and allocate a lower fixed value for the failure to send the configuration request and the inconsistency between the actual configuration parameters of the target access point and the configuration parameters.
Fig. 4 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 4, in the embodiment shown in fig. 2 or fig. 3 of the present application, the monitoring whether the target wireless access point fails to be configured may include:
step 401, determine whether the actual configuration parameters of the target wireless access point are consistent with the configuration parameters.
If not, there is a configuration failure and step 303 is executed. If the two are consistent, the configuration is successful.
Optionally, the electronic device 101 may crawl a configuration completion parameters page for the target wireless access point. The electronic device 101 may parse the configuration parameter page to obtain the actual configuration parameters of the target wireless access point. For example, the electronic device may obtain actual configuration parameters of different frequency bands through the BeautifulSoup library, compare the obtained actual configuration parameters with the configuration parameters transmitted by the electronic device 101, and determine whether the actual configuration parameters are consistent with the configuration parameters transmitted by the electronic device 101.
The existing automatic flow running software cannot monitor whether the configuration parameters of the target wireless access point are correct or not, so that wrong throughput data flow test is executed, and an effective test result cannot be obtained. According to the test configuration method provided by the embodiment of the application, when the monitoring of the configuration of the target wireless access point fails, the situation that the configuration parameters after the configuration of the target wireless access point are inconsistent with the configuration parameters sent by the electronic device 101 is included, so that the parameters are correctly configured when the electronic device 101 automatically configures the target wireless access point, and the validity of the test result is improved.
Fig. 5 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 5, in the embodiment shown in fig. 4 of the present application, before determining whether the actual configuration parameters of the target wireless access point are consistent with the configuration parameters, the method may include:
step 501, judging whether the electronic device successfully logs in the target wireless access point, if the electronic device fails to log in, the configuration failure exists.
Alternatively, the electronic device 101 may create a callback object, and transmit the management user name and the password in the configuration parameters to the target wireless access point by using a POST request in HTTP or HTTPs, so as to complete the login of the target wireless access point.
Alternatively, if the electronic device 101 receives a login failure parameter returned by the target wireless access point, it is determined that the electronic device 101 has failed to login.
Optionally, if the electronic device 101 receives a login success parameter returned by the target wireless access point, it is determined that the electronic device 101 has successfully logged in.
Optionally, if the electronic device 101 logs in successfully, the configuration is successful.
Step 502, after the electronic device successfully logs in the target wireless access point, determining whether the configuration request sent to the target wireless access point is successfully sent, and if the configuration request sent to the target wireless access point is failed, determining that the configuration is failed.
Alternatively, if the transmission is successful, step 401 is executed.
Alternatively, after the electronic device 101 sends the configuration request to the target wireless access point, the electronic device 101 may receive the status code returned by the target wireless access point. The electronic device 101 may determine whether the request was successful by the status code.
In the HTTP or HTTP transport protocol, the electronic device 101 may receive the HTTP status code returned by the target wireless access point. For example, the status code 100 indicates that the requestor continues to make requests. The status code 200 indicates that the request was successful. The status code 400 indicates that the target wireless access point does not understand the syntax of the request. The status code 403 indicates that the target wireless access point has denied the request.
Fig. 6 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 6, in the embodiment shown in any one of fig. 2 to fig. 5 of the present application, the test configuration method further includes:
step 601, obtaining the inspection parameters.
Alternatively, the check parameter may be transmitted by the computing terminal. The computing terminal equipment can be a computer, a mobile phone, a cloud test server and the like.
Optionally, the test case includes inspection parameters.
As shown in fig. 6, in the embodiment shown in fig. 2 or fig. 5 of the present application, after step 201, the method further includes:
step 602, checking whether the configuration parameters are correct according to the obtained check parameters.
If not, terminating the test configuration method;
if so, go to step 202.
The embodiment of the application verifies whether the configuration parameters are correct through the checking parameters, and can find whether the configuration parameters are reasonable before the target wireless access point is configured, namely, the reasonability of the test case is verified, if the test case is unreasonable, even if the target wireless access point is successfully configured, the obtained Wi-Fi performance test result is not effective, and the validity of the automatic Wi-Fi performance test of the tested terminal device 105 is further improved.
Optionally, the configuration parameter includes a check type parameter and a character of the configuration parameter of the target wireless access point. The check type parameters include a first check type parameter and a second check type parameter. The first check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to the type of discrete values. The second check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to the type with the character length between intervals.
Illustratively, the first parity type may be represented by 1, and the second parity type may be represented by 2.
Fig. 7 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 7, in the embodiment shown in fig. 6 of the present application, step 602 includes:
step 701, reading a verification type parameter in the configuration parameters.
Step 702, if the check type parameter corresponds to the first check type parameter, determine whether the character of the configuration parameter is equal to the character of the corresponding configuration parameter type in the check parameter. If the character of the configuration parameter is equal to the character of the corresponding configuration parameter type in the check parameter, the result of the configuration parameter verification is correct. If the character of the configuration parameter is not equal to the character of the corresponding configuration parameter type in the check parameter, the result of the configuration parameter check is incorrect.
Illustratively, the channel parameter in the configuration parameter needs to represent the channel number of the channel, the channel number under the 2.4G frequency band is a positive integer of 1-14, and if the character of the configuration parameter is a decimal, the result of the configuration parameter verification is incorrect; if the configuration parameter has a character of 15, the result of the configuration parameter check is incorrect.
In step 703, if the check type parameter corresponds to the second check type parameter, it is determined whether the character length of the configuration parameter is within the character length range corresponding to the configuration parameter type in the check parameter. If the character length of the configuration parameter is within the character length range of the corresponding configuration parameter type in the check parameter, the result of the configuration parameter verification is correct. If the character length of the configuration parameter is not within the character length range of the corresponding configuration parameter type in the check parameter, the verification result of the configuration parameter is incorrect.
Illustratively, the length of the Service Set Identifier (SSID) of the target wireless access point is up to 32-bit characters, and if the length of the SSID of the configuration parameter exceeds the 32-bit characters, the verification result of the configuration parameter is incorrect.
Optionally, if the verification result of the configuration parameter is incorrect, the test configuration method is terminated.
Optionally, if the verification result of the configuration parameter is correct, step 202 is executed.
According to the embodiment of the application, through the verification mode, the rationality of the configuration parameters can be checked through two verification types, and the condition that the transmission of wrong parameters causes the function failure of the target wireless access point is avoided.
Optionally, the test case includes power-up and power-down parameters for controlling power-up or power-down of the corresponding target wireless access point.
Optionally, the test parameters also include an IP address parameter indicative of the wireless access point 104.
Optionally, the electronic device 101 may obtain the IP address parameter after analyzing the test parameter, and may obtain the LAN port address of the wireless access point 104 according to the IP address parameter. The electronic device 101 may log into the wireless access point 104 based on the LAN port address.
Alternatively, the electronic device 101 may control the wireless access point 104 to power up or power down according to the LAN port address. For example, the electronic device 101 controls the wireless access point 104 to power up or power down through a network relay in the switch 103 according to the LAN port address.
It should be understood that the electronic device 101 may control the wireless access point 104 to restart through the network relay of the switch 103 according to the LAN port address.
Fig. 8 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 8, in any embodiment shown in fig. 2 to 7 of the present application, configuring the corresponding target wireless access point according to the test case in step 202 includes:
step 801, controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate the test environment corresponding to the test case.
Optionally, the test environment corresponding to the test case includes a compatibility performance test environment, a site mode basic performance test environment, an adjacent channel interference performance test environment, a preemption performance test environment, and the like.
For example, the compatibility testing environment may be to power on two sets of target wireless access points with different frequency bands, for example, a 2.4G frequency band and a 5G frequency band, according to the power-on/power-off parameter and the IP address parameter, so as to ensure that only one set of target wireless access points with the same frequency band exist in the shielded room environment 106. The number of target wireless access points per group may be one or more.
For example, the site mode basic performance test environment may power up the designated target wireless access point according to the power-up and power-down parameters and the IP address parameters.
For example, the adjacent channel interference performance test environment may power up two target wireless access points operating in the same frequency band according to the power-up parameter and the IP address parameter. The channels of the two target wireless access points are adjacent. Taking the 2.4 band as an example, the channel neighbors may be channel 1 and channel 6, or channel 6 and channel 11.
Optionally, the test parameters further include a terminal device under test serial number parameter for distinguishing the terminal device under test 105. The serial number parameter of the terminal device under test may identify the terminal device under test 105, and the serial number parameter of the terminal device under test may be, for example, a product serial number or a MAC address of the terminal device under test 105, which is not limited in this embodiment of the present application.
Optionally, the preemption performance test environment may power up a specified target wireless access point according to the power-up parameter and the IP address.
Alternatively, the electronic device 101 may control at least two tested terminal devices 105 to connect with a specified target wireless access point, so as to perform the preemption performance test.
Step 802, configuring the powered corresponding target wireless access point according to the test case.
According to the embodiment of the application, the test environments of different test tasks can be simulated through the power-on parameters and the test parameters, the diversity of the test tasks is improved, and the Wi-Fi performance test of the tested terminal equipment 105 is more comprehensive.
Fig. 9 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 9, in the embodiments shown in fig. 2 to fig. 8 of the present application, monitoring whether the target wireless access point fails to be configured, and if the target wireless access point fails and meets the reset condition, controlling the target wireless access point to restart, and reconfiguring the restarted target wireless access point again according to the test case, further including:
and step 901, if the configuration is successful, controlling the tested terminal equipment to connect with the successfully configured target wireless access point to perform Wi-Fi performance test.
Alternatively, embodiments of the present application may be tested by a throughput data testing tool, such as an iperf network performance testing tool, or an ixchar network performance testing tool. Other network performance testing tools may also be used in the embodiments of the present application, which are not limited in the embodiments of the present application.
Fig. 10 is a flowchart of a test configuration method according to another embodiment of the present application. As shown in fig. 10, in the embodiment shown in fig. 9 of the present application, step 901 may include:
step 1001, controlling the tested terminal to establish a throughput data stream connection with the successfully configured target wireless access point.
Optionally, the electronic device 101 sends a connection instruction to the terminal device 105 according to the serial number parameter of the terminal device under test in the test parameters. The tested terminal device 105 executes the connection instruction to establish wireless connection with the successfully configured target wireless access point.
Optionally, the connection instruction at least includes an SSID, an encryption mode, and a password of the target wireless access point.
Optionally, after the tested terminal device 105 acquires the connection instruction, a nearby Wi-Fi signal list is acquired, and a target wireless access point that is successfully configured is requested to be connected according to the SSID.
Optionally, after the connection is successful, the electronic device 101 performs a throughput data flow test by using a network performance testing tool.
For example, the test throughput data flow test may be that the electronic device 101 acquires an IP address of the terminal device 105 under test connected to the successfully configured target wireless access point, and runs a network performance testing tool pre-installed in the terminal device 105 under test. When the test is performed in the uplink, the tested terminal device 105 is started as a client of the network performance testing tool, and the electronic device 101 runs the server of the network performance testing tool, and then performs a throughput data flow test. When the test is performed in the downlink, the electronic device 101 starts up as a client of the network performance testing tool, and the tested terminal device 105 runs the server of the network performance testing tool, and then performs a throughput data flow test.
It should be understood that the electronic device 101 and the terminal device under test 105 need to be installed with a network performance testing tool before performing Wi-Fi performance testing.
It can be understood that the embodiment of the application can be applied to the automatic Wi-Fi performance test of electronic products supporting the Wi-Fi function, such as terminal mobile phones, watches, POS machines, Internet of things equipment and the like. The Wi-Fi connection method of step 1001 of the present application is different for different types of terminal devices 105 under test. In practice, for the tested terminal device 105 with the Android system deployed, automatic testing can be performed by calling an interface provided by an application framework layer of the Android system, or interface automation operation can be realized by a UIA framework method. Aiming AT the tested terminal equipment 105 without an interface or an internet of things type, Wi-Fi signal scanning and connection with a target wireless access point can be realized by using a serial port to issue an AT command mode, and then throughput performance testing is completed.
Step 1002, obtaining an output throughput data stream of a corresponding test task transmitted by a tested terminal device.
Alternatively, the electronic device 101 may obtain the output throughput data stream at regular intervals. The fixed time interval may be 1s, 2s, 3s, etc., and the embodiment of the present application does not limit this.
Step 1003, packaging the test task and the output throughput data stream corresponding to the test task into a test message packet, and storing the test message packet according to the mode corresponding to the test task field.
Alternatively, the electronic device 101 may encapsulate the output throughput data stream of the corresponding test task acquired at fixed intervals as a test message packet.
Optionally, the test message includes a test type corresponding to the test task, configuration parameters of the target wireless access point, a sequence number parameter of the terminal device 105 to be tested, project version information, and an output throughput data stream. The project version information may be version information of a network performance test tool.
According to the embodiment of the application, Wi-Fi performance test data corresponding to different test tasks can be stored in a mode that the relevant fields of the test tasks and the output throughput data streams corresponding to the relevant fields are correspondingly stored, data backup is uniform, and searching efficiency is improved.
And 1004, comparing the output throughput data stream in the test message packet with the comparative output throughput data stream to obtain a test result.
Optionally, the electronic device 101 may store the relevant fields of the test task in the test message and the output throughput data stream corresponding to the relevant fields in a database.
Alternatively, the output throughput data stream corresponding to the relevant field may be an output throughput data stream acquired at fixed intervals.
Optionally, the electronic device 101 may further store an average value of output throughput data streams obtained at fixed intervals within a preset time. The preset time may be 60s, 90s or 120s, which is not limited in the embodiments of the present application.
Alternatively, the electronic device 101 may compare the stored average value of the output throughput data streams obtained at fixed intervals within the preset time with the comparison output throughput data stream to obtain the test result.
For example, if the difference between the average value of the output throughput data streams obtained at fixed intervals within the preset time and the comparison output throughput data stream is within 5%, the result of the Wi-Fi performance test of the terminal device under test 105 is passed. If the difference between the average value of the output throughput data streams obtained at fixed intervals within the preset time and the comparison output throughput data stream exceeds 5%, the result of the Wi-Fi performance test of the tested terminal device 105 is failure.
Alternatively, the comparison output throughput data stream may be an average value of output throughput data streams within a preset time period output by the comparison test terminal device.
Alternatively, the electronic device 101 may read the output throughput data stream obtained at fixed intervals within the database to form a visual graph.
The embodiment of the application visually displays the output throughput data stream of the tested terminal device 105 stored in the database, so that a tester can check whether the throughput data stream has a pit or not and the stability of Wi-Fi performance.
It should be understood that dropping a pit may mean that the terminal device under test 105 does not transmit an outgoing throughput data stream to the electronic device 101 for some interval of time.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 11, the electronic device 101 is connected to at least one wireless access point 104 and at least one terminal device under test 105, respectively, and the electronic device 101 is configured to test the terminal device under test 105 through the wireless access point 104. The electronic apparatus 101 includes: an acquisition module 111 and a configuration module 112.
And the acquisition module is used for acquiring the test parameters, analyzing the test parameters to acquire a test task, and calling the test case corresponding to the test task through the test task.
And the configuration module is used for configuring the corresponding target wireless access points according to the test case, wherein the target wireless access points are one or more wireless access points in at least one wireless access point.
And the configuration module is also used for monitoring whether the target wireless access point fails to be configured or not, controlling the target wireless access point to be restarted if the configuration fails and the reset condition is met, and reconfiguring the restarted target wireless access point again according to the test case.
Optionally, the configuration module is further configured to update the configuration times of the target wireless access point if the configuration of the target wireless access point fails.
Optionally, the reset condition comprises:
the current configuration times of the target wireless access point are within a preset configuration threshold value.
Optionally, the configuration module comprises:
the first monitoring module is used for judging whether the electronic equipment successfully logs in the target wireless access point or not, and if the electronic equipment fails to log in, configuration failure exists;
and the second monitoring module is used for judging whether the configuration request is successfully sent to the target wireless access point after the electronic equipment successfully logs in the target wireless access point, and if the configuration request is failed to be sent, the configuration failure exists.
Optionally, the test case includes configuration parameters for configuring the target wireless access point.
Optionally, the configuration module further includes a third monitoring module, where the third monitoring module is configured to determine whether the actual configuration parameter of the target wireless access point is consistent with the configuration parameter, and if not, there is a configuration failure.
Optionally, the obtaining module is further configured to obtain the inspection parameter.
Optionally, the obtaining module includes:
and the checking submodule is used for checking whether the configuration parameters are correct or not according to the obtained checking parameters. If not, the check submodule does not transmit the test case to the configuration module. And if the test case is correct, the verification submodule transmits the test case to the configuration module.
Optionally, the configuration parameter includes a check type parameter and a character of the configuration parameter of the target wireless access point.
Optionally, the check type parameter includes a first check type parameter and a second check type parameter. The first check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to the type of discrete values. The second check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to the type with the character length between intervals.
Optionally, the checking submodule reads a checking type parameter in the configuration parameters.
If the check type parameter corresponds to the first check type parameter, the check submodule judges whether the characters of the configuration parameter are equal to the characters of the corresponding configuration parameter type in the check parameter.
If the check type parameter corresponds to the second check type parameter, the check submodule judges whether the character length of the configuration parameter is within the character length range of the configuration parameter type corresponding to the check parameter.
Optionally, the test case includes power-up and power-down parameters for controlling power-up or power-down of the corresponding target wireless access point.
Optionally, the configuration module comprises:
the power-on and power-off module is used for controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate the test environment corresponding to the test case;
and the power-on and power-off module sends the power-on message or the power-off message of the corresponding target wireless access point to the configuration module.
Optionally, the electronic device further comprises:
and the performance test module is used for controlling the tested terminal equipment to be connected with the successfully configured target wireless access point to perform Wi-Fi performance test if receiving the successfully configured message sent by the configuration module.
Optionally, the performance testing module includes:
the throughput data flow establishing module is used for controlling the tested terminal and the target wireless access point which is successfully configured to establish throughput data flow connection;
the first obtaining submodule is used for obtaining the throughput of the corresponding test task transmitted by the tested terminal equipment;
the storage module is used for packaging the test task and the output throughput data stream corresponding to the test task into a test message packet and storing the test message packet according to a mode corresponding to a test task field;
and the second obtaining submodule is used for comparing the output throughput data stream in the test message packet with the comparison output throughput data stream to obtain a test result.
The electronic device 101 provided in the embodiment shown in fig. 11 may be used to execute the technical solutions of the method embodiments shown in fig. 2 to fig. 10 in this specification, and further reference may be made to the relevant descriptions in the method embodiments for implementing the principles and technical effects.
Fig. 12 is a schematic structural diagram of a test system according to an embodiment of the present disclosure. As shown in fig. 12, the test system includes: electronic device 101, wireless access point 104, and server 121. As shown in fig. 1, the test system shown in fig. 12 may be disposed within a shielded room environment 106. Optionally, the server 121 may also be disposed outside the shielded room environment 106.
The test system is used to test the terminal device under test 105. The electronic device 101 is connected to at least one wireless access point 104 and at least one terminal device under test 105, respectively.
The electronic device 101 is used for testing the terminal device 105 under test through the wireless access point 104.
The electronic device 101 is configured to upload a test message packet obtained by testing the terminal device under test 105 to the server 121.
It can be understood that the electronic device 101 provided in the embodiment shown in fig. 12 may be used to execute the technical solutions of the method embodiments shown in fig. 2 to fig. 9 in this specification, and further reference may be made to the relevant descriptions in the method embodiments for realizing the principles and technical effects, which are not described herein again.
The server 121 is configured to parse the test message packet uploaded by the electronic device 101, and store the test message packet in a manner corresponding to the test task field.
Optionally, the server 121 receives the test message packet uploaded by the electronic device 101 in real time.
Optionally, the server 121 parses the test message packet uploaded by the electronic device 101 to obtain a field corresponding to the test task.
According to the embodiment of the application, Wi-Fi performance test data corresponding to different test tasks can be stored in a mode that the relevant fields of the test tasks and the output throughput data streams corresponding to the relevant fields are correspondingly stored, data backup is uniform, and searching efficiency is improved.
Optionally, the server 121 is configured to compare the output throughput data stream in the test message packet with the comparison output throughput data stream, and obtain a test result.
Alternatively, the server 121 may store the relevant fields of the test task in the test message and the output throughput data stream corresponding to the relevant fields in a database.
Alternatively, the output throughput data stream corresponding to the relevant field may be an output throughput data stream acquired at fixed intervals.
Alternatively, the server 121 may store an average value of output throughput data streams obtained at fixed intervals within a preset time. The preset time may be 60s, 90s or 120s, which is not limited in the embodiments of the present application.
Alternatively, the server 121 may compare the stored average value of the output throughput data streams obtained at fixed intervals within the preset time with the comparison output throughput data stream to obtain the test result.
For example, if the difference between the average value of the output throughput data streams obtained at fixed intervals within the preset time and the comparison output throughput data stream is within 5%, the result of the Wi-Fi performance test of the terminal device under test 105 is passed. If the difference between the average value of the output throughput data streams obtained at fixed intervals within the preset time and the comparison output throughput data stream exceeds 5%, the result of the Wi-Fi performance test of the tested terminal device 105 is failure.
Alternatively, the comparison output throughput data stream may be an average value of output throughput data streams within a preset time period output by the comparison test terminal device.
Alternatively, server 121 may read the output throughput data stream obtained at regular intervals in the database to form a visual graph.
The embodiment of the application visually displays the output throughput data stream of the tested terminal device 105 stored in the database, so that a tester can check whether the throughput data stream has a pit or not and the stability of Wi-Fi performance.
It should be understood that dropping a pit may mean that the terminal device under test 105 does not transmit an outgoing throughput data stream to the electronic device 101 for some interval of time.
Fig. 13 is a schematic structural diagram of an apparatus provided in an embodiment of the present disclosure. As shown in fig. 13, the electronic device 101 may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the test configuration method provided by the embodiments shown in fig. 2 to 10 in this specification.
The terminal device may be a computer device such as a computer, a notebook computer, or a server, and the form of the terminal device is not limited in this embodiment.
As shown in fig. 13, the electronic device 101 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna, a wireless communication module 160, a display screen 194, and the like.
It is understood that the wireless communication module 160 is capable of accessing a wireless local area network.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the electronic device 101. In other embodiments of the present application, the electronic device 101 may include more or fewer components than illustrated, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), and/or a neural Network Processor (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The processor 110 executes various functional applications and data processing by running programs stored in the internal memory 121, for example, implementing the test configuration method provided in the embodiments shown in fig. 2 to 10 of the present application.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, and/or a Universal Serial Bus (USB) interface, etc.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 101. The charging management module 140 may also supply power to the electronic device 101 through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives the input of the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 141 may also be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 101 may be implemented by the antenna and the wireless communication module 160.
The antenna is used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 101 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antennas may be multiplexed as diversity antennas for a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 101, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. Wireless communication module 160 may also receive signals to be transmitted from processor 110, frequency modulate them, amplify them, and convert them into electromagnetic waves via an antenna for radiation.
In some embodiments, the antenna of the electronic device 101 and the wireless communication module 160 are coupled such that the electronic device 101 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include BT, WLAN, NFC, and/or IR technology, among others.
The electronic device 101 implements display functions via the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 101 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 101 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. The NPU can implement applications such as intelligent recognition of the electronic device 101, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the storage capability of the electronic device 101. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in an external memory card.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, a phone book, etc.) created during use of the electronic device 101, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 101 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
Embodiments of the present application provide a non-transitory computer-readable storage medium, which stores computer instructions, where the computer instructions cause the computer to execute the test configuration method provided in the embodiments shown in fig. 2 to 10 in this specification.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM) or flash memory, an optical fiber, a portable compact disc read only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of embodiments of the invention, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present application may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a tablet computer (tablet computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (22)

1. A test configuration method is applied to an electronic device, wherein the electronic device is respectively connected with at least one wireless access point and at least one tested terminal device, and the electronic device is used for testing the tested terminal device through the wireless access point, and the method comprises the following steps:
obtaining test parameters, analyzing the test parameters to obtain a test task, and calling a test case corresponding to the test task through the test task;
configuring corresponding target wireless access points according to the test cases, wherein the target wireless access points are one or more wireless access points in the at least one wireless access point;
and monitoring whether the target wireless access point fails to be configured or not, if the configuration fails and the reset condition is met, controlling the target wireless access point to be restarted, and reconfiguring the restarted target wireless access point according to the test case.
2. The method of claim 1, wherein if the target wireless access point fails to configure, the method further comprises:
and updating the configuration times of the target wireless access point.
3. The method of claim 2, wherein the reset condition comprises:
and the current configuration times of the target wireless access point are within a preset configuration threshold value.
4. The method of claim 1, wherein the monitoring whether the target wireless access point fails to configure comprises:
judging whether the electronic equipment successfully logs in the target wireless access point or not, and if the electronic equipment fails to log in, determining that the configuration fails;
or after the electronic device successfully logs in the target wireless access point, judging whether the configuration request sent to the target wireless access point is successfully sent or not, and if the configuration request sent to the target wireless access point is failed, determining that the configuration is failed.
5. The method of claim 1, wherein the test case comprises configuration parameters for configuring the target wireless access point;
the monitoring whether the target wireless access point fails to be configured includes:
judging whether the actual configuration parameters of the target wireless access point are consistent with the configuration parameters;
if not, the configuration fails.
6. The method according to any of claims 1-5, wherein the test case comprises configuration parameters for configuring the target wireless access point, the method further comprising:
obtaining inspection parameters;
after the test case corresponding to the test task is called through the test task, the method further comprises the following steps:
checking whether the configuration parameters are correct according to the obtained check parameters;
if not, terminating the test configuration method;
and if so, configuring the corresponding target wireless access point according to the test case.
7. The method of claim 6, wherein the configuration parameters comprise a check type parameter and a character of the configuration parameters of the target wireless access point;
the check type parameters include a first check type parameter and a second check type parameter,
the first check type parameter is used for characterizing that characters of the configuration parameters of the target wireless access point belong to a type with discrete values,
the second check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with a character length between intervals;
the checking whether the configuration parameters are correct according to the obtained check parameters includes:
if the check type parameter corresponds to the first check type parameter, judging whether the character of the configuration parameter is equal to the character of the check parameter corresponding to the configuration parameter type;
and if the verification type parameter corresponds to the second verification type parameter, judging whether the character length of the configuration parameter is within the character length range corresponding to the configuration parameter type in the check parameter.
8. The method according to any one of claims 1 to 5, wherein the test case includes power-up and power-down parameters for controlling power-up and power-down of the corresponding target wireless access point, and the configuring for the corresponding target wireless access point according to the test case includes:
controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate a test environment corresponding to the test case;
and configuring the corresponding powered-on target wireless access point according to the test case.
9. The method according to any one of claims 1 to 5, wherein the monitoring whether the target wireless access point fails to be configured, and if the target wireless access point fails and meets a reset condition, controlling the target wireless access point to restart, and reconfiguring the restarted target wireless access point again according to the test case, further comprises:
and if the configuration is successful, controlling the tested terminal equipment to be connected with the successfully configured target wireless access point to perform Wi-Fi performance test.
10. The method according to claim 9, wherein if the configuration is successful, controlling the tested terminal device to connect to the successfully configured target wireless access point for Wi-Fi performance test comprises:
controlling the tested terminal to establish throughput data flow connection with the target wireless access point which is configured successfully;
acquiring an output throughput data stream corresponding to the test task and transmitted by the tested terminal equipment;
packaging the test task and the output throughput data stream corresponding to the test task into a test message packet, and storing the test message packet according to a mode corresponding to a test task field;
and comparing the output throughput data flow in the test message packet with the comparison output throughput data flow to obtain a test result.
11. An electronic device, wherein the electronic device is connected to at least one wireless access point and at least one terminal device under test respectively, and the electronic device is configured to test the terminal device under test through the wireless access point, comprising:
the acquisition module is used for acquiring test parameters, analyzing the test parameters to acquire a test task, and calling a test case corresponding to the test task through the test task;
a configuration module, configured to configure a corresponding target wireless access point according to the test case, where the target wireless access point is one or more wireless access points in the at least one wireless access point;
the configuration module is further configured to monitor whether the target wireless access point fails to be configured, control the target wireless access point to be restarted if the configuration fails and a reset condition is met, and reconfigure the restarted target wireless access point according to the test case.
12. The electronic device of claim 11, wherein the configuration module is further configured to update the configuration times of the target wireless access point if the configuration of the target wireless access point fails.
13. The electronic device of claim 12, wherein the reset condition comprises:
and the current configuration times of the target wireless access point are within a preset configuration threshold value.
14. The electronic device of claim 11, wherein the configuration module comprises:
the first monitoring module is used for judging whether the electronic equipment successfully logs in the target wireless access point or not, and if the electronic equipment fails to log in, the configuration failure exists;
and the second monitoring module is used for judging whether the configuration request is successfully sent to the target wireless access point after the electronic equipment successfully logs in the target wireless access point, and if the configuration request is failed to be sent, the configuration failure exists.
15. The electronic device of claim 11, wherein the test case comprises configuration parameters for configuring the target wireless access point;
the configuration module further comprises a third monitoring module, wherein the third monitoring module is configured to determine whether an actual configuration parameter of the target wireless access point is consistent with the configuration parameter, and if not, the configuration fails.
16. The electronic device of any of claims 11-15, wherein the test case comprises configuration parameters for configuring the target wireless access point;
the acquisition module is also used for acquiring the inspection parameters;
the obtaining module further comprises:
the checking submodule is used for checking whether the configuration parameters are correct or not according to the obtained checking parameters;
wherein:
if not, the check submodule does not transmit the test case to the configuration module;
and if the test case is correct, the verification submodule transmits the test case to the configuration module.
17. The electronic device of claim 16, wherein the configuration parameters comprise a check type parameter and a character of the configuration parameters of the target wireless access point;
the check type parameters include a first check type parameter and a second check type parameter,
the first check type parameter is used for characterizing that characters of the configuration parameters of the target wireless access point belong to a type with discrete values,
the second check type parameter is used for representing that characters of the configuration parameters of the target wireless access point belong to a type with a character length between intervals;
wherein:
if the check type parameter corresponds to the first check type parameter, the check submodule judges whether the characters of the configuration parameter are equal to the characters corresponding to the configuration parameter type in the check parameter;
if the check type parameter corresponds to the second check type parameter, the check submodule determines whether the character length of the configuration parameter is within a character length range corresponding to the configuration parameter type in the check parameter.
18. The electronic device of any of claims 11-15, wherein the test case comprises power-up and power-down parameters for controlling power-up or power-down of the corresponding target wireless access point;
the configuration module includes:
the power-on and power-off module is used for controlling the corresponding target wireless access point to be powered on or powered off according to the power-on and power-off parameters so as to simulate the test environment corresponding to the test case;
and the power-on and power-off module sends the power-on message or the power-off message of the corresponding target wireless access point to the configuration module.
19. The electronic device of any of claims 11-15, further comprising:
and the performance test module is used for controlling the tested terminal equipment to be connected with the successfully configured target wireless access point to perform Wi-Fi performance test if receiving the successfully configured message sent by the configuration module.
20. The electronic device of claim 19, wherein the performance testing module comprises:
a throughput data stream establishing module, configured to control the tested terminal to establish a throughput data stream connection with the successfully configured target wireless access point;
the first obtaining submodule is used for obtaining the throughput of the tested terminal equipment corresponding to the test task;
the storage module is used for packaging the test task and the output throughput data stream corresponding to the test task into a test message packet and storing the test message packet according to a mode corresponding to a test task field;
and the second obtaining submodule is used for comparing the output throughput data stream in the test message packet with the comparison output throughput data stream to obtain a test result.
21. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 10.
22. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 10.
CN202111066912.5A 2021-09-13 2021-09-13 Test configuration method, electronic equipment and storage medium Active CN113742236B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111066912.5A CN113742236B (en) 2021-09-13 2021-09-13 Test configuration method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111066912.5A CN113742236B (en) 2021-09-13 2021-09-13 Test configuration method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113742236A true CN113742236A (en) 2021-12-03
CN113742236B CN113742236B (en) 2024-06-04

Family

ID=78738219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111066912.5A Active CN113742236B (en) 2021-09-13 2021-09-13 Test configuration method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113742236B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113985321A (en) * 2021-12-27 2022-01-28 成都万创科技股份有限公司 Cable connection performance testing device and method with intelligent self-learning capability
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039480A (en) * 2018-08-03 2018-12-18 广州蓝豹智能科技有限公司 A kind of WIFI test method, device, terminal and storage medium
US20190215729A1 (en) * 2018-03-15 2019-07-11 Intel Corporation Session description protocol mechanisms for signaling radio access network capabilities in multimedia telephony sessions
CN111130929A (en) * 2019-12-12 2020-05-08 深圳市兆驰通信技术有限公司 Method and system for automatically testing WIFI throughput
CN111563042A (en) * 2020-05-09 2020-08-21 中国科学院微电子研究所 Wireless performance test system and method applied to Wi-Fi5 chip
CN111787555A (en) * 2020-06-30 2020-10-16 展讯通信(上海)有限公司 Method and equipment for testing intelligent terminal
CN112333019A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Router configuration and test method and system and readable storage medium
CN112437463A (en) * 2020-11-24 2021-03-02 展讯半导体(成都)有限公司 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
CN113038499A (en) * 2021-04-22 2021-06-25 紫光展锐(重庆)科技有限公司 Terminal Wi-Fi compatibility testing method, device, system, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190215729A1 (en) * 2018-03-15 2019-07-11 Intel Corporation Session description protocol mechanisms for signaling radio access network capabilities in multimedia telephony sessions
CN109039480A (en) * 2018-08-03 2018-12-18 广州蓝豹智能科技有限公司 A kind of WIFI test method, device, terminal and storage medium
CN111130929A (en) * 2019-12-12 2020-05-08 深圳市兆驰通信技术有限公司 Method and system for automatically testing WIFI throughput
CN111563042A (en) * 2020-05-09 2020-08-21 中国科学院微电子研究所 Wireless performance test system and method applied to Wi-Fi5 chip
CN111787555A (en) * 2020-06-30 2020-10-16 展讯通信(上海)有限公司 Method and equipment for testing intelligent terminal
CN112333019A (en) * 2020-10-30 2021-02-05 展讯半导体(成都)有限公司 Router configuration and test method and system and readable storage medium
CN112437463A (en) * 2020-11-24 2021-03-02 展讯半导体(成都)有限公司 Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
CN113038499A (en) * 2021-04-22 2021-06-25 紫光展锐(重庆)科技有限公司 Terminal Wi-Fi compatibility testing method, device, system, equipment and medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
STEFANO SAVAZZI等: "Pattern reconfigurable antennas for passive motion detection: WiFi test-bed and first studies", 《2019 IEEE 30TH ANNUAL INTERNATIONAL SYMPOSIUM ON PERSONAL, INDOOR AND MOBILE RADIO COMMUNICATIONS (PIMRC)》, 21 November 2019 (2019-11-21), pages 1 - 6 *
张扬: "基于场景还原的无线接入路由器测试系统的设计与实现", 《CNKI优秀硕士学位论文全文库 信息科技辑》, no. 04, 15 April 2018 (2018-04-15), pages 136 - 568 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114222320A (en) * 2021-12-16 2022-03-22 展讯通信(上海)有限公司 Method, device, apparatus, storage medium, and program for testing communication device
CN113985321A (en) * 2021-12-27 2022-01-28 成都万创科技股份有限公司 Cable connection performance testing device and method with intelligent self-learning capability
CN113985321B (en) * 2021-12-27 2022-04-05 成都万创科技股份有限公司 Cable connection performance testing device and method with intelligent self-learning capability

Also Published As

Publication number Publication date
CN113742236B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
CN110032512B (en) Debugging method of small program, related equipment and terminal
EP2757738B1 (en) Communication control system, communication system, communication method, and carrier means storing comunication control program
CN113742236B (en) Test configuration method, electronic equipment and storage medium
US11102645B2 (en) Network registration method of internet of things device, and device therefor
CN109257793B (en) Network connection method, device, equipment and storage medium
US10263714B2 (en) Mobile terminal testing device and transmitting antenna testing method
CN113553257B (en) Test method, device, storage medium and electronic equipment
US11770458B1 (en) Systems for exchanging data using intermediate devices
Boškov et al. Time-to-provision evaluation of IoT devices using automated zero-touch provisioning
CN112351070A (en) File transmission method and device, storage medium and electronic equipment
US10674515B2 (en) User equipment and base station in wireless communications system, and wireless communications method
US11659366B1 (en) Method and system for sensing-data collection and transport from Minimization-of-Drive Tests device
CN114221866A (en) Method, device and medium for upgrading terminal
US20170134383A1 (en) Method and device for sharing a resource
CN111787555A (en) Method and equipment for testing intelligent terminal
CN114390574B (en) Wireless network throughput test method, device and computer readable storage medium
CN113391931B (en) Remote control method and device based on Bluetooth, computer equipment and storage medium
US11416383B1 (en) Systems for remote communication with test devices
CN112769845B (en) Vulnerability testing method and device, electronic device and computer equipment
CN111416921B (en) Camera debugging method, camera and storage medium
CN110621024B (en) Automatic distribution method of AP (Access Point) equipment in WIFI (Wireless Fidelity) park
CN110636180A (en) Data transmission method, device, equipment and storage medium
CN114745759B (en) Method and device for determining resident cell, storage medium and electronic equipment
CN110650071A (en) Access management method and device of user equipment and management server
CN114124691B (en) Equipment deployment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant