3 #[Scenario] Partition_001
4 #[Topic] 'Partition' functionality
5 #[Tested functionality]
10 source(findFile("scripts", "common.py"))
12 #[section] Application start
14 startApplication("salome_run.sh")
18 #[step] Open 'for_partition_001.hdf'
19 open(DATA_PATH + "/for_partition_001.hdf")
21 #[step] Activate NewGeom
22 clickButton(waitForObject(":SALOME*.NewGeom_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")
34 partition([(291, 188)], (178, 205))
35 test.vp("VP_PARTITION_1")
36 partition([(275, 173), (255, 323)], (272, 94))
37 test.vp("VP_PARTITION_2")
39 #[step] Hide one of parts obtained in the viewer: select it, call context menu - Hide
40 mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 291, 198, 0, Qt.LeftButton)
41 mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 291, 198, 0, Qt.RightButton)
42 activateItem(waitForObjectItem(":_QtxMenu", "Hide"))
44 #[check] Check that partition has been executed successfully
47 # [step] Close application without saving