1. Technical Field
Embodiments of the present disclosure relate to test management technology, and particularly to an electronic device and a method for managing test items of an object.
2. Description of Related Art
During a testing procedure, if test items of an unit under test (UUT) (e.g. an object) indicate failure, a detailed report needs to be provided regarding the failure according to a system event log (SEL) and manual observation of the whole testing procedure.
However, if one test item takes a long time (e.g. one or more days), it is difficult to monitor the whole testing procedure due to the length of time involved. Furthermore, when a test item indicates failure, the failure can only be analyzed by looking at the SEL, without graphical data of the testing procedure. An Internet Protocol (IP) camera or a charge-coupled device (CCD) can be used to record test information. However, reviewing all of the recorded test information to find out the reasons for a single failure is inefficient and inconvenient.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. 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 unit, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in firmware unit, such as in an EPROM. The modules described herein may be implemented as either software 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 may include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The management system 200 performs a testing procedure on the test items of the object 1. The testing procedure defines a sequence of steps for testing the test items.
Once the testing procedure on one test item is finished, the management system 200 obtains test states of the finished test item, and records the test states in the state list. The test states are states of the finished test item generated by the testing procedure, and include normal and abnormal. The management system 200 further analyzes whether the finished test item of the object 1 is abnormal (where “abnormal” indicates a failure, or test duration outside a preset duration) according to the test states of the finished test item, and marks an abnormal test item with a time index in the state list.
The storage system 20 may be a memory (e.g., random access memory, flash memory, hard disk drive) of the electronic device 2. The processor 22 executes one or more computerized codes and other applications of the electronic device 2 to provide functions of the management system 200.
In step S100, the setting module 2000 presets test parameters, list parameters and a duration for each of the test items. The test parameters include a plurality of predetermined test items for testing the object 1, for example, “Item 1”, “Item 2” . . . and
“Item 6” shown in
In step S102, the recording module 2002 perform a testing procedure on the test items of the object 1 according to the test parameters, and records test states of a test item in the state list when the testing procedure on the test item is finished. The testing procedure defines a sequence of steps for testing the test items. The recording module 2002 further stores images of the state list of the finished test item that displayed on the display screen 24 to the storage system 20. The state list includes a plurality of information boxes or cells that store the test states and execution states of the test items. The test states of the finished test item include a test result of the finished test item and test duration of the finished test item. In one embodiment, the recording module 2002 further marks test states of previous finished test items and a test item that has started testing. The recording module 2002 marks the test states by marking the cells in the state list with a preset color or a preset icon.
As shown in
The third row represents an execution state of each of the test items. The execution state may be finished, executing, or pending execution. The fourth row and the fifth row represent test duration of the finished test item. The fourth row represents a digital number in tens place of the test duration, while the fifth row represents a digital number in ones place of the test duration.
Accordingly, if the recording module 2002 records cells in the state list as shown in
In step S104, the first comparison module 2004 obtains a test result of the finished test item by comparing the state list with a standard list stored in the storage system 20, and determines whether the test state of the finished test item is normal according to the obtained test result. If the test result of the finished test item is success, the test state of the finished test item is determined to be normal, and step S106 is implemented. If the test result of the finished test item is failure, the test state of the finished test item is determined to be abnormal, and step S108 is implemented.
In one embodiment, the standard list has the same layout and the same size of cells as the state list, but none of the cells in the standard list are marked. The information in each cell of the standard list is the same type of information as that shown by the state list. Therefore, according to different parts (e.g. marked cells) between the state list and the standard list, the information represented by the different parts (e.g. test result and test duration) can be determined.
In step S106, the second comparison module 2008 obtains the test duration of the finished test item from the state list, and determines whether the test duration exceeds the preset duration of the finished test item. If the test duration exceeds the preset duration of the finished test item, step S108 is implemented. If the test duration does not exceed the preset duration of the finished test item, step S112 is implemented.
In step S108, the index module 2006 marks the finished test item with a time index in the state list. The time index can be obtained according to a system time of the electronic device 2. After the test of the object 1 is finished, images of an abnormal test item can be found from the storage system 20 according to the time index of the abnormal test item. The abnormal test item is the test item that the test state is abnormal, or the test state is normal but the test duration exceeds the preset duration of the test item.
In step S110, the display module 2010 displays a failure message of the finished test item and the name of the finished test item with the time index on the display screen 24.
In step S112, the display module 2010 displays a successful message of the finished test item on the display screen 24.
All of the processes described above may be embodied in, and be fully automated via, functional code modules executed by one or more general-purpose 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 described embodiments are merely possible examples of implementations, set forth for a clear understanding of the principles of the present disclosure. Many variations and modifications may be made without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the described inventive embodiments, and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2012103455673 | Sep 2012 | CN | national |