SWING GUI をテストしています。これは、FEST フレームワークを使用して行います。
次の入力があります。
window.textBox("txtDatabaseConnectionString").enterText("jdbc:oracle:thin:10.254.202.27:1521:db");
実際には、テキストボックスに次の値を入力し始めます。
jdbc.oracle.thin&a
そして、テストがクラッシュするより...
次の例外出力が表示されます
java.lang.IllegalArgumentException: org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:116) の無効なキー コード '46' org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:633) org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:618) で org.fest.swing.core.BasicRobot.type(BasicRobot.java:589) で org.fest.swing.core.BasicRobot.enterText (BasicRobot.java:572) org.fest.swing.driver.JTextComponentDriver.enterText(JTextComponentDriver.java:126) で org.fest.swing.fixture.JTextComponentFixture.enterText(JTextComponentFixture.java:208) で gui.GuiTest。 shouldCopyTextInLabelWhenClickingButton(GuiTest.java:44)