Autotesting application written on Qt with Python
<p>I want to test application written on Qt by Python.
Workflow that I want:
1. Python script should run .exe
2. Python script should get/set info from/into active window.</p>

<p>Is it possible to manipulate Qt window if I know "object name" (<a href="http://doc.qt.io/qt-5/qobject.html#objectName-prop" rel="nofollow">http://doc.qt.io/qt-5/qobject.html#objectName-prop</a>)?</p>

<p>Thanks a lot! :)</p>

<p>You will need a method of communication between the Python test and the program.</p>

<p>For example the program could read commands from STDIN or a socket when being started in a test mode and the test would write to that.</p>

<p>Depending on the platform it might also be possible to expose objects via a remote procedure calling mechanism, e.g. D-Bus (using QtDBus on the program side and Pythons D-Bus bindings on the test side).</p>

<p>Ultimately it might be better though to consider using an existing test suite with Qt support, such as <a href="https://www.froglogic.com/squish/gui-testing/" rel="nofollow">Squish</a> or <a href="https://wiki.ubuntu.com/Touch/Testing/Autopilot" rel="nofollow">AutoPilot</a></p>

python c++ qt automated-tests