CN107548083A - WAP function test method and equipment - Google Patents

WAP function test method and equipment Download PDF

Info

Publication number
CN107548083A
CN107548083A CN201710639573.2A CN201710639573A CN107548083A CN 107548083 A CN107548083 A CN 107548083A CN 201710639573 A CN201710639573 A CN 201710639573A CN 107548083 A CN107548083 A CN 107548083A
Authority
CN
China
Prior art keywords
test
wap
wireless network
equipment under
file
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
CN201710639573.2A
Other languages
Chinese (zh)
Other versions
CN107548083B (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of WAP function test method and equipment.This method includes:Read test configuration file;According to the WAP parameter included in test profile, the test script file previously generated is performed, realizes and scans and connect corresponding wireless network, with test result corresponding to the WAP function of equipment under test corresponding to test and preservation.According to the present invention it is possible to test the WAP function of electronic equipment automatically, the human cost that the WAP function of test electronic equipment expends greatly is reduced.Test of dispatching from the factory especially suitable for high-volume electronic equipment.

Description

WAP function test method and equipment
Technical field
The present invention relates to technical field of measurement and test, more particularly, to a kind of WAP function test method and equipment.
Background technology
With the rapid development of the technologies such as development of Mobile Internet technology, smart machine manufacturing technology, technology of Internet of things, increasingly More consumer electronics products have WAP function, can as the access point (being commonly called as " focus ") of a wireless network, For other mobile devices (such as mobile phone) or wireless device (such as notebook computer) access wireless network.
Therefore, to such as wearable device, mobile phone, the first-class consumer electronics with WAP function of wireless camera Whether product, the WAP function that generally can all have before dispatching from the factory to it detect, such as detect it can be just WAP function is often provided, accessed for other wireless devices or mobile device etc..And the peace based on wireless network protocol Full property and confidentiality, each electronic product with WAP function, the wireless access parameters of setting it is different (such as The service set SSID of wireless network), it is wireless by its access without the wireless device or mobile device authorized to prevent Network, but correspondingly, the consumer electronics product with WAP function is detected, it usually needs tester's pin To each electronic product, test equipment is set to be attached manually according to its wireless access parameters, so that detect whether can be by this Electronic product enters wireless network, and this causes large batch of product export to test, and expends a large amount of test human costs.
Therefore, it has been recognised by the inventors that being necessary to be improved above-mentioned problems of the prior art.
The content of the invention
It is an object of the present invention to provide a kind of new solution for being used to test WAP function.
According to the first aspect of the invention, there is provided a kind of line access point function method of testing, including:
Read test configuration file,
The WAP parameter of at least one equipment under test is included in the test profile;
According to the WAP parameter, the test script file previously generated is performed, is realized and is scanned and connect correspondingly Wireless network, with the WAP function of equipment under test corresponding to test and preserve corresponding to test result.
Alternatively, methods described also includes:
According to the WAP parameter of at least one equipment under test obtained in advance, with predetermined file format generation pair The test profile for meeting predetermined file name answered and preservation.
Alternatively,
The WAP parameter comprises at least the wireless network that corresponding equipment under test provides as WAP Service set;
It is described to scan and connect the step of wireless network is tested and include:
Scanning obtains current visible and attachable service set, to determine whether there is service corresponding to equipment under test Set identifier;
When it is determined that in the presence of service set corresponding to equipment under test, according to wireless network corresponding to service set connection Network.
Still optionally further, the WAP parameter also includes scan period, scanning times;
The step of scanning obtains current visible and attachable service set includes:
According to the scan period, intermittent scanning wireless network signal obtains visible and attachable service set, directly To reaching the scanning times or determine to terminate in the presence of service set corresponding to equipment under test.
Or still optionally further,
The WAP parameter also includes connection cycle, connection number;
It is described to be included according to corresponding to the service set connection the step of wireless network:
According to the connection cycle, cycle connection and the corresponding wireless network of service set connection, until reaching described Connection number is successfully connected corresponding wireless network.
Or still optionally further,
The WAP parameter also includes connection duration,
Methods described also includes:
After corresponding wireless network is successfully connected, disconnects and connecting with the wireless network after the connection duration is met Connect.
Or still optionally further,
The test script file includes the first script file and the second script file,
By performing the first script file, realize that the scanning obtains the step of current visible and attachable service set Suddenly;
And
According to the wireless access parameters corresponding with equipment under test, reset the second script file and perform, with reality It is existing described according to corresponding to the service set connection the step of wireless network.
Alternatively, the test script file also includes third scenario file,
By performing third scenario file, realize and disconnected after corresponding wireless network is successfully connected with the wireless network Connection.
Alternatively,
The test profile is stored in first script file, the second script file and third scenario file Under same file catalogue;
And/or
First script file, the second script file and third scenario file are .bat files.
According to the second aspect of the invention, there is provided a kind of test equipment, comprise at least:
Memory, for store instruction;
Communicator, for connecting wireless network;
Processor, for the control according to the instruction, triggering communicator connects wireless network corresponding with equipment under test Network, to perform any one WAP function test method as described in the first aspect of the invention, including:
Read test configuration file,
The WAP parameter of at least one equipment under test is included in the test profile;
According to the WAP parameter, the test script file previously generated is performed, is realized and is scanned and connect correspondingly Wireless network, with the WAP function of equipment under test corresponding to test, and test result corresponding to preserving.
It was found by the inventors of the present invention that in the prior art, it is necessary to the nothing of tester's manual configuration test electronic equipment Line access point function, expend a large amount of test human costs.Therefore, the technical assignment or to be solved of the invention to be realized Technical problem be it is that those skilled in the art never expect or it is not expected that, therefore the present invention is a kind of new technical side Case.
By referring to the drawings to the present invention exemplary embodiment detailed description, further feature of the invention and its Advantage will be made apparent from.
Brief description of the drawings
It is combined in the description and the accompanying drawing of a part for constitution instruction shows embodiments of the invention, and even It is used for the principle for explaining the present invention together with its explanation.
Fig. 1 is the block diagram for the example for showing the hardware configuration available for the test environment for realizing embodiments of the invention.
Fig. 2 shows the flow chart of the WAP function test method of embodiments of the invention.
Fig. 3 shows the flow chart of the WAP function test method of embodiments of the invention.
Fig. 4 shows the result exemplary plot of scanning acquisition service set in embodiments of the invention.
Fig. 5 is the schematic diagram of the example of the WAP function test method of embodiments of the invention.
Fig. 6 shows the block diagram of the test equipment of embodiments of the invention.
Embodiment
The various exemplary embodiments of the present invention are described in detail now with reference to accompanying drawing.It should be noted that:Unless have in addition Body illustrates that the unlimited system of part and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally The scope of invention.
The description only actually at least one exemplary embodiment is illustrative to be never used as to the present invention below And its application or any restrictions that use.
It may be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable In the case of, the technology, method and apparatus should be considered as part for specification.
In shown here and discussion all examples, any occurrence should be construed as merely exemplary, without It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it need not be further discussed in subsequent accompanying drawing in individual accompanying drawing.
<Hardware configuration>
Fig. 1 is the block diagram for showing to realize the hardware configuration of the test environment 1000 of embodiments of the invention.
As shown in figure 1, test environment 1000 includes test equipment 1100, test product 1200.
Test equipment 1100 can be any with the access radio network functions such as equipment comprising WIFI module, such as Server, PC or notebook computer etc..In one example, server 1100 can be a computer.At another In example, server 1100 can be with as shown in figure 1, fill including processor 1110, memory 1120, interface arrangement 1130, communication Put 1140, display device 1150, input unit 1160.Although server can also include loudspeaker, microphone etc., These parts are unrelated to the invention, therefore omit herein.Wherein, processor 1110 for example can be central processor CPU, microprocessor Device MCU etc..Memory 1120 for example including ROM (read-only storage), RAM (random access memory), such as hard disk it is non-easily The property lost memory etc..Interface arrangement 1130 is such as including USB interface, serial line interface.Communicator 1140 can for example be carried out Wired or wireless communication, specifically, including at least WIFI module, bluetooth module, NFC module etc. can also be included.Display device 1150 be, for example, LCDs.Input unit 1160 is such as can include touch-screen, keyboard.
Equipment under test 1200 can be any electronic equipment with WAP function, such as wireless camera (1200-1), wearable device (1200-2), mobile phone (1200-3), tablet personal computer (1200-4) etc..
Configuration surroundings 1000 shown in Fig. 1 are only explanatory, and never be intended to limitation the present invention, its application or Purposes.Applied in embodiments of the invention, the memory 1120 of test equipment 1100 is used for store instruction, the instruction It is provided in an embodiment of the present invention any one to be performed by communicator 1140 for controlling the processor 1110 to be operated Item WAP function test method, including:Read test configuration file, comprising at least one in the test profile The WAP parameter of equipment under test;According to the WAP parameter, the test script file previously generated is performed, it is real Now scan and connect corresponding wireless network, with the WAP function of equipment under test corresponding to test and preserve corresponding survey Test result.
It will be appreciated by those skilled in the art that although all show multiple devices to test equipment 1100 in Fig. 1, but It is that the present invention can only relate to partial devices therein, for example, test equipment 1100 pertains only to processor 1110, storage device 1120 and communicator 1140.How control processor is operated for instruction, and this is it is known in the art that therefore no longer detailed herein Description.
<Embodiment>
The general plotting of the embodiment of the present invention, it is to provide a kind of WAP functional test scheme, connects conduct automatically The wireless network that the equipment under test of WAP provides, with the WAP function of equipment under test corresponding to test and is preserved Corresponding test result, the WAP function of automatic test electronic equipment is realized, greatly reduce the nothing of test electronic equipment The human cost that line access point function expends.Test of dispatching from the factory especially suitable for high-volume electronic equipment.
<Method>
A kind of wireless access function method of testing is provided in the present embodiment, for testing the WAP of electronic equipment Function.
The WAP function is access point (also known as focus) of the electronic equipment as wireless network, is wirelessly set for other The access of standby or mobile device obtains the function of any wireless network services.The WAP function of electronic equipment is tested, typically at least Including testing whether the electronic equipment can be set as the wireless network that WAP provides by other wireless devices or movement Standby normal access.
A kind of wireless access function method of testing is provided in the present embodiment, as shown in Fig. 2 including:
Step S2100, read test configuration file.
The WAP parameter of at least one equipment under test is included in test profile.
Equipment under test can be that any one has the electronic equipment of WAP function, such as can be as shown in Figure 1 Equipment under test 1200.Equipment under test can be used as WAP to provide any wireless network services, corresponding, WAP ginseng Number is for testing the parameter involved by the wireless points access function of electronic equipment, including at least corresponding equipment under test as nothing The service set for the wireless network that line access point provides.
By service set (SSID, Service Set Identifier), a WLAN can be distinguished For multiple wireless subnetworks for needing different identity to verify, each sub-network and a service set are uniquely corresponding, can be with Perform independent authentication respectively, corresponding sub-network can just only be entered by the user of authentication, prevent not by The user of mandate enters present networks.
In the present embodiment, each equipment under test provides wireless network as WAP, is and a services set Wireless subnetworks corresponding to mark is unique, corresponding, each equipment under test and a service set are uniquely corresponding.
Wireless network mentioned herein, it is the network realized using wireless communication technology.Can be specifically 802.11 systems Row wireless communication protocol, specifically, can be based on 802.11a, 802.11b, 802.11n etc., it is numerous to list herein.
Usual wireless network provides network service, to ensure that privacy and security, different wireless networks can also be set Key information, such as username and password are accessed, authentication is carried out to obtain the equipment of any wireless network services to access, prevents Unwarranted equipment accesses wireless network.
In the present embodiment, WAP parameter as WAP except providing including corresponding equipment under test The service set of wireless network, key information can also be accessed including corresponding with the service set.
In addition, WAP parameter is for testing the parameter involved by the wireless points access function of electronic equipment, also Parameter needed for including test can be corresponded to according to test scene demand, such as also includes scanning wireless network signal when performing test Scan period, scanning times, or can also include perform test when connect equipment under test provide wireless network connection week Phase, connection number or Connection Time etc..
In one example, the WAP parameter of equipment under test can obtain in advance, corresponding generation test configurations File, specifically include:According to the WAP parameter of at least one equipment under test obtained in advance, with predetermined tray Meet test profile and the preservation of predetermined file name corresponding to formula generation.
Specifically, predetermined file format can be .xml forms.Predetermined file name is to meet appointing for test scene demand Mean to determine filename.To meet the test profile of predetermined file name corresponding to predetermined file format generation, can be lifted The efficiency of read test configuration file.
Exemplified by equipment to perform the method for testing of the present embodiment offer is Windows operating system, it can pass through The powerful network configuration command row instrument NetSH (Network Shell) that Windows systems provide in itself, under State the .xml formatted files of order generation predetermined file entitled " view_app ":
Netsh wlan>export profile view_app。
It should be appreciated that when equipment under test is multiple, multiple equipment under tests can be included in test profile WAP parameter, each equipment under test is tested respectively the present embodiment to realize to connect multiple equipment under tests automatically WAP function.
By above-mentioned example it is stated that step S2100 implementation, afterwards into step S2200:
According to the WAP parameter, the test script file previously generated is performed, is realized and is scanned and connect correspondingly Wireless network, with the WAP function of equipment under test corresponding to test and preserve corresponding to test result.
Specifically, the test script file, it is the dependence test for the WAP function of preserving test equipment under test The file of instruction.
By performing test script file according to the WAP parameter so that dependence test test instruction can be by It is automatic to perform, realize automatically scanning and wireless network corresponding to connecting and test result corresponding to obtaining, complete equipment under test The automatic test of WAP function.
In one example, the WAP parameter comprises at least corresponding equipment under test and carried as WAP The service set of the wireless network of confession, step S2200 can with as shown in figure 3, including:
Step S2201, scanning obtains current visible and attachable service set, to determine whether there is equipment under test Corresponding service set;
Specifically, the order of the NetSH in test script can be passed through:
Netsh wlan>show networks;
The current visible and attachable service set of scanning, schematically, scanning obtains current visible and attachable Service set can be as shown in Figure 4.
If in its current visible attachable service set, scanning be present and obtain current visible and attachable service Set identifier, it is meant that equipment under test is as WAP, there is provided the visible wireless network that it can be connected.
Otherwise, the WAP dysfunction of equipment under test.To lift testing efficiency, it is there is this situation, can be with Corresponding test result is preserved, no longer performs subsequent step S2202.
WAP parameter, parameter needed for including test can also be corresponded to according to test scene demand.For example, the nothing Line access point parameters also include scan period, scanning times.Accordingly, above-mentioned steps S2100, the scanning obtain current visible And the step of attachable service set, includes:
According to the scan period, intermittent scanning wireless network signal obtains visible and attachable service set, directly To reaching the scanning times or determine to terminate in the presence of service set corresponding to equipment under test.
In this example, scan period, scanning times can be set according to the demand in specific test scene.For example, sweep 200ms can be set by retouching the cycle, and scanning times are 25 times, when scanning times, which reach 25 times, namely scans duration arrival 5s, If it can be seen that and there is not yet service set corresponding to equipment under test in attachable service set, meaning equipment under test is made For WAP, it is impossible to the visible wireless network that it can be connected is provided, the WAP dysfunction of equipment under test, no Subsequent step S2202 is performed again.
Step S2202, when it is determined that in the presence of service set corresponding to equipment under test, according to service set connection pair The wireless network answered.
Specifically, can be connected by the test command based on NetSH in test script according to the service set corresponding Wireless network.
For example, the network profile of equipment under test is view_ap.xml, wherein the service set of record equipment under test For nyxapdnn, corresponding access key is 12345678, and it is corresponding with equipment under test can to perform connection by following orders Wireless network:
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 appreciated that different equipment under tests has different radio access point parameters, can be matched somebody with somebody by read test Put file, according to the different radio access point parameters of different equipment under tests, set " SSIDname " in mentioned order and " keyMaterial ", realize the different equipment under test of follow-on test.
If according to service set, corresponding wireless network is successfully connected, it is meant that equipment under test is as wireless access Point, there is provided the visible wireless network that it can be connected and be available, WAP function is normal, otherwise, wireless access Point dysfunction, it can terminate to test after test result corresponding to acquisition preserves.
WAP parameter, parameter needed for including test can also be corresponded to according to test scene demand.For example, the nothing Line access point parameters also include connection cycle, connection number;Accordingly,
It is described to be included according to corresponding to the service set connection the step of wireless network:
According to the connection cycle, cycle connection and the corresponding wireless network of service set connection, until reaching described Connection number is successfully connected corresponding wireless network.
In this example, the cycle is connected, connection number can be set according to the demand in specific test scene.For example, even 5s can be set by connecing the cycle, and connection number is 6 times, when scanning times, which reach 6 times, namely scans duration arrival 30s, if Also fail to be successfully connected, meaning equipment under test is as WAP, it is impossible to provides available wireless network, the nothing of equipment under test Line access point function is abnormal, can terminate to test after test result corresponding to acquisition preserves.
Electronic equipment provides any wireless network services as WAP, in specific application, does not need only provide for visible And attachable wireless network, what the wireless network still can be stably connected with.Therefore, in this example, the WAP Parameter also includes connection duration, and corresponding, methods described also includes:
After corresponding wireless network is successfully connected, disconnects and connecting with the wireless network after the connection duration is met Connect.
The connection duration can according to corresponding to being set testing requirement numerical value, such as be arranged to 2 minutes.
Specifically, can be by the test command based on NetSH in test script, with the wireless network being successfully connected Disconnect:
netsh wlan disconnect>disconnect.txt。
After corresponding wireless network is successfully connected, the wireless network that can be provided with equipment under test establishes the time of connection Meet connection duration, it is meant that equipment under test is as WAP, there is provided visible and attachable wireless network be it is sane, The WAP function of equipment under test is normal, otherwise, the WAP dysfunction of equipment under test, in survey corresponding to acquisition Test result can terminate to test after preserving.
In the example shown in Fig. 3, test script file can include multiple files, it may for example comprise the first script file With the second script file, accordingly, it is current visible and attachable can to realize that the scanning obtains by the first script file The step S2201 of service set, and according to the wireless access parameters corresponding with equipment under test, reset crus secunda This document simultaneously performs, to realize the step S2202 of the wireless network according to corresponding to service set connection.
Test script file can also include third scenario file, and by performing third scenario file, realization ought successfully connect Disconnected after wireless network corresponding to connecing with the wireless network.
Specifically, first script file, the second script file and third scenario file can be .bat files. .bat file is the autoexec that window systems are supported, a plurality of order, batch processing text can be included in autoexec Part can explain operation by the command interpreter that Windows systems embed.
More specifically, the survey correspondingly included in first script file, the second script file and third scenario file Examination order can be realized by NetSH, and the specific test command shape realized by NetSH has been illustrated in example above Formula, it will not be repeated here.
In specific application, can be by the test profile in the present embodiment and first script file, second Script file and third scenario file are stored under same file catalogue so that being performed during test can when corresponding to script file The test profile is called with convenient.
<Example>
The WAP functional test side provided in the present embodiment is be provided below with reference to the example shown in Fig. 5 Method.In this example, equipment under test is the virtual reality glasses for having WAP function, the nothing provided as WAP Gauze network is wifi network, and test profile is view_app.xml, and script file, which includes the first script file, is Wififind.bat, the second script file are wifi_connect.bat, and third scenario file is wifi_disconnec.bat It is stored under same file catalogue.
As shown in figure 5, the WAP function test method includes:
Step S201, read test configuration file, obtain the WAP parameter of equipment under test.
In this example, WAP parameter includes the services set mark that equipment under test provides wifi network as wifi hotspot Scan period and scanning times, the connection week for connecting wireless network when knowing SSID and accessing key, scanning wireless network signal Phase and connection number.
Step S202, the service set of visible and attachable wireless network is obtained according to scan period scanning.
In this example, step S202 is performed by performing wififind.bat, is included in specific wififind.bat files Test command can as illustrate above based on NetSH realize test command, will not be repeated here.
Step S203, judge the service set of visible and attachable wireless network with the presence or absence of corresponding with equipment under test Service set, if it does not, into step S204, if it does, into step S205;
Step S204, judge whether to reach scanning times, if reaching scanning times, it is seen that and attachable wireless network Service set service set corresponding with equipment under test is not present, the WAP dysfunction of equipment under test, enter Enter step S209, otherwise, go back to step S202;
Step S205, according to the connection cycle, connect wireless network corresponding with equipment under test;
In this example, step S205, specific wifi_connect.bat texts are performed by performing wifi_connect.bat The test command included in part can will not be repeated here such as the test command based on NetSH realizations of illustrating above;
Step S206, judge whether to be successfully connected corresponding wireless network, it is no into step S207 if be successfully connected Then, into step S208;
Step S207, disconnected with the wireless network being successfully connected, into step S209;
In this example, step S207, specific wifi_disconnec.bat are performed by performing wifi_disconnec.ba The test command included in file can will not be repeated here such as the test command based on NetSH realizations of illustrating above.
It is possible to further establish connection duration corresponding to Connection Time satisfaction in wireless network corresponding with equipment under test After disconnect, with detect equipment under test provide WAP function robustness.
Step S208, judge whether to reach connection number, if reaching connection number, it is impossible to be successfully connected and equipment under test Corresponding wireless network, the WAP dysfunction of equipment under test, into step S209, otherwise, go back to step S205;
Step S209, test result corresponding to preservation, terminate the test to the equipment under test.
By above-mentioned example, those skilled in the art are easy to that the deformation of the embodiment of the present invention can be obtained without creative, When testing the wireless points access function of multiple electronic equipments, each electronic equipment can be directed to test profile is set, by One read test configuration file is tested, or the same test of WAP parameter deposit of multiple electronic equipments is matched somebody with somebody File is put, the progressive WAP parameter for reading each electronic equipment is circulated and is tested.
<Equipment>
In the present embodiment, a kind of test equipment 300 is also provided, as shown in fig. 6, including at least memory 310, communication dress 320 and processor 330 are put, for any one WAP function test method for implementing to provide in the present embodiment.
Specifically, test equipment 300 comprises at least:
Memory 310, for store instruction;
Communicator 320, for connecting wireless network;
Processor 330, for the control according to the instruction, triggering communicator connection is corresponding with equipment under test wireless Network, to perform any one WAP function test method such as the present embodiment, including:
Read test configuration file,
The WAP parameter of at least one equipment under test is included in the test profile;
According to the WAP parameter, scan and connect corresponding wireless network, to test corresponding equipment under test WAP function, and preserve corresponding to test result.
In one example, the hardware configuration for the test equipment 1100 that test equipment 300 can be as shown in Figure 1.
It will be appreciated by those skilled in the art that test equipment 300 can be realized by various modes.For example, it can lead to Instruction configuration processor is crossed to realize test equipment 300.For example, instruction can be stored in ROM, and work as starting device When, instruction is read in programming device to realize test equipment 300 from ROM.For example, test equipment 300 can be solidified Into dedicated devices (such as ASIC).Test equipment 300 can be divided into separate unit, or they can be merged Realize together.Test equipment 300 can be realized by one kind in above-mentioned various implementations, or can be by above-mentioned The combinations of two or more modes in various implementations is realized.
Combined accompanying drawing and example describe embodiments of the invention above, according to the present embodiment, according to read test The WAP parameter for the equipment under test that configuration file obtains, performs the test script file previously generated, and automatic connection is made The wireless network provided for the equipment under test of WAP, with the WAP function of equipment under test corresponding to test and is protected Deposit corresponding test result.The WAP function of automatic test electronic equipment is realized, greatly reduces test electronic equipment The human cost that WAP function expends.Test of dispatching from the factory especially suitable for high-volume electronic equipment.
It is well known by those skilled in the art that the development of the electronic information technology with such as large scale integrated circuit technology With the trend of hardware and software, clearly to divide computer system soft and hardware boundary and seem relatively difficult.Because appoint What operation can be realized with software, can also be realized by hardware.The execution of any instruction can be completed by hardware, equally also may be used To be completed by software.Hardware implementations or software implement scheme are used for a certain machine function, depending on price, speed The Non-technical factors such as degree, reliability, memory capacity, change cycle.Therefore, for the ordinary skill of electronic information technical field For personnel, mode more direct and that a technical scheme is explicitly described is to describe each operation in the program.Knowing In the case of road institute operation to be performed, those skilled in the art can directly be set based on the consideration to the Non-technical factor Count out desired product.
The present invention can be system, method and/or computer program product.Computer program product can include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer-readable recording medium can keep and store to perform the tangible of the instruction that uses of equipment by instruction Equipment.Computer-readable recording medium for example can be-- but be not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electromagnetism storage device, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer-readable recording medium More specifically example (non exhaustive list) includes:Portable computer diskette, hard disk, random access memory (RAM), read-only deposit It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static RAM (SRAM), portable Compact disk read-only storage (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not construed as instantaneous signal in itself, the electromagnetic wave of such as radio wave or other Free propagations, leads to Cross the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer-readable recording medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, LAN, wide area network and/or wireless network Portion's storage device.Network can include copper transmission cable, optical fiber is transmitted, is wirelessly transferred, router, fire wall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment receive from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
For perform the computer program instructions that operate of the present invention can be assembly instruction, instruction set architecture (ISA) instruction, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, programming language of the programming language including object-oriented-such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions fully can on the user computer perform, partly perform on the user computer, be only as one Vertical software kit performs, part performs or completely in remote computer on the remote computer on the user computer for part Or performed on server.In the situation of remote computer is related to, remote computer can pass through network-bag of any kind LAN (LAN) or wide area network (WAN)-be connected to subscriber computer are included, or, it may be connected to outer computer (such as profit Pass through Internet connection with ISP).In certain embodiments, by using computer-readable program instructions Status information carry out personalized customization electronic circuit, such as PLD, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can perform computer-readable program instructions, so as to realize each side of the present invention Face.
Referring herein to method, apparatus (system) and computer program product according to embodiments of the present invention flow chart and/ Or block diagram describes various aspects of the invention.It should be appreciated that each square frame and flow chart of flow chart and/or block diagram and/ Or in block diagram each square frame combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to all-purpose computer, special-purpose computer or other programmable datas The processor of processing unit, so as to produce a kind of machine so that these instructions are passing through computer or other programmable datas During the computing device of processing unit, work(specified in one or more of implementation process figure and/or block diagram square frame is generated The device of energy/action.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to Order causes computer, programmable data processing unit and/or other equipment to work in a specific way, so as to be stored with instruction Computer-readable medium then includes a manufacture, and it is included in one or more of implementation process figure and/or block diagram square frame The instruction of the various aspects of defined function/action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment so that series of operation steps is performed on computer, other programmable data processing units or miscellaneous equipment, with production Raw computer implemented process, so that performed on computer, other programmable data processing units or miscellaneous equipment Instruct function/action specified in one or more of implementation process figure and/or block diagram square frame.
Flow chart and block diagram in accompanying drawing show system, method and the computer journey of multiple embodiments according to the present invention Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation One module of table, program segment or a part for instruction, the module, program segment or a part for instruction include one or more use In the executable instruction of logic function as defined in realization.At some as the function of in the realization replaced, being marked in square frame Can be with different from the order marked in accompanying drawing generation.For example, two continuous square frames can essentially be held substantially in parallel OK, they can also be performed in the opposite order sometimes, and this is depending on involved function.It is also noted that block diagram and/or The combination of each square frame and block diagram in flow chart and/or the square frame in flow chart, function or dynamic as defined in performing can be used The special hardware based system made is realized, or can be realized with the combination of specialized hardware and computer instruction.It is right It is well known that, realized for those skilled in the art by hardware mode, realized by software mode and by software and It is all of equal value that the mode of combination of hardware, which is realized,.
It is described above various embodiments of the present invention, described above is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.In the case of without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport Best explaining the principle of each embodiment, practical application or to the technological improvement in market, or make the art its Its those of ordinary skill is understood that each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.

Claims (10)

1. a kind of WAP function test method, including:
Read test configuration file,
The WAP parameter of at least one equipment under test is included in the test profile;
According to the WAP parameter, the test script file previously generated is performed, realizes and scans and connect corresponding nothing Gauze network, with test result corresponding to the WAP function of equipment under test corresponding to test and preservation.
2. according to the method for claim 1, it is characterised in that also include:
According to the WAP parameter of at least one equipment under test obtained in advance, with corresponding to predetermined file format generation Meet the test profile of predetermined file name and preservation.
3. according to the method for claim 1, it is characterised in that
The WAP parameter comprises at least the clothes for the wireless network that corresponding equipment under test provides as WAP Business set identifier;
It is described to scan and connect the step of wireless network is tested and include:
Scanning obtains current visible and attachable service set, to determine whether there is services set mark corresponding to equipment under test Know;
When it is determined that in the presence of service set corresponding to equipment under test, according to wireless network corresponding to service set connection.
4. according to the method for claim 3, it is characterised in that
The WAP parameter also includes scan period, scanning times;
The step of scanning obtains current visible and attachable service set includes:
According to the scan period, intermittent scanning wireless network signal obtains visible and attachable service set, until reaching To the scanning times or determine to terminate in the presence of service set corresponding to equipment under test.
5. according to the method for claim 3, it is characterised in that
The WAP parameter also includes connection cycle, connection number;
It is described to be included according to corresponding to the service set connection the step of wireless network:
According to the connection cycle, cycle connection and the corresponding wireless network of service set connection, until reaching the connection Number is successfully connected corresponding wireless network.
6. according to the method for claim 3, it is characterised in that
The WAP parameter also includes connection duration,
Methods described also includes:
After corresponding wireless network is successfully connected, disconnected after the connection duration is met with the wireless network.
7. according to the method for claim 3, it is characterised in that
The test script file includes the first script file and the second script file,
By performing the first script file, the step of scanning obtains current visible and attachable service set is realized;
And
According to the wireless access parameters corresponding with equipment under test, reset the second script file and perform, to realize The step of stating the wireless network according to corresponding to service set connection.
8. according to the method for claim 7, it is characterised in that:
The test script file also includes third scenario file,
By performing third scenario file, realize and disconnect company with the wireless network after corresponding wireless network is successfully connected Connect.
9. according to the method for claim 8, it is characterised in that
The test profile is stored in same with first script file, the second script file and third scenario file Under individual file directory;
And/or
First script file, the second script file and third scenario file are .bat files.
10. a kind of test equipment, it is characterised in that comprise at least:
Memory, for store instruction;
Communicator, for connecting wireless network;
Processor, for the control according to the instruction, triggering communicator connects wireless network corresponding with equipment under test, with Any one WAP function test method as described in claim 1-9 is performed, including:
Read test configuration file,
The WAP parameter of at least one equipment under test is included in the test profile;
According to the WAP parameter, the test script file previously generated is performed, realizes and scans and connect corresponding nothing Gauze network, with the WAP function of equipment under test corresponding to test, and test result corresponding to preserving.
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 true CN107548083A (en) 2018-01-05
CN107548083B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109327350A (en) * 2018-09-07 2019-02-12 青岛海信移动通信技术股份有限公司 A kind of batch carries out the method and apparatus and system of terminal test
CN114245416A (en) * 2021-12-22 2022-03-25 上海豪承信息技术有限公司 Test management method, device, equipment and test system
CN114323585A (en) * 2021-12-28 2022-04-12 梅卡曼德(北京)机器人科技有限公司 Method for calculating modulation transfer function in batch, electronic device and storage medium
CN115037664A (en) * 2022-05-31 2022-09-09 深圳市共进电子股份有限公司 Network connection testing method, 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

Cited By (6)

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

Also Published As

Publication number Publication date
CN107548083B (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN109076331B (en) Electronic device and control method of electronic device
CN106538042B (en) Subscriber identity module management method and electronic device supporting the same
CN107548083A (en) WAP function test method and equipment
US10275581B2 (en) Method and apparatus for sharing content between electronic devices
KR102454196B1 (en) Method for controlling display and electronic device supporting the same
EP2958316B1 (en) Electronic device using composition information of picture and shooting method using the same
CN104636924B (en) Secure payment method, server and system
CN108090012A (en) The electronic equipment to be communicated using USB connector with external electronic device
CN106375465B (en) A kind of data migration method and server
CN105530596A (en) Device and Method for Secure Connection
CN106060378A (en) Apparatus and method for setting camera
JP2014510482A (en) System and method for testing content of a mobile communication device
US9860738B2 (en) Method for processing multiple pieces of SIM information and electronic device thereof
CN105893989A (en) Dynamic calibration method for ultrasonic fingerprint identification, device and electronic device
CN106664544A (en) Method and device for embedded sim provisioning
EP3118803A1 (en) Card registration method for payment service and mobile electronic device implementing the same
CN107967214A (en) The test method and test equipment of application program
EP3097743B1 (en) Electronic device for controlling an external device using a number and method thereof
CN106055190A (en) Apparatus and method for providing information via portion of display
CN108737243A (en) Conversation message quality detecting method and device
CN108702413A (en) A kind of input method and device of identifying code
CN106126424A (en) A kind of visual automated testing method of script, device and mobile terminal
WO2015135388A1 (en) Device, system, and method for creating virtual credit card
CN108038779A (en) Video face label identity checking method, device, equipment and readable storage medium storing program for executing
CN109597759A (en) Test method and device, storage medium, the computer equipment of business software

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