Ye, Ting | 2 Nov 10:25 2006
Picon

Error: No valid input event found for action with key 'caret-backward'

Hi,

 

I recorded a script to edit a text field. It tried to modify “Fat_build.xml” to “Fat_buildml”. The script looked like:

     …

    <action args="JTable Instance,&quot;Fat_build.xml&quot;,BUTTON1_MASK,2" class="javax.swing.JTable" method="actionClick" />

    <wait args="Source Files" class="abbot.tester.ComponentTester" method="assertComponentShowing" />

    <action args="JTextField Instance 2,caret-backward" class="javax.swing.JComponent" method="actionActionMap" />

    <action args="JTextField Instance 2,caret-backward" class="javax.swing.JComponent" method="actionActionMap" />

    <action args="JTextField Instance 2,delete-previous" class="javax.swing.JComponent" method="actionActionMap" />

    <action args="JTextField Instance 2,delete-previous" class="javax.swing.JComponent" method="actionActionMap" />

    <action args="Ok" class="javax.swing.AbstractButton" method="actionClick" />

 

When I played it back, I received an error in Costello as mentioned in this email title. I also tried the “caret-begin-line” and “caret-end-line” with the actionActionMap method to work around this problem though I failed. Could you please give me any suggestion to fix this problem? Thanks!

 

Best Regards,

- Ting

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Ye, Ting | 3 Nov 03:37 2006
Picon

Re: Error: No valid input event found for action with key 'caret-backward'

Abbot version: abbot-1.0.0.rc3
System OS: windows XP, Version 4.0 (4000.10)

I don't quite understand your question: "What are the mappings that
exist for caret-backward?" Do you mean the input/action map displayed by
Costello UI or in script? Costello UI does not display anything except
the error message; in the recorded script, I can not find the additional
"improper key comparison" before the action with 'caret-backward'.

And, more important, is this exactly the bug existed in abbot prior to
rc4? I will try rc4 immediately to see if it can fix my problem.

The whole script is attached as following:

<sequence>
    <action args="ITree Instance,&quot;[WORKSPACE,
Modules]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module, ConSplitter]&quot;,BUTTON1_MASK,2"
class="javax.swing.JTree" method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module, ConSplitter, Source Files]&quot;,BUTTON1_MASK,2"
class="javax.swing.JTree" method="actionClick" />
    <action args="JTable Instance,&quot;Test1.c&quot;,BUTTON1_MASK,2"
class="javax.swing.JTable" method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
method="assertComponentShowing" />
    <action args="JTextField Instance,caret-backward"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,caret-backward"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,delete-previous"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,2" method="actionKeyString" />
    <action args="IPF" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="EBC" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="Ok" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
invert="true" method="assertComponentShowing" />
    <action args="JTable Instance,&quot;NewSourceFile/Test2.c&quot;"
class="javax.swing.JTable" method="actionSelectCell" />
    <action args="Browse" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
method="assertComponentShowing" />
    <action args="JTextField Instance,2" method="actionKeyString" />
    <action args="X64" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="IA32" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="Ok" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
invert="true" method="assertComponentShowing" />
    <action args="Save" method="actionSelectMenuItem" />
    <action args="Exit" method="actionSelectMenuItem" />
  </sequence>

-----Original Message-----
From: Timothy Wall [mailto:twall <at> users.sourceforge.net] 
Sent: Thursday, November 02, 2006 7:44 PM
To: Ye, Ting
Cc: abbot-users <at> lists.sourceforge.net
Subject: Re: [abbot-users] Error: No valid input event found for action
with key 'caret-backward'

Take a look at the input/action maps displayed by Costello for the  
component in question.  What are the mappings that exist for caret- 
backward?

There was a bug prior to rc4 that did an improper key comparison that  
would sometimes cause failures.

On Nov 2, 2006, at 4:25 AM, Ye, Ting wrote:

> Hi,
>
>
>
> I recorded a script to edit a text field. It tried to modify  
> "Fat_build.xml" to "Fat_buildml". The script looked like:
>
>      ...
>
>     <action args="JTable  
> Instance,&quot;Fat_build.xml&quot;,BUTTON1_MASK,2"  
> class="javax.swing.JTable" method="actionClick" />
>
>     <wait args="Source Files" class="abbot.tester.ComponentTester"  
> method="assertComponentShowing" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="Ok" class="javax.swing.AbstractButton"  
> method="actionClick" />
>
> ...
>
>
>
> When I played it back, I received an error in Costello as mentioned  
> in this email title. I also tried the "caret-begin-line" and "caret- 
> end-line" with the actionActionMap method to work around this  
> problem though I failed. Could you please give me any suggestion to  
> fix this problem? Thanks!
>
>
>
> Best Regards,
>
> - Ting
>
> ----------------------------------------------------------------------

> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________

> _________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

