|
Project Information
Members
Featured
Downloads
|
Tyburn is a fast, minimal, extensible Java Swing harness. 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();
|