We need a tool to test a set of fairly complex Java applications. The applications are mostly independent client programs or applets communicating with a servlet or apache server at a remote site. Specs:

1. Runnable on Windows XP, Vista and 7
2. Parameterizable (Can specify in a script the sequence of buttons to click, text to type in JTextFields and browser address bar etc.)
3. Can quit or bail out or display a nasty message if the expected window or dialog box doesn't appear
4. Record the output on the Java Console of browser in a .txt file (IE is sufficient for now) when the application opens a browser window.
5. While running, I should be able to see it running with folded hands while it would run
for a few minutes

We were thinking of writing an AWTRobot based tool that reads a command file and does this - (don't know how to do #3 or #4 yet - will ask you folks some day how to detect a window on the desktop). Would you suggest an open source tool available to do this? We don't need anything fancy to capture video or screenshots. Thank you, - M.S.