Object level (non-pixel dependent) automation for QT-based GUIs?

若如初见. 提交于 2019-12-23 02:42:24

问题


I'm looking for some advice and insight on how people approach creating Object-level GUI automation. Technically the type of functionality I am trying to achieve is easily described by Squish software. I want to be able to simulate Key-Press and Mouse Click events without relying on Platform-specific pixel displays, and screen sizes. I've tried to use tools like Sikuli, but unfortunately my application varies too from platform to platform to make reliably re-repeatable tests.

Basically what I am looking for is some advice as to where to look at how 3rd Part (EXTERNAL) programs hook into properties of QT Widgets and other objects. I know a long time ago there was something call QtObjectInspector, but this software required you making Source-Level changes to your Qt code to be compatible on top of being unavailable.

If companies like Squish can do it, how are they doing it? Where do you start? I doubt they are looking at very low level memory interactions, sniffing for "Traffic" that looks like QT on each different system, but I may be wrong.

I'm sorry for such a vague question, but I've been researching for over a day and all I can find now is articles about how amazing Squish is.

Thanks!

EDIT: I looked into QtTestLib, however this doesn't have the "From the outside" kind of access that I am looking for.

来源:https://stackoverflow.com/questions/20234421/object-level-non-pixel-dependent-automation-for-qt-based-guis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!