摘要 |
<p>The present invention provides a method and device for intelligently processing an expected event in an automatic test. The method comprises the following steps: A: when an expected event occurs, acquiring handles of all possible next test objects; B: determining whether a cycle detection time exceeds a preset time limit, if yes, performing corresponding error handling, and otherwise, performing the step C; and C: according to the handles of the test objects, detecting eigenvalues of the test objects in a polling manner, and determining whether any one of the eigenvalues is in an operable state, if yes, a test script performing a next operation, and otherwise, returning to the step B. The present invention can implement an efficient automatic test in complex situations that, the rate of a test script and the response rate of a test object are asynchronous and a next test object is uncertain when an expected event occurs.</p> |