]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Move findMenuItem() in tools
authorspo <sergey.pokhodenko@opencascade.com>
Fri, 16 Oct 2015 08:46:35 +0000 (11:46 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Fri, 16 Oct 2015 08:46:35 +0000 (11:46 +0300)
test.squish/shared/scripts/common.py
test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py

index 757e1ec1fad373913eae1e9d2faddcc4a1d04370..23e9efa5d2c91ba76732d4fbdc84343b9156aff3 100644 (file)
@@ -9,6 +9,15 @@ g_points = {"XY_plane": (332, 250), "XZ_plane": (355, 207)} # one of the constru
 def help_points(name):
     return g_points[name] 
 
+#---------------------------------------------------------------------------------------------
+# Tools
+def findMenuItem(menuObject, item):
+    for child in object.children(menuObject):
+        if child.text == item:
+            return child    
+    return None
+
+#---------------------------------------------------------------------------------------------
 def set_defaults():
     waitForObject(":SALOME*_STD_TabDesktop").resize(1024, 768)
     
index f8cf838f8d336f579fc425d172ffd3d24bec7d4b..2382e05d723a0029e2191ae98c3b20cb13b70add 100644 (file)
@@ -52,12 +52,6 @@ def checkPartDeactivatedState(scenario):
     for element in allPartSetElements:
         test.compare(ENABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is enabled after: %s" % (element, scenario))
 
-def findMenuItem(menuObject, item):
-    for child in object.children(menuObject):
-        if child.text == item:
-            return child    
-    return None
-
 def main():
     source(findFile("scripts", "common.py"))