java - Fest swing gui framework, strange output -


i testing swing gui. using fest framework.

i have following input:

window.textbox("txtdatabaseconnectionstring").entertext("jdbc:oracle:thin:10.254.202.27:1521:db"); 

it starts fill in textbox following values:

jdbc.oracle.thin&a

and test crashes...

i following exception output

java.lang.illegalargumentexception: invalid key code '46' @ org.fest.swing.core.roboteventgenerator.presskey(roboteventgenerator.java:116) @ 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)

fest had lot of issues regarding keyboard layouts. if locale not en_gb/en_us may kind of problems. keyboard input depends on keyboard layout different in many countries , operating system. noticed changes : . in example. in sources here there gb/en/de mappings. solve problem can add own keyboard mappings, explained in article: http://alexruiz.developerblogs.com/?p=1102

fest looks abandoned project , not sure if latest sources.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -