Failed to post MouseMove event.

WindowTester allows you to easily create and run unit tests for every GUI they build. It can also be used to generate system level tests.

Moderators: gnebling, Eric Clayberg, Dan Rubel, keertip, Phil Quitslund

Failed to post MouseMove event.

Postby klaraward » Tue Apr 13, 2010 6:51 am

I get the following exception when trying to run our windowtester tests

java.lang.RuntimeException: Failed to post MouseMove event.
at com.windowtester.runtime.swt.internal.selector.PopupMenuSelector2.invokePopup(PopupMenuSelector2.java:136)
<snip>
at com.windowtester.runtime.swt.internal.UIContextSWT.contextClick(UIContextSWT.java:328)
at com.jrockit.mc.uitest.helpers.browser.impl.BrowserHelperImpl.startMissionControlConsole(BrowserHelperImpl.java:380)

Log includes

!MESSAGE post of event (Event {type=5 null time=0 data=null x=58 y=57 width=0 height=0 detail=0}) failed --- retrying [1/30]
<snip>
!MESSAGE max retries (30) exceeded, giving up on posting: Event {type=5 null time=0 data=null x=58 y=57 width=0 height=0 detail=0}


I'm using Windows 7 (64 bit), Eclipse 3.5, Windowtester 3.9. Works for my collegue with Vista (probably lot's of other differences in our setups of eclipse, windowtester etc as well), I have yet to try on another Windows 7 machine.

Any ideas?
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: Failed to post MouseMove event.

Postby Phil Quitslund » Tue Apr 13, 2010 7:55 am

Is this consistent? And what happens in playback? Is this just logging output/noise or does the test fail?
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: Failed to post MouseMove event.

Postby klaraward » Wed Apr 14, 2010 4:20 am

Happens every time, so very consistent.
Changed to a trial of Windowtester 5.0.1,
did a record/playback of a newly created and empty Eclipse Application, just recording a click on Package Explorer tab

IUIContext ui = getUI();
ui.click(new CTabItemLocator("Package Explorer")); // Line 27

Got this exception, nothing exciting in the console log

com.windowtester.runtime.WaitTimedOutException: Max retry period (30000 milliseconds) exceeded.
at com.windowtester.runtime.swt.internal.operation.SWTOperation.execute(SWTOperation.java:120)
at com.windowtester.runtime.swt.internal.selector.DisplayEventDispatcher.mouseMove(DisplayEventDispatcher.java:305)
at com.windowtester.runtime.swt.internal.selector.UIDriver.mouseMove0(UIDriver.java:358)
<snip>
at com.windowtester.runtime.swt.internal.UIContextSWT.click(UIContextSWT.java:307)
at ET.testET(ET.java:27)

And yes, the test fails.

Setup
Eclipse 3.5.2
WindowTester Runtime 201004081534
OS: Windows 7, amd64, 6.1
Java: BEA Systems, Inc., 1.6.0_14
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: Failed to post MouseMove event.

Postby klaraward » Wed Apr 14, 2010 11:43 pm

Seems I can't even run the most basic awt.Robot things on my machine

java.awt.Robot robot = new java.awt.Robot();
robot.mouseMove(200, 200);

Investigating this, withdrawing my question from this forum for now.
klaraward
 
Posts: 11
Joined: Tue Apr 13, 2010 1:33 am

Re: Failed to post MouseMove event.

Postby Phil Quitslund » Thu Apr 15, 2010 9:07 am

Sounds good. Keep us posted!
--
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Moderator
 
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest