CN113612659A - Equipment networking test method and device, electronic equipment and storage medium - Google Patents

Equipment networking test method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113612659A
CN113612659A CN202110882467.3A CN202110882467A CN113612659A CN 113612659 A CN113612659 A CN 113612659A CN 202110882467 A CN202110882467 A CN 202110882467A CN 113612659 A CN113612659 A CN 113612659A
Authority
CN
China
Prior art keywords
test
state
tested
router
equipment
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
CN202110882467.3A
Other languages
Chinese (zh)
Other versions
CN113612659B (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.)
Jingdong Shuke Haiyi Information Technology Co Ltd
Original Assignee
Jingdong Shuke Haiyi 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 Jingdong Shuke Haiyi Information Technology Co Ltd filed Critical Jingdong Shuke Haiyi Information Technology Co Ltd
Priority to CN202110882467.3A priority Critical patent/CN113612659B/en
Publication of CN113612659A publication Critical patent/CN113612659A/en
Application granted granted Critical
Publication of CN113612659B publication Critical patent/CN113612659B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • 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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a device networking test method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: determining a test strategy corresponding to the current intelligent device to be tested; controlling a switch working state of an intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state; and performing networking test on the intelligent device to be tested based on the router state. The technical scheme of the embodiment of the invention solves the technical problems of high cost and low efficiency caused by manual participation in the networking test of the equipment to be tested in the prior art, solves the technical problems of low efficiency and high labor cost caused by the manual adjustment of the working state of the router in the networking test of the equipment to be tested in the prior art, and realizes the technical effect of automatically and conveniently carrying out the networking test on the equipment to be tested.

Description

