diff options
author | Robert LΓΆhning <robert.loehning@qt.io> | 2022-10-21 22:09:53 +0200 |
---|---|---|
committer | Robert LΓΆhning <robert.loehning@qt.io> | 2022-10-26 10:40:58 +0000 |
commit | 1c5e65f547759b6af009133e2509286fd788cfd4 (patch) | |
tree | 62136197fd5c42c8f1e19581d590442dbaa4006d /Tests/system/shared/utils.py | |
parent | 5bb883e7b807db667edbd6f0c0fa5a72f42c29fb (diff) |
Squish: Move installation specific code to separate file
Change-Id: I5825314625f97120e05975611fb9f31f92456dba
Reviewed-by: Miguel Costa <miguel.costa@qt.io>
Diffstat (limited to 'Tests/system/shared/utils.py')
-rw-r--r-- | Tests/system/shared/utils.py | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/Tests/system/shared/utils.py b/Tests/system/shared/utils.py index a7f4756d..347c5ea8 100644 --- a/Tests/system/shared/utils.py +++ b/Tests/system/shared/utils.py @@ -50,60 +50,6 @@ def startAppGetVersion(): return version -def openExtensionManager(version): - if version == "2017": - mouseClick(waitForObject(names.tools_MenuItem)) - mouseClick(waitForObject(names.pART_Popup_Extensions_and_Updates_MenuItem)) - else: - mouseClick(waitForObject(names.extensions_MenuItem)) - mouseClick(waitForObject(names.pART_Popup_Manage_Extensions_MenuItem)) - - -def selectInstalledVsTools(version): - openExtensionManager(version) - if version == "2017": - try: - vsToolsLabel = waitForObject(names.extensionManager_UI_InstalledExtItem_Qt_2017_Label, - 5000) - except: - return None - else: - mouseClick(waitForObject({"type": "TreeItem", "id": "Installed"})) - try: - vsToolsLabel = waitForObject(names.extensionManager_UI_InstalledExtItem_Qt_Label, - 5000) - except: - return None - mouseClick(vsToolsLabel) - return vsToolsLabel.text - - -def changesScheduledLabelExists(): - return object.exists(names.changes_scheduled_Label) - - -def readExpectedVsToolsVersion(): - expectedVersion = os.getenv("SQUISH_VSTOOLS_VERSION") - if expectedVersion: - return expectedVersion - test.warning("No expected Qt VS Tools version set.", - "The environment variable SQUISH_VSTOOLS_VERSION is not set. Falling back to " - "reading the expected version from version.targets") - try: - versionXml = minidom.parse("../../../../version.targets") - return versionXml.getElementsByTagName("QtVSToolsVersion")[0].firstChild.data - except: - test.fatal("Can't read expected VS Tools version from sources.") - return "" - - -def verifyVsToolsVersion(): - displayedVersion = waitForObjectExists(names.manage_Extensions_Version_Label).text - expectedVersion = readExpectedVsToolsVersion() - test.compare(displayedVersion, expectedVersion, - "Expected version of VS Tools is displayed?") - - def openVsToolsMenu(version): if version == "2017": mouseClick(waitForObject(names.qt_VS_Tools_MenuItem, 5000)) |