CN108900378A - A kind of router switch machine automated testing method and system - Google Patents

A kind of router switch machine automated testing method and system Download PDF

Info

Publication number
CN108900378A
CN108900378A CN201810734832.4A CN201810734832A CN108900378A CN 108900378 A CN108900378 A CN 108900378A CN 201810734832 A CN201810734832 A CN 201810734832A CN 108900378 A CN108900378 A CN 108900378A
Authority
CN
China
Prior art keywords
router
measured
wireless
socket
switch machine
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
CN201810734832.4A
Other languages
Chinese (zh)
Other versions
CN108900378B (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.)
Sol Group Co ltd
Original Assignee
Sichuan Feixun Information 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 Sichuan Feixun Information Technology Co Ltd filed Critical Sichuan Feixun Information Technology Co Ltd
Priority to CN201810734832.4A priority Critical patent/CN108900378B/en
Publication of CN108900378A publication Critical patent/CN108900378A/en
Application granted granted Critical
Publication of CN108900378B publication Critical patent/CN108900378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a kind of router switch machine automated testing method and systems, and the method comprising the steps of:S11. connection is established with router to be measured;S12. the DHCP function of the router to be measured is opened, and configures the wireless messages of the router to be measured;S13. control stepper motor retreats so that socket is separated with the attaching plug of the router to be measured;S14. it waits a preset time period then to control stepper motor to advance so that the attaching plug of the router to be measured is inserted into socket;S15. wired network adapter is enabled, wireless network card is disabled, Ping operation is carried out to the router to be measured by wired network adapter;S16. wired network adapter is disabled, wireless network card is enabled, is separately connected the wireless of all frequency ranges of the router to be measured using wireless network card, Ping operation is carried out to the router to be measured by wireless network card;S17. judge whether testing time reaches default testing time, if so, step S18 is jumped to, if it is not, then jumping to step S13;S18. it is disconnected with the router to be measured.The present invention can effectively ensure the accuracy of wireless router switching on and shutting down test.

Description

