From: James D. <jd...@is...> - 2012-05-10 20:14:20
|
Thanks, I downloaded 1.3.0 RC 1 and it no longer has the JTextComponentTester.actionClick bug. I used 1.3.0 RC 1 to run our application's 27 Abbot scripts in both JDK 1.6.0_29 and JRE 1.7.0_04 and get the same results in both JRE versions now. And the Copy/Paste functionality is going to be a huge help! Thanks! Jim Gerard Davison wrote: > I think I have a fix for this, can you verify in: > > https://sourceforge.net/projects/abbot/files/abbot/1.3/ > > Thanks, > > Gerard > > On 8 May 2012, at 14:54, James Doyle wrote: > > >> Gerard, >> >> Thanks! I raised the new bug >> http://sourceforge.net/tracker/?func=detail&aid=3524725&group_id=50939&atid=461490 >> >> Thanks, >> Jim >> >> Gerard Davison wrote: >> >>> James, >>> >>> So the problem here is that the method matching is slightly different in JDK 7, probably because of something simple like the method list is in a different order. >>> >>> Abbot should deal with this though so could you raise a bug so that it will match on the version of the method that takes a number first then the one that takes the string? >>> >>> Thanks for taking the time to report this issue, hopefully I can have most of the issues dealt with soon.. >>> >>> Gerard >>> >>> >>> On 7 May 2012, at 15:44, James Doyle wrote: >>> >>> >>> >>>> 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) >>>> at abbot.script.Call.invoke(Call.java:194) >>>> at abbot.script.Call.runStep(Call.java:129) >>>> at abbot.script.Step.run(Step.java:92) >>>> at abbot.script.StepRunner.runStep(StepRunner.java:277) >>>> at abbot.script.Sequence.runStep(Sequence.java:110) >>>> at abbot.script.StepRunner.runStep(StepRunner.java:274) >>>> at abbot.script.StepRunner.run(StepRunner.java:194) >>>> at abbot.editor.ScriptEditor$LaunchAction.run(ScriptEditor.java:2738) >>>> at java.lang.Thread.run(Unknown Source) >>>> >>>> The same script step results if I use the Test Script Editor to capture >>>> new steps for the script, and the same step fails when immediately >>>> replayed in the Test Script Editor. >>>> >>>> It looks like the appropriate overloaded "actionClick" method from >>>> JTextComponentTester isn't getting selected by abbot.script.Call. >>>> >>>> Is this a bug in the abbot.script.Call code that can be fixed? >>>> >>>> Thanks, >>>> Jim >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. Discussions >>>> will include endpoint security, mobile security and the latest in malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> abbot-users mailing list >>>> abb...@li... >>>> https://lists.sourceforge.net/lists/listinfo/abbot-users >>>> >>>> >>> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> abbot-users mailing list >> abb...@li... >> https://lists.sourceforge.net/lists/listinfo/abbot-users >> > > |