From 43b376a738946169386f97720dcc22a0276dfceb Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Mon, 17 Oct 2016 11:05:14 +0200 Subject: [PATCH] Squish: Handle wizard check for Quick Controls 2 Application This wizard needs a Qt5.7 which we are not providing yet. Change-Id: I03ba5c86835de40a44530753502f87a46554d6b3 Reviewed-by: Robert Loehning --- tests/system/shared/project.py | 2 ++ tests/system/suite_general/tst_create_proj_wizard/test.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/tests/system/shared/project.py b/tests/system/shared/project.py index 6b7f7dbd05..853b2187a1 100644 --- a/tests/system/shared/project.py +++ b/tests/system/shared/project.py @@ -629,6 +629,8 @@ def __getSupportedPlatforms__(text, templateName, getAsStrings=False): version = None if 'only available with Qt 5.6' in text: result = [Targets.DESKTOP_561_DEFAULT] + elif 'available with Qt 5.7 and later' in text: + result = [] # FIXME we have currently no Qt5.7+ available in predefined settings elif 'Supported Platforms' in text: supports = text[text.find('Supported Platforms'):].split(":")[1].strip().split(" ") result = [] diff --git a/tests/system/suite_general/tst_create_proj_wizard/test.py b/tests/system/suite_general/tst_create_proj_wizard/test.py index 20b819300e..126e1f3d7e 100644 --- a/tests/system/suite_general/tst_create_proj_wizard/test.py +++ b/tests/system/suite_general/tst_create_proj_wizard/test.py @@ -83,6 +83,11 @@ def main(): if counter < len(qtVersionsForQuick) - 1: displayedPlatforms = __createProject__(category, template) continue + elif template == "Qt Quick Controls 2 Application": # needs a Qt5.7 + clickButton(waitForObject(":Next_QPushButton")) # ignore this details page for now + verifyKitCheckboxes(kits, displayedPlatforms) + safeClickButton("Cancel") + continue elif template.startswith("Plain C"): for counter, buildSystem in enumerate(availableBuildSystems): combo = "{name='BuildSystem' type='Utils::TextFieldComboBox' visible='1'}" -- GitLab