Unit Testing
-
wrote on 9 Mar 2017, 08:27 last edited by
How we can Test the FocusIn, Focus out events, mouse events, keyboard events, signals & slots in unit testing.
-
Hi,
Please take a look at the QTest tutorial, it shows the basics for GUI testing.
-
wrote on 9 Mar 2017, 11:34 last edited by
Thanks for your updation. Already researched those things, Need some examples regarding on it.
-
Thanks for your updation. Already researched those things, Need some examples regarding on it.
@Amara Examples for what?
-
wrote on 9 Mar 2017, 12:06 last edited by
Test the widgets like button , check box for FocusIn, Focus out events, mouse events, keyboard events & signals in unit testing.
-
Test the widgets like button , check box for FocusIn, Focus out events, mouse events, keyboard events & signals in unit testing.
-
wrote on 9 Mar 2017, 12:14 last edited by
If anyone has example in the unit testing. Please update.
-
wrote on 9 Mar 2017, 12:41 last edited by Ni.Sumi 3 Sept 2017, 12:48
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.
1/10