XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.11
    • RTA
    • None

    Description

      The "About" boxes of the Qt tools contain a year for their copyright. This should be checked automatically.

      It could be done with a Squish test like:

      from datetime import datetime
      
      def main():
          startApplication("linguist")
          activateItem(waitForObjectItem(":MainWindow.menubar_QMenuBar", "Help"))
          activateItem(waitForObjectItem(":MainWindow.menuHelp_QMenu", "About Qt"))
          currentYear = datetime.today().year
          expectedCopyrightString = "%i The Qt Company Ltd and other contributors" % currentYear
          aboutBoxLabel = waitForObject(":Qt Linguist.qt_msgbox_informativelabel_QLabel")
          test.verify(expectedCopyrightString in str(aboutBoxLabel.text),
                      "Check for current year in About box")
          clickButton(waitForObject(":Qt Linguist.OK_QPushButton"))
          activateItem(waitForObjectItem(":MainWindow.menubar_QMenuBar", "File"))
          activateItem(waitForObjectItem(":MainWindow.menuFile_QMenu", "Exit"))
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTQAINFRA-1776
          # Subject Branch Project Status CR V

          Activity

            People

              joaijala Johanna Äijälä
              rlohning Robert Löhning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes