Qt Forum

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

    Unsolved Unit Testing

    General and Desktop
    4
    10
    1543
    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.
    • Amara
      Amara last edited by

                            How we can Test  the FocusIn, Focus out events, mouse events, keyboard events, signals & slots in unit testing.
      
      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        Please take a look at the QTest tutorial, it shows the basics for GUI testing.

        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 Reply Quote 2
        • Amara
          Amara last edited by

          Thanks for your updation. Already researched those things, Need some examples regarding on it.

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @Amara last edited by

            @Amara Examples for what?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 0
            • Amara
              Amara last edited by

              Test the widgets like button , check box for FocusIn, Focus out events, mouse events, keyboard events & signals in unit testing.

              Ni.Sumi 1 Reply Last reply Reply Quote 0
              • Ni.Sumi
                Ni.Sumi @Amara last edited by

                @Amara

                You want to test some thing whether are there working (like playing around) or some other way?? You can make small samples to test them or play around. check the Qt examples, or use you ca use qDebug.

                1 Reply Last reply Reply Quote 0
                • Amara
                  Amara last edited by

                  If anyone has example in the unit testing. Please update.

                  Ni.Sumi 1 Reply Last reply Reply Quote 0
                  • Ni.Sumi
                    Ni.Sumi @Amara last edited by Ni.Sumi

                    @Amara

                    check this http://programmingexamples.net/wiki/Qt

                    Edit::
                    http://www.codeprogress.com/cpp/libraries/qt/index.php
                    Also the Qt4 book has many examples for unit testing. It's like learning Qt while writing small codes.

                    1 Reply Last reply Reply Quote 0
                    • Amara
                      Amara last edited by

                      @Ni.Sumi

                      Thanks a lot but iam expecting examples of unit testing for focus in , focus out keyboard events not the coding styles.

                      jsulm 1 Reply Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @Amara last edited by

                        @Amara Focus in/out means: click on it or select via keyboard (tab key) - this can be done using QTest::keyClick for example.
                        For keyboard: QTest::keyEvent
                        For more details see http://doc.qt.io/qt-5/qtest.html
                        Not sure why you insist on having examples, I don't have any here.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply Reply Quote 2
                        • First post
                          Last post