CN107548083B - Wireless access point function test method and device - Google Patents

Wireless access point function test method and device Download PDF

Info

Publication number
CN107548083B
CN107548083B CN201710639573.2A CN201710639573A CN107548083B CN 107548083 B CN107548083 B CN 107548083B CN 201710639573 A CN201710639573 A CN 201710639573A CN 107548083 B CN107548083 B CN 107548083B
Authority
CN
China
Prior art keywords
access point
test
wireless access
wireless network
service set
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.)
Active
Application number
CN201710639573.2A
Other languages
Chinese (zh)
Other versions
CN107548083A (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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201710639573.2A priority Critical patent/CN107548083B/en
Publication of CN107548083A publication Critical patent/CN107548083A/en
Application granted granted Critical
Publication of CN107548083B publication Critical patent/CN107548083B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a method and equipment for testing functions of a wireless access point. The method comprises the following steps: reading a test configuration file; and executing the pre-generated test script file according to the wireless access point parameters contained in the test configuration file to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and save the corresponding test result. According to the invention, the wireless access point function of the electronic equipment can be automatically tested, and the labor cost consumed by testing the wireless access point function of the electronic equipment is greatly reduced. The device is particularly suitable for factory test of large-batch electronic equipment.

Description

Wireless access point function test method and device
Technical Field
The present invention relates to the field of test technologies, and in particular, to a method and an apparatus for testing functions of a wireless access point.
Background
With the rapid development of mobile internet technologies, smart device manufacturing technologies, internet of things technologies and other technologies, more and more consumer electronics products have a wireless access point function, and can be used as an access point (commonly referred to as a "hot spot") of a wireless network to allow other mobile devices (e.g., mobile phones) or wireless devices (e.g., notebook computers) to access the wireless network.
Therefore, for example, a wearable device, a mobile phone, a wireless camera, and other consumer electronic products having a wireless access point function are usually detected before being shipped from a factory, for example, whether the consumer electronic products can normally provide the wireless access point function for other wireless devices or mobile devices to access. Based on the security and confidentiality of the wireless network protocol, each electronic product with a wireless access point function has different set wireless access parameters (for example, service set identifier SSID of the wireless network) so as to prevent wireless devices or mobile devices without authorization from accessing the wireless network through the electronic product, but correspondingly, the consumer electronic products with the wireless access point function are detected.
Accordingly, the inventors have determined that there is a need for improvement of the above-described problems in the prior art.
Disclosure of Invention
It is an object of the present invention to provide a new solution for testing the functionality of a wireless access point.
According to a first aspect of the present invention, a method for testing a line access point function is provided, which includes:
the test configuration file is read and the test configuration file is read,
the test configuration file comprises wireless access point parameters of at least one tested device;
and executing a pre-generated test script file according to the wireless access point parameters to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
Optionally, the method further comprises:
and generating a corresponding test configuration file conforming to a preset file name in a preset file format according to the pre-acquired wireless access point parameters of at least one tested device, and storing the test configuration file.
Alternatively,
the wireless access point parameters at least comprise service set identifications of wireless networks provided by corresponding tested equipment as wireless access points;
the step of scanning and connecting the wireless network for testing comprises the following steps:
scanning to obtain a currently visible and connectable service set identifier to determine whether a service set identifier corresponding to the tested device exists;
and when the service set identification corresponding to the tested equipment exists, connecting the corresponding wireless network according to the service set identification.
Further optionally, the wireless access point parameters further include a scanning period and a scanning number;
the step of scanning for currently visible and connectable service set identities comprises:
and periodically scanning wireless network signals according to the scanning period to obtain visible and connectable service set identifiers until the scanning times are reached or the service set identifiers corresponding to the tested equipment are determined to exist.
Or, as a further alternative,
the wireless access point parameters also comprise a connection period and connection times;
the step of connecting the corresponding wireless network according to the service set identifier comprises:
and periodically connecting the wireless network corresponding to the service set identifier according to the connection period until the connection times are reached or the wireless network corresponding to the service set identifier is successfully connected.
Or, as a further alternative,
the wireless access point parameters also include a connection duration,
the method further comprises the following steps:
and after the corresponding wireless network is successfully connected, the wireless network is disconnected after the connection duration is met.
Or, as a further alternative,
the test script file includes a first script file and a second script file,
the step of obtaining a currently visible and connectable service set identification by said scanning is achieved by executing a first script file;
and
and resetting and executing the second script file according to the wireless access parameters corresponding to the tested equipment so as to realize the step of connecting the corresponding wireless network according to the service set identifier.
Optionally, the test script file further comprises a third script file,
and by executing the third script file, the connection with the wireless network is disconnected after the wireless network corresponding to the successful connection is realized.
Alternatively,
the test configuration file, the first script file, the second script file and the third script file are stored in the same file directory;
and/or
The first script file, the second script file, and the third script file are bat files.
According to a second aspect of the invention, there is provided a test apparatus comprising at least:
a memory to store instructions;
communication means for connecting to a wireless network;
the processor is used for triggering the communication device to connect with a wireless network corresponding to the device to be tested according to the control of the instruction so as to execute any wireless access point function test method in the first aspect of the invention, and the method comprises the following steps:
the test configuration file is read and the test configuration file is read,
the test configuration file comprises wireless access point parameters of at least one tested device;
and executing a pre-generated test script file according to the wireless access point parameters to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
The inventor of the present invention finds that, in the prior art, a tester needs to manually configure the wireless access point function of the test electronic device, which consumes a lot of test labor cost. Therefore, the technical task to be achieved or the technical problems to be solved by the present invention are never thought or anticipated by those skilled in the art, and therefore the present invention is a new technical solution.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a block diagram showing an example of a hardware configuration of a test environment that may be used to implement an embodiment of the present invention.
Fig. 2 shows a flow chart of a wireless access point function testing method of an embodiment of the invention.
Fig. 3 shows a flow chart of a wireless access point function testing method of an embodiment of the invention.
Fig. 4 shows an exemplary diagram of a result of scanning for service set identification in an embodiment of the present invention.
Fig. 5 is a schematic diagram of an example of a wireless access point function test method of an embodiment of the present invention.
FIG. 6 shows a block diagram of a test apparatus of an embodiment of the invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< hardware configuration >
Fig. 1 is a block diagram showing a hardware configuration of a test environment 1000 in which an embodiment of the present invention can be implemented.
As shown in fig. 1, the test environment 1000 includes a test device 1100 and a product under test 1200.
The testing device 1100 may be any device having a function of accessing a wireless network, such as a device including a WIFI module, for example, a server, a PC, a notebook, or the like. In one example, the server 1100 can be a computer. In another example, the server 1100 may be as shown in FIG. 1, including a processor 1110, a memory 1120, an interface device 1130, a communication device 1140, a display device 1150, and an input device 1160. Although the server may also include speakers, microphones, etc., these components are not relevant to the present invention and are omitted here. The processor 1110 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1120 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1130 includes, for example, a USB interface, a serial interface, and the like. The communication device 1140 is capable of wired or wireless communication, and specifically includes at least a WIFI module, and may further include a bluetooth module, an NFC module, and the like. The display device 1150 is, for example, a liquid crystal display panel. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.
The device under test 1200 may be any electronic device with wireless access point functionality, such as a wireless camera (1200-1), a wearable device (1200-2), a cell phone (1200-3), a tablet computer (1200-4), and so on.
The configuration environment 1000 shown in FIG. 1 is illustrative only and is not intended to limit the invention, its application, or uses in any way. In an embodiment of the present invention, the memory 1120 of the testing apparatus 1100 is configured to store instructions for controlling the processor 1110 to operate so as to execute any one of the wireless access point functional testing methods provided by the embodiment of the present invention through the communication device 1140, including: reading a test configuration file, wherein the test configuration file comprises at least one wireless access point parameter of the tested device; and executing a pre-generated test script file according to the wireless access point parameters to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
It will be appreciated by those skilled in the art that although multiple devices are shown in FIG. 1 for the test apparatus 1100, the present invention may relate to only some of the devices, for example, the test apparatus 1100 may relate to only the processor 1110, the storage 1120, and the communication 1140. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
< example >
The general concept of the embodiment of the invention is to provide a wireless access point function test scheme, which is used for automatically connecting a wireless network provided by a tested device serving as a wireless access point to test the wireless access point function of the corresponding tested device and store the corresponding test result, so that the wireless access point function of the electronic device is automatically tested, and the labor cost consumed by testing the wireless access point function of the electronic device is greatly reduced. The device is particularly suitable for factory test of large-batch electronic equipment.
< method >
In this embodiment, a method for testing a wireless access function is provided, which is used to test a wireless access function of an electronic device.
The wireless access point function is that the electronic device is used as an access point (also called a hotspot) of a wireless network, and is used for other wireless devices or mobile devices to access and acquire wireless network services. Testing the wireless access point functionality of an electronic device typically includes at least testing whether the wireless network provided by the electronic device as a wireless access point is normally accessible by other wireless devices or mobile devices.
In this embodiment, a method for testing a wireless access function is provided, as shown in fig. 2, including:
step S2100 reads the test configuration file.
The test configuration file comprises at least one wireless access point parameter of the tested device.
The device under test may be any electronic device with wireless access point functionality, such as the device under test 1200 as may be shown in fig. 1. The tested device can be used as a wireless access point to provide wireless network service, and correspondingly, the wireless access point parameters are parameters involved in testing the wireless access function of the electronic device and at least comprise service set identifications of the wireless network provided by the corresponding tested device as the wireless access point.
Through the Service Set Identifier (SSID), a wireless lan can be divided into a plurality of wireless sub-networks requiring different authentication, each sub-network uniquely corresponds to a Service Set Identifier, and independent authentication can be performed respectively, and only a user who passes authentication can enter a corresponding sub-network, thereby preventing unauthorized users from entering the network.
In this embodiment, each device under test serves as a wireless access point to provide a wireless network, which is a wireless sub-network uniquely corresponding to one service set identifier, and each device under test uniquely corresponds to one service set identifier.
The wireless network referred to herein is a network implemented using wireless communication technology. Specifically, the wireless communication protocol may be an 802.11 series wireless communication protocol, and specifically, the wireless communication protocol may be based on 802.11a, 802.11b, 802.11n, and the like, which are not listed here.
In order to ensure privacy and security, different wireless networks also set access key information, such as a user name and a password, to authenticate a device accessing the wireless network service and prevent an unauthorized device from accessing the wireless network.
In this embodiment, the wireless access point parameters may include, in addition to the service set identifier of the wireless network provided by the corresponding device under test as the wireless access point, access key information corresponding to the service set identifier.
In addition, the wireless access point parameters are parameters related to a wireless access function for testing the electronic device, and may also include parameters required by the test according to the test scenario requirements, for example, a scan cycle and a scan number for scanning a wireless network signal when the test is performed, or may also include a connection cycle, a connection number, or connection time for connecting the device under test to provide a wireless network when the test is performed, and the like.
In one example, the wireless access point parameters of the device under test may be obtained in advance, and the generating of the test configuration file correspondingly includes: and generating a corresponding test configuration file conforming to a preset file name in a preset file format according to the pre-acquired wireless access point parameters of at least one tested device, and storing the test configuration file.
Specifically, the predetermined file format may be an xml format. The predetermined file name is an arbitrarily designated file name that meets the requirements of the test scenario. The corresponding test configuration file which accords with the preset file name is generated in the preset file format, so that the efficiency of reading the test configuration file can be improved.
Taking the Windows operating system as an example of the device for executing the testing method provided by the embodiment, the command line tool netsh (network shell) with powerful functions provided by the Windows system itself can be configured, and the xml format file with the predetermined file name of "view _ app" is generated through the following commands:
Netsh wlan>export profile view_app。
it should be understood that, when there are a plurality of devices under test, the test configuration file may contain wireless access point parameters of a plurality of devices under test, so that the present embodiment may implement automatically connecting a plurality of devices under test to test the wireless access point function of each device under test respectively.
The implementation of step S2100 has been described by way of the above example, and then proceeds to step S2200:
and executing a pre-generated test script file according to the wireless access point parameters to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
Specifically, the test script file is a file for storing a test instruction related to the function of the wireless access point of the device under test.
And executing the test script file according to the wireless access point parameters to enable related test instructions to be automatically executed, so as to realize automatic scanning and connection of corresponding wireless networks and obtain corresponding test results, and complete automatic testing of the wireless access point functions of the tested equipment.
In an example, the wireless access point parameters at least include a service set identifier of a wireless network provided by the corresponding device under test as a wireless access point, and step S2200 may be as shown in fig. 3, and includes:
step S2201, scanning and acquiring a currently visible and connectable service set identifier to determine whether a service set identifier corresponding to the tested device exists;
specifically, the command of NetSH in the test script can be passed:
Netsh wlan>show networks;
the currently visible and connectable service set identifier is scanned, and illustratively, the scanning to obtain the currently visible and connectable service set identifier may be as shown in fig. 4.
If the service set identifier which can be connected with the device is currently visible, the existence of scanning to obtain the service set identifier which can be connected with the device currently visible means that the device to be tested is used as a wireless access point and a wireless network which can be connected with the device to be detected is provided.
Otherwise, the wireless access point of the tested device is abnormal in function. To improve the testing efficiency, in this case, the corresponding test result may be saved and the subsequent step S2202 is not executed.
The wireless access point parameters can also correspondingly comprise parameters required by the test according to the requirements of the test scene. For example, the wireless access point parameters further include a scanning period and a scanning number. Correspondingly, in step S2100, the step of scanning to obtain the currently visible and connectable service set identifier includes:
and periodically scanning wireless network signals according to the scanning period to obtain visible and connectable service set identifiers until the scanning times are reached or the service set identifiers corresponding to the tested equipment are determined to exist.
In this example, the scanning period and the scanning times may be set according to requirements in a specific test scenario. For example, the scanning period may be set to 200ms, the scanning time is 25 times, when the scanning time reaches 25 times, that is, the scanning duration reaches 5S, if the service set identifier corresponding to the device under test does not exist in the visible and connectable service set identifiers, it means that the device under test is used as a wireless access point, and cannot provide a visible wireless network to which the device under test can be connected, and the wireless access point of the device under test is abnormal in function, and the subsequent step S2202 is no longer executed.
And step S2202, when the service set identification corresponding to the tested device is determined to exist, connecting the corresponding wireless network according to the service set identification.
Specifically, the corresponding wireless network can be connected according to the service set identifier through a NetSH-based test command in the test script.
For example, the network profile of the device under test is view _ ap.xml, where the service set identifier of the device under test is recorded as nyxapdnn, and the corresponding access key is 12345678, the connection to the wireless network corresponding to the device under test can be performed by the following commands:
netsh wlan add profile filename=view_ap.xml;
netshwlan set profileparameter name="view_ap"SSIDname="nyxapdnn"keyMaterial=12345678;
netsh wlan connect name=view_ap ssid=nyxapdnn>\wifi.txt。
it should be understood that different devices under test have different wireless access point parameters, and the "SSIDname" and "keyMaterial" in the above commands can be set according to the different wireless access point parameters of the different devices under test by reading the test configuration file, so as to realize continuous testing of the different devices under test.
If the corresponding wireless network is successfully connected according to the service set identification, the tested device is used as a wireless access point, the wireless network which can be connected can be provided and is available, the wireless access point is normal in function, otherwise, the wireless access point is abnormal in function, and the test can be finished after the corresponding test result is obtained and stored.
The wireless access point parameters can also correspondingly comprise parameters required by the test according to the requirements of the test scene. For example, the wireless access point parameters further include a connection period and a connection number; in a corresponding manner, the first and second electrodes are,
the step of connecting the corresponding wireless network according to the service set identifier comprises:
and periodically connecting the wireless network corresponding to the service set identifier according to the connection period until the connection times are reached or the wireless network corresponding to the service set identifier is successfully connected.
In this example, the connection period and the connection times may be set according to requirements in a specific test scenario. For example, the connection period may be set to 5s, the connection number is 6, when the scan number reaches 6, that is, when the scan duration reaches 30s, if the connection is not successful, it means that the device under test is used as a wireless access point, an available wireless network cannot be provided, the wireless access point of the device under test is abnormal in function, and the test may be ended after the corresponding test result is obtained and stored.
The electronic device serves as a wireless access point to provide wireless network services, and in a specific application, not only a visible and connectable wireless network needs to be provided, but also the wireless network can be stably connected. Therefore, in this example, the wireless access point parameter further includes a connection duration, and correspondingly, the method further includes:
and after the corresponding wireless network is successfully connected, the wireless network is disconnected after the connection duration is met.
The connection duration may be set to a corresponding value according to the test requirement, for example, to 2 minutes.
Specifically, the wireless network that has been successfully connected can be disconnected by NetSH-based test commands in the test script:
netsh wlan disconnect>disconnect.txt。
after the corresponding wireless network is successfully connected, the time for establishing connection with the wireless network provided by the tested device meets the connection duration, which means that the tested device is used as a wireless access point, the wireless network providing visible and connectable is stable, the wireless access point of the tested device is normal in function, otherwise, the wireless access point of the tested device is abnormal in function, and the test can be finished after the corresponding test result is obtained and stored.
In the example shown in fig. 3, the test script file may include a plurality of files, for example, a first script file and a second script file, and correspondingly, the step S2201 of obtaining the currently visible and connectable service set identifier through the scanning may be implemented by the first script file, and the step S2202 of resetting and executing the second script file according to the wireless access parameter corresponding to the device under test to implement the step of connecting the corresponding wireless network according to the service set identifier.
The test script file can also comprise a third script file, and the third script file is executed to realize disconnection with the wireless network after successfully connecting the corresponding wireless network.
In particular, the first script file, the second script file, and the third script file may be bat files. Bat files are batch files supported by the window system, which may include multiple commands, which may interpret runs through a command interpreter embedded in the Windows system.
More specifically, the test commands correspondingly contained in the first script file, the second script file, and the third script file may be implemented by NetSH, and the foregoing examples have specifically described a specific test command form implemented by NetSH, and are not described herein again.
In a specific application, the test configuration file, the first script file, the second script file, and the third script file in this embodiment may be stored in the same file directory, so that the test configuration file may be conveniently called when the corresponding script file is executed during testing.
< example >
The method for testing the function of the wireless access point provided in the present embodiment will be further described with reference to the example shown in fig. 5. In this example, the device under test is virtual reality glasses with wireless access point function, the wireless network provided as the wireless access point is wifi network, the test configuration file is view _ app.xml, the script file includes a first script file that is wifi _ connected.bat, a second script file that is wifi _ connected.bat, and a third script file that is wifi _ disconnected.bat are stored under the same file directory.
As shown in fig. 5, the method for testing the function of the wireless access point includes:
step S201, reading the test configuration file and obtaining the wireless access point parameters of the tested device.
In this example, the parameters of the wireless access point include the service set identifier SSID and the access key of the wifi network provided by the device under test as a wifi hotspot, the scanning period and the scanning times during scanning wireless network signals, and the connection period and the connection times for connecting the wireless network.
Step S202, acquiring the service set identifier of the visible and connectable wireless network according to the scanning cycle.
In this example, by performing wifi set, bat performing step S202, the test command included in the specific wifi set file may be the test command implemented based on NetSH as described in the foregoing example, and will not be described herein again.
Step S203, judging whether the service set identifier of the visible and connectable wireless network exists the service set identifier corresponding to the tested device, if not, entering step S204, and if so, entering step S205;
step S204, judging whether the scanning times are reached, if the scanning times are reached, the service set identification of the visible and connectable wireless network does not have the service set identification corresponding to the tested equipment, the wireless access point of the tested equipment is abnormal in function, entering the step S209, and if the scanning times are not reached, returning to the step S202;
step S205, connecting a wireless network corresponding to the tested equipment according to the connection period;
in this example, by executing wifi _ connect.bat to execute step S205, the test command included in the specific wifi _ connect.bat file may be the test command implemented based on NetSH as described in the foregoing example, and is not described herein again;
step S206, judging whether the corresponding wireless network is successfully connected, if so, entering step S207, otherwise, entering step S208;
step S207, disconnecting the wireless network which is successfully connected, and entering step S209;
in this example, by executing wifi _ disconnec.ba to execute step S207, the test command included in the specific wifi _ disconnec.bat file may be the test command implemented based on NetSH as described in the foregoing example, and details are not repeated herein.
Further, the connection can be disconnected after the connection time of the wireless network corresponding to the tested device meets the corresponding connection duration, so that the robustness of the wireless access point function provided by the tested device can be detected.
Step S208, judging whether the connection times are reached, if the connection times are reached, the wireless network corresponding to the tested equipment cannot be successfully connected, if the connection times are reached, the wireless access point of the tested equipment is abnormal, entering step S209, otherwise, returning to step S205;
step S209 stores the corresponding test result, and ends the test on the device under test.
Through the above example, a person skilled in the art can easily obtain a variation of the embodiment of the present invention without creativity, and when testing the wireless access functions of a plurality of electronic devices, a test configuration file may be set for each electronic device, and the test configuration files may be read one by one for testing, or wireless access point parameters of a plurality of electronic devices may be stored in the same test configuration file, and the wireless access point parameters of each electronic device may be read in a cyclic progression manner for testing.
< apparatus >
In this embodiment, a testing apparatus 300 is further provided, as shown in fig. 6, which at least includes a memory 310, a communication device 320, and a processor 330, and is configured to implement any one of the wireless access point function testing methods provided in this embodiment.
Specifically, the test apparatus 300 includes at least:
a memory 310 for storing instructions;
a communication means 320 for connecting to a wireless network;
the processor 330 is configured to trigger the communication device to connect to a wireless network corresponding to the device under test according to the control of the instruction, so as to execute any wireless access point function testing method according to the embodiment, including:
the test configuration file is read and the test configuration file is read,
the test configuration file comprises wireless access point parameters of at least one tested device;
and scanning and connecting the corresponding wireless network according to the wireless access point parameters so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
In one example, the test apparatus 300 may be configured as the hardware of the test apparatus 1100 shown in FIG. 1.
It will be appreciated by those skilled in the art that the test apparatus 300 may be implemented in various ways. For example, the test apparatus 300 may be implemented by instructing a configuration processor. For example, the test apparatus 300 may be implemented by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when the apparatus is started. For example, the test apparatus 300 may be cured into a dedicated device (e.g., ASIC). The test apparatus 300 may be divided into units independent of each other, or they may be implemented by being combined together. The test device 300 may be implemented in one of the various implementations described above, or may be implemented in a combination of two or more of the various implementations described above.
The embodiments of the present invention have been described above with reference to the accompanying drawings and examples, according to the present embodiment, a pre-generated test script file is executed according to the wireless access point parameters of the device under test obtained by reading the test configuration file, and a wireless network provided by the device under test as a wireless access point is automatically connected to test the wireless access point functions of the corresponding device under test and save the corresponding test results. The wireless access point function of the electronic equipment is automatically tested, and the labor cost consumed by testing the wireless access point function of the electronic equipment is greatly reduced. The device is particularly suitable for factory test of large-batch electronic equipment.
It is well known to those skilled in the art that with the development of electronic information technology such as large scale integrated circuit technology and the trend of software hardware, it has been difficult to clearly divide the software and hardware boundaries of a computer system. As any of the operations may be implemented in software or hardware. Execution of any of the instructions may be performed by hardware, as well as by software. Whether a hardware implementation or a software implementation is employed for a certain machine function depends on non-technical factors such as price, speed, reliability, storage capacity, change period, and the like. Accordingly, it will be apparent to those skilled in the art of electronic information technology that a more direct and clear description of one embodiment is provided by describing the various operations within the embodiment. Knowing the operations to be performed, the skilled person can directly design the desired product based on considerations of said non-technical factors.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions 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). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present invention, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (9)

1. A wireless access point function test method comprises the following steps:
the test configuration file is read and the test configuration file is read,
the test configuration file comprises wireless access point parameters of at least one tested device, and the wireless access point parameters at least comprise service set identifiers of wireless networks provided by the corresponding tested device as the wireless access point;
executing a pre-generated test script file according to the wireless access point parameters to scan and connect a corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store a corresponding test result,
wherein, the step of scanning and connecting the wireless network for testing comprises:
scanning to obtain a currently visible and connectable service set identifier to determine whether a service set identifier corresponding to the tested device exists;
and when the service set identification corresponding to the tested equipment exists, connecting the corresponding wireless network according to the service set identification.
2. The method of claim 1, further comprising:
and generating a corresponding test configuration file conforming to a preset file name in a preset file format according to the pre-acquired wireless access point parameters of at least one tested device, and storing the test configuration file.
3. The method of claim 1,
the wireless access point parameters also comprise a scanning period and scanning times;
the step of scanning for currently visible and connectable service set identities comprises:
and periodically scanning wireless network signals according to the scanning period to obtain visible and connectable service set identifiers until the scanning times are reached or the service set identifiers corresponding to the tested equipment are determined to exist.
4. The method of claim 1,
the wireless access point parameters also comprise a connection period and connection times;
the step of connecting the corresponding wireless network according to the service set identifier comprises:
and periodically connecting the wireless network corresponding to the service set identifier according to the connection period until the connection times are reached or the wireless network corresponding to the service set identifier is successfully connected.
5. The method of claim 1,
the wireless access point parameters also include a connection duration,
the method further comprises the following steps:
and after the corresponding wireless network is successfully connected, the wireless network is disconnected after the connection duration is met.
6. The method of claim 1,
the test script file includes a first script file and a second script file,
the step of obtaining a currently visible and connectable service set identification by said scanning is achieved by executing a first script file;
and
and resetting and executing the second script file according to the wireless access parameters corresponding to the tested equipment so as to realize the step of connecting the corresponding wireless network according to the service set identifier.
7. The method of claim 6, wherein:
the test script file further comprises a third script file,
and by executing the third script file, the connection with the wireless network is disconnected after the wireless network corresponding to the successful connection is realized.
8. The method of claim 7,
the test configuration file, the first script file, the second script file and the third script file are stored in the same file directory;
and/or
The first script file, the second script file, and the third script file are bat files.
9. A test device, characterized in that it comprises at least:
a memory to store instructions;
communication means for connecting to a wireless network;
a processor, configured to trigger a communication device to connect to a wireless network corresponding to a device under test according to the control of the instruction, so as to perform the wireless access point function testing method according to any one of claims 1 to 8, including:
the test configuration file is read and the test configuration file is read,
the test configuration file comprises wireless access point parameters of at least one tested device;
and executing a pre-generated test script file according to the wireless access point parameters to scan and connect the corresponding wireless network so as to test the wireless access point function of the corresponding tested equipment and store the corresponding test result.
CN201710639573.2A 2017-07-31 2017-07-31 Wireless access point function test method and device Active CN107548083B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710639573.2A CN107548083B (en) 2017-07-31 2017-07-31 Wireless access point function test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710639573.2A CN107548083B (en) 2017-07-31 2017-07-31 Wireless access point function test method and device

Publications (2)

Publication Number Publication Date
CN107548083A CN107548083A (en) 2018-01-05
CN107548083B true CN107548083B (en) 2020-02-21

Family

ID=60971085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710639573.2A Active CN107548083B (en) 2017-07-31 2017-07-31 Wireless access point function test method and device

Country Status (1)

Country Link
CN (1) CN107548083B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327350B (en) * 2018-09-07 2021-07-27 青岛海信移动通信技术股份有限公司 Method, device and system for carrying out terminal test in batch
CN114245416A (en) * 2021-12-22 2022-03-25 上海豪承信息技术有限公司 Test management method, device, equipment and test system
CN114323585B (en) * 2021-12-28 2024-04-12 梅卡曼德(北京)机器人科技有限公司 Method for batch calculation of modulation transfer function, electronic device and storage medium
CN115037664B (en) * 2022-05-31 2023-09-08 深圳市共进电子股份有限公司 Network connection testing method and device, repeater and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102781019A (en) * 2012-07-30 2012-11-14 迈普通信技术股份有限公司 System and method for automatically testing wireless fidelity (WIFI) module
CN103501505A (en) * 2013-09-18 2014-01-08 福州瑞芯微电子有限公司 System capable of automatically testing WIFI module on Android device
CN104486791A (en) * 2014-12-19 2015-04-01 上海斐讯数据通信技术有限公司 Wireless access equipment anti-interference test system and method
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN106982448A (en) * 2017-05-27 2017-07-25 美的智慧家居科技有限公司 Wi Fi module test methods and device and computer-readable recording medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102781019A (en) * 2012-07-30 2012-11-14 迈普通信技术股份有限公司 System and method for automatically testing wireless fidelity (WIFI) module
CN103501505A (en) * 2013-09-18 2014-01-08 福州瑞芯微电子有限公司 System capable of automatically testing WIFI module on Android device
CN104486791A (en) * 2014-12-19 2015-04-01 上海斐讯数据通信技术有限公司 Wireless access equipment anti-interference test system and method
CN106488468A (en) * 2016-10-14 2017-03-08 深圳Tcl新技术有限公司 WiFi performance test methods and system
CN106982448A (en) * 2017-05-27 2017-07-25 美的智慧家居科技有限公司 Wi Fi module test methods and device and computer-readable recording medium

