junitwxpythonpygtkrpagui-testing

Is there a Windowlicker for wxpython?


Having recently read "Growing OO systems guided by tests", I am very impressed with the windowlicker testing utility for java/junit. Basically it wraps the GUI and GUI-interaction with drivers and gestures, so your integration/end-to-end tests can be written neatly like:

//setup
ui.enterUserDetailsFor(newUser)
ui.sendForm()
//assert
ui.showsWelcomeMessage()

All swing-gui-thread synchronization and finding widgets etc is nicely isolated in the framework. Exactly this sort of higher level testing is something I really miss in my current wxPython project. Is there anything at all similar for wxgtk/wxpython? What I can tell from the windowlicker source it builds on java.awt.robot, if there isn't a windowlicker, is there anything like robot?


Solution

  • I haven't heard of anything specifically for wxPython. You can use the Widget Inspection Tool for some of the stuff you are talking about though. See here:

    http://wiki.wxpython.org/Widget%20Inspection%20Tool

    There's also the Sikuli project which is GUI-agnostic:

    http://groups.csail.mit.edu/uid/sikuli/

    Hopefully one of those will help you out.