From c77c392cb981505b4cae48a272403c0b36b3bce9 Mon Sep 17 00:00:00 2001 From: Robert Loehning <robert.loehning@digia.com> Date: Thu, 5 Sep 2013 16:45:33 +0200 Subject: [PATCH] Squish: Trying to stabilize tst_SCOM01 Change-Id: I895d763fdee4b15a36e109ee9f46d84635afa6a0 Reviewed-by: Christian Stenger <christian.stenger@digia.com> --- tests/system/objects.map | 1 + tests/system/suite_SCOM/tst_SCOM01/test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/tests/system/objects.map b/tests/system/objects.map index 5f6e2f8e47d..d3f0a2897cb 100644 --- a/tests/system/objects.map +++ b/tests/system/objects.map @@ -1,4 +1,5 @@ :*Qt Creator.Build Project_Core::Internal::FancyToolButton {text='Build Project' type='Core::Internal::FancyToolButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'} +:*Qt Creator.Cancel Build_QToolButton {text='Cancel Build' type='QToolButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'} :*Qt Creator.Cancel_QPushButton {text='Cancel' type='QPushButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'} :*Qt Creator.Clear_QToolButton {text='Clear' type='QToolButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'} :*Qt Creator.Continue_Core::Internal::FancyToolButton {text='Continue' type='Core::Internal::FancyToolButton' unnamed='1' visible='1' window=':Qt Creator_Core::Internal::MainWindow'} diff --git a/tests/system/suite_SCOM/tst_SCOM01/test.py b/tests/system/suite_SCOM/tst_SCOM01/test.py index 446626f65f3..e6cb3ff8283 100644 --- a/tests/system/suite_SCOM/tst_SCOM01/test.py +++ b/tests/system/suite_SCOM/tst_SCOM01/test.py @@ -49,6 +49,9 @@ def main(): waitForSignal("{type='ProjectExplorer::BuildManager' unnamed='1'}", "buildQueueFinished(bool)") # check output if build successful ensureChecked(waitForObject(":Qt Creator_CompileOutput_Core::Internal::OutputPaneToggleButton")) + waitFor("object.exists(':*Qt Creator.Cancel Build_QToolButton')", 20000) + cancelBuildButton = findObject(':*Qt Creator.Cancel Build_QToolButton') + waitFor("not cancelBuildButton.enabled", 30000) compileOutput = waitForObject(":Qt Creator.Compile Output_Core::OutputWindow") if not test.verify(compileSucceeded(compileOutput.plainText), "Verifying building of simple qt quick application."): -- GitLab