Salome HOME
Merge with Dev_1.5.0
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_015 / test.py
1
2 def main():
3     #[project] NewGEOM
4     #[Scenario] Sketch_015
5     #[Topic] 'Fillet' functionality
6     #[Tested functionality] 
7     #[Summary description]
8     #[Expected results]
9     #[General comments]
10     
11     source(findFile("scripts", "common.py"))
12     
13     #[section] Application start
14     #[step] Launch SALOME
15     startApplication("salome_run.sh")
16
17     set_defaults()
18     
19     #[step] Open 'for_sketch_015.hdf'
20     open(DATA_PATH + "/for_sketch_015.hdf")
21     
22     #[step] Activate NewGeom
23     clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
24     
25     #[step] Edit 'Sketch_1'
26     waitForObjectItem(":Object browser_XGUI_DataTree", "Sketch\\_1")
27     clickItem(":Object browser_XGUI_DataTree", "Sketch\\_1", 43, 12, 0, Qt.LeftButton)
28     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Sketch\\_1", 43, 12, 0)
29     activateItem(waitForObjectItem(":_QMenu", "Edit..."))
30     
31     #[step] Click '+OZ' button
32     clickButton(waitForObject(":SALOME*.+OZ_QToolButton"))
33     
34     #[step] Sketch - Fillet
35     mouseClick(waitForObjectItem(":SALOME*_QMenuBar", "Sketch"))
36     mouseClick(waitForObjectItem(":Sketch_QMenu", "Fillet"))
37     
38     #[step] Select first line in viewer
39     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 99, 222, 0, Qt.LeftButton)
40     
41     #[step] Select first line in viewer
42     mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 277, 479, 0, Qt.LeftButton)
43
44     #[step] Input value equal to 50
45     type(waitForObject(":Fillet.ConstraintValue_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
46     type(waitForObject(":Fillet.ConstraintValue_ModuleBase_ParamSpinBox"), 50)
47
48     #[check] Check that preview is updated 
49     test.vp("VP1")
50     
51     #[step] Ok
52     clickButton(waitForObject(":Fillet.property_panel_ok_QToolButton"))
53     
54     #[check] Check that fillet has been executed successfully
55     test.vp("VP2")
56     
57     # [step] Close application without saving
58     close_application()