I am testing my SWING Gui. I do this by using the FEST framework.
I have following input:
window.textBox("txtDatabaseConnectionString").enterText("jdbc:oracle:thin:10.254.202.27:1521:db");
it actually starts to fill in the textbox with following values:
jdbc.oracle.thin&a
And than the test crashes...
I get following exception output
java.lang.IllegalArgumentException: Invalid key code '46' at org.fest.swing.core.RobotEventGenerator.pressKey(RobotEventGenerator.java:116) at org.fest.swing.core.BasicRobot.doPressKey(BasicRobot.java:633) at org.fest.swing.core.BasicRobot.keyPressAndRelease(BasicRobot.java:618) at org.fest.swing.core.BasicRobot.type(BasicRobot.java:589) at org.fest.swing.core.BasicRobot.enterText(BasicRobot.java:572) at org.fest.swing.driver.JTextComponentDriver.enterText(JTextComponentDriver.java:126) at org.fest.swing.fixture.JTextComponentFixture.enterText(JTextComponentFixture.java:208) at gui.GuiTest.shouldCopyTextInLabelWhenClickingButton(GuiTest.java:44)