From the list of wizards, select WindowTester > Contact Manager Swing Example Project. Please note, this wizard is only available in WindowTester v2.2.0 and above.
Click Next.
Click Finish. The ContactManagerSwing example project is now created in your workspace.
Look for a tool item (
) that looks like the run arrow with a little console under it (should be next to external tools);
From its pull-down menu select "Record..." (in Eclipse 3.2) or "Open Record Dialog..." (in 3.3) or "Record Configurations..." (in 3.4).
Select Java Application from the list on the left navigation.
Click the New () icon.
Name the launch configuration ContactManagerSwing
Click the Browse... button and select ContactManagerSwing as the project
Click the Search... button and select contactmanager.ContactManagerSwing for the Main Class
Click the Apply button.
Click the Record button. This will run the Contact Manager Swing application in recording mode and opens the recording control shown below.
To start recording, click on the record button
(red ball) in the recorder. Perform user interactions
like adding a new contact.In the Contact Manager application, select File > New Contact.
To stop the recording simply exit from the application by choosing the File > Exit menu item.
The Recorder disappears and a New UI Test dialog opens.
Enter ContactManagerSwingTests/src as the Source folder. We recommend that tests be placed into a project separate from the code under test.
Create folder automatically if they do not exist
- If the Source folder does not exist and this option is checked, it
will automatically create the test project with the src and bin
folders. If your project structure
does not have a separate src and bin folders, uncheck this option and
make sure your test project exists.