Results 1 to 2 of 2

Thread: GUI runner of QTestLib

  1. #1
    Join Date
    Mar 2007
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default GUI runner of QTestLib

    I just wrote qui test runner of QTestLib. Althouth I tried to make it run somewhat similiar to JUnit, it's not interactive as JUnit because there's no way to capture(hook) call of test functions.

    So, I saved test results in xml format and read them after all tests are executed(This is why my runner is not interactive). Are there any alternatives for this?

    You guys can download the source code and see screenshots here:

    http://janbyul.com/moin/moin.cgi/Qt4/UnitTestByMyself


    Thanks,
    Intaek.

  2. #2
    Join Date
    Jan 2006
    Posts
    128
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: GUI runner of QTestLib

    What you could do is use QXmlStreamReader from the not yet released 4.3. It allows you to read XML data in a stream based way, meaning you can start to parse the data before the document is finished, i.e. updating on the fly. (See Incremental parsing)

    On a different note:
    I am not sure if your approach to run the tests in process is the ideal solution - tests can crash, and sometimes tests need application objects themselves. I am not sure that having two QApplication objects in an app works. Why don't you try launching the test using QProcess and processing the output of it using QXmlStreamReader?

  3. The following user says thank you to camel for this useful post:

    Intaek Lim (25th April 2007)

Similar Threads

  1. GUI Test Runner for CppUnit
    By 3dch in forum Qt-based Software
    Replies: 4
    Last Post: 20th September 2011, 12:28
  2. GUI version of test runner
    By Intaek Lim in forum Qt Programming
    Replies: 1
    Last Post: 17th April 2007, 10:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.