# US 2006/0156287 A1 · Auto conversion of tests between different functional testing tools

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2006/0156287 A1
- Document ID: US20060156287A1
- Status: Published application
- Kind: A1
- Application number: 11/032,932
- Filed: 2005-01-11
- Published: 2006-07-13
- Earliest claimed: 2005-01-11
- Assignees: International Business Machines Corporation
- Inventors: Ashish Vikram
- Web page: https://patentgrep.com/patent/US20060156287A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and system are described for migrating test scripts written for a current test tool (CTT) to a new test tool (NTT). A conversion tool sets the CTT in a playback mode and the NTT in a record mode. The CTT provides actions to an application under test (AUT) causing objects to be created and modified. The NTT monitors the actions of the CTT and creates a script to mimic the actions of the CTT. The current test script is modified to add comments, and translated using standard translation tools. Application-specific statements do not translate and are replaced with those previously created by the NTT in the record mode. This results in a script that performs the same functions as the original test script.

## Claims

### Claim 1

A method for converting a current test script intended for use in a current test tool (CTT), to a script intended for use in a new test tool (NTT), comprising:
a) providing the CTT capable of playing back actions of said current test script in a playback mode;
b) providing the NTT capable of recording actions and for creating a test script from the recorded actions;
c) providing a communication channel between the CTT and the NTT;
d) starting the CTT in the playback mode, causing the CTT to produce actions, create objects and modify objects;
e) starting the NTT in a record mode, causing the NTT to record actions provided to the NTT, object definitions of objects created, and object states of objects modified; and
f) providing the actions produced by the CTT to the NTT, providing indications of objects created by the CTT to the NTT, and providing indications of objects modified by the CTT to the NTT through the communication channel, thereby causing the NTT to record provided actions and indications of objects created and modified and result in a recorded script having functionality similar to that of the current test script.

### Claim 2 (depends on 1)

The method of claim 1, further comprising the steps of:
a) adding comments to the current test script to identify application-specific statements;
b) translating the current test script from its current language to a converted script having a language compatible with the NTT;
c) replacing the application-specific statements identified by comments, with their corresponding application-specific statements from the recorded script.

### Claim 3 (depends on 1)

The method of claim 1, wherein the recorded indications of objects created and modified comprise:
object definitions of the objects created and object states of the objects modified.

### Claim 4 (depends on 1)

The method of claim 1, wherein the CTT comprises:
a publicly available functional testing software product capable of playing back actions of said current test script in the playback mode.

### Claim 5 (depends on 1)

The method of claim 1, wherein the NTT comprises:
a publicly available functional testing software product capable of recording actions and for creating the test script from the recorded actions.

### Claim 6 (depends on 1)

The method of claim 1, wherein the application-specific statements are graphics user interface (GUI) statements.

### Claim 7 (depends on 1)

The method of claim 1, wherein the application-specific statements are verification point (VP) statements.

### Claim 8

A method of converting from a current test script having application-specific statements and general statements that is capable of being run in conjunction with a current object map and current supporting data on a current test tool (CTT), to a new test script having application-specific statements and general statements that is capable of being run in conjunction with a new object map and new supporting data on a new test tool (NTT), the method comprising the steps of:
a) inserting comment statements into the current test script to indicate a location of application-specific statements to create a commented script;
b) playing back the commented script using the CTT causing objects to be created and modified, and actions on the objects to be performed, and messages to be sent to the NTT identifying which application-specific statements are encountered in the commented script,
c) creating with the NTT, statements of a flat script which will mimic the actions performed by the CTT and current test script;
d) monitoring, with the NTT when a comment has been encountered by the CTT, and placing the comment before the last created statement indicating a module name and line number of a script statement being run by the CTT which produced the comment;
e) recording object information when the message is received from the CTT;
f) creating a new object map from the object information recorded;
g) translating the commented script from a language of said CTT into a language compatible with the NTT, to create a converted script having application-specific statements identified by comments and general statements;
h) identifying a first set of application-specific statements from the converted script which correspond to a second set of application-specific statements in the flat script; and
i) replacing the first set of application-specific statements in the converted script with the corresponding second set of application-specific statements from the flat script to result in a merged script which may be run with the new object map and supporting the NTT with some modification.

### Claim 9 (depends on 8)

The method of claim 8, further comprising the step of:
modifying the merged script to remove unnecessary headers, add headers required by the NTT and include routines referenced in the merged script.

### Claim 10 (depends on 8)

The method of claim 8, wherein the information recorded includes object definitions, object states and actions to objects.

### Claim 11 (depends on 8)

The method of converting of claim 8, wherein the step of identifying the corresponding first set of application-specific statements comprises the steps of:
finding a comment in the converted script which indicates a module and line number of the current test script, and identifying the statement following the comment in the covert script as a statement of the first set of application-specific statements; and
finding a comment in the flat script for the same module and line number of the current test script, and identifying the statement following the comment in the flat script as a statement of the second set of application-specific statement corresponding to that of the converted script.

### Claim 12 (depends on 8)

The method of claim 8, wherein the first set of application-specific statements are graphic user interface (GUI) statements.

### Claim 13 (depends on 8)

The method of claim 8, wherein the first set of application-specific statements are verification point (VP) statements.

### Claim 14 (depends on 8)

The method of claim 8, wherein the CTT comprises:
a publicly available functional testing software product capable of playing back actions of said current test script in a playback mode.

### Claim 15 (depends on 8)

The method of claim 8, wherein the NTT comprises:
a publicly available functional testing software product capable of recording actions and for creating a test script from the recorded actions.

### Claim 16

