Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    QML Testing with QTestLib [Edited title]

    QML and Qt Quick
    4
    5
    5726
    Loading More Posts
    • 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
      chandra_satyam last edited by

      Hi,

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

      1 Reply Last reply Reply Quote 0
      • G
        giesbert last edited by

        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 Reply Quote 0
        • A
          andre last edited by

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

          1 Reply Last reply Reply Quote 0
          • C
            chandra_satyam last edited by

            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 Reply Quote 0
            • M
              mbrasser last edited by

              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 Reply Quote 0
              • First post
                Last post