Method and system for testing graphical user interface programs
First Claim
1. A method executable in a computer system for testing a graphical user interface program, the program including a first component and a second component, the computer system including a processor, a memory, and a mechanism for communicating between the processor and the memory, the memory including the program and a test function component, the method comprising the steps of:
- initiating execution of a test function from the test function component;
in response to execution of the test function, directly initiating execution of the first component;
capturing data produced by the first component; and
determining whether the captured data indicates that the first component is performing properly,whereby execution of the first component is not initiated by the second component in response to the execution of the test function.
1 Assignment
0 Petitions
Accused Products
Abstract
In a preferred embodiment, the present invention provides an improved method and system for testing a graphical user interface program. The preferred embodiment provides improved performance over prior methods because it decouples the testing of an program'"'"'s engine component from the testing of its GUI component. The preferred method begins the testing process by invoking test functions that send data to the program'"'"'s engine component. The data simulates user action on the graphical user interface of the program. In response to receiving the data, the engine component processes the simulated user action as if it had been sent from the graphical user interface component. The preferred method captures the results of this processing and uses the results to determine whether the engine component is performing properly. By testing the engine component without invoking the graphical user interface component, the preferred embodiment reduces the overall time spent testing the GUI program and allows the testing of the program to begin at an earlier point in the development process than had earlier been possible.
-
Citations
19 Claims
-
1. A method executable in a computer system for testing a graphical user interface program, the program including a first component and a second component, the computer system including a processor, a memory, and a mechanism for communicating between the processor and the memory, the memory including the program and a test function component, the method comprising the steps of:
-
initiating execution of a test function from the test function component; in response to execution of the test function, directly initiating execution of the first component; capturing data produced by the first component; and determining whether the captured data indicates that the first component is performing properly, whereby execution of the first component is not initiated by the second component in response to the execution of the test function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A method executable in a computer system for testing a graphical user interface program, the program including an engine component and a graphical user interface component, the computer system including a display device, a processor, and a memory, the memory including the program and a test function component, the method comprising the steps of:
-
selecting from a test script, a request to initiate execution of at least one test function from the test function component; sending the request to the program; in response to receiving the request, initiating execution of the test function identified in the request; in response to execution of the test function, initiating execution of the graphical user interface component; capturing data produced by the graphical user interface component; and determining whether the captured data indicates that the graphical user interface component is performing properly, whereby the graphical user interface component is tested without initiating execution of the engine component.
-
-
12. A method executable in a computer system for testing a graphical user interface program, the program including a first component and a second component, the computer system including a processor, a memory, and a mechanism for communicating between the processor and the memory, the memory including the program and a test function component, the method comprising the steps of:
-
providing a first mechanism for initiating execution of a test function from the test function component; providing a second mechanism, responsive to execution of the test function, for directly initiating execution of the first component; providing a third mechanism for capturing data produced by the first component; and providing a fourth mechanism for determining whether the captured data indicates that the first component is performing properly, whereby execution of the first component is not initiated by the second component in response to the execution of the test function. - View Dependent Claims (13)
-
-
14. A method executable in a computer system for testing a graphical user interface program, the program including an engine component and a graphical user interface component, the computer system including a display device, a processor, and a memory, the memory including the program and a test function component, the method comprising the steps of:
-
providing a first mechanism for selecting from a test script, a request to initiate execution of at least one test function from the test function component; providing a second mechanism for sending the request to the program; providing a third mechanism, responsive to receiving the request, for initiating execution of the test function identified in the request; providing a fourth mechanism, responsive to execution of the test function, for initiating execution of the graphical user interface component; providing a fifth mechanism for capturing data produced by the graphical user interface component; and providing a sixth mechanism for determining whether the captured data indicates that the graphical user interface component is performing properly, whereby the graphical user interface component is tested without initiating execution of the engine component.
-
-
15. A computer system for testing a graphical user interface program, the program including a first component and a second component, the computer system including a processor, a memory, and a mechanism for communicating between the processor and the memory, the memory including the program and a test function component, the computer system comprising:
-
a first program mechanism configured to initiate execution of a test function from the test function component; a second program mechanism, responsive to execution of the test function and configured to directly initiate execution of the first component; a third program mechanism configured to capture data produced by the first component; and a fourth program mechanism configured to determine whether the captured data indicates that the first component is performing properly, whereby execution of the first component is not initiated by the second component in response to execution of the test function.
-
-
16. A computer system for testing a graphical user interface program, the program including an engine component and a graphical user interface component, the computer system including a display device, a processor, and a memory, the memory including the program and a test function component, the computer system comprising:
-
a first program mechanism configured to select from a test script, a request to initiate execution of at least one test function from the test function component; a second program mechanism configured to send the request to the program; a third program mechanism responsive to receiving the request and configured to initiate execution of the test function identified in the request; a fourth program mechanism responsive to execution of the test function and configured to initiate execution of the graphical user interface component; a fifth program mechanism configured to capture data produced by the graphical user interface component; and a sixth program mechanism configured to determine whether the captured data indicates that the graphical user interface component is performing properly, whereby the graphical user interface component is tested without initiating execution of the engine component.
-
-
17. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform method steps for testing a graphical user interface program, the program storage device including an engine component, a graphical user interface component, and a test function component, the method comprising the steps of:
-
initiating execution of a test function from the test function component; in response to execution of the test function, directly initiating execution of the engine component; capturing data produced by the engine component; and determining whether the captured data indicates that the engine component is performing properly, whereby execution of the engine component is not initiated by the graphical user interface component. - View Dependent Claims (18)
-
-
19. A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to perform method steps for testing a graphical user interface program, the program storage device including an engine component, a graphical user interface component, and a test function component, the method comprising the steps of:
-
selecting from a test script, a request to initiate execution of at least one test function from the test function component; sending the request to the program; in response to receiving the request, initiating execution of the test function identified in the request; in response to execution of the test function, initiating execution of the graphical user interface component; capturing data produced by the graphical user interface component; and determining whether the captured data indicates that the graphical user interface component is performing properly, whereby the graphical user interface component is tested without initiating execution of the engine component.
-
Specification