From f8afdf06bbd0472422416ce0245e7c53adf3e065 Mon Sep 17 00:00:00 2001 From: Robert Loehning Date: Thu, 9 Jul 2015 16:43:14 +0200 Subject: [PATCH] Squish: Check for QML runtime errors Change-Id: I5b5d854a8bbadfbd4076af1cfdd3e356d763da29 Reviewed-by: Christian Stenger --- tests/system/suite_qtquick/tst_qtquick_creation/test.py | 4 +++- tests/system/suite_qtquick/tst_qtquick_creation3/test.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/system/suite_qtquick/tst_qtquick_creation/test.py b/tests/system/suite_qtquick/tst_qtquick_creation/test.py index fa314825a4f..e3012d0468b 100644 --- a/tests/system/suite_qtquick/tst_qtquick_creation/test.py +++ b/tests/system/suite_qtquick/tst_qtquick_creation/test.py @@ -83,7 +83,9 @@ def main(): if result == None: checkCompile() else: - logApplicationOutput() + appOutput = logApplicationOutput() + test.verify(not ("main.qml" in appOutput or "MainForm.ui.qml" in appOutput), + "Does the Application Output indicate QML errors?") invokeMenuItem("File", "Close All Projects and Editors") invokeMenuItem("File", "Exit") diff --git a/tests/system/suite_qtquick/tst_qtquick_creation3/test.py b/tests/system/suite_qtquick/tst_qtquick_creation3/test.py index 4f072dfa3dc..345d6cae730 100644 --- a/tests/system/suite_qtquick/tst_qtquick_creation3/test.py +++ b/tests/system/suite_qtquick/tst_qtquick_creation3/test.py @@ -76,6 +76,8 @@ def main(): if result == None: checkCompile() else: - logApplicationOutput() + appOutput = logApplicationOutput() + test.verify(not ("untitled.qml" in appOutput or "MainForm.ui.qml" in appOutput), + "Does the Application Output indicate QML errors?") invokeMenuItem("File", "Close All Projects and Editors") invokeMenuItem("File", "Exit")