java.lang.RunTimeException on Menu widget reference

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

java.lang.RunTimeException on Menu widget reference

Postby ajbetz » Tue Feb 01, 2011 4:22 pm

I recorded against my application on Windows, and I am now trying to invoke the test on Linux. My test code is being executed and obtains the initial UIContext via getUI(). However, my next line of code - ui.click(new MenuItemLocator("File/Preferences...")); - fails. I did a remote debug of my test on this Linux machine, and here is the following:

com.windowtester.runtime.swt.internal.widgets.SWTUIException: Exception occurred on the SWT UI Thread
java.lang.RuntimeException: Failed to create widget reference for instance of org.eclipse.swt.widgets.Menu
WindowTester: 201009131510 - linux,gtk,x86

Does WTP support the ability to re-run recorded tests on other platforms?
ajbetz
 
Posts: 17
Joined: Wed Jan 05, 2011 4:10 pm
Location: Beaverton, OR

Re: java.lang.RunTimeException on Menu widget reference

Postby keertip » Wed Feb 02, 2011 8:24 am

How did you move the tests over to linux?
keertip
Moderator
 
Posts: 221
Joined: Thu Mar 15, 2007 10:26 am

Re: java.lang.RunTimeException on Menu widget reference

Postby ajbetz » Wed Feb 02, 2011 8:54 am

See my comment 2 here: http://forums.instantiations.com/viewtopic.php?f=5&t=5797&p=18872#p18872

These two threads are kind of just halves of one general problem / question that I have ...
ajbetz
 
Posts: 17
Joined: Wed Jan 05, 2011 4:10 pm
Location: Beaverton, OR


Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest

cron