A system for developing tests of a system Under test (SUT) which includes a central processing unit (CPU), a screen and input apparatus. The system for developing tests includes a manipulation apparatus enabling an operator to manipulate, within a test workspace, a sequence of test script statements into a desired script, wherein the test script statements describe operator commands to the SUT and screen capture and verify operations and b) interactive execution apparatus for executing at least a portion of the desired script by providing the at least a portion of the desired script to the SUT thereby to operate the SUT as desired.

Patent
   5657438
Priority
Nov 27 1990
Filed
Oct 06 1994
Issued
Aug 12 1997
Expiry
Aug 12 2014
Assg.orig
Entity
Large
74
17
EXPIRED
18. A method for developing and executing test scripts of a system Under test (SUT), the method comprising the steps of:
holding and displaying a test script within a test workspace, said test script formed of human-readable test commands;
displaying an execution marker within said test workspace;
enabling an operator to move said execution marker to any test command within said script, said test command becoming a beginning command indicating the beginning of a test to be performed;
receiving said beginning command from said manipulation means; and
testing said SUT in accordance with said test script beginning at said beginning test command.
16. A system for developing and executing with test scripts of a system Under test (SUT), the system for developing and executing test scripts comprising:
an execution marker;
a test workspace for holding and displaying a test script formed of human-readable test commands and for displaying said execution marker;
manipulation means, operative on said test workspace, for enabling an operator to move said execution marker to any test command within said script, said test command becoming a beginning command indicating the beginning of a test to be performed; and
execution means for receiving said beginning command from said manipulation means and for testing said SUT in accordance with said test script beginning at said beginning test command.
10. A method for developing and executing test scripts of a system Under test (SUT), said SUT having a central processing unit (CPU) and an initial operating state, said method comprising the steps of:
holding and displaying a test script within a continually active test workspace, said test script formed of human-readable test commands;
enabling an operator to edit said test script within said test workspace and to indicate at least the beginning of a portion of said test script to be executed;
receiving said at least said beginning of said portion of said test script;
testing said SUT in accordance with said test commands within said portion; and
enabling said operator to at least a) start and stop execution of portions of said test script which are present before or after a previously executed portion and b) edit said test script at any time.
1. A system for developing and executing test scripts of a system Under test (SUT), said SUT having at least a central processing unit (CPU) and an initial operating state, said system for developing and executing test scripts comprising:
a test workspace for holding and displaying a test script formed of human-readable test commands;
manipulation means, operative on said test workspace, for enabling an operator to edit said test script and to indicate at least the beginning of a portion of said test script to be executed;
execution means for receiving at least said beginning of said portion of said test script and for testing said SUT in accordance with said test commands within said portion; and
a test manager, operating said manipulation and execution means, for enabling said operator to at least a) start and stop execution of portions of said test script which are present before or after a previously executed portion and b) edit said test script at any time.
2. A system according to claim 1 wherein said SUT includes a screen and input means and wherein said system also includes transformation means, activatable and closeable by said operator through said test manager, for transforming at least one of an operator command from said input means and a screen image visible on said screen to a corresponding higher level test command and for entering said test command into said test workspace.
3. A system according to claim 1 and wherein said manipulation means comprises editor means for editing said test commands and said execution means comprises interpreter means for causing at least a portion of said test script to be executed by said SUT without performing any preliminary processing on said portion of said script.
4. A system according to claim 3 wherein said editor means includes means for providing an execution marker indicating a currently executed test command and wherein said execution means includes means for indicating to said editor means to move said execution marker to a next test command to be executed.
5. A system according to claim 4 and wherein said editor means includes execution marker moving means enabling a user to move said execution marker to a desired next test command to be executed.
6. A system according to claim 1 and wherein said test commands comprise commands imitating operator input actions and commands for screen capture and verify operations.
7. A system according to claim 1 wherein said execution means includes debugger means for providing a user with a plurality of selectable debug conditions and for halting execution of said script when one of said debug conditions is met.
8. A system according to claim 7 wherein one of said debug conditions is `Break on Mismatch` which causes said debugger means to halt execution if a screen verification fails.
9. A system according to claim 1 and including means for aborting execution of a test and for returning to the test workspace.
11. A method according to claim 10 wherein said SUT includes a screen and input means and wherein said system also includes transformation means, activatable and closeable by said operator through said test manager, and wherein said method includes the step of transforming at least one of an operator command from said input means and a screen image visible on said screen to a corresponding higher level test command and for entering said test command into said test workspace.
12. A method according to claim 10 and wherein said first step of enabling includes the step of editing said test commands and wherein said step of executing comprises the step of causing at least a portion of said desired script to be executed by said SUT without performing any preliminary processing on said portion of said script.
13. A method according to claim 12 wherein said step of editing includes the step of providing an execution marker which indicates a currently executed test command and wherein said step of executing includes the step of moving said execution marker to a next test command to be executed.
14. A method according to claim 13 and wherein said step of editing includes the step of enabling a user to move said execution marked to a desired next test command to be executed.
15. A method according to claim 10 wherein said step of executing includes the steps of providing a user with a plurality of selectable debug conditions and halting execution of said script when one of said debug conditions is met.
17. A system according to claim 16 and wherein said execution means additionally comprises means for instructing said manipulation means to move said execution marker to the test command currently being executed by said execution means.
19. A method according to claim 18 and wherein said step of testing additionally comprises the step of moving said execution marker to the test command currently being executed by said step of testing.

