:Exit.Shutdown servers_QCheckBox {text='Shutdown servers' type='QCheckBox' unnamed='1' visible='1' window=':Exit_SalomeApp_ExitDlg'}
:Exit_SalomeApp_ExitDlg {type='SalomeApp_ExitDlg' unnamed='1' visible='1' windowTitle='Exit'}
:Extrusion.From_ModuleBase_PageGroupBox {container=':SALOME*.Extrusion_XGUI_PropertyPanel' title='From' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:Extrusion.From_ModuleBase_PageGroupBox_2 {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' title='From' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Extrusion.Select a sketch face_QLabel {container=':SALOME*.Extrusion_XGUI_PropertyPanel' text='Select a sketch face' type='QLabel' unnamed='1' visible='1'}
:Extrusion.Select a sketch face_QListWidget {aboveWidget=':Extrusion.Select a sketch face_QLabel' container=':SALOME*.Extrusion_XGUI_PropertyPanel' type='QListWidget' unnamed='1' visible='1'}
:Extrusion.To_ModuleBase_PageGroupBox {container=':SALOME*.Extrusion_XGUI_PropertyPanel' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:Extrusion.To_ModuleBase_PageGroupBox_2 {container=':ExtrusionCut.Extrusion_ModuleBase_PageGroupBox' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:Extrusion.To_ModuleBase_PageGroupBox_3 {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Extrusion.from_size_ModuleBase_ParamSpinBox {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='from_size' type='ModuleBase_ParamSpinBox' visible='1'}
:Extrusion.from_size_ModuleBase_ParamSpinBox_2 {container=':ExtrusionCut.Extrusion_ModuleBase_PageGroupBox' name='from_size' type='ModuleBase_ParamSpinBox' visible='1'}
:Extrusion.from_size_ModuleBase_ParamSpinBox_3 {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' name='from_size' type='ModuleBase_ParamSpinBox' visible='1'}
:ExtrusionCut.Extrusion_ModuleBase_PageGroupBox {container=':SALOME*.ExtrusionCut_XGUI_PropertyPanel' title='Extrusion' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:ExtrusionCut.property_panel_ok_QToolButton {container=':SALOME*.ExtrusionCut_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox {container=':SALOME*.ExtrusionFuse_XGUI_PropertyPanel' title='Extrusion' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:ExtrusionFuse.property_panel_cancel_QToolButton {container=':SALOME*.ExtrusionFuse_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:ExtrusionFuse.property_panel_ok_QToolButton {container=':SALOME*.ExtrusionFuse_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:Extrusion_ModuleBase_WidgetDoubleValue {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' type='ModuleBase_WidgetDoubleValue' unnamed='1' visible='1'}
:Extrusion_QToolButton {container=':SALOME*.Extrusion_XGUI_PropertyPanel' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
:Extrusion_QToolButton_2 {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' type='QToolButton' unnamed='1' visible='1'}
+:Extrusion_QToolButton_3 {container=':ExtrusionCut.Extrusion_ModuleBase_PageGroupBox' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
+:Extrusion_QToolButton_4 {container=':ExtrusionFuse.Extrusion_ModuleBase_PageGroupBox' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
:Fatal error.OK_QPushButton {text='OK' type='QPushButton' unnamed='1' visible='1' window=':Fatal error_QMessageBox'}
:Fatal error_QMessageBox {type='QMessageBox' unnamed='1' visible='1' windowTitle='Fatal error'}
:Fillet.ConstraintValue_ModuleBase_ParamSpinBox {container=':SALOME*.Fillet_XGUI_PropertyPanel' name='ConstraintValue' type='ModuleBase_ParamSpinBox' visible='1'}
:From_QLineEdit_2 {container=':Revolution.From_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:From_QLineEdit_3 {container=':Revolution.From_ModuleBase_PageGroupBox_2' type='QLineEdit' unnamed='1' visible='1'}
:From_QLineEdit_4 {container=':Revolution.From_ModuleBase_PageGroupBox_3' type='QLineEdit' unnamed='1' visible='1'}
+:From_QLineEdit_5 {container=':Extrusion.From_ModuleBase_PageGroupBox_2' type='QLineEdit' unnamed='1' visible='1'}
:Horizontal.property_panel_cancel_QToolButton {container=':SALOME*.Horizontal_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:Length.ConstraintValue_ModuleBase_ParamSpinBox {container=':SALOME*.Length_XGUI_PropertyPanel' name='ConstraintValue' type='ModuleBase_ParamSpinBox' visible='1'}
:Length.property_panel_cancel_QToolButton {container=':SALOME*.Length_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:To.to_offset_ModuleBase_ParamSpinBox {container=':Extrusion.To_ModuleBase_PageGroupBox' name='to_offset' type='ModuleBase_ParamSpinBox' visible='1'}
:To.to_offset_ModuleBase_ParamSpinBox_2 {container=':Revolution.To_ModuleBase_PageGroupBox' name='to_offset' type='ModuleBase_ParamSpinBox' visible='1'}
:To.to_offset_ModuleBase_ParamSpinBox_3 {container=':Revolution.To_ModuleBase_PageGroupBox_2' name='to_offset' type='ModuleBase_ParamSpinBox' visible='1'}
+:To.to_offset_ModuleBase_ParamSpinBox_4 {container=':Extrusion.To_ModuleBase_PageGroupBox_3' name='to_offset' type='ModuleBase_ParamSpinBox' visible='1'}
:To_QLineEdit {container=':Extrusion.To_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:To_QLineEdit_2 {container=':Revolution.To_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:To_QLineEdit_3 {container=':Revolution.To_ModuleBase_PageGroupBox_2' type='QLineEdit' unnamed='1' visible='1'}
:To_QLineEdit_4 {container=':Revolution.To_ModuleBase_PageGroupBox_3' type='QLineEdit' unnamed='1' visible='1'}
+:To_QLineEdit_5 {container=':Extrusion.To_ModuleBase_PageGroupBox_2' type='QLineEdit' unnamed='1' visible='1'}
+:To_QLineEdit_6 {container=':Extrusion.To_ModuleBase_PageGroupBox_3' type='QLineEdit' unnamed='1' visible='1'}
:Translation.Direction_ModuleBase_PageGroupBox {container=':SALOME*.Translation_XGUI_PropertyPanel' title='Direction' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Translation.MultiTranslationCopies_QSpinBox {container=':SALOME*.Translation_XGUI_PropertyPanel' name='MultiTranslationCopies' type='QSpinBox' visible='1'}
:Translation.Segments:_QLabel {container=':SALOME*.Translation_XGUI_PropertyPanel' text='Segments:' type='QLabel' unnamed='1' visible='1'}
--- /dev/null
+def main():
+ #[project] NewGEOM
+ #[Scenario] Extrusion_006
+ #[Topic] 'Extrusion_cut by planes' functionality
+ #[Tested functionality]
+ #[Summary description]
+ #[Expected results]
+ #[General comments]
+
+ source(findFile("scripts", "common.py"))
+
+ #[section] Application start
+ #[step] Launch SALOME
+ startApplication("salome_run.sh")
+
+ set_defaults()
+
+ #[step] Open 'for_extrusion_006.hdf'
+ open(DATA_PATH + "/for_extrusion_006.hdf")
+
+ #[step] Activate NewGeom
+ clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
+
+ # [step] Activate Part_1
+ waitForObjectItem(":Object browser_XGUI_DataTree", "Not loaded Part\\_1")
+ clickItem(":Object browser_XGUI_DataTree", "Not loaded Part\\_1", 71, 10, 0, Qt.LeftButton)
+ openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Not loaded Part\\_1", 70, 9, 0)
+ activateItem(waitForObjectItem(":_QMenu", "Activate"))
+
+ #[step] Fit all
+ fit_all()
+
+ #[step] Features - ExtrusionCut
+ mouseClick(waitForObjectItem(":SALOME*_QMenuBar", "Features"))
+ mouseClick(waitForObjectItem(":_QMenu", "ExtrusionCut"))
+
+ #[step] Select the upper face for sketching
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 243, 171, 0, Qt.LeftButton)
+
+ #[step] Draw closing contour, consisting from 4 lines
+ line_create_in_view((83, 152), (85, 346))
+ line_create_in_view((85, 346), (669, 344))
+ line_create_in_view((669, 344), (669, 162))
+ closing_line_create_in_view((669, 162), (83, 152))
+
+ #[step] Ok
+ clickButton(waitForObject(":Sketch.property_panel_ok_QToolButton"))
+
+ #[step] Select 'By planes aand offsets' method
+ clickButton(waitForObject(":Extrusion_QToolButton_3"))
+ mouseClick(waitForObject(":To_QLineEdit_5"), 46, 15, 0, Qt.LeftButton)
+
+ #[step] Select Plane_1 as face 'To'
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 35, 130, 0, Qt.LeftButton)
+
+ #[step] Ok
+ clickButton(waitForObject(":ExtrusionCut.property_panel_ok_QToolButton"))
+
+ #[step] Click 'Reset view' toolbar button
+ clickButton(waitForObject(":SALOME*.Reset_QToolButton"))
+
+ #[check] Check that extrusionCut operation has been executed successfully
+ test.vp("VP1")
+
+ # [step] Close application without saving
+ close_application()