Unit Testing
-
Hi,
Please take a look at the QTest tutorial, it shows the basics for GUI testing.
-
Thanks for your updation. Already researched those things, Need some examples regarding on it.
-
Test the widgets like button , check box for FocusIn, Focus out events, mouse events, keyboard events & signals in unit testing.
-
check this http://programmingexamples.net/wiki/Qt
Edit::
http://www.codeprogress.com/cpp/libraries/qt/index.php
Also the Qt4 book has many examples for unit testing. It's like learning Qt while writing small codes. -
Thanks a lot but iam expecting examples of unit testing for focus in , focus out keyboard events not the coding styles.
@Amara Focus in/out means: click on it or select via keyboard (tab key) - this can be done using QTest::keyClick for example.
For keyboard: QTest::keyEvent
For more details see http://doc.qt.io/qt-5/qtest.html
Not sure why you insist on having examples, I don't have any here.