Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. C++ Gurus
  4. Doubts in QT testing
Forum Updated to NodeBB v4.3 + New Features

Doubts in QT testing

Scheduled Pinned Locked Moved Unsolved C++ Gurus
4 Posts 2 Posters 430 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.
  • S Offline
    S Offline
    Shruthi
    wrote on last edited by
    #1

    Hi Everyone,

    I want to do the behaviour test for the QT GUI. I am very new to this testing.
    Here I want to load the files automatically to the lineEdit. How can we do that while testing?
    Now I am browsing to the particular path and loading the file. But in testing it should automatically load the files in all the lineEdit?

    Any suggestions and the documents will be of great help.

    Thank you
    Shruthi

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

      Hi,

      Did you already check the Qt Test module ?

      You might also want to consider using Squish

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

      S 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you already check the Qt Test module ?

        You might also want to consider using Squish

        S Offline
        S Offline
        Shruthi
        wrote on last edited by
        #3

        @SGaist Ya I gone through the Qt Test module. And now I am able to do test construction for all the GUI elements. But I got stuck in behaviour testing of the GUI elements. Please let me know how to go ahead with this.
        Thank you.

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

          You can for example get the widget you want using findChild.

          Or depending on how you implemented it, do that through a dedicated API.

          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
          1

          • Login

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