[Qt-interest] QTest Lib: pass a cmd argument to a test function

Thiago Macieira thiago at kde.org
Mon Jan 25 14:51:16 CET 2010


Em Segunda-feira 25 Janeiro 2010, às 14:32:14, Sarvesh Saran escreveu:
> Hi,
> 
> I see. Well I am not really testing my application but what I really want
> to do is to automate certain events..
> 
> 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.
> 
> Is there any other way I can achieve this?  ( in this case the GUI app is a
> part of a test harness script and prepares certain reports/graphs from the
> input file..I would like to automate the report generation process)

Please read the link I posted:

http://doc.trolltech.com/4.6/qtest.html#QFETCH

You automate your test by writing the different test cases and test functions 
using this construct.

You should not influence the test from the outside the process.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100125/1121f999/attachment.bin 


More information about the Qt-interest-old mailing list