I am testing a Swing panel using abbot. In this Swing panel,
there are two JTextField, when user typed something into JTextField 1, JTextField 2 will be automatically populated with value of JTextField 1.
However, if I used JTextComponentTester.actionEnterText(JTextField1, value), I can see from playback that value is not set to JTextField2, obviously listener registered in JTextField1 is not triggered by abbot tester, and I don’t understand why? Posting key event from abbot is different from user keyboard actions? Strangely, I also noticed that if I add the following call after actionEnterText, JTextField2 will be populated with right value:
Has somebody experienced similar issues here? Thanks.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.