:From_QLineEdit {container=':Extrusion.From_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' 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'}
: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'}
:Point_QFrame {container=':SALOME*.Point_XGUI_PropertyPanel' type='QFrame' unnamed='1' visible='1'}
:Revolution.From_ModuleBase_PageGroupBox {container=':SALOME*.Revolution_XGUI_PropertyPanel' title='From' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Revolution.From_ModuleBase_PageGroupBox_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' title='From' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:Revolution.From_ModuleBase_PageGroupBox_3 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' title='From' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Revolution.Select a sketch face_QLabel {container=':SALOME*.Revolution_XGUI_PropertyPanel' text='Select a sketch face' type='QLabel' unnamed='1' visible='1'}
:Revolution.Select a sketch face_QListWidget {aboveWidget=':Revolution.Select a sketch face_QLabel' container=':SALOME*.Revolution_XGUI_PropertyPanel' type='QListWidget' unnamed='1' visible='1'}
:Revolution.To_ModuleBase_PageGroupBox {container=':SALOME*.Revolution_XGUI_PropertyPanel' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Revolution.To_ModuleBase_PageGroupBox_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:Revolution.To_ModuleBase_PageGroupBox_3 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' title='To' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:Revolution.from_angle_ModuleBase_ParamSpinBox {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='from_angle' type='ModuleBase_ParamSpinBox' visible='1'}
:Revolution.from_angle_ModuleBase_ParamSpinBox_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' name='from_angle' type='ModuleBase_ParamSpinBox' visible='1'}
+:Revolution.from_angle_ModuleBase_ParamSpinBox_3 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' name='from_angle' type='ModuleBase_ParamSpinBox' visible='1'}
:Revolution.property_panel_cancel_QToolButton {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='property_panel_cancel' type='QToolButton' visible='1'}
:Revolution.property_panel_ok_QToolButton {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:Revolution.qt_spinbox_lineedit_QLineEdit {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='qt_spinbox_lineedit' type='QLineEdit' visible='1'}
:Revolution.qt_spinbox_lineedit_QLineEdit_2 {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='qt_spinbox_lineedit' occurrence='2' type='QLineEdit' visible='1'}
:Revolution.qt_spinbox_lineedit_QLineEdit_3 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' name='qt_spinbox_lineedit' type='QLineEdit' visible='1'}
:Revolution.qt_spinbox_lineedit_QLineEdit_4 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' name='qt_spinbox_lineedit' occurrence='2' type='QLineEdit' visible='1'}
+:Revolution.qt_spinbox_lineedit_QLineEdit_5 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' name='qt_spinbox_lineedit' type='QLineEdit' visible='1'}
+:Revolution.qt_spinbox_lineedit_QLineEdit_6 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' name='qt_spinbox_lineedit' occurrence='2' type='QLineEdit' visible='1'}
:Revolution.to_angle_ModuleBase_ParamSpinBox {container=':SALOME*.Revolution_XGUI_PropertyPanel' name='to_angle' type='ModuleBase_ParamSpinBox' visible='1'}
:Revolution.to_angle_ModuleBase_ParamSpinBox_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' name='to_angle' type='ModuleBase_ParamSpinBox' visible='1'}
+:Revolution.to_angle_ModuleBase_ParamSpinBox_3 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' name='to_angle' type='ModuleBase_ParamSpinBox' visible='1'}
+:RevolutionCut.Revolution_ModuleBase_PageGroupBox {container=':SALOME*.RevolutionCut_XGUI_PropertyPanel' title='Revolution' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
+:RevolutionCut.property_panel_ok_QToolButton {container=':SALOME*.RevolutionCut_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:RevolutionFuse.Revolution_ModuleBase_PageGroupBox {container=':SALOME*.RevolutionFuse_XGUI_PropertyPanel' title='Revolution' type='ModuleBase_PageGroupBox' unnamed='1' visible='1'}
:RevolutionFuse.property_panel_ok_QToolButton {container=':SALOME*.RevolutionFuse_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:Revolution_QLineEdit {container=':SALOME*.Revolution_XGUI_PropertyPanel' type='QLineEdit' unnamed='1' visible='1'}
:Revolution_QLineEdit_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' occurrence='2' type='QLineEdit' unnamed='1' visible='1'}
+:Revolution_QLineEdit_3 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' occurrence='2' type='QLineEdit' unnamed='1' visible='1'}
+:Revolution_QLineEdit_4 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' type='QLineEdit' unnamed='1' visible='1'}
:Revolution_QToolButton {container=':SALOME*.Revolution_XGUI_PropertyPanel' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
:Revolution_QToolButton_2 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' type='QToolButton' unnamed='1' visible='1'}
:Revolution_QToolButton_3 {container=':RevolutionFuse.Revolution_ModuleBase_PageGroupBox' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
+:Revolution_QToolButton_4 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' type='QToolButton' unnamed='1' visible='1'}
+:Revolution_QToolButton_5 {container=':RevolutionCut.Revolution_ModuleBase_PageGroupBox' occurrence='2' type='QToolButton' unnamed='1' visible='1'}
:SALOME*.+OX_QToolButton {text='+OX' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
:SALOME*.+OY_QToolButton {text='+OY' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
:SALOME*.+OZ_QToolButton {text='+OZ' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
:SALOME*.Perpendicular_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Perpendicular'}
:SALOME*.Plane_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Plane'}
:SALOME*.Point_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Point'}
+:SALOME*.RevolutionCut_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='RevolutionCut'}
:SALOME*.RevolutionFuse_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='RevolutionFuse'}
:SALOME*.Revolution_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Revolution'}
:SALOME*.SketchPoint_QToolButton {container=':SALOME*.Sketch_QtxToolBar' text='Point' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
: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'}
: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] Revolution_003
+ #[Topic] 'RevolutionCut by angles' 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_revolution_003.hdf'
+ open(DATA_PATH + "/for_revolution_003.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] Execute RevolutionFuse operation
+ mouseClick(waitForObjectItem(":SALOME*_QMenuBar", "Features"))
+ mouseClick(waitForObjectItem(":_QMenu", "RevolutionCut"))
+
+ #[step] Select sketch face
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 287, 236, 0, Qt.LeftButton)
+
+ # [step] Create 2 circles
+ circle_create_in_view((650, 364), (671, 392))
+ circle_create_in_view((641, 114), (664, 141))
+
+ #[step] Approve sketching
+ clickButton(waitForObject(":Sketch.property_panel_ok_QToolButton"))
+
+ # [step] Select axis for revolution
+ mouseClick(waitForObject(":Revolution_QLineEdit_3"), 103, 11, 0, Qt.LeftButton)
+ mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 750, 237, 0, Qt.LeftButton)
+
+ #[step] Define angle 'To'
+ mouseClick(waitForObject(":Revolution.qt_spinbox_lineedit_QLineEdit_5"), 61, 9, 0, Qt.LeftButton)
+ type(waitForObject(":Revolution.to_angle_ModuleBase_ParamSpinBox_3"), "<Ctrl+A>")
+ type(waitForObject(":Revolution.to_angle_ModuleBase_ParamSpinBox_3"), 90)
+
+ #[step] Define angle 'From'
+ mouseClick(waitForObject(":Revolution.qt_spinbox_lineedit_QLineEdit_6"), 104, 13, 0, Qt.LeftButton)
+ type(waitForObject(":Revolution.from_angle_ModuleBase_ParamSpinBox_3"), "<Ctrl+A>")
+ type(waitForObject(":Revolution.from_angle_ModuleBase_ParamSpinBox_3"), 90)
+
+
+ #[step] Ok
+ clickButton(waitForObject(":RevolutionCut.property_panel_ok_QToolButton"))
+
+ #[step] Rotate the model
+ type(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), "<Control>")
+ mouseDrag(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 558, 413, -33, -137, 67108866, Qt.RightButton)
+
+ #[check] Check that operation has been executed successfully
+ test.vp("VP1")
+
+ # [step] Close application without saving
+ close_application()