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.