<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
From: Antonio Valentino <<a href="mailto:antonio.valentino@tiscali.it">antonio.valentino@tiscali.it</a>><br>
I'm very interested in this topic so if anyone has some useful pointers<br>
to material about unittesting of PyQt based GUI applications please share.<br></blockquote><div><br></div><div>I have found Sikuli (<a href="http://www.sikuli.org/">http://www.sikuli.org/</a>) useful for this. You can set up quite complex scenarios and validate the GUI response.<br><br></div><div>A Sikuli script is a Python script. Basically you start one off with <br><br>subprocess.Popen(['/usr/local/bin/python', 'path-to-test-driver.py'])<br><br></div><div>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".<br><br></div></div></div></div>