[Qt-interest] QTestLib + GUI

Brad Hards bradh at frogmouth.net
Tue Nov 16 09:46:55 CET 2010


On Tuesday, November 16, 2010 06:41:27 pm NoRulez wrote:
> What is the best/simplest Solution to test GUIs. To simulate mouse clicks,
> clicks on tableviews and so on?
Simple and best probably aren't going to be the same answer here. Perhaps you 
can refine your question a bit, telling us exactly what you want to do, and 
what level of effort you're prepared to provide?
 
> There is such a simple example, but how do i do this for complex uis?
It depends. Options exist from just extending the simple QTestLib cases, 
through to refactoring your code to make it easier to test (e.g. separating 
out all the logic you have in the UI code and testing that separately).

You also might like to look at Squish.

Brad



More information about the Qt-interest-old mailing list