CN116846788B - Equipment reconnection automatic test method based on intelligent socket and router - Google Patents

Equipment reconnection automatic test method based on intelligent socket and router Download PDF

Info

Publication number
CN116846788B
CN116846788B CN202311117610.5A CN202311117610A CN116846788B CN 116846788 B CN116846788 B CN 116846788B CN 202311117610 A CN202311117610 A CN 202311117610A CN 116846788 B CN116846788 B CN 116846788B
Authority
CN
China
Prior art keywords
tested
router
equipment
intelligent socket
reconnection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311117610.5A
Other languages
Chinese (zh)
Other versions
CN116846788A (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.)
Tianjin Hualai Technology Co Ltd
Original Assignee
Tianjin Hualai 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 Tianjin Hualai Technology Co Ltd filed Critical Tianjin Hualai Technology Co Ltd
Priority to CN202311117610.5A priority Critical patent/CN116846788B/en
Publication of CN116846788A publication Critical patent/CN116846788A/en
Application granted granted Critical
Publication of CN116846788B publication Critical patent/CN116846788B/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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
    • 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

Abstract

The invention relates to the technical field of digital information transmission, in particular to an equipment reconnection automatic test method based on an intelligent socket and a router, which comprises the following steps: the power supply of the first router is plugged into the intelligent socket to be electrified and connected with the network cable; the second router is powered on and connected with a second router network cable; the equipment to be tested is respectively bound to the first router and the second router; controlling the intelligent socket to be powered off; controlling the intelligent socket to be electrified until the network state of the equipment to be tested is displayed normally, binding and recording the test result and the identification code of the equipment to be tested; repeating the reconnection test for multiple times, and judging whether the reconnection test of the tested equipment meets the requirement according to the result of the repeated reconnection test. The method provided by the invention can simultaneously realize the automatic test of power failure and network disconnection and connection of equipment, and supports the simultaneous test of multiple products and multiple equipment.

Description

