:Exit.Ok_QPushButton {text='Ok' type='QPushButton' unnamed='1' visible='1' window=':Exit_SalomeApp_ExitDlg'}
: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.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.from_size_ModuleBase_ParamSpinBox {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='from_size' type='ModuleBase_ParamSpinBox' visible='1'}
:Extrusion.property_panel_ok_QToolButton {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:Extrusion.qt_spinbox_lineedit_QLineEdit {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='qt_spinbox_lineedit' type='QLineEdit' visible='1'}
:Extrusion.qt_spinbox_lineedit_QLineEdit_2 {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='qt_spinbox_lineedit' occurrence='2' type='QLineEdit' visible='1'}
:Extrusion.to_size_ModuleBase_ParamSpinBox {container=':SALOME*.Extrusion_XGUI_PropertyPanel' name='to_size' type='ModuleBase_ParamSpinBox' visible='1'}
+:Extrusion_QToolButton {container=':SALOME*.Extrusion_XGUI_PropertyPanel' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
:Fixed.property_panel_cancel_QToolButton {container=':SALOME*.Fixed_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
+:From.from_offset_ModuleBase_ParamSpinBox {container=':Extrusion.From_ModuleBase_PageGroupBox' name='from_offset' type='ModuleBase_ParamSpinBox' visible='1'}
+:From_QLineEdit {container=':Extrusion.From_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:Horizontal.property_panel_cancel_QToolButton {container=':SALOME*.Horizontal_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:Line.Auxiliary_QCheckBox {container=':SALOME*.Line_XGUI_PropertyPanel' text='Auxiliary' type='QCheckBox' unnamed='1' visible='1'}
:Line.End point_QGroupBox {container=':SALOME*.Line_XGUI_PropertyPanel' title='End point' type='QGroupBox' unnamed='1' visible='1'}
:Start point.Y _ModuleBase_ParamSpinBox_2 {container=':Arc.Start point_QGroupBox' leftWidget=':Start point.Y _QLabel_2' type='ModuleBase_ParamSpinBox' unnamed='1' visible='1'}
:Start point.Y _QLabel {container=':Line.Start point_QGroupBox' text='Y ' type='QLabel' unnamed='1' visible='1'}
:Start point.Y _QLabel_2 {container=':Arc.Start point_QGroupBox' text='Y ' type='QLabel' unnamed='1' visible='1'}
+:To.to_offset_ModuleBase_ParamSpinBox {container=':Extrusion.To_ModuleBase_PageGroupBox' name='to_offset' type='ModuleBase_ParamSpinBox' visible='1'}
+:To_QLineEdit {container=':Extrusion.To_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:Vertical.property_panel_cancel_QToolButton {container=':SALOME*.Vertical_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:Warning.Yes_QPushButton {text='Yes' type='QPushButton' unnamed='1' visible='1' window=':Warning_QMessageBox'}
:Warning_QMessageBox {type='QMessageBox' unnamed='1' visible='1' windowTitle='Warning'}
--- /dev/null
+def main():
+ #[project] NewGEOM
+ #[Scenario] Extrusion_002
+ #[Topic] 'Extrusion by boarding planes and offsets' 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_001.hdf'
+ open(DATA_PATH + "/for_extrusion_002.hdf")
+
+ #[step] Activate NewGeom
+ clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
+
+ #[step] Activate Part_1
+ waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1")
+ clickItem(":Object browser_XGUI_DataTree", "Part\\_1", 48, 10, 0, Qt.LeftButton)
+ openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Part\\_1", 48, 10, 0)
+ activateItem(waitForObjectItem(":_QMenu", "Activate"))
+
+ #[step] Fit all
+ fit_all()
+ #[step] Execute extrusion for sketch_1
+ mouseClick(waitForObjectItem(":SALOME*_QMenuBar", "Features"))
+ mouseClick(waitForObjectItem(":_QMenu", "Extrusion"))
+
+ #[step] Select sketch_1 as base
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 324, 222, 0, Qt.LeftButton)
+
+ #[step] Select 'By boarding planes and offsets' button
+ clickButton(waitForObject(":Extrusion_QToolButton"))
+
+ #[check] Check that no result is previewed
+ test.vp("VP1")
+
+ #[step] Select upper face as face 'To'
+ mouseClick(waitForObject(":Extrusion.Select a sketch face_QListWidget"), 80, 47, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 350, 231, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":To_QLineEdit"), 31, 11, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 369, 87, 0, Qt.LeftButton)
+
+ #[check] Check that preview is updated
+ test.vp("VP2")
+
+ #[step] Select lower face as face 'From'
+ mouseClick(waitForObject(":From_QLineEdit"), 80, 11, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 350, 413, 0, Qt.LeftButton)
+
+ #[check] Check that preview is updated
+ test.vp("VP3")
+
+ #[step] Define offset for face 'To'
+ type(waitForObject(":To.to_offset_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
+ type(waitForObject(":To.to_offset_ModuleBase_ParamSpinBox"), 200)
+
+ #[step] Fit all
+ fit_all()
+
+ #[check] Check that preview is updated
+ test.vp("VP4")
+
+ #[step] Define offset for face 'From'
+ type(waitForObject(":From.from_offset_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
+ type(waitForObject(":From.from_offset_ModuleBase_ParamSpinBox"), 200)
+
+ #[step] Fit all
+ fit_all()
+
+ #[check] Check that preview is updated
+ test.vp("VP5")
+
+ #[step] Ok
+ clickButton(waitForObject(":Extrusion.property_panel_ok_QToolButton"))
+
+ #[step] Fit all
+ fit_all()
+
+ #[check] Check that extrusion is built
+ test.vp("VP6")
+
+ # [step] Close application without saving
+ close_application()