good robots do what they're told

SWT Support for Window Licker

Window Licker is a framework designed to help you define your own API for GUI testing. It provides a driver style API that your Swing or Ajax applications plug into before you go about writing GUI tests in a language natural to your application.

We’ve been doing some driver based GUI testing for our web apps using HtmlUnit so I was naturally interested in Window Licker with regard to rich client based testing. I’ve been trying to test my SWT based apps at the unit level as much as possible, but it’s not always straight forward separating the behaviour of GUI classes from GUI elements. How do you test that all the validation behaviour is plumbed in correctly and fires at the right time in a text box? So, Window Licker seemed like a great candidate to getting some real user style testing. Great!

The bad news is that Window Licker doesn’t yet support SWT. Boo! The good news is it gave me a great chance to have a go at implementing basic SWT support in Window Licker. Yey!

Check out the patch I wrote, or the thread where it’s discussed.

Over to you...