Equipment reconnection automatic test method based on intelligent socket and router
Technical Field
The invention relates to the technical field of digital information transmission, in particular to an equipment reconnection automatic test method based on an intelligent socket and a router.
Background
Most intelligent devices all have networking capability, taking a camera as an example, the camera needs to be connected to WiFi that can normally surf the Internet in normal work. When the camera is connected to a router WiFi which can normally surf the Internet and normally works, the router is suddenly powered off or the router network is disconnected, so that the camera cannot be connected to the network, and when the router WiFi is recovered in the past, the camera can be reconnected to the WiFi network and recover to a normal working state, and the above flow is the reconnection of the camera.
The reconnection test is an important special test for equipment quality control, and is classified into a power-off type and a network-off type according to the two conditions of the router power-off (WiFi signal disappears) and the network-off (WiFi signal exists but no network exists) of the router.
At present, a manual mode is mainly adopted for testing the reconnection test, the two testing scenes of power failure and network disconnection described above are respectively realized by manually pulling out a router power supply or pulling out a router network cable, the state of the router is restored again after the specified time is disconnected, and whether equipment is connected back to work is verified by manually operating an intelligent camera on an app.
The above scheme has the following defects:
1. the manual test is too long in the process, the simultaneous test of two scenes of the large-batch intelligent product power-off non-WiFi signal reconnection and the WiFi signal but the Internet disconnection reconnection cannot be realized at the same time, and the middle most of time is waiting and the state of the intelligent equipment is recorded, so that the working time of a tester is greatly wasted;
2. the batch test cannot be performed, the problem of energy and input cost of testers is limited, and the conventional manual test scheme cannot perform batch test and verification;
3. the router of the test resource is limited, and when a plurality of products are simultaneously tested and verified, the test resource needs to be mutually coordinated and waited.
Disclosure of Invention
The invention aims to solve the technical problem of providing an equipment reconnection automatic test method based on an intelligent socket and routers, wherein two routers are respectively bound with equipment to be tested in a power-off non-WiFi signal reconnection scene to be tested and equipment to be tested in a WiFi signal but Internet surfing reconnection scene to be tested, one router is connected with the intelligent socket, and the power-off and network disconnection reconnection automatic test of the equipment can be realized simultaneously by controlling the on-off state of the intelligent socket.
The invention is realized by the following technical scheme:
an equipment reconnection automatic test method based on an intelligent socket and a router comprises the following steps:
s1: inserting a power supply of a first router on an intelligent socket for power-on, and connecting the first router with a network cable;
s2: the power supply of the second router is plugged into any socket to be electrified, and the first router is connected with the second router through a network cable;
s3: binding a first device to be tested, which needs to be tested and is powered off and has no WiFi signal to be connected back, to a first router, binding a second device to be tested, which needs to be tested and has WiFi signals but cannot be connected back online, to a second router, and recording the identification code of the first device to be tested and the identification code of the second device to be tested respectively;
s4: controlling the intelligent socket to be powered off, enabling the first router to enter a power-off WiFi vanishing state, enabling the first device to be tested to be in a WiFi-connection-free network-disconnection state, enabling the second router to enter a WiFi-existence-network-free state, and enabling the second device to be tested to be in a WiFi-connection-free network state;
s5: controlling the intelligent socket to be electrified until the network state of the equipment to be tested shows normal, binding and recording the time required by the network state of the first equipment to be tested to be recovered to normal with the identification code of the first equipment to be tested, judging that the first equipment to be tested fails the loopback test at this time if the network state of the first equipment to be tested does not show normal within the set time, and binding and recording the test failure result with the identification code of the first equipment to be tested; binding and recording the time length required by the network state of the second device to be tested to be normal with the identification code of the second device to be tested, judging that the second device to be tested fails the reconnection test if the network state of the second device to be tested is not normal within the set time length, and binding and recording the test failure result with the identification code of the second device to be tested;
s6: and (4) repeating the step (S4) and the step (S5), carrying out repeated reconnection test for a plurality of times, and judging whether the reconnection test of the tested equipment meets the requirement according to the repeated reconnection test result.
Preferably, in step S4, the power-off duration of the intelligent socket is ten minutes.
Preferably, the duration set in step S5 is ten minutes.
Further, the intelligent socket control module controls the intelligent socket to be powered off or powered on.
Further, in step S5, the cloud service platform circularly polls the status of the device to be tested to obtain interface information until the interface return information indicates that the network status display of the device is normal.
Further, the test method further includes step S7: and writing the recorded data into an excel file, and sending a mail report to a specified mailbox of the tester.
The invention has the beneficial effects that:
according to the equipment reconnection automatic test method based on the intelligent socket and the router, two routers are respectively bound with equipment to be tested which needs to be tested for disconnection without WiFi signals and equipment to be tested which needs to be tested for disconnection without WiFi signals but cannot be connected with the network, one router is connected with the intelligent socket, the automatic test for disconnection and disconnection of the equipment can be simultaneously realized by controlling the on-off state of the intelligent socket, multiple conditions of multiple products and multiple equipment are supported to be tested simultaneously, the current quick iterative test requirement of the product is greatly met, meanwhile, the test manpower is liberated, and long-time boring reconnection test waiting time is avoided.
Drawings
FIG. 1 is a schematic flow chart of the method of the invention.
FIG. 2 is a schematic diagram of the system of the present invention.
In the figure: 1. the device comprises first equipment to be tested, a first router, a smart socket control module, second equipment to be tested, a second router and a common socket.
Detailed Description
The invention discloses a device reconnection automatic test method based on an intelligent socket and a router, wherein a specific flow chart is shown in fig. 1, a system chart is shown in fig. 2, and the test method comprises the following steps:
s1: the power supply of the first router 2 is plugged into the intelligent socket 3 to be electrified, and the first router is connected with a network cable;
s2: the power supply of the second router 6 is plugged into any common socket 7 to be electrified, and the first router is connected with the second router through a network cable; step S1 and step S2 are to power on the sockets of the first router and the second router first, and the first router and the second router can be determined to be normally powered on or powered off in advance.
S3: binding a first device to be tested 1 which needs to be tested and is not connected with a WiFi signal in a back mode to a first router, binding a second device to be tested 5 which needs to be tested and is not connected with the WiFi signal in a back mode in a network mode to a second router, and recording the identification codes of the first device to be tested and the second device to be tested respectively;
s4: controlling the intelligent socket to be powered off, enabling the first router to enter a power-off WiFi vanishing state, enabling the first device to be tested to be in a WiFi-connection-free network-disconnection state, enabling the second router to enter a WiFi-existence-network-free state, and enabling the second device to be tested to be in a WiFi-connection-free network state;
s5: controlling the intelligent socket to be electrified until the network state of the equipment to be tested shows normal, binding and recording the time required by the network state of the first equipment to be tested to be recovered to normal with the identification code of the first equipment to be tested, judging that the first equipment to be tested fails the loopback test at this time if the network state of the first equipment to be tested does not show normal within the set time, and binding and recording the test failure result with the identification code of the first equipment to be tested; binding and recording the time length required by the network state of the second device to be tested to be normal with the identification code of the second device to be tested, judging that the second device to be tested fails the reconnection test if the network state of the second device to be tested is not normal within the set time length, and binding and recording the test failure result with the identification code of the second device to be tested; the test result and the identification code of the equipment to be tested are bound together for recording, so that traceability is realized.
S6: and (4) repeating the step (S4) and the step (S5), carrying out repeated reconnection test for a plurality of times, and judging whether the reconnection test of the tested equipment meets the requirement according to the repeated reconnection test result. And carrying out repeated reconnection tests, comprehensively judging whether the reconnection test of the tested equipment meets the requirements according to the repeated reconnection test results, removing accidental factors of the primary test results, enabling the test results to be more real and accurate, and determining whether the reconnection test of the equipment meets the requirements according to the success rate of the reconnection test.
According to the equipment reconnection automatic test method based on the intelligent socket and the router, two routers are respectively bound with equipment to be tested which needs to be tested for disconnection without WiFi signals and equipment to be tested which needs to be tested for disconnection without WiFi signals but cannot be connected with the network, one router is connected with the intelligent socket, the automatic test for disconnection and disconnection of the equipment can be simultaneously realized by controlling the on-off state of the intelligent socket, multiple conditions of multiple products and multiple equipment are supported to be tested simultaneously, the current quick iterative test requirement of the product is greatly met, meanwhile, the test manpower is liberated, and long-time boring reconnection test waiting time is avoided.
The to-be-tested equipment needing to be tested for power-off and WiFi signal reconnection and the to-be-tested equipment needing to be tested for WiFi signal but incapable of being connected with the Internet can be two pieces of equipment which are selected randomly from a large batch of products which need to be tested for power-off and WiFi signal reconnection and have WiFi signals but incapable of being connected with the Internet, or can be two pieces of equipment of different varieties which need to be tested for different projects respectively, if each piece of equipment needs to be tested for two different projects, the to-be-tested equipment can be tested according to the steps S1-S6, and then the positions of the two to-be-tested equipment can be exchanged for testing. The automatic test of power failure and network disconnection of the equipment is truly realized, and multiple conditions of multiple products and multiple equipment are supported to be tested simultaneously, so that the current quick iteration test requirement of the products is greatly met.
Preferably, in step S4, the duration of power-off of the intelligent socket is ten minutes, so as to prevent the power-off from being too frequent, influence the accuracy of the test result, and prevent damage to the equipment.
Preferably, the duration set in step S5 is ten minutes, so that the testing method meets the testing requirements, and the tested equipment has sufficient feedback reaction time.
Further, the intelligent socket control module 4 controls the intelligent socket to be powered off or powered on, so that automatic control of power off or power on can be realized.
Further, in step S5, the cloud service platform circularly polls the status of the device to be tested to obtain interface information until the interface return information is that the network status of the device is displayed normally, so that the testing method is fully automated without manual checking, and the recording result is more accurate.
Further, the test method further includes step S7: the recorded data is written into an excel file, and a mail report is sent to a specified mailbox of a tester, and after the tester receives the mail report, the tester can directly send a loopback test result to a developer without manually filling the report, so that the manpower is further liberated.
In summary, according to the device reconnection automatic test method based on the intelligent socket and the router, the power-off and disconnection reconnection automatic test of the device can be simultaneously realized by controlling the on-off state of the intelligent socket, and multiple conditions of multiple products and multiple devices can be supported to be tested simultaneously, so that the current quick iterative test requirement of the product is greatly met, the test manpower is liberated, and long-time boring reconnection test waiting time is avoided.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (6)

1. An equipment reconnection automatic test method based on an intelligent socket and a router is characterized in that: the method comprises the following steps:
s1: inserting a power supply of a first router on an intelligent socket for power-on, and connecting the first router with a network cable;
s2: the power supply of the second router is plugged into any socket to be electrified, and the first router is connected with the second router through a network cable;
s3: binding a first device to be tested, which needs to be tested and is powered off and has no WiFi signal to be connected back, to a first router, binding a second device to be tested, which needs to be tested and has WiFi signals but cannot be connected back online, to a second router, and recording the identification code of the first device to be tested and the identification code of the second device to be tested respectively;
s4: controlling the intelligent socket to be powered off, enabling the first router to enter a power-off WiFi vanishing state, enabling the first device to be tested to be in a WiFi-connection-free network-disconnection state, enabling the second router to enter a WiFi-existence-network-free state, and enabling the second device to be tested to be in a WiFi-connection-free network state;
s5: controlling the intelligent socket to be electrified until the network state of the equipment to be tested shows normal, binding and recording the time required by the network state of the first equipment to be tested to be recovered to normal with the identification code of the first equipment to be tested, judging that the first equipment to be tested fails the loopback test at this time if the network state of the first equipment to be tested does not show normal within the set time, and binding and recording the test failure result with the identification code of the first equipment to be tested; binding and recording the time length required by the network state of the second device to be tested to be normal with the identification code of the second device to be tested, judging that the second device to be tested fails the reconnection test if the network state of the second device to be tested is not normal within the set time length, and binding and recording the test failure result with the identification code of the second device to be tested;
s6: and (4) repeating the step (S4) and the step (S5), carrying out repeated reconnection test for a plurality of times, and judging whether the reconnection test of the tested equipment meets the requirement according to the repeated reconnection test result.
2. The device loopback automatic test method based on the intelligent socket and the router according to claim 1, wherein the device loopback automatic test method is characterized in that: in step S4, the power-off duration of the intelligent socket is ten minutes.
3. The device loopback automatic test method based on the intelligent socket and the router according to claim 1, wherein the device loopback automatic test method is characterized in that: the set time period in step S5 is ten minutes.
4. The device loopback automatic test method based on the intelligent socket and the router according to claim 1, wherein the device loopback automatic test method is characterized in that: the intelligent socket control module controls the intelligent socket to be powered off or powered on.
5. The device loopback automatic test method based on the intelligent socket and the router according to claim 1, wherein the device loopback automatic test method is characterized in that: and step S5, the cloud service platform circularly polls the state of the equipment to be tested to acquire interface information until the interface return information is that the equipment network state display is normal.
6. The device loopback automatic test method based on the intelligent socket and the router according to claim 1, wherein the device loopback automatic test method is characterized in that: further comprising step S7: and writing the recorded data into an excel file, and sending a mail report to a specified mailbox of the tester.
CN202311117610.5A 2023-09-01 2023-09-01 Equipment reconnection automatic test method based on intelligent socket and router Active CN116846788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311117610.5A CN116846788B (en) 2023-09-01 2023-09-01 Equipment reconnection automatic test method based on intelligent socket and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311117610.5A CN116846788B (en) 2023-09-01 2023-09-01 Equipment reconnection automatic test method based on intelligent socket and router

