1. Technical Field
Embodiments of the present disclosure relate to test systems and methods, and particularly to a computing device testing system and method.
2. Description of Related Art
A rack server is a computer dedicated as a server and designed to be installed in a framework called a rack. A single rack may contain a number of rack servers stacked one above the other to minimize required space. When testing a rack server, a user directly connects I/O devices (e.g., mouse, keyboard, and display) to the rack servers. However, it is inconvenient to directly connect I/O devices to each rack server in the rack. In addition, the use of multiple I/O devices will increase test cost.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of computer program instructions, written in a programming language, such as, JAVA, C, or assembly. One or more computer program instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either computer program and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard drive drives.
In this embodiment, the computing device 11 includes a first test unit 110, a test program 111, a first storage system 112, and a first processor 113. The control computer 12 includes a second test unit 120, a second storage system 121, a second processor 122, an input device 123, and a display device 124. The first storage system 112 and the second storage system 121 may be dedicated memories, such as EPROMs, hard disk drives (HDDs), or flash memories. In some embodiments, the first storage system 112 and the second storage system 121 may be external storage devices, such as external hard disks, storage cards, or data storage mediums.
In step S401, the first creation module 1100 creates a virtual network terminal and a first communication interface in the computing device 11. The second creation module 1200 creates a second communication interface in the control computer 12. The virtual network terminal is used as a network device to communicate with the control computer 12. In one embodiment, the first creation module 1100 creates the virtual network terminal in a kernel of an operating system of the computing device 11. The first communication interface and the second communication interface may be network sockets, which are used to communicate between the computing device 11 and the control computer 12. A network socket is an endpoint of an inter-process communication flow across a computer network.
In step S402, the first binding module 1101 binds the first communication interface to the second communication interface. The second binding module 1201 binds the second communication interface to the first communication interface. In one embodiment, communication parameters of each of the first communication interface and the second communication interface include a destination IP address, a source port number, and a destination port number. The first binding module 1101 sets the destination IP address of the first communication interface as an IP address of the control computer 12, and sets the destination port number of the first communication interface as the source port number of the second communication interface. The second binding module 1201 sets the destination IP address of the second communication interface as an IP address of the computing device 11, and sets the destination port number of the second communication interface as the source port number of the first communication interface.
In step S403, the direction module 1102 specifies that the test program 111 receives input information from the virtual network terminal and sends output information to the virtual network terminal. In this embodiment, the direction module 1102 further specifies that the computing device 11 sends boot information of the computing device 11 to the virtual network terminal. Therefore, if the computing device 11 fails to be booted, the boot information is outputted to the control computer 12 via the virtual network terminal, allowing the control computer 12 to diagnose boot errors in the computing device 11.
In step S404, the first connection module 1103 and the second connection module 1202 establishes a communication connection between the computing device 11 and the control computer 12 via the first communication interface and the second communication interface. In one embodiment, the first connection module 1103 sends a connection request to the control computer 12 via the first communication interface. In response to the connection request, the second connection module 1202 sends the communication parameters of the second communication interface to the computing device 11 via the second communication interface. The first connection module 1103 verifies the communication parameters of the second communication interface. If the communication parameters of the second communication interface are correct, the first connection module 1103 establishes the communication connection to the control computer 12.
In step S405, the control module 1203 sends a control command to the computing device 11. The test module 1104 receives the control command from the control computer 12. In response to the control command, the test module 1104 executes the test program 111 in the virtual network terminal to test the computing device 10.
In step S406, the control module 1203 receives input information required by the test program 111 from the input device 123 and sends the input information to the virtual network terminal The test module 1104 receives the input information from the virtual network terminal and passes the input information to the test program 111.
In step S407, the test module 1104 sends output information generated by the test program 111 to the virtual network terminal. The control module 1203 receives the output information from the virtual network terminal and displays the output information on the display device 124.
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 |
---|---|---|---|
2012105030678 | Nov 2012 | CN | national |