From: spo Date: Fri, 16 Oct 2015 08:20:24 +0000 (+0300) Subject: Improve SQUISH test suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT X-Git-Tag: V_2.0.0_alfa1~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b1a1f290afda0532661d87fde10c681b04c818a6;p=modules%2Fshaper.git Improve SQUISH test suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT --- diff --git a/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py b/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py index 68fabf937..f8cf838f8 100644 --- a/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py +++ b/test.squish/suite_OBJECT_BROWSER/tst_ACTIVE_DOC_MANAGEMENT/test.py @@ -12,7 +12,8 @@ def checkPartActivatedState(scenario): "Constructions (4).YOZ", "Constructions (4).XOZ", "Constructions (4).XOY", - "Parts (1)"] + "Parts (1)", + "Parts (1).Part\\_1"] for element in allPartSetElements: test.compare(DISABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is disabled after: %s" % (element, scenario)) @@ -27,14 +28,6 @@ def checkPartActivatedState(scenario): #[step] Check that Part tree is unfolded test.compare(False, waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1").collapsed, "Part is unfolded after: %s" % scenario) -# #[step] Check that PartSet elements are folded -# partSetElements = [ -# "Parameters (0)", -# "Constructions (4)", -# "Parts (1)"] -# for element in partSetElements: -# test.compare(True, waitForObjectItem(":Object browser_XGUI_DataTree", element).collapsed, "%s is folded after: %s" % (element, scenario)) - def checkPartDeactivatedState(scenario): #[step] Check that Part id disabled and folded partElements = [ @@ -54,7 +47,8 @@ def checkPartDeactivatedState(scenario): "Constructions (4).YOZ", "Constructions (4).XOZ", "Constructions (4).XOY", - "Parts (1)"] + "Parts (1)", + "Parts (1).Part\\_1"] for element in allPartSetElements: test.compare(ENABLE_COLOR, waitForObjectItem(":Object browser_XGUI_DataTree", element).foregroundColor, "%s is enabled after: %s" % (element, scenario))