PDA

View Full Version : UNit Testing



Qt_Kid
2nd May 2011, 08:01
Dear All,
6338

I've written a sample unit testing application.

There is a push button. On clicking this button QMessageBox should be opened. Can any body check my application and tell if the code is write or wron. This app us target for Linux (Ubuntu).

BalaQT
2nd May 2011, 11:56
hi Qt_Kid,
add Q_OBJECT in CSample. and in testCase1 why you are using QTest::mouseRelease.
It should be QTest::mouseClick

This should work.
hope it helps,
Bala

Qt_Kid
3rd May 2011, 09:26
Thank you very much. Its wrking nw