[Qt-interest] Can QTestLib or sth test standalone Qt application?

Richard Young pawpawyoung at gmail.com
Wed Nov 18 09:53:56 CET 2009


Hi, all,
Can QTestLib test Qt standalone application. Binary application or add stubs
in the source code is also acceptable.
I mean:
I've an cross platform application consists of about 5,000 lines of code,
running on Linux/Windows/Mac and maybe other OS in the future.
The Qt test framework QTestLib is for Qt itself, not for Qt Applications, if
I'm not misunderstanding.
Although
http://doc.trolltech.com/4.5/qtestlib-manual.html says:
The QTestLib <http://doc.trolltech.com/4.5/qtestlib-manual.html#qtestlib>framework,
provided by Nokia, is a tool for unit testing Qt based
applications and libraries.
All the examples on
http://doc.trolltech.com/4.5/qtestlib-tutorial.html
are test cases for Qt itself (Qt classes, Qt Widget classes), not standalone
Qt application.
What I want are:
check if my app's splash screen shows, check if my app's about dialog can be
show, check if my app's all other UI works fine and correctly.

I know LDTP (http://ldtp.freedesktop.org/wiki/) can help me a little, but it
can not cross platform.

Any comments are appreciated.

Pawpaw Young
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091118/70c65b47/attachment.html 


More information about the Qt-interest-old mailing list