Unsolved Unit Testing
-
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.
-
Thanks for your updation. Already researched those things, Need some examples regarding on it.
-
@Amara Examples for what?
-
Test the widgets like button , check box for FocusIn, Focus out events, mouse events, keyboard events & signals in unit testing.
-
You want to test some thing whether are there working (like playing around) or some other way?? You can make small samples to test them or play around. check the Qt examples, or use you ca use qDebug.
-
If anyone has example in the unit testing. Please update.
-
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.