SWTBot - SWT/Eclipse Testing, and lessons learned along the way
The need for having functional tests that are at a level of abstraction higher than unit-tests is an important part of testing the end-to-end behaviour of any application.
Writing SWT tests necessiated an indepth understanding of SWT, of UI Threads, and of bringing SWT UI testing to the end user. This also highlights the need to write a framework that allows for a simple API to write tests.
today is acapable of driving the various SWT components
, and some of Eclipse features
like auto-complete, auto-suggest, key-strokes, etc. The development focus at present is on exposing SWT Controls in a test friendly manner, with support for scripting languages lined up for the future.
The talk will highlight some challenges faced in writing such a functional testing tool for SWT/Eclipse, and show the simplicity and ease with which one can write functional tests for SWT/Eclispe applications.
Ketan Padegaonkar is a developer at ThoughtWorks. At work, he's writing a the next generation FIT IDE, targeted at business analysts, and based on the Eclipse platform. He is also writing SWTBot, an open-source functional testing tool for SWT, and Eclipse based applications in general.
He is the maintainer for the RCP bundle of JCRBrowser, a viewer for Content Repository for Java(JSR-170)
He loves open-source, technologies and follows up closely on Eclipse developments. He has been working on Eclipse technologies for sometime now, and likes to evangalize Eclipse.
There are rumors that he loves Gentoo Linux and loves building Eclipse from source in the spirit of Gentoo.
When he's not at his computer writing bugs, he can generally be found playing Age-of-Empires or Counter Strike. Recently he's learning to create noise using a guitar.
Ketan is currently in Bangalore, and can be contacted at KetanPadegaonkar at gmail.com