]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Updat test with new window size
authorspo <sergey.pokhodenko@opencascade.com>
Tue, 11 Aug 2015 10:24:01 +0000 (13:24 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Tue, 11 Aug 2015 10:24:27 +0000 (13:24 +0300)
test.squish/suite_ISSUES/tst_818/test.py
test.squish/suite_ISSUES/tst_DISTANCE/test.py
test.squish/suite_ISSUES/tst_RADIUS/test.py

index 70466f5f934bfbfcdca3a9ba7798af2a96086f28..0e8f38cd0de97ce2652917f01bee21da0f983329 100644 (file)
@@ -6,7 +6,7 @@ def main():
     
     parameter_create("a", "100")
     
-    sketch_create(points["XY_plane"], lambda: line_create((0, 0), ("a", 0)))
+    sketch_create(help_points("XY_plane"), lambda: line_create((0, 0), ("a", 0)))
 
     waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1)")
     clickItem(":Object browser_XGUI_DataTree", "Parameters (1)", -10, 10, 0, Qt.LeftButton)
index f6bc565cdb2bba25c4645c7c9eea58e5f5d3bdd1..cf5e8efff6934f8a3b16f5cbfa31c8ad74dcd0a1 100644 (file)
@@ -2,10 +2,10 @@ def sketch():
     line_create((0, 0), (100, 0))
     point_create((50, 50))
 
-    point_1 = (536, 273) # point
-    point_2 = (543, 299) # line 
-    annotaion_point = (392, 291)
-    distance_create(point_1,point_2, annotaion_point, 100)
+    point_1 = (412, 293) # point
+    point_2 = (412, 324) # line
+    annotaion_point = (262, 319)
+    distance_create(point_1, point_2, annotaion_point, 100)
     
     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), annotaion_point[0], annotaion_point[1], 0, Qt.LeftButton)
     waitFor("object.exists(':Distance.First object_QLineEdit')", 20000)
@@ -21,4 +21,4 @@ def main():
     startApplication("GeomApp")
     set_defaults()
     
-    sketch_create(points["XY_plane"], lambda: sketch())
+    sketch_create(help_points("XY_plane"), lambda: sketch())
index 3daf151511a7e76aa2415546dda03da7adb02b93..57bad0c35dbcfb514b40fd7a37d8ffbb2f4930e0 100644 (file)
@@ -1,10 +1,12 @@
 def sketch():
-    circle_border = (229, 290)
-    circle_create_in_view((334, 237), circle_border)
-    radius_create(circle_border, (148, 97), 150)
+    circle_center = (300, 400)
+    circle_border = (500, 400)
+    radius_end_point = (100, 100)
+    circle_create_in_view(circle_center, circle_border)
+    radius_create(circle_border, radius_end_point, 150)
     
     # check
-    circle_border = (335, 141)
+    circle_border = (200, 400)
     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), circle_border[0], circle_border[1], 0, Qt.LeftButton)
     waitFor("object.exists(':Circle.CircleRadius_ModuleBase_ParamSpinBox')", 20000)
     test.compare(str(findObject(":Circle.CircleRadius_ModuleBase_ParamSpinBox").text), "150")
@@ -15,7 +17,7 @@ def main():
     startApplication("GeomApp")
     set_defaults()
 
-    sketch_create(points("XY_plane"), lambda: sketch())
+    sketch_create(help_points("XY_plane"), lambda: sketch())
 
     sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))
     clickButton(waitForObject(":Save current file.Discard_QPushButton"))