0

I am testing a QT app on Redhat Linux and many of the controls have a graphic and not text. On windows I would use Spy++ to get the id/name of the control but not sure what to use on Linux and have not been able to find an answer on Google.

I would like to be able to say: On screen xyz button project.com.moduleName.buttonName - is missing caption, does not do x as expected. It should have caption blah and should do xyz.

What are my options for find the name of the button without going to the source?

Michael Hobbs
  • 1,663
  • 1
  • 15
  • 26
  • 1
    Maybe the answer to question http://unix.stackexchange.com/questions/31487/is-there-a-winspy-like-tool-for-linux-x-gtk-qt can help you? – Wim Sep 30 '15 at 11:44
  • 1
    I should have added that I have read that question. While it does help with information on the general state of a window/app it does not give information on buttons/controls. Thanks though... – Michael Hobbs Sep 30 '15 at 12:19
  • Why do you need button names if you don't have the source code? They are meaningless otherwise. I think you really need to tell us what you want to do. "I am testing" is **way too little detail**. For this question to make any sense, you must tell us **exactly** what you're trying to do, and why do you think button names are somehow relevant. Remember: the source code could have been obfuscated before compilation. – Kuba hasn't forgotten Monica Sep 30 '15 at 14:51
  • I am attempting to identify controls that have no labeling or caption for logging an issue against in a bug database. – Michael Hobbs Sep 30 '15 at 17:27

1 Answers1

1

On windows I would use Spy++ to get the id/name of the control

Not really. Or, rather, perhaps in ancient code that still uses WINAPI controls. On modern code, Spy++ is next to useless. You'd need specialized tools for WPF and Qt applications.

Alas, you're not looking for Spy++, but for a testing application. FrogLogic's Squish is the go-to tool for this, I'd think.

Community
  • 1
  • 1
Kuba hasn't forgotten Monica
  • 95,931
  • 16
  • 151
  • 313