Salome HOME
Issue #1440 Crash when edit box with parameter: height of the box using parameter...
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_018 / test.py
1
2 def main():
3     #[project] SHAPER
4     #[Scenario] Sketch_018
5     #[Topic] 'Tangency' 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_018.hdf'
20     open(DATA_PATH + "/for_sketch_018.hdf")
21     
22     #[step] Activate SHAPER
23     clickButton(waitForObject(":SALOME*.Shaper_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] Make 2 arcs tangent
35     tangent((142, 237), (55, 223))
36     
37     #[step] Make arc and line tangent
38     tangent((580, 343), (605, 403))
39
40     #[step] Click Fit all button
41     fit_all()
42     
43     #[check] Check that tangency has been executed successfully
44     test.vp("VP1")
45
46     # [step] Close application without saving
47     close_application()