Salome HOME
Remove coding information from the python scripts due to tuleap issue #16806
[modules/shaper.git] / test.squish / suite_FEATURE_PARAMETERS / shared / steps / steps.py
index b1572898293787a0339c3424b4a2c70ef3d10a5c..74af9df01eaafc152ba2b14f59b685b30165d233 100644 (file)
@@ -1,4 +1,21 @@
-# -*- coding: utf-8 -*-
+# Copyright (C) 2014-2019  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
+#
 
 # A quick introduction to implementing scripts for BDD tests:
 #
@@ -28,7 +45,7 @@
 # specified. In that case, make sure to set the (optional) 'regexp' argument
 # to True.
 
-import __builtin__
+import builtins
 
 @Given("Launch application in salome mode")
 def step(context):
@@ -77,7 +94,8 @@ def step(context):
 
 @Then("Check that Point does not allow using expressions")
 def step(context):
-    clickButton(waitForObject(":SALOME*.SketchPoint_QToolButton"))
+    activateItem(waitForObjectItem(":SALOME*_QMenuBar", "Sketch"))
+    activateItem(waitForObjectItem(":Sketch_QMenu", "Point"))
     mouseClick(waitForObject(":Point.qt_spinbox_lineedit_QLineEdit"), 41, 6, 0, Qt.LeftButton)
     type(waitForObject(":Point.X _ModuleBase_ParamSpinBox"), "<Ctrl+A>")
     type(waitForObject(":Point.X _ModuleBase_ParamSpinBox"), "a")
@@ -181,7 +199,7 @@ def step(context):
     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 131, 282, 0, Qt.LeftButton)
     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 209, 98, 0, Qt.LeftButton)
     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 283, 275, 0, Qt.LeftButton)
-    clickButton(waitForObject(":Line.property_panel_cancel_QToolButton"))
+    #TODO_1 clickButton(waitForObject(":Line.property_panel_cancel_QToolButton"))
     activateItem(waitForObjectItem(":SALOME*_QMenuBar", "Sketch"))
     activateItem(waitForObjectItem(":Sketch_QMenu", "Fillet"))
     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 211, 99, 0, Qt.LeftButton)