Rombo
Rombo

Reputation: 361

Automated functional testing qt apps in windows

I'm trying to create scripts that test if some GUI components exist inside a window (combo boxes, check boxes, the state of check boxes, etc.) The app I want to tests is written in QT and running on Windows 7. Its content is created dynamically.

I've tried with swapy/pywinauto, AutoHotkey and AutoIt. But as they rely on standard Windows API calls they are useless for this (need a solution that involves QT).

Any recommendation will be appreciated.

Upvotes: 2

Views: 1975

Answers (2)

Robert Ilbrink
Robert Ilbrink

Reputation: 7953

Are you aware that AutoHotKey Windows Spy allows you to see if certain GUI objects exist inside a window. In the example image you see that I held the mouse over a combo box named ComboBox5. Are you trying to test at this level?

enter image description here

The rest can be found here already:Check if a certain button is existing or not using autohotkey

Upvotes: 1

Nemanja Boric
Nemanja Boric

Reputation: 22157

You can try QtTestLib for integrated solution, or, if you want (and can afford) commercial solutions, I am aware of squish and kdexecutor.

Upvotes: 2

Related Questions