How to test faster GUI applications?
<p>I'd like to know to test faster my GUI applications. </p>

<p>For the backend I got a good set of unit-tests, so I think that's quite ok and I can iterate quite fast. </p>

<p>But to test the frontend logic I find myself running over and over repeating the same sequence of events to test certain part of the logic... and that feels like I'm doing something clearly wrong here because my iteration cycle is not as faster as I'd like it to. </p>

<p>So, could you suggest me a good way to test GUI applications? in particular I'm pretty much interested to know how to speed-up my PyQt apps testing cycle.</p>

<p>If you're just trying to validate that certain GUI actions do the correct thing, you can use <a href="http://pyqt.sourceforge.net/Docs/PyQt4/qtest.html" rel="nofollow"><code>QTest</code></a> to simulate button clicks and other GUI interaction.</p>

<p>Ideally, most of your business logic is in non-GUI modules to make it easier to test.  That way, GUI testing is limited mostly to testing if the results display correctly and that key presses trigger events.</p>

python qt user-interface pyqt gui-testing