Salome HOME
Issue #2541: Clear remaining messages after undo/redo of last operation
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_007 / test.py
index 84f08c3ab9b12f96f3ca286be547cd5db63bb75f..171059a936c8e1155288b813d5d7ae8623f20df0 100644 (file)
@@ -1,3 +1,22 @@
+## Copyright (C) 2014-2017  CEA/DEN, EDF R&D
+##
+## 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<mailto:webmaster.salome@opencascade.com>
+##
 
 def main():
     #[project] SHAPER
@@ -7,62 +26,62 @@ def main():
     #[Summary description]
     #[Expected results]
     #[General comments]
-    
+
     source(findFile("scripts", "common.py"))
-    
+
     #[section] Application start
     #[step] Launch SALOME
     startApplication("salome_run.sh")
 
     set_defaults()
-    
+
     #[step] Open 'for_sketch_006.hdf'
     open(DATA_PATH + "/for_sketch_007.hdf")
-    
+
     #[step] Activate SHAPER
-    clickButton(waitForObject(":SALOME*.SHAPER_QToolButton"))
-    
+    clickButton(waitForObject(":SALOME*.Shaper_QToolButton"))
+
     #[step] Activate Part_1
     waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)")
     clickItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)", 51, 7, 0, Qt.LeftButton)
     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Part\\_1 (Not loaded)", 51, 7, 0)
     activateItem(waitForObjectItem(":_QMenu", "Activate"))
-    
+
     #[step] Edit Sketch_1
     waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1.Sketch\\_1")
     clickItem(":Object browser_XGUI_DataTree", "Part\\_1.Sketch\\_1", 54, 11, 0, Qt.LeftButton)
     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Part\\_1.Sketch\\_1", 54, 11, 0)
     activateItem(waitForObjectItem(":_QMenu", "Edit..."))
-    
+
     #[step] Click '+OZ' view button
     clickButton(waitForObject(":SALOME*.+OZ_QToolButton"))
-    #[step] Make lines perpendicular    
+    #[step] Make lines perpendicular
     perpendicular((331, 155), (386, 169))
-    
+
     #[step] Fit all
     clickButton(waitForObject(":SALOME*.Fit All_QToolButton"))
-    
+
     #[check] that lines are perpendicular
     test.vp("VP1")
-    
+
     #[step] Select the 'perpendicular' icon near the line
     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 372, 263, 0, Qt.LeftButton)
-    
+
     #[check] Check that Input panel 'Perpendicular' appears, there are the names of lines in text boxes
     waitFor("object.exists(':Perpendicular.First line_QLineEdit')", 20000)
     test.compare(str(findObject(":Perpendicular.First line_QLineEdit").text), "SketchLine_1")
     waitFor("object.exists(':Perpendicular.Second line_QLineEdit')", 20000)
     test.compare(str(findObject(":Perpendicular.Second line_QLineEdit").text), "SketchLine_2")
-    
+
     # [check] Check that lines are selected and highlighted in viewer
     test.vp("VP3")
-    
+
     #[step] Confirm 'Perpendicular' operation
     clickButton(waitForObject(":Perpendicular.property_panel_ok_QToolButton"))
-    
+
     #[step] Confirm edition of the sketch
     clickButton(waitForObject(":Sketch.property_panel_ok_QToolButton"))
-    
+
     #[step] Close application
     close_application()
-        
+