Publications (2)

Publication Number Publication Date
CN116846788A CN116846788A (en) 2023-10-03
CN116846788B true CN116846788B (en) 2023-11-17

Family

ID=88174658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311117610.5A Active CN116846788B (en) 2023-09-01 2023-09-01 Equipment reconnection automatic test method based on intelligent socket and router

Country Status (1)

Country Link
CN (1) CN116846788B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577293A (en) * 2014-10-13 2016-05-11 炬芯(珠海)科技有限公司 Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
CN108900378A (en) * 2018-07-06 2018-11-27 四川斐讯信息技术有限公司 A kind of router switch machine automated testing method and system
CN116614675A (en) * 2023-07-19 2023-08-18 深圳市华曦达科技股份有限公司 Wi-Fi (wireless fidelity) back connection automatic detection method and system for smart television box and readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11729255B2 (en) * 2008-08-11 2023-08-15 Icontrol Networks, Inc. Integrated cloud system with lightweight gateway for premises automation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577293A (en) * 2014-10-13 2016-05-11 炬芯(珠海)科技有限公司 Bluetooth equipment testing method, Bluetooth equipment testing device and Bluetooth equipment testing system
CN108900378A (en) * 2018-07-06 2018-11-27 四川斐讯信息技术有限公司 A kind of router switch machine automated testing method and system
CN116614675A (en) * 2023-07-19 2023-08-18 深圳市华曦达科技股份有限公司 Wi-Fi (wireless fidelity) back connection automatic detection method and system for smart television box and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于智能医疗终端的Wi-Fi兼容性自动化测试系统;关姚姚,陈超,朱习军,;《自动化技术与应用》;第39卷(第7期);全文 *

