Window Tester dependancy on Eclipse Platform version changes

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

Window Tester dependancy on Eclipse Platform version changes

Postby manikanti » Thu Jun 25, 2009 12:53 am

How tightly Window Tester is dependent on Eclipse Platform i.e. assume say the product that am testing needs an upgrade in future to Eclipse platform 3.6, will WindowTester that currently using Eclipse Platform 3.5, also need to be changed?
What are Window Tester dependency on Eclipse plugins version changes?

Thanks,
-Sreedhar Reddy
manikanti
 
Posts: 12
Joined: Tue Jun 16, 2009 8:06 pm

Re: Window Tester dependancy on Eclipse Platform version changes

Postby Phil Quitslund » Fri Jun 26, 2009 8:32 am

The WindowTester binaries will be largely future-safe (we hope! ;)). The tests themselves may require a bit of updating. For instance, we have a few spots like this in our own tests:

Code: Select all
String id = Eclipse.VERSION.isAtLeast(3,4) ? "org.eclipse.search.OpenSearchDialogPage" : "org.eclipse.search.ui.openSearchDialog";
ui.click(new ContributedToolItemLocator(id));


and another example:

Code: Select all
private static final String DELETE_RESOURCES_SHELL_TITLE = Eclipse.VERSION.isAtLeast(3,4) ? "Delete Resources" : "Confirm Project Delete";


The Eclipse utility class can be found here:

http://wt-commons.googlecode.com/svn/trunk/helper-libs/eclipse/plugins/org.wtc.eclipse.core/src/org/wtc/eclipse/core/util/Eclipse.java

Hope this helps!
--
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