1. Technical Field
Embodiments of the present disclosure relate to device testing, and particularly to a network device testing system and method.
2. Description of Related Art
Network and other service applications are often installed in a network device such as a webcam, providing various features of the network device. The features provided can be tested only when the network service application is implemented and network communication of the device established. Considerable time may be required for such operations. Furthermore, data packets are repeatedly sent to the network device to confirm the device's operational status, which can increase network traffic.
In general, the word “module,” as used hereinafter, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, for example, Java, C, or Assembly. One or more software instructions in the modules may be embedded in firmware. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
In one embodiment, the testing system 10 may include a test unit 14, a storage system 15, and at least one processor 16. The test unit 14 includes a number of function modules, as detailed in
The determination module 200 determines whether the network device 11 is turned on via the second port 13. In one embodiment, the network device 11 transmits a ready message to the testing system 10 via the second port 13 at startup. The determination module 200 determines that the network device 11 is turned on upon receipt of the ready message from the second port 13.
The login module 210 logs onto the network device 11 via the second port 13 when the network device 11 is turned on, at which time the testing system 10 can access and control the network device 11. In one embodiment, a user name and a password are pre-registered in the network device 11. The login module 210 uses the user name and the password to log onto the network device 11.
The implementing module 220 implements the network service application and obtains an IP address of the network device 11. The network service application enables communication with the testing system 10 via the first port 12. In one embodiment, the implementing module 220 directs the network device 11 to send a data packet to the testing system 10 via the first port 12. The implementing module 220 obtains the IP address of the network device 11 from the received data packet.
The test module 230 establishes a network connection between the network device 11 and the testing system 10 according to the obtained IP address. The test module 230 also implements additional service applications and tests features of the network device 11 provided by the additional service applications via the first port 12. For example, the test module 230 can implement a video service application and an audio service application of a webcam, and test the video and audio capturing features thereof. In one embodiment, the network device includes test items unrelated to particular service applications, such as performance tests of processor and memory of the network device 11. The test module 230 may further test such test items without implementing any additional service applications.
In block S301, the determination module 200 determines whether the network device 11 is turned on via the second port 13 of the network device 11. The network device 11 is ready to be tested when the network device 11 is turned on.
In block S302, the login module 210 logs onto the network device 11 via the second port 13 when the network device 11 is turned on. In one embodiment, the login module 210 uses a pre-registered user name and password to log onto the network device 11.
In block S303, the implementing module 220 implements a network service application of the network device 11 and obtains an IP address of the network device 11. As described previously, the network service application provides network communication for the network device 11. The obtained IP address makes the network device 11 accessible via the first port 12.
In block S304, the test module 230 establishes a network connection between the network device 11 and the testing system 10 according to the obtained IP address, and tests test items of the network device 11 unrelated to particular service applications via the first port 12. When testing the test items unrelated to particular service applications, the test module 230 implements no particular service applications. For example, the test module 230 tests the processor and memory of the network device 11 directly.
In block S305, the test module 230 implements additional service applications of the network device 11, and tests features of the network device 11 provided by the additional service applications via the first port 12.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010160058.4 | Apr 2010 | CN | national |