1 ## Copyright (C) 2014-2017 CEA/DEN, EDF R&D
3 ## This library is free software; you can redistribute it and/or
4 ## modify it under the terms of the GNU Lesser General Public
5 ## License as published by the Free Software Foundation; either
6 ## version 2.1 of the License, or (at your option) any later version.
8 ## This library is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 ## Lesser General Public License for more details.
13 ## You should have received a copy of the GNU Lesser General Public
14 ## License along with this library; if not, write to the Free Software
15 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 ## See http:##www.salome-platform.org/ or
18 ## email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
22 source(findFile("scripts", "common.py"))
24 startApplication("linux_run.sh")
27 clickButton(waitForObject(":Operations.New part_AppElements_Button"))
29 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Sketch")
30 clickButton(waitForObject(":Basic.Sketch_AppElements_Button"))
31 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 351, 267, 0, Qt.LeftButton)
32 clickButton(waitForObject(":Basic.Line_AppElements_Button"))
33 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 242, 169, 0, Qt.LeftButton)
34 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 140, 394, 0, Qt.LeftButton)
35 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 531, 537, 0, Qt.LeftButton)
36 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 241, 169, 0, Qt.LeftButton)
37 clickButton(waitForObject(":Sketch.property_panel_ok_QToolButton"))
41 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features")
42 clickButton(waitForObject(":Extrusion.Extrusion_AppElements_Button"))
43 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 216, 270, 0, Qt.LeftButton)
44 clickButton(waitForObject(":Extrusion.property_panel_ok_QToolButton"))
46 test.vp("VP_EXTRUSION")
48 clickButton(waitForObject(":Extrusion.ExtrusionFuse_AppElements_Button"))
49 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 290, 316, 0, Qt.LeftButton)
51 clickButton(waitForObject(":OpenParts*.Fit all_QToolButton"))
52 test.vp("VP_EXTRUSIONFUSE")
54 mouseClick(waitForObject(":Sketch.Basic_AppElements_MenuGroupPanel"), 143, 56, 0, Qt.LeftButton)
55 clickButton(waitForObject(":Basic.Circle_AppElements_Button"))
56 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 259, 248, 0, Qt.LeftButton)
57 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 281, 285, 0, Qt.LeftButton)
58 clickButton(waitForObject(":Sketch.Ok_QToolButton"))
60 mouseClick(waitForObject(":Extrusion.qt_spinbox_lineedit_QLineEdit_5"), 42, 9, 0, Qt.LeftButton)
61 type(waitForObject(":Extrusion.to_size_ModuleBase_ParamSpinBox_2"), "<Ctrl+A>")
62 type(waitForObject(":Extrusion.to_size_ModuleBase_ParamSpinBox_2"), "3")
63 type(waitForObject(":Extrusion.to_size_ModuleBase_ParamSpinBox_2"), "3")
64 mouseClick(waitForObject(":Extrusion.qt_spinbox_lineedit_QLineEdit_6"), 93, 7, 0, Qt.LeftButton)
65 type(waitForObject(":Extrusion.from_size_ModuleBase_ParamSpinBox_3"), "<Ctrl+A>")
66 type(waitForObject(":Extrusion.from_size_ModuleBase_ParamSpinBox_3"), "4")
67 type(waitForObject(":Extrusion.from_size_ModuleBase_ParamSpinBox_3"), "4")
68 clickButton(waitForObject(":ExtrusionFuse.property_panel_ok_QToolButton"))
70 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Sketch")
71 clickButton(waitForObject(":Basic.Sketch_AppElements_Button"))
72 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 351, 267, 0, Qt.LeftButton)
73 clickButton(waitForObject(":Basic.Line_AppElements_Button"))
74 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 242, 169, 0, Qt.LeftButton)
75 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 140, 394, 0, Qt.LeftButton)
76 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 531, 537, 0, Qt.LeftButton)
77 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 241, 169, 0, Qt.LeftButton)
78 clickButton(waitForObject(":Sketch.property_panel_ok_QToolButton"))
80 clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features")
81 mouseDrag(waitForObject(":Features_QScrollArea"), 31, 1, -2, -2, 1, Qt.LeftButton)
82 clickButton(waitForObject(":Extrusion.Extrusion_AppElements_Button"))
83 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 216, 270, 0, Qt.LeftButton)
84 clickButton(waitForObject(":Extrusion.property_panel_ok_QToolButton"))
85 clickButton(waitForObject(":Extrusion.ExtrusionCut_AppElements_Button"))
86 clickButton(waitForObject(":Basic_QToolButton"))
87 clickButton(waitForObject(":Abort operation.OK_QPushButton"))
88 clickButton(waitForObject(":Extrusion.ExtrusionFuse_AppElements_Button"))
89 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 290, 316, 0, Qt.LeftButton)
90 mouseClick(waitForObject(":Sketch.Basic_AppElements_MenuGroupPanel"), 143, 56, 0, Qt.LeftButton)
91 clickButton(waitForObject(":Basic.Circle_AppElements_Button"))
92 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 259, 248, 0, Qt.LeftButton)
93 mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 281, 285, 0, Qt.LeftButton)
94 clickButton(waitForObject(":Sketch.Ok_QToolButton"))
96 mouseClick(waitForObject(":Extrusion.qt_spinbox_lineedit_QLineEdit_5"), 42, 9, 0, Qt.LeftButton)
97 type(waitForObject(":Extrusion.to_size_ModuleBase_ParamSpinBox_2"), "<Ctrl+A>")
98 type(waitForObject(":Extrusion.to_size_ModuleBase_ParamSpinBox_2"), "33")
99 mouseClick(waitForObject(":Extrusion.qt_spinbox_lineedit_QLineEdit_6"), 93, 7, 0, Qt.LeftButton)
100 type(waitForObject(":Extrusion.from_size_ModuleBase_ParamSpinBox_3"), "<Ctrl+A>")
101 type(waitForObject(":Extrusion.from_size_ModuleBase_ParamSpinBox_3"), "44")
102 clickButton(waitForObject(":ExtrusionFuse.property_panel_ok_QToolButton"))
104 sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))