Skip to main content
Jump to: navigation, search

Difference between revisions of "SWTBot/Proposal"

m (updated to reflect notes about extensibility.)
m (moved interested parties/committers around)
Line 46: Line 46:
'''Initial committers'''
'''Initial committers'''
* Ketan Padegaonkar (ketanpadegaonkar at gmail)
* Ketan Padegaonkar (ketanpadegaonkar at gmail)
* Sriram Narayanan (ram at
* Stephen Paulin
'''Potential committers''' (individuals who have contributed patches)
'''Potential committers''' (individuals who have contributed patches)
Line 63: Line 63:
* Emanuel Graf (egraf at
* Emanuel Graf (egraf at
* [ RAP] (Benjamin Muskalla)
* [ RAP] (Benjamin Muskalla)
* Sriram Narayanan (ram at

Revision as of 15:23, 23 July 2008

Draft proposal

This is a draft proposal, feel free to contribute to it!


SWTBot is proposed as an open source project under the Eclipse Technology Project ( This proposal is still in the Project Proposal Phase, and is being made in order to call for more community participation.

SWTBot ( is a functional testing tool for SWT/Eclipse based applications that eases and supports testing of multithreaded applications. SWTBot is capable of playback and recording of SWTBot Java "scripts", there are plans to provide scripting support for various other languages including JRuby (, and Groovy (

Background and Goal

The development of applications based on SWT, RCP and the Eclipse platform in general is growing fast. With Eclipse based applications becoming more and more complex by the day, manual testing of Eclipse applications becomes a major concern in the development lifecycle of the application. The need for automated testing is inevitable in such cases and SWTBot helps projects in such cases.

Automated testing code needs the same love and affection that code does. This means better IDE support for writing tests, reusing test code, refactoring, etc. Simplifying this test code so that it is agnostic of SWT and Eclipse and deals with UI paradigms would be appealing to non-developers and would help address this issue to a large extent.

The goal of SWTBot is to provide APIs that can be used by programmers to drive SWT based UIs.

SWTBot can be extended in a limited number of ways to add support for new widgets and actions that can be performed on those widgets. The proposal does not express this extensibility, because testability of eclipse based applications is the primary usage of SWTBot.

SWTBot has demonstrated some of these capabilities ( very early on, and is being supported by a few contributors.

The goal of SWTBot is to provide a lightweight functional testing tool for SWT and Eclipse, and to make it easy for non-developers to automate testing of applications written using Eclipse in a way that is consistent with what has been stated above.


There is currently some of overlap between SWTBot and TPTP's AGR. TPTP supports Eclipse plugins, but does not support plain SWT applications, nor easy Ant integration. SWTBot's focus is to become a low level driver to drive SWT and Eclipse applications while filling these shortcomings of AGR.

Packaging and Deployment

SWTBot currently ships in the form of an Eclipse update site, and also an independent .zip/.tgz download. It would continue to ship in these forms.

Project Scope

The scope of SWTBot is to make writing tests for SWT and Eclipse applications easier not just for developers who understand the technologies, but also for Quality Analysts who understand the application and not the underlying technologies used to build them.

SWTBot should integrate well with JUnit so as to make execution and reporting of tests independent of Eclipse, yet integrate well with Eclipse. This would mean that SWTBot tests can be run as an Ant task as part of Continuous Integration using CruiseControl.

There are also efforts by individuals to port SWTBot to eRCP/eSWT.

Future Work

It is proposed that SWTBot should provide APIs that enable scripting languages based on the JVM. This would mean that scripts could potentially be written with JRuby using Glimmer ( or with Groovy using GroovySWT (

To make writing scripts easier, it is also proposed to provide better Eclipse integration, introspection of the application, and basic support for scripting/debugging.



  • Chris Aniszczyk
  • Ed Merks

Initial committers

  • Ketan Padegaonkar (ketanpadegaonkar at gmail)
  • Stephen Paulin

Potential committers (individuals who have contributed patches)

  • Cedric Chabanois (cedric.chabanois at
  • Lechner Sami (lechner.sami at gmail)

Interested parties

  • PDE (Chris Aniszczyk)
  • ThoughtWorks Studios (
  • Nirav Thaker (nirav.thaker at gmail)
  • Ravi Chodavarapu (rchodava at
  • Stefan Seelmann, Apache Directory Studio (seelmann at
  • ANCiT Consulting, (Annamalai C, annamalai at
  • Ben Xu (xufengbing at
  • Mirko Stocker (me at
  • Emanuel Graf (egraf at
  • RAP (Benjamin Muskalla)
  • Sriram Narayanan (ram at

Copyright © Eclipse Foundation, Inc. All Rights Reserved.