Also Published As

Publication number Publication date
CN107548083A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
CN109076331B (en) Electronic device and control method of electronic device
CN107548083B (en) Wireless access point function test method and device
CN106990912B (en) Method for controlling SIM card and SD card and electronic equipment for realizing the card
US20160105540A1 (en) Apparatus and method for displaying user interface
CN107682238B (en) Intelligent household platform equipment and terminal electronic equipment
CN107249004B (en) Identity authentication method, device and client
US10291608B2 (en) Method and device for establishing wireless connection
EP3703400B1 (en) Profile management method and embedded universal integrated circuit card
KR20140113491A (en) application connection method and system using same method
CN104469741A (en) Terminal configuration method and device
CN110825411B (en) Upgrading method and device for TWS (two way satellite System) earphone system and computer-readable storage medium
CN113343212B (en) Device registration method and apparatus, electronic device, and storage medium
CN106375465B (en) A kind of data migration method and server
KR101642019B1 (en) Method, apparatus, program, and recording medium of verifying terminal
CN105657781B (en) WiFi network access method and device
KR20200017180A (en) Electronic device, external electronic device and method for managing embedded subscriber identity module of the external electronic device
CN111338663B (en) System upgrading method, terminal and storage medium
CN105468504A (en) Program test method and device
CN105426210A (en) Method and device for upgrading system
KR20210004809A (en) Method for transferring subscription and electronic device for supporting the same
CN104837133A (en) SIM card authentication method and device
US20140157372A1 (en) Image forming apparatus, wireless communication system, control method, and computer-readable medium
CN113377664A (en) Model testing method and device, electronic device and storage medium
CN112784243A (en) Authorization management method and device, electronic equipment and storage medium
CN104125593A (en) Information processing method and electronic equipment

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