]> SALOME platform Git repositories - modules/shaper.git/blobdiff - test.squish/suite_FEATURE_SKETCH/tst_sketch_015/test.py
Salome HOME
Sort SQUISH cases to suites
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_015 / test.py
diff --git a/test.squish/suite_FEATURE_SKETCH/tst_sketch_015/test.py b/test.squish/suite_FEATURE_SKETCH/tst_sketch_015/test.py
new file mode 100644 (file)
index 0000000..892965a
--- /dev/null
@@ -0,0 +1,58 @@
+
+def main():
+    #[project] NewGEOM
+    #[Scenario] Sketch_015
+    #[Topic] 'Fillet' functionality
+    #[Tested functionality] 
+    #[Summary description]
+    #[Expected results]
+    #[General comments]
+    
+    source(findFile("scripts", "common.py"))
+    
+    #[section] Application start
+    #[step] Launch SALOME
+    startApplication("salome_run.sh")
+
+    set_defaults()
+    
+    #[step] Open 'for_sketch_015.hdf'
+    open(DATA_PATH + "/for_sketch_015.hdf")
+    
+    #[step] Activate NewGeom
+    clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
+    
+    #[step] Edit 'Sketch_1'
+    waitForObjectItem(":Object browser_XGUI_DataTree", "Sketch\\_1")
+    clickItem(":Object browser_XGUI_DataTree", "Sketch\\_1", 43, 12, 0, Qt.LeftButton)
+    openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Sketch\\_1", 43, 12, 0)
+    activateItem(waitForObjectItem(":_QMenu", "Edit..."))
+    
+    #[step] Click '+OZ' button
+    clickButton(waitForObject(":SALOME*.+OZ_QToolButton"))
+    
+    #[step] Sketch - Fillet
+    mouseClick(waitForObjectItem(":SALOME*_QMenuBar", "Sketch"))
+    mouseClick(waitForObjectItem(":Sketch_QMenu", "Fillet"))
+    
+    #[step] Select first line in viewer
+    mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 99, 222, 0, Qt.LeftButton)
+    
+    #[step] Select first line in viewer
+    mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 277, 479, 0, Qt.LeftButton)
+
+    #[step] Input value equal to 50
+    type(waitForObject(":Fillet.ConstraintValue_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
+    type(waitForObject(":Fillet.ConstraintValue_ModuleBase_ParamSpinBox"), 50)
+
+    #[check] Check that preview is updated 
+    test.vp("VP1")
+    
+    #[step] Ok
+    clickButton(waitForObject(":Fillet.property_panel_ok_QToolButton"))
+    
+    #[check] Check that fillet has been executed successfully
+    test.vp("VP2")
+    
+    # [step] Close application without saving
+    close_application()