PDA

View Full Version : How to unit test a Qt Gui



mitskits
20th January 2006, 08:20
Hi all, I have two general questions on unit testing of Qt Guis:

a) The tutorial on the web shows how to create a stand-alone executable test. If I want to run a Gui test inside another function what is the best way to do it? Just declare an instance of the test class and call the relevant methods?

b) Can I use Qt's GUI testing inside a CppUnit test?

thanks,
Dimitri

e8johan
20th January 2006, 08:36
Froglogic has a product called Squish that does this: http://froglogic.com/pg?id=Products&category=squish , but of course you can just simulate user action through a standard unit testing procedure (calling functions as you suggest).