Equipment networking test method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device networking test method and device, electronic equipment and a storage medium.
Background
With the development of device intelligence and network popularization, users have higher and higher requirements on the networking performance of intelligent devices. In order to ensure that the performance of the intelligent device used by the user is better, the intelligent device can be subjected to a network disconnection reconnection test before the intelligent device leaves a factory, so that the intelligent device used by the user can be automatically connected to a corresponding network.
At present, the adopted disconnected network reconnection test is mainly as follows: the method comprises the steps that a test user manually disconnects a power supply corresponding to a router to enable the intelligent equipment to be in a disconnected network state, then the router is manually powered on to enable a wifi network of the router to cover a certain area, and whether the intelligent equipment is successfully connected with the network is further detected to determine a networking test result of the intelligent equipment.
When the present invention is implemented based on the above-described embodiments, the inventors have found that the following problems occur:
at present, the networking test of the intelligent equipment is mainly realized in a manual mode, and when the intelligent equipment needs to be subjected to the network disconnection reconnection test in batches, more test users are needed; further, if the testing time is long, for example, more than one thousand times or 24 hours of continuous disconnection and reconnection testing, it is necessary for the testing user to be always on duty and to repeatedly perform the same operation, which causes problems of high labor cost and low efficiency. Thirdly, due to manual participation, the problem that the test result is unqualified due to misoperation exists, and at the moment, the intelligent device subjected to the mistest needs to be operated again, so that the test cost is increased.
Based on the above, the currently adopted testing method has the problems of high labor cost, low testing efficiency and high testing error rate.
Disclosure of Invention
The invention provides a device networking test method, a device, electronic equipment and a storage medium, and aims to achieve the technical effect of automatically and conveniently carrying out networking test on equipment to be tested.
In a first aspect, an embodiment of the present invention provides a device networking test method, where the method includes:
determining a test strategy corresponding to the current intelligent device to be tested;
controlling a switch working state of an intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and performing networking test on the current intelligent equipment to be tested based on the router state.
In a second aspect, an embodiment of the present invention further provides an apparatus for testing device networking, where the apparatus includes:
the test strategy determining module is used for determining a test strategy corresponding to the current intelligent device to be tested;
the router state determining module is used for controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and the testing module is used for carrying out networking test on the current intelligent equipment to be tested based on the router state.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the device networking test method according to any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the device networking test method according to any one of the embodiments of the present invention.
The technical scheme of the embodiment of the invention can determine the test strategy corresponding to the equipment to be tested when the equipment to be tested is tested, control the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state, therefore, the networking test is carried out on the intelligent equipment to be tested based on the state of the router, and the problem that when the networking test is carried out on the equipment to be tested in the prior art is solved, the technical problems of high labor cost, low testing efficiency and certain error rate exist due to the need of manual participation, the testing strategy which can be matched with the intelligent device to be tested is realized, and then network connection test is carried out on the intelligent equipment to be tested based on the corresponding test strategy, so that the accuracy and convenience of the test are improved, and meanwhile, the technical effect of labor cost is also reduced.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a device networking test method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a device networking test method according to an embodiment of the present invention;
fig. 3 is another schematic architecture diagram of a device networking test method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus networking test device according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a method for testing device networking according to an embodiment of the present invention, where the method is applicable to a case where a networking test can be performed on each device to be tested before the device leaves a factory, and the method can be performed by a device networking test apparatus, where the apparatus can be implemented in the form of software and/or hardware, and the hardware can be an electronic device, such as a mobile terminal or a PC.
Before the technical solutions of the embodiments of the present invention are introduced, an application scenario may be exemplarily described. In order to improve the user experience, the smart devices used by the users are usually tested before being shipped out of the factory. That is, before each intelligent device leaves the factory or is sold on line, the intelligent device needs to be tested, and then whether the intelligent device is a qualified product is determined according to a test result, so that the qualified product leaves the factory and is sold on line. The test usually includes a device performance test, and the device performance test includes a network disconnection reconnection test. The disconnection reconnection test can be understood as that, on the premise that the intelligent device is connected with the wifi network corresponding to a certain router, when the router is updated to the networking state from the disconnection state, whether the intelligent device can be reconnected with the wifi network corresponding to the router is determined. Specific embodiments thereof can be seen in the detailed description of the embodiments of the present invention.
As shown in fig. 1, the method of this embodiment includes:
and S110, determining a test strategy corresponding to the current intelligent device to be tested.
If a certain intelligent device needs to be tested for networking currently, the intelligent device can be used as the current intelligent device to be tested. For example, if the mobile terminal a is currently to be subjected to a networking test, the mobile terminal a may be taken as the current smart device to be tested. The device to be tested can be any intelligent device needing to be connected with wifi. The test strategy can be understood as a strategy for testing the intelligent device to be tested currently. The test strategy may include a test period for testing the device under test. The test period may be understood as how often the switch operating state of the intelligent switch is adjusted at intervals, for example, the test period is 10S, and the switch operating state of the intelligent switch may be adjusted every 10S.
It should be noted that the test strategies corresponding to different intelligent devices to be tested may be the same or different, and a user may set the test strategy of each intelligent device to be tested according to actual requirements; or automatically acquiring the device performance of the intelligent device to be tested, and then determining the test strategy based on the device performance, wherein at the moment, when the device performance of the two intelligent devices is different, the test strategy corresponding to the two intelligent devices is also different.
Specifically, after the intelligent device to be tested is determined, a default test strategy pre-stored in the system can be used as the test strategy of the current intelligent device to be tested; the test strategy can be stored in the database after the test of the intelligent device to be tested is completed each time, so that when the intelligent device to be tested needs to be tested, the test strategy corresponding to the intelligent device to be tested can be determined from the historical test strategy stored in the database.
In this embodiment, determining, from the historical test policies, a test policy corresponding to the current smart device to be tested may be: after the test of the equipment to be tested is completed each time, the test strategies can be stored in the database, and when the current intelligent equipment to be tested is tested, one test can be randomly selected from the historical test strategies to serve as the test strategy corresponding to the current intelligent equipment to be tested. Or selecting one test strategy which is most matched with the intelligent device to be tested from the historical test strategies as the test strategy of the intelligent device to be tested currently.
In this embodiment, the determining a test policy corresponding to the current intelligent device to be tested includes: and determining a test strategy of the current intelligent device to be tested according to the device performance of the current intelligent device to be tested.
It should be noted that, hardware performances of different intelligent devices are different, for example, processors used by the intelligent devices are different, a networking rate of an intelligent device with a better processor is higher, and a networking rate of an intelligent device with a general processor performance is lower, so that when a network disconnection reconnection test is performed on an intelligent device to be tested, a test strategy matched with the intelligent device to be tested can be determined.
The device performance may include at least one of a CPU, a graphics card, a memory, and a motherboard. The current intelligent device to be tested may have a certain device model, and the device performance of the intelligent device to be tested is determined based on the device model. For example, the device capabilities of various types of devices of different brands may be stored in a database in advance, for example, the brand is type A and type P1Movement ofThe cpu and the memory used by the terminal 1 are stored in the database. After the device model of the current intelligent device to be tested is obtained, the device performance corresponding to the device model can be determined according to the data stored in the database, and meanwhile, the test strategy corresponding to the intelligent device to be tested can be determined.
For example, the device models of different devices to be tested and data corresponding to device performances may be stored in a database in advance, and at least one test policy to be selected corresponding to different device performances may be determined. In specific application, after the device performance of the device to be tested is acquired, at least one test strategy to be selected associated with the device performance can be determined, and one test strategy to be selected is selected from the at least one test strategy to be selected as a test strategy corresponding to the current intelligent device to be tested.
In this embodiment, before determining the test policy corresponding to the current smart device to be tested, the method further includes: and establishing wireless communication between the current intelligent device to be tested and the router device so as to perform networking test on the current intelligent device to be tested when the routing state corresponding to the router device changes. It should be noted that before the networking test is performed on the intelligent device to be tested, the wireless communication between the intelligent device to be tested and the router device needs to be established first, that is, before the testing is performed on the intelligent device to be tested, the network is accessed first, and then the subsequent network disconnection reconnection test can be supported. The intelligent equipment can be re-accessed to the network only after being accessed to the network and under the condition of network disconnection and networking, otherwise, the network disconnection and reconnection test cannot be carried out.
The router device is a device for connecting each local area network and wide area network in the internet, and can automatically select and set a route according to the condition of a channel, and send signals according to the optimal path and the sequence. The router device is divided into a local router and a remote router, and the router mentioned in the embodiment of the invention is mainly the local router. Local routers are used to connect network transmission media, such as optical, coaxial cables. The router device may establish a corresponding local area network. In this embodiment, the device to be tested may be connected to the wifi network of the router in a network distribution manner. After the wifi network is connected, a subsequent networking test, namely a disconnected network reconnection test, can be performed.
And S120, controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state.
Wherein the intelligent switch is connected with a power supply of the router device. The intelligent switch is used for controlling whether the power supply of the router device supplies power to the router device. Generally, the intelligent switch can be in two states, and the two states are a closed state and an open state respectively. When intelligence switch is in the closure state, the power that corresponds with router equipment can supply power to router equipment, and is corresponding, and router equipment also is in operating condition, and router equipment can provide the state of wifi network promptly. When the intelligent switch is in the off state, the power supply corresponding to the router equipment cannot supply power to the router equipment, correspondingly, the router equipment is also in the non-working state, namely the router equipment is in the network disconnection state, and the router equipment cannot provide a wifi network. The router state includes an active state and an inactive state. The working state is a networking state, namely the state of a wifi network can be provided; the non-working state is a network disconnection state, namely, the state of the wifi network cannot be provided.
Specifically, the switch operating state of the intelligent switch may be controlled to be a closed state or an open state based on the test strategy. When the working state of the switch is detected to be a closed state, the power supply can supply power to the router equipment, and the router state of the router equipment is a networking state, namely a wifi network providing state; when the working state of the switch is detected to be the off state, the power supply cannot supply power to the router equipment, and the router state of the router equipment is the off-network state at the moment, namely the wifi network state cannot be provided.
For example, referring to fig. 2, a control code corresponding to the test policy may be dynamically generated, and the intelligent switch may be controlled to be turned on and off based on the control code, so as to adjust whether the router device may provide a wifi network. Referring to fig. 3, it is also possible to send a test strategy to the intelligent switch, and execute the test strategy based on a processor provided in the intelligent switch to determine a test result of the device to be tested.
It should be noted that the test strategy includes a switching duty cycle. The switching duty cycle may be understood as how long a switch closure is performed and how long a switch opening is performed. The switching duty cycle may also be understood as the frequency at which the switches are closed and opened.
Based on this, the method for controlling the switch operating state of the intelligent switch based on the test strategy to adjust the router state of the router device based on the switch operating state includes: controlling the intelligent switch to be in a closed state and an open state periodically according to the switch working period in the test strategy; and controlling a power supply corresponding to the router equipment to supply power to and cut off the power supply of the router equipment according to the on state and the off state of the intelligent switch so as to adjust the router equipment to be in a network disconnection state and a network connection state.
For example, the switch duty cycle may be set to 5S, which may be once every five seconds to control the smart switch to close or open. If the time interval between the current moment and the last moment when the switch state is changed is detected to be 5S, the working state of the intelligent switch can be adjusted. When the intelligent switch is closed, the power supply corresponding to the router equipment can supply power to the router equipment, and at the moment, the router state of the router equipment is a networking state, namely, the state of a wifi network can be provided. The device to be tested may be connected to a network corresponding to the router device. Correspondingly, when the on-time reaches five seconds, the intelligent switch can be updated to the off-state from the on-state, the power supply corresponding to the router equipment can not supply power to the router equipment, and the router state of the router equipment is the off-network state, namely the state of the wifi network can not be provided. The device to be tested cannot be connected with the network corresponding to the router.
S130, performing networking test on the intelligent device to be tested based on the router state.
It should be noted that, before the networking test is performed on the current intelligent device to be tested, the wifi network corresponding to the router device is already connected. In general, when the router device is updated from the network disconnection state to the network connection state, the intelligent device to be tested can be automatically connected to the wifi network.
Specifically, the state of the router can be controlled to perform networking test on the current intelligent device to be tested, that is, whether the intelligent device to be tested can be reconnected to the wifi network is determined through network disconnection and networking of the router device, so that the test of network disconnection and reconnection is realized.
In this embodiment, performing a networking test on a current smart device to be tested based on a router state includes: if the state of the router is updated to the networking state from the disconnection state, acquiring a reconnection test result of the intelligent equipment to be tested at present, and taking the reconnection test result as a current test result; and if the current test result is inconsistent with the preset test result and the inconsistent times reach a first preset time threshold, adjusting the test strategy corresponding to the current intelligent device to be tested so as to perform networking test on the current intelligent device to be tested based on the adjusted test strategy.
The reconnection test result can be understood as a result of whether the current intelligent device to be tested is connected with the wifi network. The reconnection test result may include one of reconnection to the network and non-reconnection to the network. The preset test result may be a result of reconnecting to the network. The first preset number threshold may be preset, and optionally, the first preset number threshold may be set to five times. In this embodiment, the first predetermined number threshold may be set relatively smaller, and this configuration has the following advantages: whether the test strategy is matched with the current intelligent device to be tested or not can be quickly determined, and the corresponding test strategy can be re-determined under the condition of unmatched test strategies, so that the technical effect of testing efficiency is improved. Alternatively, if the number of networking tests for each smart device to be tested is 1000, the first preset number threshold may be 10.
Specifically, when it is detected that the state of the router is updated from the disconnected state to the connected state, it may be determined whether the current intelligent device to be tested is reconnected to the wifi network corresponding to the router device. And taking the obtained connection result as a reconnection test result. And after the reconnection test result is determined, determining whether the current test result is consistent with the preset result, and if not, indicating that the current test result is not reconnected to the network. At this time, 1 may be added to the number of times of non-reconnection to the network corresponding to the current smart device to be tested. Meanwhile, if the number of times of non-reconnection is determined to reach a first preset number threshold, it indicates that a certain fault exists in the current intelligent device to be tested, or indicates that the test strategy is not matched with the current intelligent device to be tested, or indicates that the network state of the current router device is unstable and cannot be reconnected successfully, and the test strategy can be adjusted.
It can be understood that the reconnection failure times corresponding to different test strategies are the same, that is, if it is detected that the number of times of failure of the test result corresponding to the current test strategy reaches a first preset time threshold, the current test strategy needs to be adjusted to continue testing the device to be tested based on the adjusted test strategy. ,
in order to further verify whether the current intelligent device to be tested can be reconnected successfully, the test strategy corresponding to the current intelligent device to be tested can be adjusted, so that the networking test can be performed on the intelligent device to be tested based on the adjusted test strategy.
In this embodiment, adjusting the test policy corresponding to the current intelligent device to be tested includes: and lengthening the switch working period in the test strategy.
It can be understood that, in the practical application process, due to the short working period of the switch, for example, the short duration of the router device in the networking state, the performance of the intelligent device to be tested is poor, so that the timeliness of connecting to the network is poor, and the problem of unsuccessful test result is caused. If the router device is in the networking state for a long time, the current intelligent device to be tested can be successfully networked, and at this time, the test strategy can be adjusted, for example, the switching duty cycle in the test strategy is adjusted to be long, that is, the router device is in the networking state for a long time.
That is, to avoid the problem that the networking test result is inaccurate due to the test period in the test strategy, the switching duty cycle in the test strategy may be dynamically adjusted, and optionally, the switching duty cycle may be increased, for example, the original switching duty cycle may be increased from 5S to 10S. And continuously carrying out networking test on the current intelligent equipment to be tested based on the adjusted test strategy.
It should be noted that, if it is detected that the adjustment times of the test policy reaches the preset adjustment time threshold and the network connection times of the intelligent device to be tested does not reach the third time threshold, it is determined that the current network connection test of the intelligent device to be tested fails, and the current network connection test of the intelligent device to be tested may be prompted.
Optionally, if it is detected that the adjustment times corresponding to the test policy reach a third preset time threshold, it is determined that the networking test result of the current intelligent device to be tested is unqualified.
That is to say, in practical application, the test strategy may be adjusted many times to perform networking test on the to-be-tested intelligent device, if the adjusted number of times has reached the preset number threshold, it indicates that the network disconnection and reconnection test is still not successful after the multiple adjustments, it indicates that the network disconnection and reconnection function of the to-be-tested intelligent device is insensitive, that is, a certain fault may exist in the current to-be-tested intelligent device, and at this time, a user may be prompted, for example, if the current to-be-tested intelligent device is unqualified in the networking test, the re-inspection is required, and the like.
On the basis of the technical scheme, the method further comprises the following steps: if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold value, determining that the networking test of the current intelligent device to be tested is unqualified; and the second preset time threshold is greater than the first preset time threshold.
It can be understood that, if the current test result is that the network is not reconnected, one may be accumulated in the number of times of successful reconnection, and when the accumulated number reaches a second preset number threshold, optionally 500 times, it indicates that the probability of successful networking of the current intelligent device to be tested is low, and at this time, it may be determined that the current intelligent device to be tested does not pass the test, and the user may be prompted in a voice manner. The content of the prompt may be that the test result of the current intelligent device to be tested is failed, and the like.
According to the technical scheme of the embodiment of the invention, the power supply corresponding to the router equipment is connected to the intelligent switch, and the intelligent switch equipment is remotely controlled to operate the power supply of the router for a plurality of times for a long time, so that the test efficiency of the equipment disconnection and wifi reconnection network is improved.
The technical scheme of the embodiment of the invention can determine the test strategy corresponding to the equipment to be tested when the equipment to be tested is tested, control the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state, therefore, the networking test is carried out on the intelligent equipment to be tested based on the state of the router, and the problem that when the networking test is carried out on the equipment to be tested in the prior art is solved, the technical problems of high labor cost, low testing efficiency and certain error rate exist due to the need of manual participation, the testing strategy which can be matched with the intelligent device to be tested is realized, and then network connection test is carried out on the intelligent equipment to be tested based on the corresponding test strategy, so that the accuracy and convenience of the test are improved, and meanwhile, the technical effect of labor cost is also reduced.
Example two
Fig. 4 is a schematic structural diagram of an apparatus networking test device according to a second embodiment of the present invention, where the device includes: a test policy determination module 310, a router state determination module 320, and a test module 330.
The test strategy determining module 310 is configured to determine a test strategy corresponding to a current intelligent device to be tested; a router state determining module 320, configured to control a switch operating state of the intelligent switch based on the test policy, so as to adjust a router state of the router device based on the switch operating state; and the testing module 330 is configured to perform networking testing on the current intelligent device to be tested based on the router state.
On the basis of the above technical solution, before the testing policy determining module is configured to determine the testing policy corresponding to the current intelligent device to be tested, the testing policy determining module is further configured to: and establishing wireless communication between the current intelligent device to be tested and the router device so as to perform networking test on the current intelligent device to be tested when the routing state corresponding to the router device changes. On the basis of the above technical solutions, the test policy determining module is further configured to: determining a test strategy corresponding to the equipment performance of the current intelligent equipment to be tested from at least one historical test strategy according to the equipment performance of the current intelligent equipment to be tested; or the like, or, alternatively,
and determining the equipment performance of the current intelligent equipment to be tested, and generating the test strategy according to the equipment performance.
On the basis of the above technical solutions, the switch operating state includes a closed state and an open state, the routing state includes a network disconnection state and a network connection state, and the router state determining module includes:
the switch state determining unit is used for controlling the intelligent switch to be in a closed state and an open state periodically according to the switch working period in the test strategy;
and the routing state determining unit is used for controlling a power supply corresponding to the router equipment to supply power and cut off the power to the router equipment according to the closed state and the open state of the intelligent switch so as to adjust the router equipment to be in a network disconnection state and a network connection state.
On the basis of the technical scheme, the test module comprises:
a current test result determining unit, configured to obtain a reconnection test result of the current intelligent device to be tested if the router state is updated from a network disconnection state to a network connection state, and use the reconnection test result as a current test result;
and the adjusting unit is used for adjusting the test strategy corresponding to the current intelligent device to be tested if the current test result is inconsistent with a preset test result and the inconsistent times reach a first preset time threshold value, so as to perform networking test on the current intelligent device to be tested based on the adjusted test strategy.
On the basis of the above technical solutions, the test module is further configured to:
and lengthening the switch working period in the test strategy.
On the basis of the above technical solutions, the apparatus further includes: the prompting module is used for determining that the networking test of the intelligent equipment to be tested is unqualified if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold; and the second preset time threshold is greater than the first preset time threshold.
On the basis of the above technical solution, the apparatus further includes: and the first detection module is used for determining that the networking test result of the current intelligent equipment to be tested is unqualified if the adjustment times corresponding to the test strategy reaches a third preset time threshold.
The technical scheme of the embodiment of the invention can determine the test strategy corresponding to the equipment to be tested when the equipment to be tested is tested, control the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state, therefore, the networking test is carried out on the intelligent equipment to be tested based on the state of the router, and the problem that when the networking test is carried out on the equipment to be tested in the prior art is solved, the technical problems of high labor cost, low testing efficiency and certain error rate exist due to the need of manual participation, the testing strategy which can be matched with the intelligent device to be tested is realized, and then network connection test is carried out on the intelligent equipment to be tested based on the corresponding test strategy, so that the accuracy and convenience of the test are improved, and meanwhile, the technical effect of labor cost is also reduced.
The device networking test device provided by the embodiment of the invention can execute the device networking test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention. FIG. 5 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 5, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with electronic device 40, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 401 executes various functional applications and data processing, for example, implementing the device networking test method provided by the embodiment of the present invention, by executing the program stored in the system memory 402.
Example four
A fourth embodiment of the present invention further provides a storage medium containing computer-executable instructions for performing a device networking test method when executed by a computer processor.
The method comprises the following steps:
determining a test strategy corresponding to the current intelligent device to be tested;
controlling a switch working state of an intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and performing networking test on the current intelligent equipment to be tested based on the router state.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (11)

