Salome HOME
squish tests correction: EXTRUSION/REVOLUTION/PYTHON: highlight, text in VPs
[modules/shaper.git] / test.squish / suite_FEATURE_REVOLUTION / tst_revolution_005 / test.py
index 9b593873fc58fd37cdcb91d0f3ba07046f6ebe87..6a3e430d9f1e785d1441929b0b9ea50a96203b83 100644 (file)
@@ -19,7 +19,7 @@ def main():
     open(DATA_PATH + "/for_revolution_005.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)")
@@ -76,8 +76,8 @@ def main():
     clickButton(waitForObject(":Revolution_QToolButton_3"))
 
     # [step] Select face 'To' (biggest one)
-    mouseClick(waitForObject(":To_QLineEdit_3"), 10, 10, 0, Qt.LeftButton)
-    mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 463, 171, 0, Qt.LeftButton)
+    mouseClick(waitForObject(":To_QLineEdit_3"), 56, 5, 0, Qt.LeftButton)
+    mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 209, 30, 0, Qt.LeftButton)
 
     # [step] Fit all
 
@@ -96,9 +96,10 @@ def main():
     test.vp("PLANE_TO_30")
 
     # [step] Select face 'From' (smallest one)
-    mouseClick(waitForObject(":From_QLineEdit_3"), 10, 10, 0, Qt.LeftButton)
-    sendEvent("QMouseEvent", waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonPress, 504, 252, Qt.LeftButton, 1, 0)
-    sendEvent("QMouseEvent", waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonRelease, 504, 252, Qt.LeftButton, 0, 0)
+
+    mouseClick(waitForObject(":From_QLineEdit_3"), 32, 10, 0, Qt.LeftButton)
+    sendEvent("QMouseEvent", waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonPress, 518, 361, Qt.LeftButton, 1, 0)
+    sendEvent("QMouseEvent", waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonRelease, 518, 361, Qt.LeftButton, 0, 0)
 
     # [check] Check that preview is updated [vp PLANE_FROM]
     fit_all()