Timothy Wall
http://abbot.sf.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Ye, Ting | 3 Nov 03:53 2006
Picon

Re: Error: No valid input event found for action with key 'caret-backward'

Thanks, Timothy, I have tried abbot-1.0.0.rc5 and fixed this problem.

-----Original Message-----
From: Ye, Ting 
Sent: Friday, November 03, 2006 10:37 AM
To: 'Timothy Wall'
Cc: abbot-users <at> lists.sourceforge.net
Subject: RE: [abbot-users] Error: No valid input event found for action
with key 'caret-backward'

Abbot version: abbot-1.0.0.rc3
System OS: windows XP, Version 4.0 (4000.10)

I don't quite understand your question: "What are the mappings that
exist for caret-backward?" Do you mean the input/action map displayed by
Costello UI or in script? Costello UI does not display anything except
the error message; in the recorded script, I can not find the additional
"improper key comparison" before the action with 'caret-backward'.

And, more important, is this exactly the bug existed in abbot prior to
rc4? I will try rc4 immediately to see if it can fix my problem.

The whole script is attached as following:

<sequence>
    <action args="ITree Instance,&quot;[WORKSPACE,
Modules]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module]&quot;,BUTTON1_MASK,2" class="javax.swing.JTree"
method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module, ConSplitter]&quot;,BUTTON1_MASK,2"
class="javax.swing.JTree" method="actionClick" />
    <action args="ITree Instance,&quot;[WORKSPACE, Modules,
EdkModulePkg, Module, ConSplitter, Source Files]&quot;,BUTTON1_MASK,2"
class="javax.swing.JTree" method="actionClick" />
    <action args="JTable Instance,&quot;Test1.c&quot;,BUTTON1_MASK,2"
class="javax.swing.JTable" method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
method="assertComponentShowing" />
    <action args="JTextField Instance,caret-backward"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,caret-backward"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,delete-previous"
class="javax.swing.JComponent" method="actionActionMap" />
    <action args="JTextField Instance,2" method="actionKeyString" />
    <action args="IPF" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="EBC" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="Ok" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
invert="true" method="assertComponentShowing" />
    <action args="JTable Instance,&quot;NewSourceFile/Test2.c&quot;"
class="javax.swing.JTable" method="actionSelectCell" />
    <action args="Browse" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
method="assertComponentShowing" />
    <action args="JTextField Instance,2" method="actionKeyString" />
    <action args="X64" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="IA32" class="javax.swing.AbstractButton"
method="actionClick" />
    <action args="Ok" class="javax.swing.AbstractButton"
method="actionClick" />
    <wait args="Source Files 2" class="abbot.tester.ComponentTester"
invert="true" method="assertComponentShowing" />
    <action args="Save" method="actionSelectMenuItem" />
    <action args="Exit" method="actionSelectMenuItem" />
  </sequence>

-----Original Message-----
From: Timothy Wall [mailto:twall <at> users.sourceforge.net] 
Sent: Thursday, November 02, 2006 7:44 PM
To: Ye, Ting
Cc: abbot-users <at> lists.sourceforge.net
Subject: Re: [abbot-users] Error: No valid input event found for action
with key 'caret-backward'

Take a look at the input/action maps displayed by Costello for the  
component in question.  What are the mappings that exist for caret- 
backward?

There was a bug prior to rc4 that did an improper key comparison that  
would sometimes cause failures.

On Nov 2, 2006, at 4:25 AM, Ye, Ting wrote:

> Hi,
>
>
>
> I recorded a script to edit a text field. It tried to modify  
> "Fat_build.xml" to "Fat_buildml". The script looked like:
>
>      ...
>
>     <action args="JTable  
> Instance,&quot;Fat_build.xml&quot;,BUTTON1_MASK,2"  
> class="javax.swing.JTable" method="actionClick" />
>
>     <wait args="Source Files" class="abbot.tester.ComponentTester"  
> method="assertComponentShowing" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="Ok" class="javax.swing.AbstractButton"  
> method="actionClick" />
>
> ...
>
>
>
> When I played it back, I received an error in Costello as mentioned  
> in this email title. I also tried the "caret-begin-line" and "caret- 
> end-line" with the actionActionMap method to work around this  
> problem though I failed. Could you please give me any suggestion to  
> fix this problem? Thanks!
>
>
>
> Best Regards,
>
> - Ting
>
> ----------------------------------------------------------------------

> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________

> _________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

Timothy Wall
http://abbot.sf.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Steven Buroff | 3 Nov 15:03 2006
Picon

Abbot and xerces

I see that rc5 still has an ancient version of xerces.jar that breaks code using java 1.4 or later
xml processing. I have to replace it each time I install a new abbot. Any reason why abbot
can't ship with the latest xerces.jar? Thanks.
 
Steve
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
abbot-users mailing list
abbot-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/abbot-users
Timothy Wall | 3 Nov 05:47 2006
Picon
Picon

Re: Error: No valid input event found for action with key 'caret-backward'

If you select the component in Costello (shift-F1), then peruse the  
input/action map tabs in the lower right cornder of the display, you  
can see what the caret-backward key maps to.

On Nov 2, 2006, at 9:37 PM, Ye, Ting wrote:

> Abbot version: abbot-1.0.0.rc3
> System OS: windows XP, Version 4.0 (4000.10)
>
> I don't quite understand your question: "What are the mappings that
> exist for caret-backward?" Do you mean the input/action map  
> displayed by
> Costello UI or in script? Costello UI does not display anything except
> the error message; in the recorded script, I can not find the  
> additional
> "improper key comparison" before the action with 'caret-backward'.
>
> And, more important, is this exactly the bug existed in abbot prior to
> rc4? I will try rc4 immediately to see if it can fix my problem.
>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Timothy Wall | 2 Nov 12:41 2006
Picon
Picon

Re: Error: No valid input event found for action with key 'caret-backward'

abbot version?
system os, version?

On Nov 2, 2006, at 4:25 AM, Ye, Ting wrote:

> Hi,
>
>
>
> I recorded a script to edit a text field. It tried to modify  
> “Fat_build.xml” to “Fat_buildml”. The script looked like:
>
>      …
>
>     <action args="JTable  
> Instance,&quot;Fat_build.xml&quot;,BUTTON1_MASK,2"  
> class="javax.swing.JTable" method="actionClick" />
>
>     <wait args="Source Files" class="abbot.tester.ComponentTester"  
> method="assertComponentShowing" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="Ok" class="javax.swing.AbstractButton"  
> method="actionClick" />
>
> …
>
>
>
> When I played it back, I received an error in Costello as mentioned  
> in this email title. I also tried the “caret-begin-line” and “caret- 
> end-line” with the actionActionMap method to work around this  
> problem though I failed. Could you please give me any suggestion to  
> fix this problem? Thanks!
>
>
>
> Best Regards,
>
> - Ting
>
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ 
> _________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

Timothy Wall
http://abbot.sf.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Timothy Wall | 2 Nov 12:44 2006
Picon
Picon

Re: Error: No valid input event found for action with key 'caret-backward'

Take a look at the input/action maps displayed by Costello for the  
component in question.  What are the mappings that exist for caret- 
backward?

There was a bug prior to rc4 that did an improper key comparison that  
would sometimes cause failures.

On Nov 2, 2006, at 4:25 AM, Ye, Ting wrote:

> Hi,
>
>
>
> I recorded a script to edit a text field. It tried to modify  
> “Fat_build.xml” to “Fat_buildml”. The script looked like:
>
>      …
>
>     <action args="JTable  
> Instance,&quot;Fat_build.xml&quot;,BUTTON1_MASK,2"  
> class="javax.swing.JTable" method="actionClick" />
>
>     <wait args="Source Files" class="abbot.tester.ComponentTester"  
> method="assertComponentShowing" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,caret-backward"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="JTextField Instance 2,delete-previous"  
> class="javax.swing.JComponent" method="actionActionMap" />
>
>     <action args="Ok" class="javax.swing.AbstractButton"  
> method="actionClick" />
>
> …
>
>
>
> When I played it back, I received an error in Costello as mentioned  
> in this email title. I also tried the “caret-begin-line” and “caret- 
> end-line” with the actionActionMap method to work around this  
> problem though I failed. Could you please give me any suggestion to  
> fix this problem? Thanks!
>
>
>
> Best Regards,
>
> - Ting
>
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ 
> _________________
> abbot-users mailing list
> abbot-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/abbot-users

Timothy Wall
http://abbot.sf.net

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
SourceForge.net | 3 Nov 18:19 2006
Picon
Picon

[abbot - Open Discussion] RE: Welcome to Open Discussion


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=3994478
By: andpk

Guys, Abbot is an Open Project, isn't it? What about free sources?
THe question arised after having continuous problems with
XXXTester.waitForIdle().
General picture is: test runs "green", but Console view shows (taking a very
specific case, but tester is of JTextFieldComponent), before invoking waitForIdle()
I have two JTextComponentTester methods invoked. What is it, I can't understand
in this very case?
Is it possible to have sources?

abbot.tester.Robot.waitForIdle(Robot.java:558)
	at abbot.tester.Robot.waitForIdle(Robot.java:593)
	at abbot.tester.JComponentTester.actionActionMap(JComponentTester.java:271)
	at abbot.tester.JTextComponentTester.actionEnterText(JTextComponentTester.java:
23)
here goes my case name nad error line
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.extensions.abbot.ResolverFixture.runBare(ResolverFixture.java:91)
	at junit.extensions.abbot.ComponentTestFixture.runBare(ComponentTestFixture.jav
a:399)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3T
estReference.java:128)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:3
8)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRu
nner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.
java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner
.java:196)
: Timed out waiting for posted invocation event: 10000ms (after 0 events)
 abbot.tester.Robot.waitForIdle(Robot.java:564): Timed out waiting for idle
