Navigation

    Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Tags
    3. qtestlib
    Log in to post

    • SOLVED Source files compiled multiple times with Qt Test
      General and Desktop • test qtest qtestlib • • Maluna34  

      3
      0
      Votes
      3
      Posts
      236
      Views

      Oh yes, it's logic. Thanks !!!
    • UNSOLVED How to properly handle asynchronous events with Qt test framework? QSignalSpy::wait() returns false even though signal emitted during given time interval
      General and Desktop • qnetworkaccessm qnetworkreply qtest qtestlib qsignalspy • • Red Baron  

      3
      0
      Votes
      3
      Posts
      1991
      Views

      Thanks for the reply. Will check it out.
    • SOLVED Using QTest for GUI testing
      Tools • moc qtest qtestlib gui testing • • koahnig  

      2
      0
      Votes
      2
      Posts
      1265
      Views

      @koahnig Basically two problems on my side. .moc is not generated for every dialog as I thought. I got confused by name convention. moc_*.cpp are being produced. However, I had made another stupid error before. Accidently I had placed my test code into the contructor of the testing class and not in the routine testCase1() as required. However, since I had no problems from the being, I did not pay attention to this details. After moving the code to testCase1() also the test returns from my widget are monitored.
    • UNSOLVED Qt Data Driven Test row name
      General and Desktop • qt5.6 test data qtestlib • • diredko  

      6
      0
      Votes
      6
      Posts
      2033
      Views

      Nice one ! I've missed that function. Thanks !
    • QEventLoop and qWait interaction
      General and Desktop • qeventloop qtestlib • • Svalorzen  

      4
      0
      Votes
      4
      Posts
      1695
      Views

      You can find the implementation in qtestsystem.h It basically trigger event processing and sleeps a short time. Can you show a picture of how your system should work ?
    • Propagating failing unit tests to Qt Creator issues-pane with QTestLib
      Tools • qtcreator qtestlib • • Borkr  

      4
      0
      Votes
      4
      Posts
      1011
      Views

      Yes, each unit test gets its own executable. You can check Qt's sources, it's working quite well. Thanks for pointing to the request.