Reputation: 487
I have a task to automate Qt QML based desktop applications through open source frameworks. I am completely new to testing and also to Qt QML. I am good with Java and Python and also Javascript.
Upvotes: 3
Views: 4452
Reputation: 160
Have a look at Spix. Once you link against it, you can remote control your QML UI by sending fake events, either from C++, or from a script using RPC. Any scripting language that supports XML-RPC, like python, can be used. This way, you can automate and test your Qt/QML application.
Objects are identified by paths, so you don't have to deal with coordinates. Spix finds the item by the objectName
property set in QML.
You can also query object properties from the script...
The library is fairly new and under development, but I think it already covers a lot of the more common use cases in desktop apps...
Upvotes: 6