1. Technical Field
The present disclosure relates to switching systems, and particularly to a switching system with a testing device and an input device.
2. Description of Related Art
In computerized testing process, a plurality of testing programs will be executed to test different functions of the electronic device. The display windows of the testing programs are generally displayed in an overlapping manner. When switching the top-level working window, the user needs to manually switch from one window to the next for testing different functionalities of the electronic device. The user may need to switch windows using shortcuts formed with two or more combined buttons of a keyboard or clicking the mouse, which is inconvenient and time-consuming.
Therefore, there is room for improvement in the art.
Many aspects of the embodiments can be better understood with references to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout two views.
The input device 10 generates controlling signals in response to user's operation and transmits the controlling signals to the testing device 20. The input device 10 defines a plurality of buttons corresponding to different controlling signals when pressed. In one embodiment, the input device 10 can be a keyboard or scanning machine and so on.
The testing device 20 arranges all the working windows of the executing testing programs in an overlapping manner simultaneously. One of the working windows of the executing programs is an top-level working window. The testing device 20 receives the controlling signal from the input device 10 and switches the working window of the executing predetermined testing program to be the top-level working window corresponding to the received controlling signal. In the embodiment, the testing device 20 is a computer and communicates with the input device 10 in a wireless manner. The testing device 20 includes a displaying unit 21, a detecting unit 23, a determining unit 25, and a judging unit 27.
The displaying unit 21 displays all the working windows of the executing testing programs in an overlapping manner.
The detecting unit 23 detects whether a controlling signal from the input device 10 is received and generates a determining signal when a controlling signal from the input device 10 is received.
The determining unit 25 determines whether the predetermined testing program corresponding to the received controlling signal is executed according to the determining signal and generating a judging signal when the predetermined testing program corresponding to the received controlling signal is determined to be executed.
The judging unit 27 judges whether the working window of the predetermined testing program corresponding to the received controlling signal is the top-level working window according to the judging signal and switches the working window of the predetermined testing program corresponding to the received controlling signal to be the top-level working window when the working window of the predetermined testing program corresponding to the received controlling signal is not the top-level working window.
Referring to
In step S301, the display unit 21 displays all the working windows of the executing programs in an overlapping manner and the procedure goes to step S302.
In step S302, the input device 10 generates a controlling signal according to user's operation and transmits the controlling signal to the testing device 20. In the embodiments, the input device 10 defines a plurality of buttons corresponding to different controlling signals when being pressed. In one embodiment, the input device 10 can be keyboard or scanning machine and so on.
In step S303, the detecting unit 23 detects whether a controlling signal from the input device 10 is received. If a controlling signal from the input device 10 is received, the detecting unit 23 generates a determining signal and the procedure goes to step S304; if no controlling signal from the input device 10 is received, the procedure returns to step S301.
In step S304, the determining unit 25 determines whether the predetermined testing program corresponding to the received controlling signal is executed. In the embodiment, if the predetermined testing program corresponding to the received controlling signal is determined to be executed, the determining unit 25 generates a judging signal and the procedure goes to S305; if the predetermined testing program corresponding to the received controlling signal is not executed, step S304 is repeated.
In step S305, the judging unit 27 judges whether the working window of the predetermined testing program corresponding to the received controlling signal is the top-level working window according to the judging signal. In the embodiment if the working window of the predetermined testing program corresponding to the received controlling signal is not the top-level working window, the procedure goes to S306; if the working window of the predetermined testing program corresponding to the received controlling signal is the top-level working window, the procedure ends.
In step S306, the judging unit 27 switches the working window of the predetermined testing program corresponding to the received controlling signal to be the top-level working window.
As described, the testing device 20 switches the working window of the predetermined testing program corresponding to the received controlling signal by the pressed button of the input device 10 to be the top-level working window.
It is to be understood, however, that even though information and advantages of the present embodiments have been set forth in the foregoing description, together with details of the structures and functions of the present embodiments, the disclosure is illustrative only; and that changes may be made in detail, especially in matters of shape, size, and arrangement of parts within the principles of the present embodiments to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
Number | Date | Country | Kind |
---|---|---|---|
201110267030.5 | Sep 2011 | CN | national |