The test method and device of configuration of routers parameter
Technical field
The present invention relates to a kind of fields of communication technology, more particularly to the test method and dress of a kind of configuration of routers parameter
It sets.
Background technique
It is wirelessly current using a kind of most network connection modes, in the router, this is a very important function;
Therefore the test of radio function is very important, and whether function improves the parameter for depending primarily on radio function.Signal is strong
Degree determines wireless transmission range;SSID is equivalent to wireless network name;Cipher mode ensure that wireless safety, lead to
What is be often used is WPA/WPA2-PSK mode;Channel is the transmission channel of wireless data, other channels can be modified when crowded
It is smooth to help to transmit;Wireless network mode determines wireless transmission rate, and 802.11b 11Mbps, 802.11g are
54Mbps, 802.11n are 150 or 300Mbps, these parameters determine wireless integrity.
At present for the test of wireless parameter based on manual test, has modified SSID, cipher mode, channel ... and wait ginseng
Number, is scanned by scanning software, checks whether parameter value is identical with reference value.Due to having SSID, cipher mode, letter
The multiple parameters such as road, network mode, and each parameter options are more, such as channel just has 13 channels that can modify, and carry out manual
Test ceaselessly need to be modified and be scanned, and very big workload will be generated, and test period is very long, increase the research and development of product at
This.And under frequent repeated work, easily there is maloperation and generates false failure rate in tester.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of surveys of configuration of routers parameter
Method for testing and device, for solving the problems, such as to test in the prior art, cumbersome, test period is long, low efficiency.
In order to achieve the above objects and other related objects, the present invention provides a kind of test method of configuration of routers parameter,
The test method of the configuration of routers parameter includes:
Determine router to be measured;
The parameter sets to be measured configured in the router to be measured;
Will test terminal connect with the router to be measured, and judge the test terminal whether with the router to be measured
Successful connection;
If successful connection, test feedback information is obtained, and judges whether acquired test feedback information joins with feedback
Examine information matches;
If matching prompts test to pass through;Otherwise, test crash is prompted.
Optionally, the test method of the configuration of routers parameter further include: in the test terminal and the road to be measured
When by device connection failure, test crash is prompted.
Optionally, the parameter sets to be measured include the cipher mode, channel, MAC Address, signal strength of router to be measured
With the wireless SSID of at least one of wireless network mode and router to be measured.
Optionally, by described in ping command determination test terminal whether with the router successful connection to be measured.
Optionally, the test method of the configuration of routers parameter further include: configured in the modification router to be measured
Parameter sets to be measured again test the router to be measured.
Correspondingly, the present invention also provides a kind of test device of configuration of routers parameter, the configuration of routers parameter
Test device include:
Authentication unit, for determining router to be measured;
Configuration unit is connect with the authentication unit and router to be measured, for what is configured in the router to be measured
Parameter sets to be measured;
First judging unit is connect with the router to be measured, for judge the test terminal whether with it is described to be measured
Router successful connection;
Second judgment unit is connect with first judging unit, in the test terminal and the routing to be measured
When device successful connection, obtain test feedback information and judge acquired test feedback information whether with feedback reference information
Match;
Prompt unit is connect with the second judgment unit, in acquired test feedback information and feedback reference
When information matches, test is prompted to pass through, and when acquired test feedback information and feedback reference information mismatch, prompted
Test crash.
Optionally, first judging unit is also connect with the prompt unit, for the test terminal with it is described
When router connection failure to be measured, test crash is prompted.
Optionally, the parameter sets to be measured include the cipher mode, channel, MAC Address, signal strength of router to be measured
With the wireless SSID of at least one of wireless network mode and router to be measured.
Optionally, first judging unit by test terminal described in ping command determination whether with the routing to be measured
Device successful connection.
Optionally, the configuration unit is also used to modify the parameter sets to be measured configured in the router to be measured.
As described above, the test method and device of configuration of routers parameter of the invention, have the advantages that
The parameter sets to be measured first configured in router to be measured, then test terminal is connect with router to be measured, and sentences
Disconnected test terminal whether with the router successful connection to be measured;When trying terminal and the router successful connection to be measured, obtain
Take test feedback information, and determine acquired test feedback information whether with feedback reference information matches;If matching, prompts
Test passes through;Otherwise, test crash is prompted.Due to being tested automatically multiple parameters in router, the people of test has been saved
Power cost shortens test period, reduces the research and development cost of product, avoids the false failure rate of repetitive operation generation.
Further, additionally it is possible to when test terminal is connect with router to be measured, parameter sets to be measured are modified, for needing
Same router carries out multiple groups parameter sets to be measured and carries out test case, can effectively reduce test terminal and router to be measured
The step of connection, further saves the human cost of test, shortens test period, reduces the research and development cost of product.
Detailed description of the invention
Fig. 1 is shown as the flow diagram of the test method of configuration of routers parameter of the invention.
Fig. 2 is shown as the structural schematic diagram of the test device of configuration of routers parameter of the invention.
Component label instructions
1 router
The test device of 2 configuration of routers parameters
21 authentication units
23 configuration units
25 first judging units
27 second interpretation units
29 prompt units
S101~S107 step
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, following embodiment and implementation
Feature in example can be combined with each other.
It should be noted that illustrating the basic structure that only the invention is illustrated in a schematic way provided in following embodiment
Think, only shown in schema then with related component in the present invention rather than component count, shape and size when according to actual implementation
Draw, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its assembly layout kenel
It is likely more complexity.
Referring to Fig. 1, the present invention provides a kind of flow diagram of the test method of configuration of routers parameter, comprising:
Step S101 determines router to be measured, the parameter sets to be measured configured in the router to be measured;
Test terminal is connect by step S102 with the router to be measured;
Step S103, judge the test terminal whether with the router successful connection to be measured;
In step s 103, if successful connection, S104 is thened follow the steps, otherwise, executes step S107.
Step S104 obtains test feedback information;
Step S105, judge acquired test feedback information whether with feedback reference information matches;
In step s105, if matching, thens follow the steps S106;Otherwise, step S107 is executed.
Step S106 prompts test to pass through;
Step S107 prompts test crash.
In the present embodiment, the parameter sets to be measured include cipher mode, channel, MAC Address, the signal of router to be measured
The wireless SSID of at least one of intensity and wireless network mode and router to be measured.
Specifically, by test terminal described in ping command determination whether with the router successful connection to be measured.
In the present embodiment, the parameter sets to be measured first configured in router to be measured, then will test terminal and routing to be measured
Device connection, and judge test terminal whether with the router successful connection to be measured;Connect in examination terminal and the router to be measured
When being connected into function, obtain test feedback information, and determine acquired test feedback information whether with feedback reference information matches;If
Matching then prompts test to pass through;Otherwise, test crash is prompted.Due to being tested automatically multiple parameters in router, save
The human cost of test shortens test period, reduces the research and development cost of product, and the mistake for avoiding repetitive operation generation is surveyed
Rate.
In another embodiment, the test method of the configuration of routers parameter further include: the modification routing to be measured
The parameter sets to be measured configured in device again test the router to be measured.Connect in test terminal and router to be measured
When connecing, parameter sets to be measured are modified, carry out test case for needing same router to carry out multiple groups parameter sets to be measured, it can
The step of test terminal is connect with router to be measured is being effectively reduced, the human cost of test is being further saved, shortens test
Period reduces the research and development cost of product.
Referring to Fig. 2, the present invention provides a kind of structural schematic diagram of the test device of configuration of routers parameter, the Road Fig. 2
Include: by the test device 2 of device configuration parameter
Authentication unit 21, for determining router to be measured;
Configuration unit 23 is connect with the authentication unit 21 and router to be measured 1, in the router 1 to be measured
The parameter sets to be measured of configuration;
First judging unit 25 is connect with the router 1 to be measured, for judge test terminal whether with the road to be measured
By 1 successful connection of device;
Second judgment unit 27 is connect with first judging unit 25, for the test terminal with it is described to be measured
When 1 successful connection of router, obtains test feedback information and judge whether acquired test feedback information is believed with feedback reference
Breath matching;
Prompt unit 29 is connect with the second judgment unit 27, in acquired test feedback information and feedback
When reference information matches, test is prompted to pass through, and when acquired test feedback information and feedback reference information mismatch,
Prompt test crash.
In the present embodiment, whether the authentication unit 21 can verify router to be measured by password, sequence number etc. correct.
Specifically, first judging unit 25 by test terminal described in ping command determination whether with the road to be measured
By device successful connection.
In the present embodiment, first judging unit 25 is also connect with the prompt unit 29, for whole in the test
When end is with 1 connection failure of router to be measured, test crash is prompted.
Specifically, the parameter sets to be measured include the cipher mode, channel, MAC Address, signal strength of router to be measured
With the wireless SSID of at least one of wireless network mode and router to be measured.
In the present embodiment, the configuration unit 23 is also used to modify the parameter set to be measured configured in the router to be measured 1
It closes.
In the present embodiment, the parameter sets to be measured that configuration unit 23 configures in router to be measured are first passed through, then will test
Terminal is connect with router to be measured, and judges to test whether terminal connect with the router to be measured by the first judging unit 25
Success;When trying terminal and the router successful connection to be measured, test feedback information is obtained, and pass through the second interpretation unit 27
Determine acquired test feedback information whether with feedback reference information matches;If matching, surveyed by the prompt of prompt unit 29
It pinged;Otherwise, test crash is prompted by prompt unit 29.Due to being tested automatically multiple parameters in router, save
The about human cost of test shortens test period, reduces the research and development cost of product, and the mistake for avoiding repetitive operation generation is surveyed
Rate.
In conclusion the test method and device of configuration of routers parameter of the present invention can to multiple parameters in router into
The automatic test of row, has saved the human cost of test, has shortened test period, reduce the research and development cost of product, avoid repetition
Operate the false failure rate generated.So the present invention effectively overcomes various shortcoming in the prior art and has high industrial exploitation value
Value.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.