Hi Alex,
Thanks for the reply. Here's the test code, pretty trivial:
public class GuiTestTest {
private GuiTest panel = null;
private FrameFixture fixture;
@Before
public void setUp() {
panel = new GuiTest();
fixture = Containers.frameFixtureFor(panel);
fixture.show();
}
@Test
public void testPanel(){
fixture.textBox("exampleText").deleteText();
fixture.textBox("exampleText").enterText("Hello!");
}
}
And the stack trace from the test run:
Focus change to javax.swing.JTextField[name='exampleText',
text='Example', enabled=true, visible=true, showing=true] failed
org.fest.swing.exception.ActionFailedException: Focus change to
javax.swing.JTextField[name='exampleText', text='Example',
enabled=true, visible=true, showing=true] failed
at org.fest.swing.exception.ActionFailedException.actionFailure
(ActionFailedException.java:33)
at org.fest.swing.core.BasicRobot.focus(BasicRobot.java:240)
at org.fest.swing.core.BasicRobot.focusAndWaitForFocusGain
(BasicRobot.java:217)
at org.fest.swing.driver.JComponentDriver.invokeAction
(JComponentDriver.java:117)
at org.fest.swing.driver.JTextComponentDriver.selectAll
(JTextComponentDriver.java:107)
at org.fest.swing.driver.JTextComponentDriver.deleteText
(JTextComponentDriver.java:77)
at org.fest.swing.fixture.JTextComponentFixture.deleteText
(JTextComponentFixture.java:194)
at festtest.GuiTestTest.testPanel(GuiTestTest.java:24)
I'm using Netbeans 6.7.1 on Mac OSX. It works fine with 6.7.1 on Linux
and Windows, and also works fine when running the single test but
fails when running from the main platform project build. I you need me
to I can email the full ZIP of the application (its 6mb), just let me
know which address you'd like me to send it to. There isn't much code,
only 1 panel, and 1 test but the default footprint of the Netbeans
Platform projects is pretty large.
Thanks,
Hayden
On Sep 9, 6:43 pm, Alex Ruiz <
alex.ruiz...@gmail.com> wrote:
> H,
> Please post your code (the 'Hello World' app), any errors/stack trace you
> get and as much info as possible about your platform. Otherwise, it is hard
> (or impossible) to diagnose your problem.
>
> Thanks,
> -Alex
>