Squish: Using progressBarWait() instead of waitForSignal()

Change-Id: Ia87569c080f3b54dd8f78b023408de76eb3c574c
Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
Robert Loehning
2013-04-25 19:08:55 +02:00
committed by Christian Stenger
parent 3245b706bc
commit c8984dc58a
11 changed files with 16 additions and 20 deletions
+2 -2
View File
@@ -609,9 +609,9 @@ def checkIfObjectExists(name, shouldExist = True, timeout = 3000, verboseOnFail
return result
# wait for progress bar(s) to appear and disappear
def progressBarWait():
def progressBarWait(timeout=60000):
checkIfObjectExists("{type='Core::Internal::ProgressBar' unnamed='1'}", True, 2000)
checkIfObjectExists("{type='Core::Internal::ProgressBar' unnamed='1'}", False, 60000)
checkIfObjectExists("{type='Core::Internal::ProgressBar' unnamed='1'}", False, timeout)
def readFile(filename):
f = open(filename, "r")