5 #[Topic] 'Radius' functionality
6 #[Tested functionality]
11 source(findFile("scripts", "common.py"))
13 #[section] Application start
15 startApplication("salome_run.sh")
19 #[step] Open 'for_sketch_013.hdf'
20 open(DATA_PATH + "/for_sketch_013.hdf")
22 #[step] Activate SHAPER
23 clickButton(waitForObject(":SALOME*.SHAPER_QToolButton"))
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..."))
31 #[step] Click '+OZ' button
32 clickButton(waitForObject(":SALOME*.+OZ_QToolButton"))
34 #[step] Define radius for circle
35 radius((270, 252), (205, 224))
37 #[step] Define radius for arc
38 radius((718, 168), (677, 203))
40 #[check] Check that constraints have been set successfully
43 #[step] Change radius of the circle to 150: select constraint and type '150' in 'Radius' field
44 change_radius((192, 228), 150)
46 #[step] Change radius of the arc to 100: select constraint and type '100' in 'Radius' field
47 change_radius((674, 200), 100)
49 #[step] Click 'Fit all' button
52 #[check] Check that radiuses have been changed successfully
55 #[step] Close application without saving