XMLWordPrintable

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

      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"))
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes