1. Technical Field
Embodiments of the present disclosure relate to measurement technology, and particularly to an electronic device and method for controlling a test process of the electronic device.
2. Description of Related Art
Measurement is an important phase in manufacturing and is closely related to product quality. In recent years, test programs have been used to test target objects automatically. However, in an operating system of a test computer, a priority of a system service program is higher than that of a system application program, and the priority of the system application program is higher than that of a user application program. Because the test program belongs to a user application program, the system service programs and the system application programs need to be loaded first before the test program is run in the test computer. That is to say, the test program cannot work until the system service programs and the system application programs are loaded, thus a test time is increased. Therefore, a more efficient method for controlling a test process of an electronic device is desired.
All of the processes described below may be embodied in, and fully automated via, functional code modules executed by one or more general purpose electronic devices or processors. The code modules may be stored in any type of non-transitory computer-readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory computer-readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The display device 20 is used to display test results of a target object to be tested of the electronic device 2, and the input device 22 may be a mouse or a keyboard used to input computer readable data. In one embodiment, the target object may be a memory, a CPU, a video card, an audio card or other PCI devices of the electronic device 2.
In block S1, a user sets a booting mode of a test program as a preemptible mode having a higher priority than a system application program of the electronic device 2. In one embodiment, preemptible mode is used to change a booting sequence of the test program. For example, the test program is installed in a user-defined service program, a priority of the user-defined service program is lower than a priority of a system service program, but is higher than a priority of a system application program. If the preemptible mode is selected, the test program is loaded to be executed by the at least one processor 25 before the system application program.
In block S2, the first booting module 202 invokes the system service programs from the storage device 23 when an operating system (OS) of the electronic device 2 is booted. For example, the system service program is a domain name system (DNS) installed in the electronic device 2.
In block S3, the first booting module 202 boots the user-defined service program, and loads the test program to test a target object of the electronic device 2 using the user-defined service program.
In block S4, the second booting module 203 boots the system application programs of the electronic device 2. For example, the system application programs include a network connection program, a timer program, and an alarm program in the OS of the electronic device 2.
In block S5, the third booting module 204 boots user application programs of the electronic device 2. For example, the user application program may be a web page browsing tool (e.g., IE 6.0) in the electronic device 2.
Because the test program is installed in the user-defined service program, the test program has the same priority as the user-defined service program. Thus, the test program is loaded before the system application programs and the user-defined application programs are loaded. That is to say, the test program starts to work as soon as the system service programs are booted, thus, a test speed of the target object is improved.
In other embodiments, the user may change the booting mode of the test program to a non-preemptible mode. If the non-preemptible mode is selected, the test program is loaded finally. That is to say, if the booting mode is changed to the non-preemptible mode, the system service programs are booted first, the system application programs are booted second, then the test program and the user application programs are booted finally. If the test is complete, an uninstall program is invoked from a preset dynamic link library (DLL) of the storage device 23, so as to close the service of the user-defined service program using the uninstall program. If the booting mode is changed back to the preemptible mode, the user-defined service program is rebooted to boot the test program in advance.
It should be emphasized that the above-described embodiments of the present disclosure, particularly, any embodiments, are merely possible examples of implementations, merely set forth for a clear understanding of the principles of the disclosure. Many variations and modifications may be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the present disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110073451.4 | Mar 2011 | CN | national |