A kind of router switch machine automated testing method and system
Technical field
The present invention relates to the technical field of router test more particularly to a kind of router switch machine automated testing methods And system.
Background technique
Router (Router) is also known as gateway (Gateway), for connecting multiple logically separate networks.It is so-called Logical network is to represent an individual network or a subnet.When data is transferred from one subnet to another subnet, It can be completed by the routing function of router.Therefore, router has the function of judging network address and the selection path IP, it Can flexible connection be established, can be connected with entirely different data grouping with media access method in a multi-network interconnection environment Various subnets, router only receive source station or the information of other routers, belong to a kind of InterWorking Equipment of network layer.
With the fast development of wireless communication technique, wireless router has been widely used for each occasion, such as family, public affairs The occasions such as department, market, every household has the demand to WIFI and wireless router at present, and router has become one must Palpus product, the test of router switch machine is one of the important indicator of router reliability performance, essential during the test Link, generally all can be at thousands of times or more to the switching on and shutting down test of router, and existing router switch machine test method is By simulating the power on/off of router to relay on-off electricity, router is then led to by Ethernet interface Ping to judge to route Whether device is successfully opened, however relay has electric residual during power on/off, may influence test result and relay Capacitor can rectify, bring surge current big situation when can not simulate for plugging router plug, and this is logical Crossing the logical router of Ethernet interface Ping can not prove that router is successfully opened.
The patent of Publication No. CN 104901848A discloses a kind of router switch machine automatization test system and side Method, including setting power-on time lower limit, the power-on time upper limit, cycle-index, waiting time and interval time;Control router into After row circulation powers on repeatedly, then controls router and power on simultaneously certain time;It is unimpeded whether the gateway of detection router connects; If it is not, test crash is judged, if so, setting power-on time is to work as when whether current power-on time is less than the power-on time upper limit Preceding power-on time and interval time and, repeat aforementioned testing procedure;Whether it is greater than the power-on time upper limit in current power-on time When, judgement is successfully tested.Router switch machine automatization test system of the invention and method are suitable for all SOHO without route By device product;It can be realized full-automatic switching on and shutting down test, reduce the workload of tester, improve the operation effect of test macro Rate;Substantially increase testing efficiency and accurate testing degree.This method still using relay come relay on-off electricity come simulation road By the power on/off of device, router is then led to judge whether router is successfully opened by Ethernet interface Ping, or exists and surveys Test result inaccuracy, can not analog subscriber plug plug when bring surge current big situation the problems such as.
Summary of the invention
The purpose of the present invention is in view of the drawbacks of the prior art, provide a kind of router switch machine automated testing method And system is simulated the switching on and shutting down situation that actual user plugs power supply, is able to verify that big surge current using the mode of mechanical plug Influence to router, and in the verifying successful link of router startup, increase the process of wireless network card connection, it is ensured that routing Device module does not go wrong in switching on and shutting down test.
In order to achieve the goal above, the present invention uses following technical scheme:
A kind of router switch machine automated testing method, including step:
S1. connection is established with router to be measured;
S2. the DHCP function of the router to be measured is opened, and configures the wireless messages of the router to be measured;
S3. control stepper motor retreats so that socket is separated with the attaching plug of the router to be measured;
S4. wait preset time period then control stepper motor advance so that the router to be measured attaching plug It is inserted into socket;
S5. wired network adapter is enabled, wireless network card is disabled, Ping behaviour is carried out to the router to be measured by wired network adapter Make;
S6. wired network adapter is disabled, wireless network card is enabled, is separately connected all of the router to be measured using wireless network card Frequency range it is wireless, Ping operation is carried out to the router to be measured by wireless network card;
S7. judge whether testing time reaches default testing time, if so, step S8 is jumped to, if it is not, then jumping to step S3;
S8. it is disconnected with the router to be measured.
Further, in the wireless messages for configuring the router to be measured if the router to be measured is double frequency router When two frequency ranges be both needed to configure.
Further, the stepper motor is pivotally connected to fixture by machinery.
Further, the socket is fixed on the fixture.
Further, the attaching plug of the router to be measured is fixed on the front of the socket.
Correspondingly, a kind of router switch machine automatization test system is also provided, including:
Link block, for establishing connection with router to be measured;
Configuration module for opening the DHCP function of the router to be measured, and configures the wireless of the router to be measured Information;
First control module is retreated for controlling stepper motor so that the attaching plug of socket and the router to be measured point From;
Second control module, for controlling stepper motor after waiting a preset time period after stepper motor retrogressing Advance so that the attaching plug of the router to be measured is inserted into socket;
First Ping operation module disables wireless network card, by wired network adapter to described to be measured for enabling wired network adapter Router carries out Ping operation;
2nd Ping operation module enables wireless network card, is separately connected institute using wireless network card for disabling wired network adapter The wireless of all frequency ranges of router to be measured is stated, Ping operation is carried out to the router to be measured by wireless network card;
Judgment module, for judging whether testing time reaches default testing time;
Module is disconnected, is connected for being disconnected when testing time reaches default testing time with the router to be measured It connects.
Further, in the wireless messages for configuring the router to be measured if the router to be measured is double frequency router When two frequency ranges be both needed to configure.
Further, the stepper motor is pivotally connected to fixture by machinery.
Further, the socket is fixed on the fixture.
Further, the attaching plug of the router to be measured is fixed on the front of the socket.
Compared with prior art, the present invention has the following advantages that:
(1) present invention using stepper motor realize in the way of mechanical plug replace relay on-off electricity in the way of come pair Router carries out switching on and shutting down test, can simulate the switching on and shutting down situation that actual user plugs router power supply, constantly can be avoided Relay electricity, which remains bring, to be influenced, and can verify influence of the big surge current to router, it is easier to be found the problem.
(2) when carrying out switching on and shutting down test to router, not only Ping leads to router to the present invention, also to the nothing of router Wire module carries out Ping operation, it is ensured that router is in state good for use, and test result is more acurrate.
Detailed description of the invention
Fig. 1 is a kind of router switch machine automated testing method flow chart that embodiment one provides;
Fig. 2 is each component connection signal in testing in the router switch machine automated testing method of the offer of embodiment one Figure;
Fig. 3 is a kind of router switch machine automatization test system structure chart that embodiment two provides.
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.
With the development of internet technology, the terminal device for needing to network is more and more, wireless network due to its have it is larger Flexibility, also increasingly become the object that people are favored, the purpose of the present invention is for existing to router switching on and shutting down The technological deficiency of test provides a kind of router switch machine automated testing method and system, using the mode of mechanical plug, The switching on and shutting down situation that actual user plugs power supply is simulated, is able to verify that influence of the big surge current to router, and verifying The successful link of router startup increases the process of wireless network card connection, it is ensured that router-module does not have in switching on and shutting down test It goes wrong.
Embodiment one
The present embodiment provides a kind of router switch machine automated testing methods, as shown in Figure 1, including step:
S11. connection is established with router to be measured;
S12. the DHCP function of the router to be measured is opened, and configures the wireless messages of the router to be measured;
S13. control stepper motor retreats so that socket is separated with the attaching plug of the router to be measured;
S14. it waits a preset time period then to control stepper motor to advance so that the power supply of the router to be measured is inserted Head insertion socket;
S15. wired network adapter is enabled, wireless network card is disabled, Ping behaviour is carried out to the router to be measured by wired network adapter Make;
S16. wired network adapter is disabled, wireless network card is enabled, the institute of the router to be measured is separately connected using wireless network card There is the wireless of frequency range, Ping operation is carried out to the router to be measured by wireless network card;
S17. judge whether testing time reaches default testing time, if so, step S18 is jumped to, if it is not, then jumping to step Rapid S13;
S18. it is disconnected with the router to be measured.
The router switch machine automated testing method executing subject of the present embodiment is computer.
It should be noted that the computer to router carry out switching on and shutting down test before, be equipped with Gigabit Ethernet and Double-frequency wireless network interface card.
When router to be measured is tested, the computer described first will establish connection with the router to be measured, tool The router to be measured is connected to by wired network adapter when the computer of body, when the computer and the router to be measured After establishing connection, the computer can open the DHCP function of router to be measured, and wired network adapter is allowed successfully to get IP Address, and the wireless messages of the router to be measured are configured, so that subsequent computer carries out switching on and shutting down test to it.
Further, in the wireless messages for configuring the router to be measured if the router to be measured is double frequency router When two frequency ranges be both needed to configure.So that the subsequent radio function to two frequency ranges of router to be measured detects.
It should be noted that the router to be measured is energized state, i.e. institute before establishing connection with the computer The attaching plug for stating router to be measured is inserted in socket.
After computer is the configuration of routers to be measured complete wireless messages, computer can control stepper motor retrogressing, make It obtains socket to separate with the attaching plug of router to be measured, the router power-off to be measured.Then wait a preset time period right Computer controls the stepper motor and advances afterwards, so that the attaching plug of the router to be measured is inserted into socket, router to be measured It is powered.The preset time period is 2 seconds.
Further, the stepper motor is pivotally connected to fixture by machinery.
Further, the socket is fixed on the fixture.
Further, the attaching plug of the router to be measured is fixed on the front of the socket.
Specifically, upper fixture is fixed on the mechanical axis of stepper motor, then by the fixed socket of fixture, then in socket The fixed router to be measured in front attaching plug, as shown in Fig. 2, for router switch machine provided in this embodiment from Each component connection schematic diagram in test in dynamicization test method, wherein stepper motor is connect by Serial Port Line with computer, stepping Motor is used to fix socket by being fixed with fixture, fixture on own mechanical axis, and the socket connects alternating current, before socket just The attaching plug of the fixed router to be measured in side, can use stepper motor thus to control the forward-reverse of socket, when Stepper motor will make the attaching plug of router to be measured plug socket (at router i.e. to be measured after proceeding to a certain distance In open state), socket will be made far from the attaching plug of the router to be measured after stepper motor retreats certain distance (router i.e. to be measured is in off-mode) so recycles, and can simulate the switching on and shutting down feelings that actual user plugs router power supply Condition, constantly can be avoided relay electricity residual bring influences, and can verify influence of the big surge current to router, The problem of more easily finding router to be measured.
It should be noted that the distance that the stepper motor moves forward and backward is by the socket and the routing to be measured Device attaching plug is arranged apart from size, and is controlled by computer programming the stepper motor.
After computer-controlled stepper motor advances so that the attaching plug of the router to be measured is inserted into socket, institute at this time Stating router to be measured is open state, and computer can enable wired network adapter first, disables wireless network card, then passes through wired network adapter Ping operation is carried out to the router to be measured, Ping operation is carried out to router to be measured by wired network adapter, if being capable of Ping It is logical, then show that the wired connection of router to be measured is unimpeded, the LAN mouth mold block of router to be measured has restarted success;If cannot Ping is logical, then shows that the wired connection of router to be measured is not smooth, then router wired module to be measured may power at this time It goes wrong in the process, but occurs the case where losing wired configuration or image file damage, routing to be measured in power up The LAN mouth mold block of device does not restart success.
After the wired module for having detected router to be measured, computer will disable wired network adapter, enable wireless network card, use Wireless network card is separately connected the wireless of all frequency ranges of router to be measured, is then carried out by wireless network card to router to be measured Ping operation, if all frequency ranges can Ping it is logical, show that the wireless connection of all frequency ranges of router to be measured is unimpeded, it is to be measured The wireless module of router has restarted success;If not all frequency range can Ping it is logical, show that router to be measured has The wireless connection of a little frequency ranges is not smooth, then the wireless module of router to be measured may go wrong in power up at this time, May occur the case where losing radio configuration in power up, the wireless module of router to be measured does not restart success.
In the present invention, the LAN mouth mold block of router only to be measured and wireless module all restart success, just guarantee road to be measured It is successful when restarting by device, it is ensured that router is in state good for use, test result is more acurrate.
After the wireless module for having detected router to be measured, computer just judges time treated and survey the test of router switch machine Whether number reaches default test test, specifically, computer can by the number that the calculating stepper motor moves forward and backward Know that, if not reaching preset testing time, computer is just to the testing time of the router switch machine to be measured Step S13 to step S16 can be repeated, until reaching default testing time to router switch machine testing time to be measured, when Reach default testing time, computer will be disconnected with the router to be measured, test result.
It should be noted that the default testing time is wanted according to the number of the switching on and shutting down of the router to be measured test It asks to set.
The present embodiment uses the mode of mechanical plug, and simulation actual user plugs the switching on and shutting down situation of power supply, is able to verify that Big influence of the surge current to router, and in the verifying successful link of router startup, increase the mistake of wireless network card connection Journey, it is ensured that router-module does not go wrong in switching on and shutting down test.
Embodiment two
The present embodiment provides a kind of router switch machine automatization test systems, as shown in figure 3, including:
Link block 11, for establishing connection with router to be measured;
Configuration module 12 for opening the DHCP function of the router to be measured, and configures the nothing of the router to be measured Line information;
First control module 13 retreats the attaching plug so that socket and the router to be measured for controlling stepper motor Separation;
Second control module 14, for waiting control stepping after a preset time period electric after stepper motor retrogressing Machine advances so that the attaching plug of the router to be measured is inserted into socket;
First Ping operation module 15 disables wireless network card for enabling wired network adapter, by wired network adapter to it is described to It surveys router and carries out Ping operation;
2nd Ping operation module 16 is enabled wireless network card, is separately connected using wireless network card for disabling wired network adapter All frequency ranges of the router to be measured it is wireless, Ping operation is carried out to the router to be measured by wireless network card;
Judgment module 17, for judging whether testing time reaches default testing time;
Module 18 is disconnected, is connected for being disconnected when testing time reaches default testing time with the router to be measured It connects.
The function of the modules of the router switch machine automatization test system of the present embodiment is all integrated in computer, The achievable fast shutdown to router to be measured of the computer is tested.
It should be noted that the computer to router carry out switching on and shutting down test before, be equipped with Gigabit Ethernet and Double-frequency wireless network interface card.
When router to be measured is tested, the computer described first will establish connection with the router to be measured, tool The router to be measured is connected to by wired network adapter when the computer of body, when the computer and the router to be measured After establishing connection, the computer can open the DHCP function of router to be measured, and wired network adapter is allowed successfully to get IP Address, and the wireless messages of the router to be measured are configured, so that subsequent computer carries out switching on and shutting down test to it.
Further, in the wireless messages for configuring the router to be measured if the router to be measured is double frequency router When two frequency ranges be both needed to configure.So that the subsequent radio function to two frequency ranges of router to be measured detects.
It should be noted that the router to be measured is energized state, i.e. institute before establishing connection with the computer The attaching plug for stating router to be measured is inserted in socket.
After computer is the configuration of routers to be measured complete wireless messages, computer can control stepper motor retrogressing, make It obtains socket to separate with the attaching plug of router to be measured, the router power-off to be measured.Then wait a preset time period right Computer controls the stepper motor and advances afterwards, so that the attaching plug of the router to be measured is inserted into socket, router to be measured It is powered.The preset time period is 2 seconds.
Further, the stepper motor is pivotally connected to fixture by machinery.
Further, the socket is fixed on the fixture.
Further, the attaching plug of the router to be measured is fixed on the front of the socket.
Specifically, upper fixture is fixed on the mechanical axis of stepper motor, then by the fixed socket of fixture, then in socket The fixed router to be measured in front attaching plug, after thus can use advance of the stepper motor to control socket It moves back, the attaching plug of router to be measured will be made to plug socket (road i.e. to be measured after stepper motor proceeds to a certain distance Open state is in by device), socket will be made far from the electricity of the router to be measured after stepper motor retreats certain distance Source plug (router i.e. to be measured is in off-mode) so recycles, and can simulate actual user and plug opening for router power supply Power down condition, constantly can be avoided relay electricity residual bring influences, and can verify big surge current to router Influence, it is easier to the problem of finding router to be measured.
It should be noted that the distance that the stepper motor moves forward and backward is by the socket and the routing to be measured Device attaching plug is arranged apart from size, and is controlled by computer programming the stepper motor.
After computer-controlled stepper motor advances so that the attaching plug of the router to be measured is inserted into socket, institute at this time Stating router to be measured is open state, and computer can enable wired network adapter first, disables wireless network card, then passes through wired network adapter Ping operation is carried out to the router to be measured, Ping operation is carried out to router to be measured by wired network adapter, if being capable of Ping It is logical, then show that the wired connection of router to be measured is unimpeded, the LAN mouth mold block of router to be measured has restarted success;If cannot Ping is logical, then shows that the wired connection of router to be measured is not smooth, then router wired module to be measured may power at this time It goes wrong in the process, but occurs the case where losing wired configuration or image file damage, routing to be measured in power up The LAN mouth mold block of device does not restart success.
After the wired module for having detected router to be measured, computer will disable wired network adapter, enable wireless network card, use Wireless network card is separately connected the wireless of all frequency ranges of router to be measured, is then carried out by wireless network card to router to be measured Ping operation, if all frequency ranges can Ping it is logical, show that the wireless connection of all frequency ranges of router to be measured is unimpeded, it is to be measured The wireless module of router has restarted success;If not all frequency range can Ping it is logical, show that router to be measured has The wireless connection of a little frequency ranges is not smooth, then the wireless module of router to be measured may go wrong in power up at this time, May occur the case where losing radio configuration in power up, the wireless module of router to be measured does not restart success.
In the present invention, the LAN mouth mold block of router only to be measured and wireless module all restart success, just guarantee road to be measured It is successful when restarting by device, it is ensured that router is in state good for use, test result is more acurrate.
After the wireless module for having detected router to be measured, computer just judges time treated and survey the test of router switch machine Whether number reaches default test test, specifically, computer can by the number that the calculating stepper motor moves forward and backward Know that, if not reaching preset testing time, computer is just to the testing time of the router switch machine to be measured Step S13 to step S16 can be repeated, until reaching default testing time to router switch machine testing time to be measured, when Reach default testing time, computer will be disconnected with the router to be measured, test result.
It should be noted that the default testing time is wanted according to the number of the switching on and shutting down of the router to be measured test It asks to set.
The present embodiment using stepper motor realize in the way of mechanical plug replace relay on-off electricity in the way of come pair Router carries out switching on and shutting down test, can simulate the switching on and shutting down situation that actual user plugs router power supply, constantly can be avoided Relay electricity, which remains bring, to be influenced, and can verify influence of the big surge current to router, it is easier to it finds the problem, And not only Ping leads to router when carrying out switching on and shutting down test to router, also carries out Ping behaviour to the wireless module of router Make, it is ensured that router is in state good for use, and test result is more acurrate.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of router switch machine automated testing method, which is characterized in that including step:
S1. connection is established with router to be measured;
S2. the DHCP function of the router to be measured is opened, and configures the wireless messages of the router to be measured;
S3. control stepper motor retreats so that socket is separated with the attaching plug of the router to be measured;
S4. it waits a preset time period then to control stepper motor to advance so that the attaching plug of the router to be measured is inserted into Socket;
S5. wired network adapter is enabled, wireless network card is disabled, Ping operation is carried out to the router to be measured by wired network adapter;
S6. wired network adapter is disabled, wireless network card is enabled, all frequency ranges of the router to be measured is separately connected using wireless network card It is wireless, Ping operation is carried out to the router to be measured by wireless network card;
S7. judge whether testing time reaches default testing time, if so, step S8 is jumped to, if it is not, then jumping to step S3;
S8. it is disconnected with the router to be measured.
2. a kind of router switch machine automated testing method according to claim 1, which is characterized in that if described to be measured Router is that then when configuring the wireless messages of the router to be measured, two frequency ranges are both needed to configure double frequency router.
3. a kind of router switch machine automated testing method according to claim 1, which is characterized in that the stepping electricity Machine is pivotally connected to fixture by machinery.
4. a kind of router switch machine automated testing method according to claim 3, which is characterized in that the socket is solid It is scheduled on the fixture.
5. a kind of router switch machine automated testing method according to claim 4, which is characterized in that the road to be measured The front of the socket is fixed on by the attaching plug of device.
6. a kind of router switch machine automatization test system, which is characterized in that including:
Link block, for establishing connection with router to be measured;
Configuration module for opening the DHCP function of the router to be measured, and configures the wireless messages of the router to be measured;
First control module is retreated for controlling stepper motor so that socket is separated with the attaching plug of the router to be measured;
Second control module, for waiting control stepper motor after a preset time period to advance after stepper motor retrogressing So that the attaching plug of the router to be measured is inserted into socket;
First Ping operation module disables wireless network card, by wired network adapter to the routing to be measured for enabling wired network adapter Device carries out Ping operation;
2nd Ping operation module enables wireless network card for disabling wired network adapter, using wireless network card be separately connected it is described to The wireless of all frequency ranges of router is surveyed, Ping operation is carried out to the router to be measured by wireless network card;
Judgment module, for judging whether testing time reaches default testing time;
Module is disconnected, for disconnecting when testing time reaches default testing time with the router to be measured.
7. a kind of router switch machine automatization test system according to claim 6, which is characterized in that if described to be measured Router is that then when configuring the wireless messages of the router to be measured, two frequency ranges are both needed to configure double frequency router.
8. a kind of router switch machine automatization test system according to claim 6, which is characterized in that the stepping electricity Machine is pivotally connected to fixture by machinery.
9. a kind of router switch machine automatization test system according to claim 8, which is characterized in that the socket is solid It is scheduled on the fixture.
10. a kind of router switch machine automatization test system according to claim 9, which is characterized in that described to be measured The attaching plug of router is fixed on the front of the socket.
CN201810734832.4A 2018-07-06 2018-07-06 Automatic test method and system for switching on and switching off of router Active CN108900378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810734832.4A CN108900378B (en) 2018-07-06 2018-07-06 Automatic test method and system for switching on and switching off of router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810734832.4A CN108900378B (en) 2018-07-06 2018-07-06 Automatic test method and system for switching on and switching off of router

