[PyQt] Testing a standalone dialog widget
David Cortesi
davecortesi at gmail.com
Mon Dec 29 22:41:28 GMT 2014
> From: Antonio Valentino <antonio.valentino at tiscali.it>
> I'm very interested in this topic so if anyone has some useful pointers
> to material about unittesting of PyQt based GUI applications please share.
>
I have found Sikuli (http://www.sikuli.org/) useful for this. You can set
up quite complex scenarios and validate the GUI response.
A Sikuli script is a Python script. Basically you start one off with
subprocess.Popen(['/usr/local/bin/python', 'path-to-test-driver.py'])
and then continue with Sikuli statements to click, or type, or look for
specific visual items in the UI presented by the test-driver.py execution.
There is an interactive tool for dragging to select particular bits of UI,
a menu or a dialog or whatever, and say "expect that here".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20141229/50a3c965/attachment.html>
More information about the PyQt
mailing list