CN106131864A - A kind of wireless network data method of testing - Google Patents

A kind of wireless network data method of testing Download PDF

Info

Publication number
CN106131864A
CN106131864A CN201610504737.6A CN201610504737A CN106131864A CN 106131864 A CN106131864 A CN 106131864A CN 201610504737 A CN201610504737 A CN 201610504737A CN 106131864 A CN106131864 A CN 106131864A
Authority
CN
China
Prior art keywords
wireless network
tested
list
data
testing
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.)
Pending
Application number
CN201610504737.6A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610504737.6A priority Critical patent/CN106131864A/en
Publication of CN106131864A publication Critical patent/CN106131864A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of wireless network data method of testing, for testing Wi Fi product wireless data accuracy, including step: derive the radio network information that test equipment current search arrives, including at least wireless device and the network information of wireless network to be tested in the radio network information derived, radio network information data are converted into string format;Using object parameter data to carry out coupling checking in described character string information, if the match is successful, then test is passed through.Radio network information data to be tested are converted into string format by the present invention, and carry out Data Matching checking, the test of wireless network data is carried out with this, simplify testing procedure, save test resource, reduce tester's workload, shorten test period, reduce testing cost, and improve test accuracy.

Description

A kind of wireless network data method of testing
Technical field
The present invention relates to wireless communication technology field, particularly relate to a kind of wireless network data method of testing.
Background technology
Radio communication (Wireless Communication) is to utilize electromagnetic wave signal to propagate in free space Characteristic carry out a kind of communication mode of information exchange, in recent years in the information communications field, with fastest developing speed, most widely used is exactly Wireless communication technology.Radio communication mainly includes microwave communication and satellite communication, and wherein, microwave is a kind of radio wave, and it passes The distance sent typically only has tens kms.But the frequency band of microwave is the widest, and message capacity is the biggest.
From nineteen seventies, ethernet local area network obtains fast development.Initially people want to be entered by network Row contact and communicate, it is necessary to first set up the path of an electronics operation with physics cable-copper stranded conductor, invented the most again optical fiber with Improve efficiency and speed.When, after network Development to certain scale, the drawback of cable network appears, no matter set up, dismount or Carry out again layout and reconstruction on original base, the most extremely difficult, and cost and cost the highest.Then, radio communication with Network technology combines, WLAN WLAN (Wireless Local Area Networks) this networking mode meet the tendency and Raw, it has without advantages such as stringing, motility are strong, with oneself length benefit " wired " shortage.
WLAN is particularly convenient data transmission system, and it utilizes radio frequency (Radio Frequency;RF) skill Art, uses electromagnetic wave, replaces the LAN that the old-fashioned copper twisted pairs (Coaxial) got in the way is constituted, aloft carry out Communication connection so that WLAN can utilize simple access architecture to allow user pass through it, reaches that " information is changed with oneself, just Profit is walked all over the world " ideal state.The agreement that realizes of WLAN has a lot, and be wherein most widely used surely belongs to Wireless Fidelity Technology Wi-Fi, Wi-Fi is a kind of to allow electronic equipment to be connected to a wireless local area network technology, generally use 2.4G UHF or 5G SHF ISM radio frequency band.It is connected to WLAN and is typically cryptoguard;But may also be open, thus permit Permitted any equipment in the range of WLAN can connect.It in fact provides one and all can use wireless by various terminals Carry out the technology interconnected, shield the diversity between various terminal for user.
During the use of WLAN or we often say connection Wi-Fi time, this is general all to relate to SSID Reading, SSID (Service Set Identifier) means service set, i.e. the title of our a common LAN, only There is computer or the terminal ability intercommunication connecting identical SSID name.One WLAN can be divided into several by SSID technology The individual sub-network needing different identity to verify, each sub-network is required for independent authentication, only passes through authentication User just can enter corresponding sub-network, prevent unauthorized user from entering present networks.
In the test process of Wireless LAN Equipments, it will usually relate to SSID lookup, access, wireless data transceiving checking Deng testing procedure, common wireless SSID searches, the method for wireless data transceiving validation test is manual test, by test Radio scan software is installed on computer be scanned, in all wireless network SSID searched in effective coverage, passes through meat Eye observes whether the SSID of network to be tested searches successfully, then carries out the wireless of network to be tested by the way of naked eyes comparison The validation test of data.In actual applications, this kind method of testing is loaded down with trivial details, naked eyes comparison efficiency is low, false failure rate is high, impact survey Examination progress.
Based on disadvantages mentioned above, need a kind of new wireless network data method of testing, it is possible to simplify testing procedure, save and survey Examination resource, reduces tester's workload, shortens test period, reduces testing cost, and improves test accuracy.
Summary of the invention
The present invention is directed to the deficiency that wireless network data method of testing in prior art exists, disclose a kind of new wireless Network data method of testing, it is possible to simplify testing procedure, saves test resource, reduces tester's workload, shortens test week Phase, reduce testing cost, and improve test accuracy.
A kind of wireless network data method of testing disclosed by the invention, is used for testing Wi-Fi product wireless data accuracy, The method comprising the steps of:
Derive the radio network information that test equipment current search arrives, radio network information data are converted into character string lattice Formula;Including at least wireless device and the network information of wireless network to be tested in the radio network information derived;
Using object parameter data to carry out coupling checking in described character string information, if the match is successful, then test is passed through.
According to a preferred embodiment of the invention, after radio network information is converted into character string, carry out code conversion, will Character string transfers GBK code to.
According to a preferred embodiment of the invention, the regular expression using object parameter data verifies wireless network to be tested The accuracy of network data.
If it is accurate that the result is wireless network data to be tested, system prompt test is passed through.
If the result is that wireless network data to be tested is wrong, system records not verified wireless network number According to item, and prompt the user with the unsanctioned data item of test.
According to a preferred embodiment of the invention, the method further comprises the steps of:
The string segmentation being converted into by radio network information goes out the first list, with the Target Wireless of wireless network to be tested Network name information SSID initiates with wireless network name information to be tested as partitioning parameters, the content of the i.e. first list;
If the first list is divided into merit, wireless network name information the most to be tested is accurate, then derive the first list;
First list being partitioned into the 3rd list, and derives the 3rd list, the content of the 3rd list is wireless network to be tested All supplemental characteristics of network;
Use object parameter data coupling the 3rd list, verify the accuracy of wireless network data to be tested.
According to a preferred embodiment of the invention, when radio network information string segmentation is gone out the first list, to treat The target radio network name information of test wireless network is as partitioning parameters.
According to a preferred embodiment of the invention, if the first list is split unsuccessfully, wireless network name the most to be tested is believed Breath mistake, system provides miscue.
According to a preferred embodiment of the invention, when the first list is partitioned into three lists, with wireless network to be tested The target radio network name information of network is as partitioning parameters.
The present invention by being converted into character string by the radio network information searched, and uses string segmentation and target ginseng The mode of number Data Matching removes to verify the accuracy of wireless network data to be tested.By this solution, the present invention is made to have There is a following beneficial effect:
First, radio network information is converted into character string, makes data verification be no longer necessary to naked eyes identification, pass through meanwhile The mode of character match carries out data verification, substantially increases the accuracy of test, reduces tester's workload, saves test Resource, shortens test period, reduces testing cost.
Second, it is GBK code by character string transcoding, makes character string readable, strengthen the resolution of tester, and reduce test Difficulty.
3rd, carry out string segmentation, testing procedure can be simplified, find that rapidly SSID is abnormal and reduces test person employee Measure.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing In having technology to describe, the required accompanying drawing used is briefly described.It should be evident that the accompanying drawing in describing below is only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to Other accompanying drawing is obtained according to these accompanying drawings.
Fig. 1 is the flow chart of first embodiment of the invention;
Fig. 2 is the flow chart of second embodiment of the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the preferred embodiments of the present invention are described in detail, so that advantages and features of the invention energy It is easier to be readily appreciated by one skilled in the art, thus protection scope of the present invention is made apparent clear and definite defining.Aobvious and Easily insight, the accompanying drawing in describing below is only the section Example of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings, and obtain other embodiment party Formula.
For making simplified form, only schematically show part related to the present invention in each figure, they do not represent It is as the practical structures of product or flow process.It addition, so that simplified form readily appreciates, have in some figure identical structure or The parts of function or flow process, only symbolically depict part-structure therein or flow process signal, or only marked therein one Individual.In this article, " one " not only represents " only this ", it is also possible to represent the situation of " more than one ".
The present invention is directed to the deficiency that wireless network data method of testing in prior art exists, disclose a kind of new wireless Network data method of testing, it is possible to simplify testing procedure, saves test resource, reduces tester's workload, shortens test week Phase, reduce testing cost, and improve test accuracy.
Fig. 1 is the flow chart of first embodiment of the invention.As it is shown in figure 1, a kind of wireless network data disclosed by the invention Method of testing, is used for testing Wi-Fi product wireless data accuracy, including step:
Step S11, derives all radio network informations that test equipment current search arrives, and this radio network information at least wraps Radio network information data are converted into string format by wireless device and the network information containing wireless network to be tested;
Step S12, uses an object parameter data to carry out coupling checking in character string information, if the match is successful, then surveys Pinged.
Concrete, when testing wireless data, the wireless network card of test equipment can search institute in effective coverage with or without The line network information, comprises the radio network information all searched in the information i.e. derived.
Concrete, if in Python, order netsh wlan can be used by calling subprocess module Show all derives wireless device and the network information that wireless network card searches.Then, the text that read order will be derived is called Data message is converted into character string.
Further, for the character string information after conversion, use correct supplemental characteristic that character string is carried out coupling and test Card, if the match is successful, i.e. in character string information, it is possible to find the data that verified information is mated completely, then show to be measured The data of examination wireless network are by test, and system will be prompted to test and passes through.
Further, when character string carries out coupling checking, if there being not verified data item, system will be remembered Record, and prompt the user with the unsanctioned data item of test.
Fig. 2 is the flow chart of second embodiment of the invention, proposes the second embodiment of the present invention in conjunction with Fig. 2.Such as Fig. 2 institute Showing, the second embodiment of the present invention includes step:
Step S21, derives all radio network informations that test equipment current search arrives, and this radio network information at least wraps Radio network information data are converted into string format by wireless device and the network information containing wireless network to be tested;
Step S22, the string segmentation being converted into by radio network information goes out the first list, with wireless network to be tested Target radio network name information SSID is as partitioning parameters, and the content of the i.e. first list is with wireless network name letter to be tested Breath is initial;
Step S23, if the first list is divided into merit, wireless network name information the most to be tested is accurate, derives first row Table;
Step S24, is partitioned into the first list the 3rd list, and derives the 3rd list, and the content of the 3rd list is to be measured All supplemental characteristics of examination wireless network;
Step S25, uses object parameter data to carry out coupling checking, if mating in the 3rd list character string information Merit, then test is passed through.
Preferably, after radio network information data are converted into string format, character string is carried out GBK transcoding, will String content is converted into GBK coding, to improve the readability of character string.
Concrete, if in Python, character string can be carried out point by calling the split function of re module Cut, using target radio network name information SSID of wireless network to be tested as partitioning parameters, be divided into the first list and Two list two parts.
Further, if list is split successfully, the content of the second list is completely irrelevant with wireless network to be tested Content, the content of the first list is the word with target radio network name information SSID of wireless network to be tested as initial data Symbol string.This method only takes the first list as valid data.
Preferably, if successful division goes out the first list, the first list can be carried out code conversion, string content is turned It is changed to GBK coding, to improve the readability of the first list.
Further, the first list is divided into merit, then show in all radio network informations that test equipment searches, bag Containing correct target radio network name information SSID, SSID is proved to be successful.If the first list is split unsuccessfully, then show surveying Cannot inquire correct SSID in all radio network informations that examination equipment searches, radio function is abnormal, and system will return Test abnormal prompt information, stops test.
Further, if the first list is divided into merit, then the wireless data proceeding wireless network to be tested is accurate Property test checking.Concrete, the first list is proceeded cutting operation, is divided into the 3rd list and the 4th list two Point.The content of the 3rd list is all supplemental characteristics of wireless network to be tested, and the content of the 4th list is wireless with to be tested The content that network is completely irrelevant, this method only takes the 3rd list as valid data.
Preferably, target radio network name information SSID using wireless network to be tested is partitioned into as partitioning parameters 3rd list.
Preferably, after being partitioned into the 3rd list, the 3rd list can be carried out code conversion, string content is converted to GBK encodes, to improve the readability of the 3rd list.
Preferably, use regular expression to define the object parameter data of wireless network to be tested, and the 3rd list is entered Row Data Matching, verifies the accuracy of wireless data in the 3rd list.
Concrete, if in Python, use regular expression to define the target component of wireless network to be tested After data, supplemental characteristic lookup can be carried out by calling re module search function in the 3rd list, Query Result is exported In c.group (), output result c.group () is judged by Call Condition discriminant function if, it is judged that result is correct, the most instead Feedback wireless data test is passed through.If it is judged that be mistake, system recording exceptional data item, and prompt the user with test do not lead to The data item crossed, meanwhile, wireless data test result is data exception.
Above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, any without Cross change or replacement that creative work is expected, all should contain within protection scope of the present invention.Therefore, the protection of the present invention Scope should be as the criterion with the protection domain that claims are limited.

Claims (8)

1. a wireless network data method of testing, is used for testing Wi-Fi product wireless data accuracy, it is characterised in that should Method includes step:
Deriving the radio network information that test equipment current search arrives, described radio network information includes at least wireless network to be tested Described radio network information data are converted into string format by the wireless device of network and the network information;
Using object parameter data to carry out coupling checking in described character string information, if the match is successful, then test is passed through.
2. a kind of wireless network data method of testing as claimed in claim 1, it is characterised in that described radio network information turns After changing string format into, carry out code conversion, transfer GBK code to.
3. a kind of wireless network data method of testing as claimed in claim 1, it is characterised in that use described target component number According to regular expression verify described wireless network data to be tested accuracy.
4. a kind of wireless network data method of testing as claimed in claim 1, it is characterised in that use described target component number According to when verifying the accuracy of described wireless network data to be tested, if the result to be described wireless network data to be tested accurate Really, system prompt test is passed through.
5. a kind of wireless network data method of testing as claimed in claim 1, it is characterised in that use described target component number After accuracy according to the described wireless network data to be tested of checking, system records not verified wireless network data item, and Prompt the user with the unsanctioned data item of test.
6. a kind of wireless network data method of testing as described in any one of claim 1-5, it is characterised in that the method is also wrapped Include step:
The string segmentation that described radio network information is converted into is gone out the first list, with the target of described wireless network to be tested Wireless network name information SSID is as partitioning parameters, and the content of the most described first list is with wireless network name letter to be tested Breath is initial;
If described first list is divided into merit, the most described wireless network name information to be tested is accurate, derives described first row Table;
Described first list being partitioned into the 3rd list, and derives described 3rd list, the content of described 3rd list is described All supplemental characteristics of wireless network to be tested;
Use described object parameter data to mate described 3rd list, verify the accuracy of described wireless network data to be tested.
7. a kind of wireless network data method of testing as claimed in claim 6, it is characterised in that if described first list divides Cutting unsuccessfully, the most described wireless network name information errors to be tested, system provides test abnormal prompt.
8. a kind of wireless network data method of testing as claimed in claim 6, it is characterised in that described first list is being divided When cutting out described three list, using the target radio network name information of described wireless network to be tested as partitioning parameters.
CN201610504737.6A 2016-06-30 2016-06-30 A kind of wireless network data method of testing Pending CN106131864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610504737.6A CN106131864A (en) 2016-06-30 2016-06-30 A kind of wireless network data method of testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610504737.6A CN106131864A (en) 2016-06-30 2016-06-30 A kind of wireless network data method of testing

Publications (1)

Publication Number Publication Date
CN106131864A true CN106131864A (en) 2016-11-16

Family

ID=57468384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610504737.6A Pending CN106131864A (en) 2016-06-30 2016-06-30 A kind of wireless network data method of testing

Country Status (1)

Country Link
CN (1) CN106131864A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186455A (en) * 2011-12-28 2013-07-03 阿里巴巴集团控股有限公司 Method and system for generating automatic test script on page
CN103455307A (en) * 2012-05-29 2013-12-18 腾讯科技(深圳)有限公司 Method and device for processing information output by command line
CN104378788A (en) * 2014-12-11 2015-02-25 上海斐讯数据通信技术有限公司 Method and system for testing wireless network access facility
CN104486158A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Method and device for testing configuration parameters of router

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186455A (en) * 2011-12-28 2013-07-03 阿里巴巴集团控股有限公司 Method and system for generating automatic test script on page
CN103455307A (en) * 2012-05-29 2013-12-18 腾讯科技(深圳)有限公司 Method and device for processing information output by command line
CN104378788A (en) * 2014-12-11 2015-02-25 上海斐讯数据通信技术有限公司 Method and system for testing wireless network access facility
CN104486158A (en) * 2014-12-17 2015-04-01 上海斐讯数据通信技术有限公司 Method and device for testing configuration parameters of router