A system for translating a commented script for a current software functional test tool (CTT) into a test script for a new software functional testing tool (NTT) comprising:
a) a graphic user interface (GUI) for interacting with a user to define input to the system and for displaying information back to the user; and
b) a conversion tool in communication with the GUI, said CTT and said NTT adapted to:
i. cause said CTT to run the commented script to create and modify objects and provide stimuli to the GUI (GUI actions) which in turn provides input to an application under test (AUT), and to perform verification point (VP) checks, and
ii. cause said NTT to monitor and record the GUI actions, the VP checks, object definitions, object states, and create new GUI statements and new VP statements which, when played back by said NTT perform the GUI actions and VP checks;
c) a translator functioning to receive the commented script and to provide the converted script in a different language; and
d) an intelligent merge device coupled to the translator and adapted to:
i. receive the converted script and the new GUI statements and the new VP statements,
ii. identify corresponding statements of each received new GUI statement and new VP statement in the converted script, and
iii. replace the corresponding statements in the converted script with the received new GUI statements and VP statements.

### Claim 17 (depends on 16)

The system of claim 16, further comprising:
a) a merge table coupled to the intelligent merge device, populated with a module and line number of a GUI or VP statement in the commented current test script, and a corresponding replacement GUI statement or VP statement;
b) a current script device coupled to said CTT and translator for storing commented script, and for allowing the translator to access the commented script.

### Claim 18 (depends on 16)

The system of claim 16, further comprising:
a) a new script device within the NTT capable of storing a test script generated by the system;
b) a new VP definition device within the NTT capable of storing verification point information; and
c) new object definition device within the NTT capable of storing object information.

### Claim 19 (depends on 16)

The system of claim 16, wherein the CTT comprises:
a publicly available functional testing software product capable of playing back actions of said current test script in a playback mode.

### Claim 20 (depends on 16)

The system of claim 16, wherein the NTT comprises:
a publicly available functional testing software product capable of recording actions and for creating a test script from the recorded actions.

### Claim 21

A method of providing a service for converting a current test script intended for use in a current test tool (CTT), to a script intended for use in a new test tool (NTT), the service comprising:
a) providing the CTT capable of playing back actions of said current test script in a playback mode;
b) providing the NTT capable of recording actions and for creating a test script from the recorded actions;
c) providing a communication channel between the CTT and the NTT;
d) starting the CTT in the playback mode, causing the CTT to produce actions, create objects and modify objects;
e) starting the NTT in a record mode, causing the NTT to record actions provided to the NTT, object definitions of objects created, and object states of objects modified; and
f) providing the actions produced by the CTT to the NTT, providing indications of objects created by the CTT to the NTT and providing indications of objects modified by the CTT to the NTT through the communication channel, thereby causing the NTT to record provided actions and indications of objects created and modified and result in a recorded script having functionality similar to that of the current test script.

### Claim 22 (depends on 21)

The method of claim 21, further comprising the steps of:
a) adding comments to the current test script to identify application-specific statements;
b) translating the current test script from its current language to a converted script having a language compatible with the NTT;
c) replacing the application-specific statements identified by comments, with their corresponding application-specific statements from the recorded script.

### Claim 23 (depends on 21)

The method of claim 21, wherein the recorded indications of objects created and modified comprise:
object definitions of the objects created and object states of the objects modified.

### Claim 24 (depends on 21)

The method of claim 21, wherein the CTT comprises:
a publicly available functional testing software product capable of playing back actions of said current test script in the playback mode.

### Claim 25 (depends on 21)

The method of claim 21, wherein the NTT comprises:
a publicly available functional testing software product capable of recording actions and for creating the test script from the recorded actions.

### Claim 26 (depends on 21)

The method of claim 21, wherein the application-specific statements are graphics user interface (GUI) statements.

### Claim 27 (depends on 21)

The method of claim 21, wherein the application-specific statements are verification point (VP) statements.

### Claim 28

A computer program product, comprising a computer usable medium having computer readable program code embodied therein for converting a current test script intended for use in a current test tool (CTT), to a script intended for use in a new test tool (NTT), said computer readable program code including an algorithm adapted to:
a) providing a CTT capable of playing back actions of said current test script in a playback mode;
b) providing an NTT capable of recording the actions played back by the CTT and for creating a test script from the recorded actions;
c) providing a communication channel between the CTT and the NTT;
d) starting the CTT in the playback mode, causing it to produce actions, create objects and modify objects;
e) starting the NTT in a record mode, causing it to record actions provided to it, object definitions of objects created and object states of objects modified; and
f) providing the actions produced by the CTT to the NTT, providing indications of objects created by the CTT to the NTT, and providing indications of objects modified by the CTT to the NTT through the communication channel, thereby causing the NTT to record provided actions and indications of objects created and modified and result in a recorded script having functionality similar to that of the current test script.

### Claim 29 (depends on 28)

The computer program product of claim 28, wherein the algorithm is further adapted to:
a) add comments to the current test script to identify application-specific statements;
b) translate the current test script from its current language to a converted script having a language compatible with the NTT;
c) replacing application-specific statements identified by comments, with their corresponding application-specific statements from the recorded script.

### Claim 30 (depends on 28)

The computer program product of claim 28, wherein the algorithm is further adapted to employ a CTT comprising:
a publicly available functional testing software product capable of playing back actions of said current test script in the playback mode.

### Claim 31 (depends on 28)

The computer program product of claim 28, wherein the algorithm is further adapted to employ an NTT comprising:
a publicly available functional testing software product capable of recording actions and for creating the test script from the recorded actions.
