From 46917949045f688e488cd2264ceb6ad2bb66d7e0 Mon Sep 17 00:00:00 2001 From: spo Date: Tue, 11 Aug 2015 13:24:01 +0300 Subject: [PATCH] Updat test with new window size --- test.squish/suite_ISSUES/tst_818/test.py | 2 +- test.squish/suite_ISSUES/tst_DISTANCE/test.py | 10 +++++----- test.squish/suite_ISSUES/tst_RADIUS/test.py | 12 +++++++----- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/test.squish/suite_ISSUES/tst_818/test.py b/test.squish/suite_ISSUES/tst_818/test.py index 70466f5f9..0e8f38cd0 100644 --- a/test.squish/suite_ISSUES/tst_818/test.py +++ b/test.squish/suite_ISSUES/tst_818/test.py @@ -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) diff --git a/test.squish/suite_ISSUES/tst_DISTANCE/test.py b/test.squish/suite_ISSUES/tst_DISTANCE/test.py index f6bc565cd..cf5e8efff 100644 --- a/test.squish/suite_ISSUES/tst_DISTANCE/test.py +++ b/test.squish/suite_ISSUES/tst_DISTANCE/test.py @@ -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()) diff --git a/test.squish/suite_ISSUES/tst_RADIUS/test.py b/test.squish/suite_ISSUES/tst_RADIUS/test.py index 3daf15151..57bad0c35 100644 --- a/test.squish/suite_ISSUES/tst_RADIUS/test.py +++ b/test.squish/suite_ISSUES/tst_RADIUS/test.py @@ -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")) -- 2.39.2