Similar Documents

Publication Publication Date Title
CN104904155B (en) Method and apparatus for sending and receiving down link control information
CN102113358B (en) Method, system and terminal device for realizing locking network by terminal device
CN108293185A (en) Wireless device authentication method and apparatus
EP1990958A1 (en) Method for testing safety access protocol conformity of access point and apparatus thereof
CN109583880A (en) Cross-platform communication means and device and method of payment and device
CN112822756B (en) Communication method, system, base station and terminal
US20170118638A1 (en) Method and apparatus for passpoint eap session tracking
US8856876B2 (en) Apparatus and method for identifying wireless network provider in wireless communication system
CN105072615B (en) The connection method and system of wireless fidelity network
US20170374073A1 (en) Secure and smart login engine
CN109348477B (en) Wireless internet of things physical layer authentication method based on service network
US20240129727A1 (en) Method and apparatus for managing event for smart secure platform
CN109309535A (en) AP equipment wireless automatic detection system and method
CN105025548B (en) A kind of the connection control method and device of SIM card
CN111740963B (en) Data communication method and device
CN104640112A (en) Authentication method, device and system
CN111629008B (en) Communication data processing method and device
CN108966232A (en) Wireless internet of things physical layer hybrid authentication method and system based on service network
CN106131864A (en) A kind of wireless network data method of testing
CA3194231A1 (en) Method and apparatus for link operation of multi-link device
CN109429225A (en) Message sink, sending method and device, terminal, network functional entity
EP3048757B1 (en) Authentication server testing method and system
CN115765808A (en) Method, terminal and base station for generating identity
CN108737432A (en) Based on distributed authentication method, the apparatus and system obscured under IoT scenes
CN110249647A (en) Control access and access flow network in high concentration environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161116