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).
In the Record configuration dialog, select Eclipse Application on the left navigation.
Click the New icon (
).
Select rcpContactMngr.poduct from the Run a product drop-down.
Click the Record button. This will run the Contact Manager 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 recording, close the application. The recorder disappears and a new UI Test dialog opens.
Enter the name of a test project such as ContactManagerRCPTests. 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.
Enter the package name such as com.contactmanager.tests.
Enter the name of a test case such as AddContactTest.
Click Finish to generate this test.
You should now see a test project with the generated test case in your workspace.