FESTベースのGUIテストは初めてです。
MyFrameは、私のアプリケーションのルートクラスです。
@Before
public void onSetUp() {
MyFrame frame = GuiActionRunner.execute(new GuiQuery<MyFrame>() {
protected MyFrame executeInEDT() {
return new MyFrame();
}
});
frame2 = new FrameFixture(robot(), frame);
frame2.show(); // shows the frame to test
}
テストケースを実行すると、
@Test public void testGui()
{
String rs = frame2.label("hl").text().toString();
assertTrue(rs.equals("First"));
}
上記の方法では、ラベルに存在する実際の文字列は出力されません。
FESTAPIはアプリケーションのロードを待っていないと思います。
GUI要素のルックアップを延期するために利用できる方法はありますか?