Publications (2)

Publication Number Publication Date
CN108900378A true CN108900378A (en) 2018-11-27
CN108900378B CN108900378B (en) 2023-04-28

Family

ID=64348533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810734832.4A Active CN108900378B (en) 2018-07-06 2018-07-06 Automatic test method and system for switching on and switching off of router

Country Status (1)

Country Link
CN (1) CN108900378B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109861722A (en) * 2019-03-21 2019-06-07 深圳市吉祥腾达科技有限公司 A kind of Homeplug automatic network-building method for testing reliability and its test macro
CN111343661A (en) * 2020-03-16 2020-06-26 深圳市吉祥腾达科技有限公司 Method and device for testing blacklist function and computer readable storage medium
CN111682974A (en) * 2019-03-11 2020-09-18 西安诺瓦电子科技有限公司 Network detection method, device and system for broadcast control equipment
CN115394071A (en) * 2022-07-11 2022-11-25 佛山市厦欣科技有限公司 WIFI module production control method for air conditioner
CN116846788A (en) * 2023-09-01 2023-10-03 天津华来科技股份有限公司 Equipment reconnection automatic test method based on intelligent socket and router

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB766935A (en) * 1953-10-26 1957-01-30 Ibm Circuit testing apparatus
CN101727368A (en) * 2008-10-23 2010-06-09 英业达股份有限公司 On/off test method and on/off test system
CN203313211U (en) * 2013-06-27 2013-11-27 成都飞鱼星科技开发有限公司 Automatic startup and shutdown detection system for router
CN104239172A (en) * 2014-09-17 2014-12-24 上海优立检测技术有限公司 Automatic testing device for powering on and off test
CN104410549A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Test system and method of router
CN104901848A (en) * 2015-06-02 2015-09-09 上海斐讯数据通信技术有限公司 Automated testing system and method for startup and shutdown of router
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN106850317A (en) * 2017-03-22 2017-06-13 上海斐讯数据通信技术有限公司 The detection method and system of a kind of router

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB766935A (en) * 1953-10-26 1957-01-30 Ibm Circuit testing apparatus
CN101727368A (en) * 2008-10-23 2010-06-09 英业达股份有限公司 On/off test method and on/off test system
CN203313211U (en) * 2013-06-27 2013-11-27 成都飞鱼星科技开发有限公司 Automatic startup and shutdown detection system for router
CN104239172A (en) * 2014-09-17 2014-12-24 上海优立检测技术有限公司 Automatic testing device for powering on and off test
CN104410549A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Test system and method of router
CN104901848A (en) * 2015-06-02 2015-09-09 上海斐讯数据通信技术有限公司 Automated testing system and method for startup and shutdown of router
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN106850317A (en) * 2017-03-22 2017-06-13 上海斐讯数据通信技术有限公司 The detection method and system of a kind of router

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111682974A (en) * 2019-03-11 2020-09-18 西安诺瓦电子科技有限公司 Network detection method, device and system for broadcast control equipment
CN109861722A (en) * 2019-03-21 2019-06-07 深圳市吉祥腾达科技有限公司 A kind of Homeplug automatic network-building method for testing reliability and its test macro
CN109861722B (en) * 2019-03-21 2021-10-29 深圳市吉祥腾达科技有限公司 Method and system for testing reliability of automatic networking of power line modem
CN111343661A (en) * 2020-03-16 2020-06-26 深圳市吉祥腾达科技有限公司 Method and device for testing blacklist function and computer readable storage medium
CN111343661B (en) * 2020-03-16 2023-06-16 深圳市吉祥腾达科技有限公司 Method and device for testing blacklist function and computer readable storage medium
CN115394071A (en) * 2022-07-11 2022-11-25 佛山市厦欣科技有限公司 WIFI module production control method for air conditioner
CN115394071B (en) * 2022-07-11 2023-11-24 佛山市厦欣科技有限公司 WIFI module production control method for air conditioner
CN116846788A (en) * 2023-09-01 2023-10-03 天津华来科技股份有限公司 Equipment reconnection automatic test method based on intelligent socket and router
CN116846788B (en) * 2023-09-01 2023-11-17 天津华来科技股份有限公司 Equipment reconnection automatic test method based on intelligent socket and router