1. A method for device networking testing, comprising:
determining a test strategy corresponding to the current intelligent device to be tested;
controlling a switch working state of an intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and performing networking test on the current intelligent equipment to be tested based on the router state.
2. The method of claim 1, prior to said determining a test strategy corresponding to a current smart device under test, further comprising:
and establishing wireless communication between the current intelligent device to be tested and the router device so as to perform networking test on the current intelligent device to be tested when the routing state corresponding to the router device changes.
3. The method of claim 1, wherein determining the test strategy corresponding to the current smart device under test comprises:
determining a test strategy corresponding to the equipment performance of the current intelligent equipment to be tested from at least one historical test strategy according to the equipment performance of the current intelligent equipment to be tested; or the like, or, alternatively,
and determining the equipment performance of the current intelligent equipment to be tested, and generating the test strategy according to the equipment performance.
4. The method of claim 1, wherein the switch operating state comprises a closed state and an open state, wherein the routing state comprises a network disconnection state and a network connection state, and wherein controlling the switch operating state of the intelligent switch based on the test policy to adjust the router state of the router device based on the switch operating state comprises:
controlling the intelligent switch to be in a closed state or an open state periodically according to the switch working period in the test strategy;
and controlling a power supply corresponding to the router equipment to supply power or cut off power to the router equipment according to the closed state or the open state of the intelligent switch so as to adjust the router equipment to be in a networking state or a disconnection state.
5. The method of claim 1, wherein the performing networking test on the current smart device to be tested based on the router status comprises:
if the state of the router is updated to the networking state from the disconnection state, acquiring a reconnection test result of the current intelligent device to be tested, and taking the reconnection test result as a current test result;
and if the current test result is inconsistent with a preset test result and the inconsistent times reach a first preset time threshold, adjusting the test strategy corresponding to the current intelligent device to be tested so as to perform networking test on the current intelligent device to be tested based on the adjusted test strategy.
6. The method of claim 5, wherein the adjusting the test strategy corresponding to the current smart device under test comprises:
and lengthening the switch working period in the test strategy.
7. The method of claim 5, further comprising:
if the current test result is inconsistent with the preset test result and the inconsistent times reach a second preset time threshold value, determining that the networking test of the current intelligent device to be tested is unqualified;
and the second preset time threshold is greater than the first preset time threshold.
8. The method of claim 5, further comprising:
and if the adjustment times corresponding to the test strategy reach a third preset time threshold value, determining that the networking test result of the current intelligent device to be tested is unqualified.
9. An apparatus networking test device, comprising:
a test strategy determination module for determining the test strategy corresponding to the current intelligent device to be tested
The router state determining module is used for controlling the switch working state of the intelligent switch based on the test strategy so as to adjust the router state of the router equipment based on the switch working state;
and the testing module is used for carrying out networking test on the current intelligent equipment to be tested based on the router state.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the device networking test method of any of claims 1-8.
11. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the device networking test method according to any one of claims 1 to 8.
CN202110882467.3A 2021-08-02 2021-08-02 Device networking test method and device, electronic device and storage medium Active CN113612659B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110882467.3A CN113612659B (en) 2021-08-02 2021-08-02 Device networking test method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110882467.3A CN113612659B (en) 2021-08-02 2021-08-02 Device networking test method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN113612659A true CN113612659A (en) 2021-11-05
CN113612659B CN113612659B (en) 2023-05-12

Family

ID=78306529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110882467.3A Active CN113612659B (en) 2021-08-02 2021-08-02 Device networking test method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN113612659B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115394071A (en) * 2022-07-11 2022-11-25 佛山市厦欣科技有限公司 WIFI module production control method for air conditioner

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410549A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Test system and method of router
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN106357477A (en) * 2016-09-26 2017-01-25 美的智慧家居科技有限公司 Distribution network test method and device
CN111885679A (en) * 2020-07-29 2020-11-03 宁波方太厨具有限公司 Distribution network testing method and system of Internet of things equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410549A (en) * 2014-12-10 2015-03-11 上海斐讯数据通信技术有限公司 Test system and method of router
CN105337807A (en) * 2015-11-30 2016-02-17 上海斐讯数据通信技术有限公司 Router testing system and method
CN106357477A (en) * 2016-09-26 2017-01-25 美的智慧家居科技有限公司 Distribution network test method and device
CN111885679A (en) * 2020-07-29 2020-11-03 宁波方太厨具有限公司 Distribution network testing method and system of Internet of things equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113612659B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN102831894B (en) Command processing method, command processing device and command processing system
CN111045901B (en) Container monitoring method and device, storage medium and electronic equipment
WO2022127504A1 (en) Network element management method and apparatus, and storage medium
CN110708733A (en) Network connection control method and device, storage medium and electronic equipment
US11398233B2 (en) Smart service method, apparatus and device
CN107635010A (en) Traffic scheduling method, device, computer-readable recording medium and electronic equipment
CN111954240A (en) Network fault processing method and device and electronic equipment
CN114157701A (en) Task testing method, device, equipment and storage medium
CN109683964A (en) Bios software debugging control program, system and server
CN113612659B (en) Device networking test method and device, electronic device and storage medium
CN113012695B (en) Intelligent control method and device, electronic equipment and computer readable storage medium
CN113407469B (en) Parameter configuration method and device, storage medium and electronic device
CN113609027A (en) ARM cloud server testing method and device, electronic equipment and storage medium
CN113067769A (en) Router restarting method, device, equipment and storage medium
CN111324364A (en) Method, device, equipment and storage medium for equipment management
CN105163336A (en) Method and system for optimizing stability of wireless network
CN112994934B (en) Data interaction method, device and system
US11729266B2 (en) Method and device for preventing data misdeletion, storage medium, and product
CN113453376A (en) Network configuration method, related device, equipment and storage medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN113327602A (en) Method and device for speech recognition, electronic equipment and readable storage medium
CN112217718A (en) Service processing method, device, equipment and storage medium
CN110996374B (en) Wireless network control method, device, equipment and medium
CN110716915A (en) Method and device for operating database, electronic equipment and storage medium
CN114338525B (en) Automatic route aggregation method and device, electronic equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant after: Jingdong Technology Information Technology Co.,Ltd.

Address before: 601, 6 / F, building 2, No. 18, Kechuang 11th Street, Daxing District, Beijing, 100176

Applicant before: Jingdong Shuke Haiyi Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant