Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Unit Testing

Unit Testing

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 4 Posters 1.9k 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.
  • AmaraA Offline
    AmaraA Offline
    Amara
    wrote on last edited by
    #1
                          How we can Test  the FocusIn, Focus out events, mouse events, keyboard events, signals & slots in unit testing.
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      2
      • AmaraA Offline
        AmaraA Offline
        Amara
        wrote on last edited by
        #3

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

        jsulmJ 1 Reply Last reply
        0
        • AmaraA Amara

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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Amara Examples for what?

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

          1 Reply Last reply
          0
          • AmaraA Offline
            AmaraA Offline
            Amara
            wrote on last edited by
            #5

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

            Ni.SumiN 1 Reply Last reply
            0
            • AmaraA Amara

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

              Ni.SumiN Offline
              Ni.SumiN Offline
              Ni.Sumi
              wrote on last edited by
              #6

              @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
              0
              • AmaraA Offline
                AmaraA Offline
                Amara
                wrote on last edited by
                #7

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

                Ni.SumiN 1 Reply Last reply
                0
                • AmaraA Amara

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

                  Ni.SumiN Offline
                  Ni.SumiN Offline
                  Ni.Sumi
                  wrote on last edited by Ni.Sumi
                  #8

                  @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
                  0
                  • AmaraA Offline
                    AmaraA Offline
                    Amara
                    wrote on last edited by
                    #9

                    @Ni.Sumi

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

                    jsulmJ 1 Reply Last reply
                    0
                    • AmaraA Amara

                      @Ni.Sumi

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

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @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
                      2

                      • Login

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