summaryrefslogtreecommitdiff
path: root/tests/system/shared/utils.py
diff options
context:
space:
mode:
authorRobert Loehning <robert.loehning@digia.com>2013-04-25 16:04:36 +0200
committerRobert Loehning <robert.loehning@digia.com>2013-04-25 16:12:46 +0200
commite79377958991e14d504f17674496d90e202170a8 (patch)
tree5b184c54c142bcc4a758a61b7f83b9e745d1f84d /tests/system/shared/utils.py
parent31223a55b7094f2c666e9a01f807ab084f80153e (diff)
downloadqt-creator-e79377958991e14d504f17674496d90e202170a8.tar.gz
Squish: Added test for renaming files
Task-number: QTCREATORBUG-8335 Change-Id: Ie9ca9018194c955f099b7d99ab46ba26303e354d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'tests/system/shared/utils.py')
-rw-r--r--tests/system/shared/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/system/shared/utils.py b/tests/system/shared/utils.py
index 3af2ffd5ae..4bb0e36ef8 100644
--- a/tests/system/shared/utils.py
+++ b/tests/system/shared/utils.py
@@ -612,3 +612,9 @@ def checkIfObjectExists(name, shouldExist = True, timeout = 3000, verboseOnFail
def progressBarWait():
checkIfObjectExists("{type='Core::Internal::ProgressBar' unnamed='1'}", True, 2000)
checkIfObjectExists("{type='Core::Internal::ProgressBar' unnamed='1'}", False, 60000)
+
+def readFile(filename):
+ f = open(filename, "r")
+ content = f.read()
+ f.close()
+ return content