SWTBot Vs WindowTester

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

SWTBot Vs WindowTester

Postby aleem » Wed Feb 25, 2009 1:35 am


I feel WindowTester is simply an extension of the open source tool SWTBot. It provides almost similar feature set with some enhancements. (See the site for SWTBot: http://swtbot.sourceforge.net/index.html). Difference between the two is subtle. Can you please elaborate on that?

Further when we can expect the addition of JUnit4 support in WindowTester?

Posts: 1
Joined: Wed Feb 25, 2009 1:23 am

Re: SWTBot Vs WindowTester

Postby Phil Quitslund » Wed Feb 25, 2009 3:08 pm

Hi Aleem,

WindowTester by design is intended to be a bit higher level than the 'Bot approach (such as the AWT Robot, Abbot and SWTBot). The distinction is a essentially like that between JFace and SWT. WindowTester is to JFace as Bots are to SWT. Where this is particularly noticeable is in WindowTester's implementation of a "managed runtime" which allows us to do some interesting things with condition monitoring. See the Shell Monitor docs for an example of this approach in action:


We've found that this mechanism is really handy in writing robust tests.

Similarly, using conditions and handlers in our new ensureThat(..) clauses makes for robust and communicative test setup:


To get a sense for how this all fits into our test writing philosophy you might skim the runtime core docs:


The runtime is also meant to be user-extensible. Pointers for how this can be done are here:


Moreover, a growing body of examples is being collected in our Open Source Commons project here:


Beyond the runtime, WT ships with a fully featured recorder which can be used to generate tests that interact with and make assertions against an existing SWT/GEF/Swing application.


Lastly, you asked about JUnit4. We plan to support JUnit4 as soon as the Eclipse Test Framework fully supports it. Something we hope to see real soon!


I hope this starts to answer you questions. If not, feel free to follow up. Thanks!

Phil Quitslund
Software Engineer
Google, Inc.
Phil Quitslund
Posts: 491
Joined: Fri Apr 28, 2006 6:26 am

Re: SWTBot Vs WindowTester

Postby Eric Clayberg » Wed Feb 25, 2009 6:20 pm

aleem wrote:I feel WindowTester is simply an extension of the open source tool SWTBot.

That could not be further from the truth. WindowTester predates SWTBot by a very ling time and is substantially more sophisticated in terms of what it can do.

aleem wrote:It provides almost similar feature set with some enhancements

WindowTester provides much more complete support for the full range of SWT widgets as well as JFace & RCP components and GEF-based apps.

It also includes a very powerful recording tool that will generate the GUI test code for you. That by itself will save you a tremendous amount of time.
Eric Clayberg
Software Engineering Manager

Author: "Eclipse Plug-ins"
Eric Clayberg
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Return to Window Tester

Who is online

Users browsing this forum: No registered users and 1 guest