Also Published As

Publication number Publication date
CN108900378B (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN108900378A (en) A kind of router switch machine automated testing method and system
CN104901848B (en) A kind of router switch machine automatization test system and method
CN100369410C (en) Method and apparatus for supplying power to external device via Ethernet
JP6446136B2 (en) Battery control apparatus or test apparatus for inspecting battery, and battery control apparatus or method of testing battery
CN107483254A (en) A kind of production test method and device of Internet of Things intelligent object
CN104410549B (en) The test system and method for router
US10345338B2 (en) Test cap for a cable
CN110501998B (en) BMS hardware in-loop test system and test method
CN106199321B (en) Connecting wire line sequence detection device
CN110855515A (en) Vehicle-mounted CAN network test auxiliary device
CN104468281A (en) Routing information protocol simulator and routing information protocol communication test method thereof
CN109358610A (en) The detection method of vehicle diagnostic equipment
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
US6832168B2 (en) Method and system for verifying network device power cabling configuration
CN205898948U (en) Connecting wire sequence detection device
CN104298578B (en) Test device, system and method for board double loop power supply
CN111337783A (en) Test circuit and test method thereof
CN215894836U (en) Control box and circuit aging test system
CN106899450B (en) Performance detection method and device of port daughter card with bypass function
CN109013402A (en) A kind of semiconductor test system, testing, sorting machine, test machine
CN105871635B (en) The method that a kind of multiple WIFI module parameters in local area automatically configure
CN109861722B (en) Method and system for testing reliability of automatic networking of power line modem
CN114363210A (en) Startup and shutdown testing method, device, system and medium for distributed router
CN215263743U (en) Vehicle-mounted charger testing device and system
CN107046013B (en) Integrated circuit with auxiliary power supply pin

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20190409

Address after: 201616 No. 3666 Sixian Road, Songjiang District, Shanghai

Applicant after: PHICOMM (SHANGHAI) Co.,Ltd.

Address before: 610100 125 Longquan Street Park Road, Longquanyi District, Chengdu, Sichuan.

Applicant before: Sichuan fixun Information Technology Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201215

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: No.3666 Sixian Road, Songjiang District, Shanghai 201616 no.3666 Sixian Road, Songjiang District, Shanghai

Applicant before: Phicomm (Shanghai) Co.,Ltd.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20230413

Address after: 518000 4th floor, Industrial Bank building, 4013 Shennan Avenue, Fu'an community, Futian street, Futian District, Shenzhen, Guangdong Province

Applicant after: sol group Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant