Issue with swing dialog in a RCP app from ant run

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

Issue with swing dialog in a RCP app from ant run

Postby min » Tue Apr 07, 2009 5:49 pm

Hi there,
We have a RCP application ported from an existing Swing application, so it has reused existing Swing dialogs using AwtEnvironment and existing Swing panels using SWT_AWT bridge. I have been able to hand-code some automation testcases and make them run successfully inside eclipse using Run As -> JUnit Plug-in Test. However, when I am trying to run the same testcases outside eclipse using ant script posted from your site, I found that automation works to the point where the first Swing dialog is supposed to show up. At that point, Swing dialog does not pop up without errors in the log. I am wondering if this is a limitation on eclipse testing framework itself or not, or something we have to change in the ant script to make it work. Thanks for your help on this.
Posts: 1
Joined: Tue Apr 07, 2009 5:39 pm

Re: Issue with swing dialog in a RCP app from ant run

Postby Phil Quitslund » Wed Apr 08, 2009 10:36 am

This may indeed be an Eclipse Test Framework limitation. One thing to try would be to try and run a similar test that pops the same dialog but does not use windowtester. Is there a programmatic way to trigger this dialog (e.g., a command or action)?
Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
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