Salome HOME
updated copyright message
[modules/shaper.git] / test.squish / suite_FEATURE_EXTRUSION / tst_extrusion_004 / test.py
index 397c37f9b2cc72746541ec12bf16d1db8735e51b..c1a8be22f5512e1c89fe24576eb74772c2fb5273 100644 (file)
@@ -1,5 +1,24 @@
+# Copyright (C) 2014-2023  CEA, EDF
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+
 def main():
-    # [project] NewGEOM
+    # [project] SHAPER
     # [Scenario] Extrusion_004
     # [Topic] 'Extrusion_Fuse by sizes' functionality
     # [Tested functionality]
@@ -18,8 +37,8 @@ def main():
     # [step] Open 'for_extrusion_003.hdf'
     open(DATA_PATH + "/for_extrusion_003.hdf")
 
-    # [step] Activate NewGeom
-    clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
+    # [step] Activate SHAPER
+    clickButton(waitForObject(":SALOME*.Shaper_QToolButton"))
 
     # [step] Activate Part_1
     waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)")
@@ -74,14 +93,8 @@ def main():
     clickButton(waitForObject(":ExtrusionFuse.property_panel_ok_QToolButton"))
 
     # [step] Click 'Reset view' toolbar button
-    need_expand = not object.exists(":SALOME*.Reset_QToolButton")
-    if need_expand:
-        clickButton(waitForObject(":SALOME*.qt_toolbar_ext_button_QToolBarExtension_3"))
-
-    clickButton(waitForObject(":SALOME*.Reset_QToolButton"))
-
-    if need_expand:
-        clickButton(waitForObject(":SALOME*.qt_toolbar_ext_button_QToolBarExtension_3"))
+    clickButton(waitForObject(":SALOME*.Reset_QToolButton_2"))
+    mouseClick(waitForObject(":SALOME*_OCCViewer_ViewPort3d"), 10, 450, 0, Qt.LeftButton)  # close tool bar extension bar
 
     # [check] Check that extrusionCut operation has been executed successfully [vp EXTRUSION_FUSE]
     test.vp("EXTRUSION_FUSE")