Method and system for facilitating the automatic creation of test scripts
First Claim
1. A computer controlled method for facilitating testing of a software component within a computer system, said method comprising steps of:
- (a) receiving data entered into said computer system;
(b) retrieving context information within which said data was entered;
(c) invoking an interposed version of a first routine to examine said context information;
(d) invoking an original version of said first routine to process said data after step (c); and
(e) initiating, responsive to step (c), creation of a test script.
2 Assignments
0 Petitions
Accused Products
Abstract
The present invention provides a method and system for creating a test script. The invention begins processing when a user requests the automatic creation of a test script. When the user next enters data on a graphical user interface, the data is sent to a display server which manages the input and output on the graphical user interface. The display server creates an event corresponding to the type of input entered on the graphical user interface.
In order to examine the context within which the event occurred, the present invention interposes a new version of a routine into the system so that the new routine is called when the GUI program attempts to retrieve the event from the display server buffer. Interposing ensures that the new version of the routine will be invoked before the original version of the routine. The interposed version of the routine examines the event, extracts relevant information regarding the event, and sends the information back to a module which automatically creates the test script from the information. Next, the interposed version of the routine examines and saves information regarding the context within which the event occurs (e.g., saving information regarding the widget within which the user action took place).
109 Citations
21 Claims
-
1. A computer controlled method for facilitating testing of a software component within a computer system, said method comprising steps of:
-
(a) receiving data entered into said computer system; (b) retrieving context information within which said data was entered; (c) invoking an interposed version of a first routine to examine said context information; (d) invoking an original version of said first routine to process said data after step (c); and (e) initiating, responsive to step (c), creation of a test script. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer controlled method for facilitating the testing of a software component within a computer system, said method comprising steps of:
-
(a) receiving data entered using a first widget presented by a user interface of said computer system, said first widget selected from one or more widgets presented by said user interface; (b) retrieving attribute information regarding which of said one or more widgets presented by said user interface was used to enter said data; and (c) initiating creation of a test script responsive to step(b).
-
-
8. An apparatus having a central processing unit (CPU) and a memory coupled to said CPU for facilitating testing of a software component within a computer system, said apparatus comprises:
-
a data reception mechanism configured to receive data entered into said computer system; a context retrieval mechanism configured to retrieve context information within which said data was entered through the data reception mechanism; a first invocation mechanism configured to invoke an interposed version of a first routine to examine said context information; a second invocation mechanism configured to invoke an original version of said first routine to process said data after operation of the first invocation mechanism; and an initiation mechanism configured to initiate, responsive to the first invocation mechanism, creation of a test script. - View Dependent Claims (9, 10, 11, 12, 13)
-
-
14. An apparatus having a central processing unit (CPU) and a memory coupled to said CPU for facilitating the testing of a software component within a computer system, said apparatus comprises:
-
a data receiver mechanism configured to receive data entered using a first widget presented by a user interface of said computer system, said first widget selected from one or more widgets presented by said user interface; an attribute retrieval mechanism configured to retrieve attribute information regarding which of said one or more widgets presented by said user interface was used to enter said data; and an initiation mechanism configured to initiate creation of a test script responsive to the attribute retrieval mechanism.
-
-
15. A computer program product comprising
a computer usable medium having computer readable code embodied therein for facilitating testing of a software component within a computer system, said computer readable code comprising: -
computer readable program code configured to cause said computer to effect a data reception mechanism configured to receive data entered into said computer system; computer readable program code configured to cause said computer to effect a context retrieval mechanism configured to retrieve context information within which said data was entered through the data reception mechanism; computer readable program code configured to cause said computer to effect a first invocation mechanism configured to invoke an interposed version of a first routine to examine said context information; computer readable program code configured to cause said computer to effect a second invocation mechanism configured to invoke an original version of said first routine to process said data after operation of the first invocation mechanism; and computer readable program code configured to cause said computer to effect an initiation mechanism configured to initiate, responsive to the first invocation mechanism, creation of a test script. - View Dependent Claims (16, 17, 18, 19, 20)
-
-
21. A computer program product comprising:
-
a computer usable medium having computer readable code embodied therein for facilitating the testing of a software component within a computer system, said computer readable code comprising; computer readable program code configured to cause said computer to effect a data receiver mechanism configured to receive data entered using a first widget presented by a user interface of said computer system, said first widget selected from one or more widgets presented by said user interface; computer readable program code configured to cause said computer to effect an attribute retrieval mechanism configured to retrieve attribute information regarding which of said one or more widgets presented by said user interface was used to enter said data; and computer readable program code configured to cause said computer to effect an initiation mechanism configured to initiate creation of a test script responsive to the attribute retrieval mechanism.
-
Specification