Tyburn is a fast, minimal, extensible Java Swing harness.
Unlike many other Swing testing harnesses, this is an automation tool rather than a test extension. This means you can use it with anything you like - JUnit, RSpec and JRuby, your demo, any mocking framework, etc. It doesn't extend JUnit's TestCase.
This project has been driven using BDD techniques. This means that, in src/behaviour, you will find examples of Tyburn being used. These examples also serve as Tyburn's tests.
Tyburn was originally part of JBehave 1.0, and has been extracted to allow independent development of both libraries.
Here's how to use it:
WindowControl control = new WindowControl("my.named.frame");
control.clickButton("a.button");
control.enterText("a.textfield", "Text1");You can access any component by grabbing it by name from the window control. If you do anything with that component you can also use the Idler to wait for the Swing Queue to empty:
JComboBox comboBox = (JComboBox)windowControl.findComponent("my.named.combo");
comboBox.selectItem("an item");
new Idler().waitForIdle();