Details
-
Task
-
Resolution: Done
-
Not Evaluated
-
None
-
5.11
-
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
- resulted from
-
QTBUG-65810 Outdated copyright notes
- Closed