This is a continuation of application Ser. No. 07/716,945 filed Jun. 18, 1991 which is a continuation-in-part of application Ser. No. 07/690,878 filed Apr. 23, 1991 which is a continuation-in-part of application Ser. No. 07/618,742 filed Nov. 27, 1990 (all now abandoned).

The following applications are applications of this application:

Ser. No. 08/298,357, now U.S. Pat. No. 5,511,185, titled "System For Automatic Testing Of Computer Software Having Output Synchronization And Capable Of Responding To Asynchronous Events", a continuation of Ser. No. 07/690,878, now abandoned, a continuation-in-part of Ser. No. 07/618,742, now abandoned.

Ser. No. 08/485,050, titled "A System For Tracking And Replicating The Operation Of A Cursor Manipulation Device", a divisional of Ser. No. 08/298,357, now U.S. Pat. No. 5,511,185, a continuation of Ser. No. 07/690,878, now abandoned, a continuation-in-part of Ser. No. 07/618,742, now abandoned.

PAC BACKGROUND OF THE INVENTION

Systems for testing the operation of a computer system are known in the art. They are typically used to compare the operation of an application before and after the application has been substantially changed.

To do this, the testing system, before the changes are made, typically captures input device events, such as from a mouse or a keyboard, which occur as an operator uses the System Under Test (SUT). It also typically captures the output to a screen as a result of the input device events. This process is known as "recording".

The captured data is stored until it is desired to replay the events, such as after the changes have been made, during which the monitor output is captured and compared to that which was captured in the earlier recording operation.

The data is typically stored as a series of characters, pixels, etc. This representation is not user-friendly and does not provide any convenient method for modifying the contents. As a result, every time the user application is modified, the operator must recreate the test.

Testing systems can also include a method by which tests can be written. This is typically performed via a Test Script Language (TSL) in which the operator prepares a script containing the operations he desires the SUT to perform, without having to capture the input device and screen events first. This process is known as "programming".

The Evaluator, manufactured by Elverex Limited of Limerick, Ireland, is a testing system which contains such a test script language. The programmed script has to be compiled before it can be used to run the SUT. Also, the Evaluator provides a high level description of that which has occurred during a recording session. This description is in a language different from the programmable test script language.

CheckMate, manufactured by Pilot Research Associates of Vienna, Va., U.S.A., uses the C programming language as the recording language as well as the language in which scripts are programmed. Similar to the Evaluator, the script has to be compiled first.

It is therefore an object of the present invention to provide a system for developing tests which attempts to overcome the deficiencies of the prior art.

There is therefore provided, in accordance with an embodiment of the present invention, a system for developing tests of a System Under Test (SUT) which includes a Central Processing Unit (CPU), a screen and input apparatus. The system for developing tests includes a) manipulation apparatus enabling an operator to manipulate, within a test workspace, a sequence of test script statements into a desired script, wherein the test script statements describe operator commands to the SUT and screen capture and verify operations and b) interactive execution apparatus for executing at least a portion of the desired script by providing the at least a portion of the desired script to the SUT thereby to operate the SUT as desired.

Additionally, in accordance with an embodiment of the present invention, the system of the present invention also includes transformation apparatus for transforming at least one of an operator command from the input apparatus and a screen image visible on the screen to a corresponding higher level test script statement and for entering the test script statement into the test workspace.

Further, in accordance with an embodiment of the present invention, the manipulation apparatus includes editor apparatus for editing the test script statements and the execution apparatus includes interpreter apparatus for causing at least a portion of the desired script to be executed by the SUT without performing any preliminary processing on the portion of the script.

Still further, in accordance with an embodiment of the present invention, the system of the present invention also includes data capture and replay apparatus for capturing at one time and for providing to the transformation apparatus at least one of the operator command and the screen image, for replaying the operator command to the CPU in accordance with instructions from the execution apparatus and for verifying that the screen image is generally identical to a saved screen image.

Moreover, in accordance with an embodiment of the present invention, the test script statements include instructions to the SUT and instructions to the data capture and replay apparatus.

Additionally, in accordance with an embodiment of the present invention, the transformation apparatus operates in near real-time.

Furthermore, in accordance with an embodiment of the present invention, the execution apparatus includes debugger apparatus for providing a plurality of debug conditions and for halting execution of the script when one of the debug conditions is met. In accordance with an embodiment of the present invention, one of the debug conditions is `Break on Mismatch` which causes the debugger apparatus to halt execution if a screen verification fails.

Still further, in accordance with an embodiment of the present invention, the editor apparatus includes apparatus for providing an execution marker indicating a currently executed test script statement and the execution apparatus includes apparatus for indicating to the editor apparatus to move the execution marker to a next test script statement to be executed. The editor apparatus includes execution marker moving apparatus enabling a user to move the execution marker to a desired next test script statement to be executed.

Moreover, in accordance with an embodiment of the present invention, the system of the present invention also includes apparatus for aborting execution.

There is also provided, in accordance with an embodiment of the present invention, a method for developing tests of a System Under Test (SUT) which includes a Central Processing Unit (CPU), a screen and input apparatus. The method includes the steps of a) enabling an operator to manipulate, within a test workspace, a sequence of test script statements into a desired script, wherein the test script statements describe operator commands to the SUT and screen capture and verify operations and b) interactively executing at least a portion of the desired script by providing the at least a portion of the desired script to the SUT thereby to operate the SUT as desired.

