forked from qt-creator/qt-creator
Squish: Prepare help tests for Qt 5.4
Change-Id: I38568b325ae37d8b75ad3481ef0cc6ced0a99488 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
@@ -39,6 +39,8 @@ import sys
|
||||
import errno;
|
||||
from datetime import datetime,timedelta;
|
||||
|
||||
isQt53Build = os.getenv("SYSTEST_ISQT53BUILD") != "0"
|
||||
|
||||
srcPath = ''
|
||||
SettingsPath = ''
|
||||
tmpSettingsDir = ''
|
||||
|
@@ -45,7 +45,13 @@ def invokeContextMenuItemOnBookmarkFolder(view, item, menuItem):
|
||||
"window=':Add Bookmark_BookmarkDialog'}" % aboveWidget), menuItem)
|
||||
|
||||
def textForQtVersion(text):
|
||||
return text + " | QtCreator"
|
||||
if isQt53Build:
|
||||
return text + " | QtCreator"
|
||||
else:
|
||||
suffix = "Qt Creator Manual"
|
||||
if text != suffix:
|
||||
text += " | " + suffix
|
||||
return text
|
||||
|
||||
def main():
|
||||
startApplication("qtcreator" + SettingsPath)
|
||||
|
@@ -83,7 +83,10 @@ def main():
|
||||
|
||||
test.verify(checkIfObjectExists(gettingStartedText),
|
||||
"Verifying: Qt Creator displays Welcome Page with 'Get Started Now' button.")
|
||||
expectedText = "(QtCreator : Qt Creator Manual)|(Qt Creator Manual [|] QtCreator)"
|
||||
if isQt53Build:
|
||||
expectedText = "(QtCreator : Qt Creator Manual)|(Qt Creator Manual [|] QtCreator)"
|
||||
else:
|
||||
expectedText = "Qt Creator Manual"
|
||||
testDetails = "Verifying: Help with Creator Documentation is being opened."
|
||||
|
||||
clickItemVerifyHelpCombo(gettingStartedText, expectedText, testDetails)
|
||||
|
Reference in New Issue
Block a user