event queue after 1 events

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=168261

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Steven Buroff | 4 Nov 14:45 2006
Picon

Re: Abbot and xerces


> -----Original Message-----
> From: Timothy Wall [mailto:twall <at> users.sourceforge.net] 
> Sent: Saturday, November 04, 2006 8:36 AM
> To: sburoff <at> optonline.net
> Cc: Abbot Users
> Subject: Re: [abbot-users] Abbot and xerces
> 
> 
> On Nov 4, 2006, at 7:59 AM, Steven Buroff wrote:
> 
> >
> > Thank you. And thanks for your help as I was learning abbot.
> > I currently use abbot without subclassing ComponentTestFixture
> > and in conjunction with testng rather than junit.
> > It seems to work fine but I'm wondering if I'm missing
> > something that may bite me later. Here is what I did.
> > 	1) I created a class ExtComponentTestFixture that does
> > 	   nothing except make all the protected methods public.
> > 	2) In my test file in a  <at> BeforeClass method, I create a
> > 	   ExtComponentTestFixture and call its fixtureSetup()
> > 	   method.
> > 	3) In each test I use my ExtComponentTestFixture object
> > 	   to get my finders, etc.
> > 	4) At the end of each test I call disposeAll().
> > 	5) In an  <at> AfterClass method I call fixtureTearDown.
> >
> > As I say, this is working for simple tests. Am I missing anything
> > that might cause me trouble in the future? Thanks again for
> > your help.
> >
> > Steve
> 
> Sounds right to me.  I'll grant that it's a bit clunky, and it would  
> make sense to refactor ComponentTestFixture to simply be a 
> shell that  
> uses a helper object.  One of the things CompoenntTestFixture  
> provides is auto-nulling of XXXTester and Component field instances  
> within the fixture itself, although that could probably be covnerted  
> to a helper method which accepts the object to be cleared.  This was  
> required for JUnit, since most (all?) runners keep all test 
> instances  
> in memory, which can really suck UI resources.  You just want 
> to make  
> sure that your test is no longer referencing any Component instances  
> (Window or otherwise) when it finishes.
> 
> One other thing handled by the ComponentTestFixture is catching EDT  
> exceptions and making them show up as test failures.
> 
> Some of the setup/teardown is already in helper classes  
> (AWTFixtureHelper and SystemState).
> 
> If anyone's willing to refactor to make things more elegant/ 
> functional for non-junit testing, feel free to suggest improvements.

Thanks for all the information. One note: its not just non-junit testing.
The latest junit uses annotations just like testng and doesn't require
test classes to subclass anything.

Steve
> 
> T.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Timothy Wall | 4 Nov 14:36 2006
Picon
Picon

Re: Abbot and xerces


On Nov 4, 2006, at 7:59 AM, Steven Buroff wrote:

>
> Thank you. And thanks for your help as I was learning abbot.
> I currently use abbot without subclassing ComponentTestFixture
> and in conjunction with testng rather than junit.
> It seems to work fine but I'm wondering if I'm missing
> something that may bite me later. Here is what I did.
> 	1) I created a class ExtComponentTestFixture that does
> 	   nothing except make all the protected methods public.
> 	2) In my test file in a  <at> BeforeClass method, I create a
> 	   ExtComponentTestFixture and call its fixtureSetup()
> 	   method.
> 	3) In each test I use my ExtComponentTestFixture object
> 	   to get my finders, etc.
> 	4) At the end of each test I call disposeAll().
> 	5) In an  <at> AfterClass method I call fixtureTearDown.
>
> As I say, this is working for simple tests. Am I missing anything
> that might cause me trouble in the future? Thanks again for
> your help.
>
> Steve

Sounds right to me.  I'll grant that it's a bit clunky, and it would  
make sense to refactor ComponentTestFixture to simply be a shell that  
uses a helper object.  One of the things CompoenntTestFixture  
provides is auto-nulling of XXXTester and Component field instances  
within the fixture itself, although that could probably be covnerted  
to a helper method which accepts the object to be cleared.  This was  
required for JUnit, since most (all?) runners keep all test instances  
in memory, which can really suck UI resources.  You just want to make  
sure that your test is no longer referencing any Component instances  
(Window or otherwise) when it finishes.

One other thing handled by the ComponentTestFixture is catching EDT  
exceptions and making them show up as test failures.

Some of the setup/teardown is already in helper classes  
(AWTFixtureHelper and SystemState).

If anyone's willing to refactor to make things more elegant/ 
functional for non-junit testing, feel free to suggest improvements.

T.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane