Claims
- 1. In a computer system, a method for self testing operation of a graphical user interface, the method comprising:
- (a) creating for the graphical user interface at least one model for testing user interface elements, each said at least one model being constructed from a set of generic objects representing basic user interface elements;
- (b) providing each model a link to its user interface element;
- (c) storing for each model a set of expected characteristics that its user interface element is to exhibit, including expected characteristics that each user interface element is to exhibit when invoked by a user;
- (d) self testing at least one of the user interface elements present in the graphical user interface, by performing for each user interface element to be self tested:
- (1) automatically simulating for the user interface element an action by the user which invokes the user interface element and observing characteristics for the user interface element which are exhibited upon invocation;
- (2) comparing the observed characteristics with the expected characteristics specified in the model linked to the user interface element; and
- (e) if the observed characteristics differ from the expected characteristics, reporting the difference.
- 2. The method of claim 1, further comprising:
- (f) providing each model with a set of methods for simulating operation of its user interface element; and
- (g) simulating runtime operation of the graphical user interface by invoking methods for selected ones of the user interface elements.
- 3. The method of 2, wherein step (d) includes:
- providing a test script, said test script having high-level commands for specifying user interface elements which are to be explicitly tested in a particular sequence.
- 4. The method of 3, wherein said high-level commands include a general format of:
- �object!. �action!
- where �object! specifies a user interface element and �action! specifies a simulated operation for the object.
- 5. The method of 2, wherein step (d) includes:
- providing a test script, said test script having a high-level command for asking all user interface element to test themselves in turn.
- 6. The method of claim 1, wherein specific user interface elements include selected ones of a menu, a toolbar, a dialog, a client-area window, and a status line.
- 7. The method of claim 1, wherein specific user interface elements include selected ones of push buttons, checkboxes, and listboxes.
- 8. The method of claim 1, wherein step (d) includes:
- determining all user interface elements present for which a model is available for self testing.
- 9. The method of claim 8, wherein simulated actions in the system include input from a user input device.
- 10. The method of claim 9, wherein said input from a user input device includes input from a selected one of a keyboard device and mouse device.
Parent Case Info
The present application is a continuation application of application Ser. No. 08/140,904, filed Oct. 21, 1993, now U.S. Pat. No. 5,475,843, which is a continuation-in-part of application Ser. No. 07/970,724, filed Nov. 2, 1992, now U.S. Pat. No. 5,432,940.
US Referenced Citations (14)
Foreign Referenced Citations (1)
Number |
Date |
Country |
0352908 |
Jan 1990 |
EPX |
Continuations (1)
|
Number |
Date |
Country |
Parent |
140904 |
Oct 1993 |
|
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
970724 |
Nov 1992 |
|