Squish: Added functions for switching build configurations

Change-Id: I03eb8987ec28bac7db99395ed91952d8a3a0d038
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
This commit is contained in:
Robert Loehning
2012-01-17 13:47:47 +01:00
committed by Robert Löhning
parent 82709dc766
commit 73005e6bca
4 changed files with 50 additions and 28 deletions

View File

@@ -52,12 +52,16 @@ def verifyEnabled(objectSpec, expectedState = True):
# param objectSpec specifies the combo box. It can either be a string determining an object
# or the object itself. If it is an object, it must exist already.
# param itemName is the item to be selected in the combo box
# returns True if selection was changed or False if the wanted value was already selected
def selectFromCombo(objectSpec, itemName):
object = verifyEnabled(objectSpec)
if itemName != str(object.currentText):
if itemName == str(object.currentText):
return False
else:
mouseClick(object, 5, 5, 0, Qt.LeftButton)
mouseClick(waitForObjectItem(object, itemName.replace(".", "\\.")), 5, 5, 0, Qt.LeftButton)
waitFor("str(object.currentText)==itemName", 5000)
return True
def selectFromLocator(filter, itemName = None):
if itemName == None: