Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. GUI Testing - QTestLib
Forum Updated to NodeBB v4.3 + New Features

GUI Testing - QTestLib

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kumararajas
    wrote on last edited by
    #1

    Hi,

    I am developing Qt application for my embedded platform. I would like to test my GUI screens. I did come across many tools such as TDriver, Squish, Ranorex, QTestLib, etc.

    I am more interested to know about QTestLib, If I can test my Application's UI Screens. Is it possible? If yes, How do I do it?

    Can anyone explain me please?

    Thank you,
    Kumara

    --Kumar

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you mean something like "QTest::mouseMove":http://qt-project.org/doc/qt-5/qtest.html#mouseMove and it's friends ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kumararajas
        wrote on last edited by
        #3

        Sam!

        Yes, something of that sort!

        Example to visualize the need:

        Assume, there is a form that takes employee details such as "Employee ID, Name, Mobile". Form has OK button. On click OK, it validates the field. On success, form gets loaded with new fields such as "Employee family details" "Spouse details", Children Information", etc.

        What I need to test is,
        In the first screen, the test framework suppose to enter the fields with the data and click OK and the application will do the validation. Test framework shall enter all the fields with different combinations to test the failure case as well. On Success, form is expected to load the next screen in the UI. UI framework shall conform that, etc, etc.

        Please let me know if it explains the problem..

        --Kumar

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Well, then you can write that "script" using QTest to e.g. move the mouse over the button and click on it,

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kumararajas
            wrote on last edited by
            #5

            Thanks Sam! I'll give a try and get back if I have any more questions.

            Thank you!

            --Kumar

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved