Squish: Running tst_build_new_project on more build configs

Change-Id: I413f5393bb8d56842d8132e26123ebe21d89c57a
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
Robert Loehning
2012-01-17 15:39:57 +01:00
committed by Robert Löhning
parent c51a128efb
commit 36573eda7b
2 changed files with 28 additions and 10 deletions
+23 -8
View File
@@ -66,15 +66,24 @@ def __createProjectSetNameAndPath__(path, projectName = None, checks = True):
clickButton(waitForObject(":Next_QPushButton"))
return str(projectName)
# Selects the Qt versions for a project
# param qtVersion is the name of a Qt version. In the project, build configurations will be
# created for this version. If it is None, all Qt versions will be used
# param checks turns tests in the function on if set to True
def __selectQtVersionDesktop__(qtVersion, checks):
__chooseTargets__()
selectFromCombo(":scrollArea.Create Build Configurations:_QComboBox_2",
"For One Qt Version One Debug And One Release")
ensureChecked(":scrollArea.Use Shadow Building_QCheckBox")
selectFromCombo(":scrollArea.Qt Version:_QComboBox", qtVersion)
if checks:
verifyChecked(":scrollArea.Qt 4 for Desktop - (Qt SDK) debug_QCheckBox")
verifyChecked(":scrollArea.Qt 4 for Desktop - (Qt SDK) release_QCheckBox")
if qtVersion == None:
selectFromCombo(":scrollArea.Create Build Configurations:_QComboBox_2",
"For Each Qt Version One Debug And One Release")
ensureChecked(":scrollArea.Use Shadow Building_QCheckBox")
else:
selectFromCombo(":scrollArea.Create Build Configurations:_QComboBox_2",
"For One Qt Version One Debug And One Release")
ensureChecked(":scrollArea.Use Shadow Building_QCheckBox")
selectFromCombo(":scrollArea.Qt Version:_QComboBox", qtVersion)
if checks:
verifyChecked(":scrollArea.Qt 4 for Desktop - (Qt SDK) debug_QCheckBox")
verifyChecked(":scrollArea.Qt 4 for Desktop - (Qt SDK) release_QCheckBox")
clickButton(waitForObject(":Next_QPushButton"))
def __createProjectHandleLastPage__(expectedFiles = None):
@@ -95,7 +104,13 @@ def __verifyFileCreation__(path, expectedFiles):
filename = os.path.join(path, filename)
test.verify(os.path.exists(filename), "Checking if '" + filename + "' was created")
def createProject_Qt_GUI(path, projectName, qtVersion, checks):
# Creates a Qt GUI project
# param path specifies where to create the project
# param projectName is the name for the new project
# param qtVersion is the name of a Qt version. In the project, build configurations will be
# created for this version. If it is None, all Qt versions will be used
# param checks turns tests in the function on if set to True
def createProject_Qt_GUI(path, projectName, qtVersion = None, checks = True):
__createProjectSelectType__("Other Qt Project", "Qt Gui Application")
__createProjectSetNameAndPath__(path, projectName, checks)
__selectQtVersionDesktop__(qtVersion, checks)