forked from qt-creator/qt-creator
Squish: catch plugin loader error if it occurs
...and stop execution of the current test case Change-Id: I46ac21e79f643f6890b7303d08c204dcd9fa9386 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -42,6 +42,21 @@ def overrideStartApplication():
|
||||
test.log("Using workaround for MacOS (different AUT name)")
|
||||
return __origStartApplication__(*args)
|
||||
|
||||
def startedWithoutPluginError():
|
||||
try:
|
||||
loaderErrorWidgetName = ("{name='ExtensionSystem__Internal__PluginErrorOverview' "
|
||||
"type='ExtensionSystem::PluginErrorOverview' visible='1' "
|
||||
"windowTitle='Qt Creator - Plugin loader messages'}")
|
||||
loaderError = waitForObject(loaderErrorWidgetName, 1000)
|
||||
test.fatal("Could not perform clean start of Qt Creator - Plugin error occurred.",
|
||||
waitForObject("{name='pluginError' type='QTextEdit' visible='1' window=%s}"
|
||||
% loaderErrorWidgetName, 1000).plainText)
|
||||
clickButton("{text~='(Next.*|Continue)' type='QPushButton' visible='1'}")
|
||||
invokeMenuItem("File", "Exit")
|
||||
return False
|
||||
except:
|
||||
return True
|
||||
|
||||
def waitForCleanShutdown(timeOut=10):
|
||||
appCtxt = currentApplicationContext()
|
||||
shutdownDone = (str(appCtxt)=="")
|
||||
|
||||
Reference in New Issue
Block a user