3 # [Scenario] Construction_001
4 # [Topic] 'Construction of point, axis and plane' functionality
5 # [Tested functionality]
6 # [Summary description]
10 source(findFile("scripts", "common.py"))
12 # [section] Application start
13 # [step] Launch SALOME
14 startApplication("salome_run.sh")
18 # [step] Open 'for_construction_001.hdf'
19 open(DATA_PATH + "/for_construction_001.hdf")
21 # [step] Activate SHAPER
22 clickButton(waitForObject(":SALOME*.Shaper_QToolButton"))
24 # [step] Activate Part_1
25 waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)")
26 clickItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)", 71, 10, 0, Qt.LeftButton)
27 openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Part\\_1 (Not loaded)", 70, 9, 0)
28 activateItem(waitForObjectItem(":_QMenu", "Activate"))
34 # [step] Create plane basing on upper face of the box
35 plane((340, 120), 100)
40 # [check] Check that plane has been created [vp PLANE]
43 # [step] Create 2 points by property panel
48 clickButton(waitForObject(":SALOME*.Fit All_QToolButton"))
50 # [check] Check that the points have been created [vp POINTS]
53 # [step] Create axis between the 2 points
54 axis((213, 142), (538, 142))
56 # [check] Check that the axis have been created [vp AXIS]
59 # [step] Close application without saving