Also Published As

Publication number Publication date
CN116846788A (en) 2023-10-03

Similar Documents

Publication Publication Date Title
CN109507464B (en) Automatic detection method and device for real-time reporting function of power-down event of electric energy meter
CN112291621B (en) System upgrading automation test method, device and test equipment
CN110501998B (en) BMS hardware in-loop test system and test method
CN104932962A (en) USB (Universal Serial Bus) plug testing system and method thereof
CN105553885A (en) FC switch priority testing method
CN105827333A (en) System and method of baseband chip automatic test
CN116846788B (en) Equipment reconnection automatic test method based on intelligent socket and router
CN109031005B (en) Distributed relay protection device testing method and relay protection tester
CN101800672A (en) Equipment detection method and equipment
CN116340073B (en) Test method, device and system
CN110198222A (en) A kind of distribution power automation terminal plug and play test method and test main website
CN109283920B (en) DCS system connection fault testing device and method
US20020122389A1 (en) Start signal confirming/judging device for lan, signal confirming/judging method for lan, and recording medium in which a plurality of computer readable instructions are recorded
CN113959689A (en) Automatic testing device and method for intelligent terminal
CN102377593A (en) Network management card test device and method
CN117129831A (en) Radio station module testing device and method based on digital recording and playback technology
CN107205241A (en) A kind of radio communication detection method and its equipment
CN111948472A (en) Testability verification device for civil aircraft avionics product
CN105306302A (en) Method and system for automatically testing Qinq function
CN111007428A (en) Train line calibration device and method
CN116094585A (en) Switch testing method, device, communication equipment and storage medium
CN219658043U (en) Unmanned aerial vehicle flight control computer testing device
US11586570B2 (en) Dual mode carriage system translation
CN115333987B (en) Interface test system and method
CN211426666U (en) Testing device for relay protection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant