From 693e1b72273c7c9ca7e5e4edadbb3337dd65f4ae Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 16 Mar 2015 13:27:35 +0100 Subject: [PATCH] Squish: Improve tst_default_settings Change-Id: I6aebbf300e9e86729c0b00bee3bb9b6d4bf87854 Reviewed-by: Robert Loehning --- tests/system/suite_general/tst_default_settings/test.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/system/suite_general/tst_default_settings/test.py b/tests/system/suite_general/tst_default_settings/test.py index 8b2551fded8..06f033ce325 100644 --- a/tests/system/suite_general/tst_default_settings/test.py +++ b/tests/system/suite_general/tst_default_settings/test.py @@ -144,7 +144,10 @@ def __kitFunc__(it, foundQt, foundCompNames): test.compare(it, "Desktop (default)", "Verifying whether default Desktop kit has been created.") if foundQt: test.compare(qtVersionStr, foundQt, "Verifying if Qt versions match.") - compilerCombo = waitForObject(":Compiler:_QComboBox") + compilerCombo = findObject(":Compiler:_QComboBox") + test.compare(compilerCombo.enabled, compilerCombo.count > 1, + "Verifying whether compiler combo is enabled/disabled correctly.") + test.verify(str(compilerCombo.currentText) in foundCompNames, "Verifying if one of the found compilers had been set.") if currentSelectedTreeItem: