Squish: Add some debug logging to openDocument()

Change-Id: If34eaad1bd04a7d2409f0e00c217c7bd12add106
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Robert Loehning
2017-02-20 19:44:43 +01:00
parent 4deee5431a
commit 062678a937
+3
View File
@@ -386,8 +386,11 @@ def openDocument(treeElement):
expected = str(item.text).split("/")[-1]
if waitFor("expected in str(mainWindow.windowTitle)", 5000):
return True
test.log("Expected file (%s) was not being opened in openDocument()" % expected)
return False
except:
t,v = sys.exc_info()[:2]
test.log("An exception occurred in openDocument(): %s(%s)" % (str(t), str(v)))
return False
def earlyExit(details="No additional information"):