3 # [Scenario] Partition_001
4 # [Topic] 'Partition' 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_partition_001.hdf'
19 open(DATA_PATH + "/for_partition_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"))
31 test.vp("VP_AFTER_LOAD")
35 # [step] Create partition with horizontal plane [vp VP_PARTITION_1]
36 partition([(290, 170)], (270, 200))
37 test.vp("VP_PARTITION_1")
39 # [step] Create partition with vertical plane [vp VP_PARTITION_2]
40 partition([(360, 230), (320, 340)], (380, 240))
41 test.vp("VP_PARTITION_2")
43 # [step] Hide one of parts obtained in the viewer: select it, call context menu - Hide
44 mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 291, 198, 0, Qt.LeftButton)
45 mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 291, 198, 0, Qt.RightButton)
46 activateItem(waitForObjectItem(":_QtxMenu", "Hide"))
48 # [check] Check that partition has been executed successfully [vp VP_HIDE]
51 # [step] Close application without saving