7 May 2012 16:44
Java 7 and JTextComponentTester.actionClick error
James Doyle <jdoyle <at> iso-ne.com>
2012-05-07 14:44:39 GMT
2012-05-07 14:44:39 GMT
Hi, Last week I was running my Abbot test scripts in Java 7 using a build of the latest trunk code from SVN (http://abbot.svn.sourceforge.net/viewvc/abbot/abbot/trunk/?pathrev=2828), and the fixes in SVN definitely make the scripts complete faster. But I noticed a problem specific to Java 7. In Java 6, text component clicks like this: <action args="IsoNumericTextField Instance 8,0" class="javax.swing.text.JTextComponent" method="actionClick" /> work fine. In Java 7 (same trunk SVN build of Abbot, same test script, same test host environment), it results in an error: Error: abbot.tester.ActionFailedException: Text click failed: requested string "0", but wasnt found in component in step 'Click(IsoNumericTextField Instance 8,0)' at /home/jdoyle/WorkingCopies/2012-Q3/sms/docs/testing/guiscripts/FRui-checkout-hourly-settlement-employee.xml:140 abbot.tester.ActionFailedException: Text click failed: requested string "0", but wasnt found in component at abbot.tester.JTextComponentTester.actionClick(JTextComponentTester.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)(Continue reading)
>
> And the Copy/Paste functionality is going to be a huge help!
Jolly good, It hope to improve it in the future so you can copy cross scripts and bring the component
references with them, but that was more than the couple of hours I had free.
Let me know if there is anything else in the editor I can fix.
Gerard
RSS Feed