diff options
Diffstat (limited to 'tests/system/shared/build_utils.py')
-rw-r--r-- | tests/system/shared/build_utils.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/system/shared/build_utils.py b/tests/system/shared/build_utils.py index 156cdad1a70..b5931194659 100644 --- a/tests/system/shared/build_utils.py +++ b/tests/system/shared/build_utils.py @@ -164,7 +164,8 @@ def selectBuildConfig(targetCount, currentTarget, configName): "sourceFilesRefreshed(QStringList)") switchViewTo(ViewConstants.EDIT) -def verifyBuildConfig(targetCount, currentTarget, shouldBeDebug=False, enableShadowBuild=False): +# This will not trigger a rebuild. If needed, caller has to do this. +def verifyBuildConfig(targetCount, currentTarget, shouldBeDebug=False, enableShadowBuild=False, enableQmlDebug=False): switchViewTo(ViewConstants.PROJECTS) switchToBuildOrRunSettingsFor(targetCount, currentTarget, ProjectSettings.BUILD) detailsButton = waitForObject(":scrollArea.Details_Utils::DetailsButton") @@ -177,6 +178,18 @@ def verifyBuildConfig(targetCount, currentTarget, shouldBeDebug=False, enableSha else: test.compare(buildCfCombo.currentText, 'Release', "Verifying whether it's a release build") try: + libLabel = waitForObject(":scrollArea.Library not available_QLabel", 2000) + mouseClick(libLabel, libLabel.width - 5, 5, 0, Qt.LeftButton) + except: + pass + # Since waitForObject waits for the object to be enabled, + # it will wait here until compilation of the debug libraries has finished. + qmlDebugCheckbox = waitForObject(":scrollArea.qmlDebuggingLibraryCheckBox_QCheckBox", 150000) + if qmlDebugCheckbox.checked != enableQmlDebug: + clickButton(qmlDebugCheckbox) + # Don't rebuild now + clickButton(waitForObject(":QML Debugging.No_QPushButton", 5000)) + try: problemFound = waitForObject("{container=':Qt Creator.scrollArea_QScrollArea' type='QLabel' " "name='problemLabel' visible='1'}", 1000) if problemFound: |