From: spo Date: Mon, 10 Aug 2015 13:48:35 +0000 (+0300) Subject: Improve SQUISH tests X-Git-Tag: V_1.4.0_beta4~411 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a83cf888d141ea75a99621eae4c2ecada8e0ed69;p=modules%2Fshaper.git Improve SQUISH tests --- diff --git a/test.squish/suite_ISSUES/shared/scripts/common.py b/test.squish/suite_ISSUES/shared/scripts/common.py index e0f3f9f6d..61a9e2986 100644 --- a/test.squish/suite_ISSUES/shared/scripts/common.py +++ b/test.squish/suite_ISSUES/shared/scripts/common.py @@ -1,3 +1,6 @@ +testSettings.logScreenshotOnError = True +testSettings.logScreenshotOnFail = True + def parameter_create(name, expression): clickButton(waitForObject(":Parameters.Parameter_AppElements_Button")) type(waitForObject(":Parameter_QLineEdit"), name) @@ -16,7 +19,7 @@ def sketch_create(point, actions): actions() clickButton(waitForObject(":Sketch.Ok_QToolButton")) - + def point_create(point): clickButton(waitForObject(":Basic.Point_AppElements_Button")) @@ -26,7 +29,7 @@ def point_create(point): type(waitForObject(":Point.Y:_ModuleBase_ParamSpinBox"), point[1]) clickButton(waitForObject(":Point.property_panel_ok_QToolButton")) - + def line_create(start_point, end_point): clickButton(waitForObject(":Basic.Line_AppElements_Button")) @@ -41,7 +44,7 @@ def line_create(start_point, end_point): type(waitForObject(":End point.Y:_ModuleBase_ParamSpinBox"), end_point[1]) clickButton(waitForObject(":Line.property_panel_ok_QToolButton")) - + def circle_create(x, y, radius): clickButton(waitForObject(":Basic.Circle_AppElements_Button")) @@ -54,7 +57,7 @@ def circle_create(x, y, radius): type(waitForObject(":Circle.CircleRadius_ModuleBase_ParamSpinBox"), radius) clickButton(waitForObject(":Circle.property_panel_ok_QToolButton")) - + def distance_create(point_1, point_2, annotaion_point, distance): clickButton(waitForObject(":Constraints.Distance_AppElements_Button")) @@ -67,7 +70,7 @@ def distance_create(point_1, point_2, annotaion_point, distance): type(waitForObject(":_ModuleBase_ParamSpinBox"), "") clickButton(waitForObject(":Constraints.Distance_AppElements_Button")) - + def extrusion_feature(points, to_size): clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features") clickButton(waitForObject(":Extrusion.Extrusion_AppElements_Button")) diff --git a/test.squish/suite_ISSUES/tst_BASE/test.py b/test.squish/suite_ISSUES/tst_BASE/test.py index 83c68dc74..cd646fb9d 100644 --- a/test.squish/suite_ISSUES/tst_BASE/test.py +++ b/test.squish/suite_ISSUES/tst_BASE/test.py @@ -8,4 +8,3 @@ def main(): sketch_create(point, lambda: circle_create(0, 0, "a")) points = [(489, 319)] # circle extrusion_feature(points, "a") - \ No newline at end of file