Moreover, in accordance with an embodiment of the present invention, the method includes the steps of transforming at least one of an operator command from the input apparatus and a screen image visible on the screen to a corresponding higher level test script statement and entering the test script statement into the test workspace.

Additionally, in accordance with an embodiment of the present invention, the step of enabling includes the step of editing the test script statements and the step of executing includes the step of causing at least a portion of the desired script to be executed by the SUT without performing any preliminary processing on the portion of the script.

Further, in accordance with an embodiment of the present invention, the step of transforming includes the steps of capturing at one time at least one of the operator command and the screen image, replaying the operator command to the CPU and verifying that the screen image is generally identical to a saved screen image.

Still further, in accordance with an embodiment of the present invention, the step of transforming occurs in near real-time.

Moreover, in accordance with an embodiment of the present invention, the step of executing includes the steps of providing a plurality of debug conditions and halting execution of the script when one of the debug conditions is met.

Additionally, in accordance with an embodiment of the present invention, the step of editing includes the step of providing an execution marker which indicates a currently executed test script statement and the step of executing includes the step of moving the execution marker to a next test script statement to be executed.

Finally, in accordance with an embodiment of the present invention, the step of editing includes the step of enabling a user to move the execution marker to a desired next test script statement to be executed.

The present invention will be understood and appreciated more fully from the following detailed description taken in conjunction with the drawings in which:

FIG. 1 is a schematic illustration of the system for developing tests constructed and operative in accordance with the present invention.

Reference has been made in this specification to several appendices, labeled "Annex A" through "Annex D" which are included herein. Reference has also been made to a further appendix, which can be found as annex D of U.S. Pat. No. 5,511,185.

Reference is now made to FIG. 1 which schematically illustrates the system 10 of the present invention for developing tests of an SUT 12.

Minimally, a SUT 12 comprises a screen 14, such as on a monitor, a Central Processing Unit (CPU) 16, and at least one input device 18, such as a keyboard or a pointing device, such as a mouse, a track ball or a stylus.

The system 10 of the present invention typically comprises a Capture, Replay and Verify module (CRV) 20 for capturing both input events from input device 18 and images output to screen 14, during recording operations, for replaying input events to input device 18 during replay operations and for verifying that a captured screen appears as it previously appeared.

The system typically also includes a database 21 for storing the captured input events, screen images and other data which it is desired to store. For mouse or other pointing device operations, the database 21 also stores sequences of input events as "mouse tracks", tracks along which the locator, or pointing device icon, traveled.

An example CRV 20 is described in Assignee's, copending applications, U.S. Ser. No. 07/618,742 and Ser. No. 07/690,878, which became U.S. Pat. No. 5,511,185, both now abandoned, comprising specialized hardware and software to operate the hardware. Alternatively, the operations described therein can be performed in software alone.

The input events and the screen images are captured in the form of machine-readable digital data where the data is in the form of assembler-like commands comprising two parts, operation codes (OPCODES), such as KEY-- PRESS and CAPTURE-- SCREEN, and data relating to the OPCODE. The OPCODES describe the kind of action which occurred and the data contain information, such as the specific keys which were pressed.

The commands are provided to a test manager 22 which translates them to statements in a Test Script Language (TSL), a language resembling a high level programming language. The test manager 22 also enables the operator to edit and manipulate the TSL statements to provide a desired script describing the operations the operator desires that the SUT 12 perform. Furthermore, the test manager 22 executes the script, thereby causing the SUT 12 to operate.

The test manager 22 typically comprises a translator 24 for translating the commands from the CRV 20 to TSL statements, a rest workspace 26 for receiving and displaying the TSL statements, an editor 28 for enabling an operator to manipulate the TSL statements in the test workspace 26 to create desired script and an interpreter/debugger 30 for operating the SUT 12 via the CRV 20 in accordance with the script. The latter operation is known as "running" or "executing" the script.

Each of the translator 24, editor 28 and interpreter/debugger 30 communicates with the database 21.

Execution is typically performed in either the "replay" mode or the "verify" mode. In both modes, the test manager 22 provides commands to the CRV 29 and the CRV 29 provides the machine-readable digital data to the SUT 12. In the replay mode, the CRV 20 captures the output to the screen 14 according to an OPCODE CAPTURE-- SCREEN. In the verify mode, the CRV 20 captures the output to the screen 14, compares it to a screen image stored in database 21, in accordance with an OPCODE VERIFY-- SCREEN and provides the results to the interpreter/debugger 30.

During execution, the CRV 20 receives the commands from the interpreter/debugger 30 and transforms them into the machine-readable digital data needed by the input device 18 or, for screen capture or verify operations, respectively captures or verifies the output of the screen 14. It will be appreciated that during execution, no recording occurs.

The interpreter/debugger 30 and the translator 24 both have access to database 21 as necessary.

The interpreter/debugger 30 typically executes the script from a specified location in the script, marked by an execution marker, until the script finishes. It also has debugging features, such as executing one statement only, in an operation called "single step", or executing until a breakpoint is activated.

A breakpoint can be a condition related to the script, such as halting when the execution arrives at a specified TSL statement, or it can be any type of situation at which the operator desires to investigate the operation of the SUT 12. For example, a mismatch breakpoint can be set to occur when the VERIFY-- SCREEN operation discovers mismatches in the stored and captured screen images.

The execution marker is typically implemented by highlighting the current execution line. The marker can be moved to any line in the TSL script, as the operator desires, and execution will begin at the new location of the marker.

In accordance with the present invention, execution can be aborted at any time, as desired by the operator.

An operator typically will utilize the system 10 as follows: The operator will first operate the SUT 12 as desired while the test manager 22 records, in near real-time, the operations in the current test workspace 26 as a sequence of TSL statements.

If, for example, the operator moved a mouse to certain location, clicked the left mouse button and then typed the word "John" into a data entry form, the test workspace 26 might include in it the following sequence of TSL statements:

move-- locator-- abs(0,0);

move-- locator-- track(1);

mtype("<kLeft>)";

type ("John");

Since the sequence is in the test workspace 26 on which the editor 28 operates, the operator can, in accordance with the present invention, modify the sequence as he desires, including commenting the script, modifying the recorded characters or keys, placing the sequence, or parts of it, within a loop thereby to cause it to repeat a desired number of times. He can also add conditional statements and/or other operations not already recorded.

An exemplary modification of the above script might be:

______________________________________
for (i=0; i<5; i++){
move-- locator-- abs(0,0);
/*Move mouse to appropriate
move-- locator-- track(1);
point on screen */
mtype("<kLeft>)"; /*Click on left mouse button */
/*Data entry form opened - check it */
status = check-- screen("form1");
if (status!=SUCCESS)
treturn;
type("Jon<kReturn>");
/*Enter data and submit form */
______________________________________

In accordance with the present invention, the script language is similar to the C programming language, as described in more detail hereinbelow. The /*, */ bracket comments regarding the operations performed and treturn causes the testing to stop and control to be returned to editor 28. Move-- locator-- track(1) moves the locator along the track number 1 as stored in database 21.

The statement check-- screen("form1") commands the CRV 20 to perform a screen capture or a screen comparison with the stored screen "form1". The choice of operations (capture or comparison) depends on the mode of operation, replay or verify, that the operator has chosen.

At any time during the editing, the operator can invoke the interpreter/debugger 30 to perform the statement listed at the current location of an execution marker. By "performing the operation" it is meant providing the machine-readable data to the SUT 12, via CRV 20, and, if selected, capturing the response of the SUT 12 to the machine-readable data.

Because the interpreter/debugger 30 interprets the TSL script, there is no compilation of the TSL script or linkage to a library, such as in the prior art.

The execution can be of Just the statement listed at the current location of the execution marker, in single-step mode, or of a group of statements beginning at the current location of the execution marker.

In accordance with a preferred embodiment of the present invention, when the interpreter/debugger 30 finishes, it returns control to the editor 28. Thus, the operator can directly test the response of the SUT 12 to certain sequences of TSL statements, without leaving the editor 28.

In accordance with the present invention, the test manager 22 is implemented with a graphics user interface where the various operations are accessible via menus. By selecting the appropriate menu, the operator can create, edit, replay, verify and display a script in the test workspace 26. If the operator chooses to record the operations of the SUT 12, the operations are provided to the test workspace 26, as described hereinabove. At any point, the operator can stop the recording and begin modifying the recorded script. At any time during the modification, the operator can execute any portion of the script by placing the execution marker at the desired location and issuing a Run command.

The construction and operation of each of the translator 24, the editor 28 and the interpreter/debugger 30 will now be described in detail hereinbelow.

The elements of CRV 20 pertinent to this invention will be described hereinbelow. The remaining details are described in detail in the above-mentioned applications, U.S. Ser. No. 07/618,742 and 07/690,878, which became U.S. Pat. No. 5,511,185.

During a record operation, the CRV 20 provides to the test manager 22 commands containing OPCODES describing the action of the SUT 12. During a replay operation, the test manager 22 provides OPCODES to the CRV 20, either to be passed, together with the appropriate data, to the SUT 12 or to be used as instructions to the CRV 20. The behavior of the CRV 20 is defined by the following OPCODES, which are listed and defined in Table 1.

TABLE 1
______________________________________
OPCODE Descriptions
OPCODE Description
______________________________________
KEY-- PRESS
Press a key on a keyboard
KEY-- RELEASE
Release a key on a keyboard
MOUSE-- BUTTONS
Press/release buttons on a pointing
device
TIMING Wait a length of time
MOVE-- LOCATOR
Move the locator (icon) to a given
coordinate location (for Replay mode)
MOVE-- LOCATOR-- TRACK
Move locator along a given path. The
path coordinates are stored in the
database 21
GET-- LOCATOR-- POSI-
Return the current locator position on
TION the SUT screen
CAPTURE-- SCREEN
Capture the SUT screen image and save
it in the database 21 with a title
VERIFY-- SCREEN
Verify that the SUT screen image is
identical to the one saved in the data-
base.
SOFTKEY A check-- screen key is pressed. The
check-- screen key is a key on the SUT
which has been designated to indicate,
during recording, the operator's request
that a check-- screen be performed.
SET-- RECORD
Start/Stop record mode in the CRV 20
ABORT Abort execution of current command
______________________________________

TSL is a programming language similar to the C programming language and based on the AWK programming language. It includes all of the functions of AWK as well as some functions added for the purposes of testing.

In the interest of conciseness and clarity, a description of the AWK functions and syntax of TSL will not be included. They can be found in the book The AWK Programming Language by A. V. Aho, B. W. Kerninghan and P. J. Weinberger, Addison-Wesley, 1988, which book is incorporated herein by reference. Appendix A of the above-referenced book includes a full description of the AWK syntax.

In accordance with the present invention, a few new syntax structures and some new functions were added to the AWK language to create the TSL language. The new syntax structures are as follows:

call id (opt-- exp-- list);

treturn

`Call id` calls to another test whose name is `id` and which has the arguments `opt-- exp-- list`. `Call id` operates as a function call where the `function` is a test script rather than an algorithmic operation. `Treturn` returns control from the middle of a called test to the test which called it in a manner similar to the function `return` which is operative for algorithmic operations.

The new functions are as follows:

move-- locator-- abs (x,y)

move-- locator-- tel (dx,dy)

move-- locator-- track (track-- number)

get-- x ()

get-- y ()

check-- screen (screen-- name, delta-- time)

pause (string)

get-- time ()

wait (time)

type (type-string)

mtype (type-string)

Move-- locator-- abs and move-- locator-- rel move the locator respectively to an absolute location (x,y) or a relative location (dx,dy) on the screen 14. Move-- locator-- track moves the locator along a given path. The path coordinates are saved in database 21. Get-- x and get-- y return the current locator position on the screen 14.

Check screen waits a given length of time. If replay mode has been selected, check-- screen sends a CAPTURE-- SCREEN command to the CRV 20 after the wait. If verify mode has been selected, the check-- screen sends a VERIFY-- SCREEN command to the CRV 20 and awaits the results. If the verification failed and a mismatch breakpoint is active, then check-- screen halts execution of the test.

Pause stops execution of the test and displays the message `string` in a dialog box. After the operator indicates that he accepts the message, typically by pressing ok on the dialog box, execution is continued.

Get-- time returns the current system time. Wait waits the given length of time and then continues execution.

Type and mtype send the string type-- string to the SUT, respectively imitating the operation of the keyboard or the buttons of the pointing device.

Type-- string is a possibly null list of elements whose formal syntax is given in Annex A, where each element of type-- string is defined by a YACC-formatted syntax. YACC is a compiler compiler and is described in the article by S. C. Johnson, "YACC--Yet Another Compiler Compiler", Computing Science Technical Report #32, AT&T--Bell Laboratories, Murray Hill, N.J. 1975, which article is incorporated herein by reference.

The following is an informal discussion of the syntax of type-- string.

If an element in type-- string is an alphabetic character, then the character will be provided.

Key names that require more than one character, such as the shift or return keys, are listed between greater than and less than characters, beginning with a `k`. For example, <kShift> and <kReturn>.

Desired timings between keystrokes are indicated by a `t` and an integer value indicating the number of seconds to wait, located between greater than and less than characters. For example, <t25>.

A key sequence of more than one key pressed at once is indicated by a `-` between key strokes. For example, <kAlt-j> means to press the Alt character together with the `j` and <kAlt-kCtrl-kDel> means to press the characters Alt, Ctrl and Del at once.

To specify separate pressing and releasing of a key, the characters `-` for press and `+` for release are used. For example, <kCtrl>-<t20>y-<kCtrl>+y+ means to press and hold the Ctrl key, then press and hold the y key for 20 seconds then release the Ctrl key and then release the y key.

As mentioned hereinabove, the translator 24 receives the commands from the CRV 20 during a recording operation and translates them to TSL statements. The commands received are those whose OPCODES are KEY-- PRESS, KEY-- RELEASE, MOUSE-- BUTTONS, TIMING, MOVE-- LOCATOR-- TRACK and SOFTKEY. The translation for MOVE-- LOCATOR-- TRACK and SOFTKEY is generally straight forward. The translation for KEY-- PRESS, TIMING, MOUSE-- BUTTONS and KEY-- RELEASE is more complicated and involves the considerations discussed hereinabove with respect to the statements type and mtype.

For MOVE-- LOCATOR-- TRACK the translator 24 writes "move-- locator-- track(track-- number);" where `track-- number` is provided by the CRV 20.

For SOFTKEY, the translator writes "check-- screen (scrn-- i);" where i is incremented with each check-- screen operation in accordance with the current value of i as stored in the database 21. The translator 24 also sends a CAPTURE-- SCREEN command to the CRV 20 to capture the current image on the screen and to call it `scrn-- i`.

For keyboard keys, the translator 24 typically operates in one of two modes, `edited key` mode or `non-edited key` mode. Non-edited key mode causes the commands received from the CRV 20 to be written generally as they were received. In such a mode, `x-` indicates that the `x` key was pressed and `x+` indicates that the `x` key was released. For example, typing `Hello` on the SUT 12 will produce the following TSL statement:

type ("<kShift>-h-<kShift>+h+e-e+l-l+o-o+o-o+");

In edited mode, each `x-x+` is written as a single `x`, <kShift>x is translated to X and sequences such as <kAlt>-x<-kAlt>+x+ are translated to <kAlt-x>. The pressing of the CapsLock key causes the alphabetic keys, following it to be written as capital letters until the CapsLock key is pressed again.

For TIMING, the translator 24 writes "type (<tx>)" where x is the value associated with the TIMING OPCODE. If the TIMING OPCODE comes during a keyboard operation, translator 24 includes the label <tx> along with the other keys which are pressed. For example:

type ("HE<t25>LLO");

C-like pseudocode describing the operation of translator 24 is provided in Annex B.

As mentioned hereinabove, the interpreter/debugger 30 reads TSL statements in the test workspace 26 and executes them. Any non-testing TSL statements are executed by the interpreter/debugger and any testing TSL statements are sent for execution to the CRV 20. In addition, the interpreter/debugger 30 utilizes the editor 28 to display and move the execution marker.

Interpreting a programming language is a well-known technique and is described in detail in the books Compilers--Principles, Techniques and Tools by A. V. Aho, R. Sethi, and J. D. Ullman, Addison-Wesley, 1986 and The UNIX Programming Environment, by B. W. Kerninghah and R. Pike, Prentice-Hall, 1984. Both books are incorporated herein by reference. In the interest of conciseness, those operations of the interpreter/debugger 30 which are common to standard interpreters and debuggers will not be included herein. They are described in detail in the above referenced books.

The interpreter/debugger 30 was built using the YACC tool on the TSL syntax described hereinabove and including the debugging conditions of single-stepping and breakpoints. Pseudocode describing the operation of the interpreter/debugger 30, specifically with respect to the testing and debugging extensions of the present invention, is provided in Annex C.

The editor 28 provides the interpreter/debugger 30 with its input, which is the individual characters of the TSL statement at the execution marker. The interpreter/debugger 30 first checks if any of the debugging conditions have been selected and if they have, have they been met. If so, it responds accordingly.

Subsequently, the interpreter/debugger 30 interprets the TSL statement. The interpreter/debugger 30 executes standard AWK commands as described in the book The AWE Programming Language.

For the TSL statements call-- id and treturn, the interpreter/debugger 30 operates as described hereinabove and as listed, in pseudocode format, in Annex C.

For built-in functions, such as move-- locator-- track, type, sin, cos, etc., the interpreter/debugger 30 calls the appropriate function. For the standard AWK built-in functions, the interpreter/debugger 30 calls the AWK function. For the functions described hereinabove, the interpreter/debugger sends the appropriate command to the CRV 20 in accordance with the above description.

For the function check-- screen, the interpreter/debugger 30 first checks the selected system mode, either REPLAY or VERIFY, and accordingly sends the CAPTURE-- SCREEN or VERIFY-- SCREEN OPCODE. After the CRV 20 completes the operation, if the CRV 20 responds with an indication of a mismatch screen and the Mismatch breakpoint is active, a screen verification flag is set Which causes the interpreter/debugger Be to halt execution.

For the functions type and mtype, the interpreter/debugger 30 invokes a mini-interpreter (not shown) built with the YACC tool. The mini-interpreter operates according to the syntax provided in Annex A and in effect, performs the unraveling of the operations of the translator 24 with respect to the type and mtype functions. The output of the mini-interpreter is a sequence of KEY-- PRESS, KEY-- RELEASE, TIMING or MOUSE-- BUTTONS operations which are sent to the CRV 20.

The entirety of interactions with the test workspace 26 are handled via editor 28. In this manner, any modifications to the script which the operator makes will be incorporated when the interpreter/debugger 30 next executes the edited portion of the script.

The editor 28 and the graphics user interface in which it, the interpreter/debugger 30 and the translator 24 operate were built using PRESENTATION MANAGER, a commercially available user interface tool working under the OS/2 operating system. PRESENTATION MANAGER and OS/2 are software systems produced by Microsoft Corporation of the USA. How to program with OS/2 and PRESENTATION MANAGER is described in the books Programming in the OS/2 Presentation Manager by C. Petzold, Microsoft Press, 1989 and Microsoft OS/2 Programmer's Reference, Microsoft Press, 1989. Both books are incorporated herein by reference.

The editor 28 performs the standard editing functions which are known to those skilled in the art. In the interest of conciseness, the operation of the standard editing functions will not be described herein.

In addition, the editor 28 provides the following functions to the interpreter/debugger 30 and the translator 24:

______________________________________
get-- test-- script
Get a test script from a test database
of scripts stored in database 21 and
display the script in the test workspace
26.
write-- string
Write a given string on the test
workspace 26.
get-- next-- line
Get the next line from the test work-
space 26 (for the interpreter/debugger
30).
move-- exec-- marker
Move the execution marker to a given
line.
______________________________________

C-like pseudocode describing the operation of the above-described functions of editor 28 is provided in Annex D.

A software listing of the present invention is included in Annex D of Applicant's copending application, U.S. Ser. No. 07/690,878.

It will be appreciated by persons skilled in the art that the present invention is not limited to what has been particularly shown and described hereinabove. Rather the scope of the present invention is defined only by the claims which follow: ##SPC1##

Wygodny, Shlomo, Weinbaum, David, Zohar, Shahar, Azulay, Alex, Slonim, Yochanan

Patent Priority Assignee Title
10019346, Jan 31 2013 MICRO FOCUS LLC Generating software test script from video
10073760, Nov 06 2002 BMC Software Israel Ltd System and method for troubleshooting software configuration problems using application tracing
10951740, Nov 24 2008 JPMORGAN CHASE BANK, N.A. System and method for testing applications with a load tester and testing translator
11323354, Oct 09 2020 KEYSIGHT TECHNOLOGIES, INC. Methods, systems, and computer readable media for network testing using switch emulation
11381464, Nov 29 2019 Keysight Technologies, Inc Methods, systems, and computer readable media for implementing a generalized model for defining application state machines
11388081, Mar 30 2021 Keysight Technologies, Inc Methods, systems, and computer readable media for impairment testing using an impairment device
11398968, Jul 17 2018 Keysight Technologies, Inc Methods, systems, and computer readable media for testing virtualized network functions and related infrastructure
11405302, Mar 11 2021 Keysight Technologies, Inc Methods, systems, and computer readable media for network testing using configurable test infrastructure
11483227, Oct 13 2020 KEYSIGHT TECHNOLOGIES, INC. Methods, systems and computer readable media for active queue management
11483228, Jan 29 2021 Keysight Technologies, Inc Methods, systems, and computer readable media for network testing using an emulated data center environment
11729087, Dec 03 2021 Keysight Technologies, Inc Methods, systems, and computer readable media for providing adaptive background test traffic in a test environment
11765068, Dec 22 2021 KEYSIGHT TECHNOLOGIES, INC. Methods, systems, and computer readable media for programmable data plane processor based traffic impairment
5754755, Oct 10 1996 Microsoft Technology Licensing, LLC Method and system for generating test scripts
5860008, Feb 02 1996 Apple Inc Method and apparatus for decompiling a compiled interpretive code
5905856, Feb 29 1996 BT FINANCIAL GROUP PTY LIMITED Determination of software functionality
5926622, Mar 18 1997 THE CHASE MANHATTAN BANK, AS COLLATERAL AGENT Efficient regression verification
5958008, Oct 15 1996 MICRO FOCUS LLC Software system and associated methods for scanning and mapping dynamically-generated web documents
5974572, Oct 15 1996 MICRO FOCUS LLC Software system and methods for generating a load test using a server access log
6038378, Jul 29 1993 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Method and apparatus for testing implementations of software specifications
6047389, Sep 30 1997 ALCATEL USA SOURCING, L P Testing of a software application residing on a hardware component
6061518, Nov 25 1997 International Business Machines Corporation Data processing system and method for debugging a JavaScript program
6189142, Sep 16 1998 International Business Machines Corporation Visual program runtime performance analysis
6192511, Sep 16 1998 International Business Machines Corporation Technique for test coverage of visual programs
6212675, Sep 16 1998 International Business Machines Corporation Presentation of visual program test coverage information
6269460, Sep 01 1998 International Business Machines Corporation Dynamic enhancement of error condition handling and displayed error messages in computer operations
6282701, Jul 31 1997 IDENTIFY SOFTWARE LTD System and method for monitoring and analyzing the execution of computer programs
6308146, Oct 30 1998 Oracle International Corporation System and method for simulating user input to control the operation of an application
6549944, Oct 15 1996 MICRO FOCUS LLC Use of server access logs to generate scripts and scenarios for exercising and evaluating performance of web sites
6587969, Jun 22 1998 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Software system and methods for testing the functionality of a transactional server
6639417, Jun 30 2000 Agilent Technologies, Inc Semiconductor parametric testing apparatus
6697880, Jan 11 1999 GLOBALFOUNDRIES Inc Methodology and graphical user interface for building logic synthesis command scripts using micro-templates
6715141, Jun 15 2000 Multiphase single pass interpreter
6728905, Mar 03 2000 International Business Machines Corporation Apparatus and method for rebuilding a logical device in a cluster computer system
6810494, Jun 22 1998 Hewlett Packard Enterprise Development LP Software system and methods for testing transactional servers
6904424, Oct 21 1999 International Business Machines Corporation Method and a system for managing shell script file development and execution
7024322, Feb 20 2004 Advantest Corporation Dynamic waveform resource management
7058928, Dec 23 1999 BMC Software Israel Ltd System and method for conditional tracing of computer programs
7090749, Jul 31 2001 International Business Machines Corporation Method and apparatus for simulating application workloads on an e-business application server
7099893, Jun 28 2002 SAP SE Recording application user actions for application testing
7185211, Mar 28 2001 HEWLETT-PACKARD DEVELOPMENT COMPANY L P Power management in computing applications
7191326, May 01 2002 BSquare Corporation Method and apparatus for making and using test verbs
7194535, Oct 01 2001 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Methods and systems for testing stateful network communications devices
7296189, Sep 19 2003 International Business Machines Corporation Method, apparatus and computer program product for implementing autonomic testing and verification of software fix programs
7412034, Jun 14 2002 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Multi-protocol, multi-interface communications device testing system
7496664, Oct 01 2001 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Method for testing stateful network communications devices
7516216, Oct 01 2001 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Generating traffic for testing a system under test
7616568, Nov 06 2006 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Generic packet generation
7627669, May 21 2003 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Automated capturing and characterization of network traffic using feedback
7827539, Jun 25 2004 BMC Software Israel Ltd System and method for automated tuning of program execution tracing
7836447, Jul 15 2003 INTEL ZAKRYTOE AKTSIONERNOE OBSCHESTVO Method of efficient performance monitoring for symmetric multi-threading systems
7840664, May 21 2003 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Automated characterization of network traffic
8032866, Mar 27 2003 BMC Software Israel Ltd System and method for troubleshooting runtime software problems using application learning
8121148, Mar 24 2005 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Protocol stack using shared memory
8180856, Sep 14 2006 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Testing a network
8233399, Nov 06 2006 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Generic packet generator and method
8312435, Dec 26 2000 BMC Software Israel Ltd System and method for conditional tracing of computer programs
8332820, Oct 30 2008 Accenture Global Services Limited Automated load model
8504994, Mar 03 2000 BMC Software Israel Ltd System and method for software diagnostics using a combination of visual and dynamic tracing
8549480, May 13 2008 MICRO FOCUS LLC Maintenance for automated software testing
8649395, Mar 24 2005 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Protocol stack using shared memory
8682636, Aug 30 2002 SAP SE Non-client-specific testing of applications
8694626, May 21 2003 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Automated characterization of network traffic
8762958, Nov 06 2002 BMC Software Israel Ltd System and method for troubleshooting software configuration problems using application tracing
8914432, Oct 01 2001 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Real world traffic
8966447, Jun 20 2011 Apple Inc.; Apple Inc Capturing and displaying state of automated user-level testing of a graphical user interface application
9111037, Aug 21 2013 CA, INC Method and apparatus to enable mainframe computer testing for software testing management platform
9116873, Mar 21 2013 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Methods, systems, and computer readable media for adjusting load at a device under test
9122789, Nov 24 2008 JPMORGAN CHASE BANK, N.A. System and method for testing applications with a load tester and testing translator
9135714, Nov 28 2011 INNOVATIVE DEFENSE TECHNOLOGIES, LLC Method and system for integrating a graphical user interface capture for automated test and retest procedures
9178790, Aug 06 2012 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Methods, systems, and computer readable media for controlling Tx and Rx throughput over TCP
9178823, Dec 12 2012 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Methods, systems, and computer readable media for generating simulated network traffic using different traffic flows and maintaining a configured distribution of traffic between the different traffic flows and a device under test
9191301, Oct 01 2001 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Real world traffic
9397901, Dec 18 2012 KEYSIGHT TECHNOLOGIES SINGAPORE SALES PTE LTD Methods, systems, and computer readable media for classifying application traffic received at a network traffic emulation device that emulates multiple application servers
9697108, Aug 12 2013 AIRBNB, INC System, method, and apparatus for automatic recording and replaying of application executions
Patent Priority Assignee Title
4696003, Mar 10 1986 International Business Machines Corporation System for testing interactive software
4819233, Apr 08 1987 Westinghouse Electric Corp. Verification of computer software
4969003, May 13 1988 Canon Kabushiki Kaisha Autofocus device
5005119, Mar 02 1987 Fusion Systems Corporation User interactive control of computer programs and corresponding versions of input/output data flow
5022028, Mar 30 1988 Elverex Limited Software verification apparatus
5045994, Sep 23 1986 Bell Communications Research, Inc. Emulation process having several displayed input formats and output formats and windows for creating and testing computer systems
5121497, Mar 10 1986 International Business Machines Corporation Automatic generation of executable computer code which commands another program to perform a task and operator modification of the generated executable computer code
5140671, Jan 26 1990 International Business Machines Corporation Expert system debugger
5157779, Jun 07 1990 Sun Microsystems, Inc. User extensible testing system
5157782, Jan 31 1990 Hewlett-Packard Company; HEWLETT-PACKARD COMPANY, 3000 HANOVER STREET, PALO ALTO, CA 94034 A CORP OF CA System and method for testing computer hardware and software
5170465, Jun 30 1989 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Incremental-scanning compiler for source-code development system
5182806, Jun 30 1989 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Incremental compiler for source-code development system
5193191, Jun 30 1989 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Incremental linking in source-code development system
5201050, Jun 30 1989 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Line-skip compiler for source-code development system
5218605, Jan 31 1990 Hewlett-Packard Company; HEWLETT-PACKARD COMPANY, A CORP OF CA Software modules for testing computer hardware and software
5265254, Aug 14 1991 Agilent Technologies Inc System of debugging software through use of code markers inserted into spaces in the source code during and after compilation
5313387, Jun 30 1989 HEWLETT-PACKARD DEVELOPMENT COMPANY, L P Re-execution of edit-compile-run cycles for changed lines of source code, with storage of associated data in buffers
//
Executed onAssignorAssigneeConveyanceFrameReelDoc
Oct 06 1994Mercury Interactive (Israel) Ltd.(assignment on the face of the patent)
Aug 14 1996Mercury Interactive CorporationMercury Interactive CorporationCHANGE OF ADDRESS0081890901 pdf
Date Maintenance Fee Events
Jan 30 2001ASPN: Payor Number Assigned.
Jan 30 2001M183: Payment of Maintenance Fee, 4th Year, Large Entity.
Mar 02 2005REM: Maintenance Fee Reminder Mailed.
Aug 12 2005EXP: Patent Expired for Failure to Pay Maintenance Fees.


Date Maintenance Schedule
Aug 12 20004 years fee payment window open
Feb 12 20016 months grace period start (w surcharge)
Aug 12 2001patent expiry (for year 4)
Aug 12 20032 years to revive unintentionally abandoned end. (for year 4)
Aug 12 20048 years fee payment window open
Feb 12 20056 months grace period start (w surcharge)
Aug 12 2005patent expiry (for year 8)
Aug 12 20072 years to revive unintentionally abandoned end. (for year 8)
Aug 12 200812 years fee payment window open
Feb 12 20096 months grace period start (w surcharge)
Aug 12 2009patent expiry (for year 12)
Aug 12 20112 years to revive unintentionally abandoned end. (for year 12)