[Qt-interest] QTest Lib: pass a cmd argument to a test function
R. Reucher
rene.reucher at batcom-it.net
Mon Jan 25 14:49:38 CET 2010
Sarvesh Saran wrote:
> The idea is to feed input to my GUI application ( the input here is a file
> name which is generated dynamically by another script), click on certain
> buttons or actions and "operate" the GUI app. But I would like to do this
> automatically and was hoping to do so through the Test Lib.
Well, I think you _can_ do this with QTest, although it may not be meant for
this. I'm using QTest in my application as well although I'm not testing the
app (I find that using QTest::wait() is a nice helper in some areas,
although it always be done differently...).
Anyway, this may help:
http://doc.qt.nokia.com/4.6/qtesteventlist.html
http://doc.qt.nokia.com/4.6/qtest.html
Then use the commands from your input file and act on them by creating
simulated events.
HTH, René
--
René Reucher
rene.reucher at batcom-it.net
http://www.batcom-it.net/
More information about the Qt-interest-old
mailing list