background image
<< Recording window declarations | Recording a test against controls >>

Preparing the test script file

<< Recording window declarations | Recording a test against controls >>
Working with Java Applications
11
Step 6: Preparing the test script file
Before you can record our test, you must prepare the test script file.
At this point, we assume that you recorded window declarations for Drawing Area controls, loaded
draw.inc and canvas.inc, and set up the recovery system.
To prepare the test script file:
1 Close all secondary windows in the sample Java application so that only the main Test Application
window is open.
2 Open a new test script. In the SilkTest menu bar, select File/New/ 4Test Script, and then click
OK. An untitled 4Test script file opens.
3 Save the test script file as draw.t.
4 With draw.t as the active window, select Record/Testcase in the SilkTest menu bar.
5 Change the testcase name to LogMouseMoves, and then select DefaultBaseState from the
pulldown menu in the Application state field.

Now you're ready to record a test against the Event Log in the Drawing Area window; continue to Step
7: Recording a test against Drawing Area controls.