MvGulik Posted January 23, 2012 Posted January 23, 2012 (edited) Wonder if anyone might have some additional information about possible automating QT GUI's stuff. (other than the general pixel scanning stuff of course.)+ related to autoit in some way. (or else it would be a Chat topic.)That there is a way when there is a will is clear -> http://smartbear.com/products/qa-tools/automated-testing/testing-qt-apps/See the demo for the app in action.Thinking this is probably done with the help of some QT API. But than again, Don't know that much about QT.... With all that Java (and other multi OS code/cross platform, etc) stuff, real win windows are getting rare. ...---Test case finished successful.Now the rest ... and I'm off hunting for a martian beagle, or 2.... Well that what the plan ... Edited January 24, 2012 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
water Posted January 23, 2012 Posted January 23, 2012 Does help? My UDFs and Tutorials: Reveal hidden contents UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
MvGulik Posted January 23, 2012 Author Posted January 23, 2012 Note sure yet ... but will dig into it. Thanks. (+adding 'QWidget' to my search parameters.) "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
MvGulik Posted January 23, 2012 Author Posted January 23, 2012 (edited) Lets drop this in before some def likes to have some fun.Turns out Au3Info now also will give back information on Qt windows. Quote 3.3.7.7 (31st May, 2011) (Beta)Au3Info:- Added: Option "Use Spy++ control detection logic" toggle added to Au3Info (this was the mode always used in recentreleases, but the very old method that used to be used is useful in certain applications (for example, putty.exe)- Fixed #1746: Option "Use Spy++ control detection logic" toggle added to Au3Info.@WaterI'm pretty sure now it helped. ---(If only all 'users' where that easy) Edited January 25, 2012 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
water Posted January 24, 2012 Posted January 24, 2012 Glad to be of service My UDFs and Tutorials: Reveal hidden contents UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
MvGulik Posted January 24, 2012 Author Posted January 24, 2012 (edited) Erm ... A correction and a word of warning here.Don't know if this is just something related to the target app or just the Qt GUI.But RanorexSpy seems to do something to the target App/GUI that also enables Au3info to read the Qt controls.For AutoIt scripts this results in some commands also changing there output (Data / NoData). But not all.Still a major speed bump I could have done without.Nope, back at where I started. ---Restart:- "Qt accessibility" ...- "Microsoft Active Accessibility" ...- interface-autoitobject-iuiautomation ...- Au3info returning Qt GUI data again after after running junkew's code.- ... (more reading todo)- ... Bah, Know that with 'uiautomationcore.dll' and/or 'Oleacc.dll' there is a solution. But wrapping my head around this stuff ... Edited January 25, 2012 by MvGulik "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
MvGulik Posted February 12, 2012 Author Posted February 12, 2012 Nope ... Project kinda stalled on the general complexity (to me) of the code in interface-autoitobject-iuiautomation ... O well. "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
junkew Posted February 26, 2012 Posted February 26, 2012 What do you want to tackle? With the iuiautomation stuff you can do a lot of stuff in an easy manner once you get the logic behind it and if the widgets under test support accessibility QT in general supports accessibility FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
MvGulik Posted February 26, 2012 Author Posted February 26, 2012 Tackle: Automation-control (read+write) of the program HiView.The "once you get the logic behind it" part was/is kinda eluding me. Or at least that's what its feels like.To more specific on what part(s) I get hangup I probably should take a other look/try at it. Bottom line being a bit of 'not managing to extract a smaller working code sample to play/experiment with. (From your last posted example code, which was kinda big.) "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
junkew Posted February 26, 2012 Posted February 26, 2012 I doubt if that application can be tackled with IAccessible or IUiautomation. Unfortunately QT widgets do not expose all child controls. I tried with inspect.exe (part of win32 SDK tools) to see how QT stuff is recognized.An alternative would be to build and integrate some stuff thats here (but that would be a whole project to integrate into AUTOIT librarys): https://github.com/robertknight/Qt-Inspector FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
MvGulik Posted February 27, 2012 Author Posted February 27, 2012 Bummer. Qt-Inspector: even way more over my head. Thanks anyway. "Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions.""The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014) "Believing what you know ain't so" ... Knock Knock ...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now