Salome HOME
Composite feature adding subsolids. Fix problem with tag.
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_013 / test.py
1
2 def main():
3     #[project] NewGEOM
4     #[Scenario] Sketch_013
5     #[Topic] 'Radius' 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_013.hdf'
20     open(DATA_PATH + "/for_sketch_013.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] Define radius for circle
35     radius((270, 252), (205, 224))
36     
37     #[step] Define radius for arc
38     radius((718, 168), (677, 203))
39     
40     #[check] Check that constraints have been set successfully
41     test.vp("VP1")
42     
43     #[step] Change radius of the circle to 150: select constraint and type '150' in 'Radius' field
44     change_radius((192, 228), 150)
45     
46     #[step] Change radius of the arc to 100: select constraint and type '100' in 'Radius' field
47     change_radius((674, 200), 100)
48     
49     #[step] Click 'Fit all' button
50     fit_all()
51     
52     #[check] Check that radiuses have been changed successfully
53     test.vp("VP2")
54
55     #[step] Close application without saving
56     close_application()