Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Testing with QTestLib [Edited title]
QtWS25 Last Chance

QML Testing with QTestLib [Edited title]

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 4 Posters 6.0k Views
  • 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.
  • C Offline
    C Offline
    chandra_satyam
    wrote on last edited by
    #1

    Hi,

    I want to automate the QML exported APIs, is there any Framework or tools available for this.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      giesbert
      wrote on last edited by
      #2

      Can you please specify what you mean by automate?

      • automated tests?

      Nokia Certified Qt Specialist.
      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Could you expand on that question a bit? It is totally unclear to me what you want to do.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          chandra_satyam
          wrote on last edited by
          #4

          Hi,
          Thanks for the response.
          Here is the exact scenario or problem I am facing.

          For example I have written a SignIn Use case in Qt API and using QtTestlib framework and MytestQtAPP I used to access the QT API that is exposed. And I used to pass the values for that and run the Signin case without manual interaction say for 10 times I was executing the SingIn case..
          Now we are writing a QML binding wrapper on top of Qt API, I need to use this QML Binding interface which expose the SingIn API and test it same way..
          As QtTestlib was there for QT.
          My doubts were like

          1. Can I reuse the QtTestlib for this kind of automation testing
          2. If not, Which framework or Tool can I use for automation testing for this kind of QML binding wrapper class on top of QT.
          1 Reply Last reply
          0
          • M Offline
            M Offline
            mbrasser
            wrote on last edited by
            #5

            Hi,

            If you have the Qt source, you can look in tests/auto/declarative to see how all the built-in QML elements are tested with QTestLib (hopefully the patterns there will be relevant to your case as well). Alternatively, there are experimental bindings of QTestLib for QML at http://qt.gitorious.org/qt-labs/qtest-qml (which enables you to write QML test cases in QML).

            Regards,
            Michael

            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