]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Improve SQUISH tests
authorspo <sergey.pokhodenko@opencascade.com>
Mon, 10 Aug 2015 13:48:35 +0000 (16:48 +0300)
committerspo <sergey.pokhodenko@opencascade.com>
Mon, 10 Aug 2015 13:49:00 +0000 (16:49 +0300)
test.squish/suite_ISSUES/shared/scripts/common.py
test.squish/suite_ISSUES/tst_BASE/test.py

index e0f3f9f6d01d4821cbb3d51a7af02cb6941ebe2c..61a9e29860d373757aa4c6350be4a7b98f7ec091 100644 (file)
@@ -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"), "<Return>")
 
     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"))    
index 83c68dc745ee03c7ab46e61ee6f30cb8fb92dcb9..cd646fb9d9a96761ee5868cab5e99181136556f0 100644 (file)
@@ -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