Launch the script editor with java -jar abbot.jar
File/New Script
Test/Launch the application you're testing
Select Capture/All Actions (or shift+F2)
Use the GUI
Press Shift-F2 when the GUI reaches a state you want to test.