Salome HOME
Task 2.4. Ability to modify the radius of circles and arcs of circle with the mouse
[modules/shaper.git] / test.squish / suite_STANDALONE / tst_532 / test.py
1 def sketch():
2     clickButton(waitForObject(":Basic.Line_AppElements_Button"))
3     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 230, 140, 0, Qt.LeftButton)
4     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 128, 399, 0, Qt.LeftButton)
5     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 307, 317, 0, Qt.LeftButton)
6     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 473, 347, 0, Qt.LeftButton)
7     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 230, 140, 0, Qt.LeftButton)
8
9 def main():
10     source(findFile("scripts", "common.py"))
11     
12     startApplication("linux_run.sh")
13     set_defaults()
14     
15     sketch_create(help_points("XY_plane"), lambda: sketch())
16     
17     part_create()
18
19     extrusion_feature([(266, 251)], 10) # on the sketch
20
21     clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Construction")
22     clickButton(waitForObject(":Basic.Plane_AppElements_Button"))
23     type(waitForObject(":OpenParts*_AppElements_ViewPort"), "<Control>")
24     mouseDrag(waitForObject(":OpenParts*_AppElements_ViewPort"), 353, 364, -37, -171, 67108866, Qt.RightButton)
25     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 274, 316, 0, Qt.LeftButton) # inner left face
26     clickButton(waitForObject(":Plane.property_panel_ok_QToolButton"))
27
28     test.vp("VP_EXTRUSION")
29     
30     clickTab(waitForObject(":General.qt_tabwidget_tabbar_QTabBar"), "Features")
31     clickButton(waitForObject(":Boolean.Partition_AppElements_Button"))
32     mouseClick(waitForObject(":Partition.Main objects_QListWidget"), 10, 10, 0, Qt.LeftButton)
33     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 227, 263, 0, Qt.LeftButton) # extrusion object
34     mouseClick(waitForObject(":Partition.Tool object_QListWidget"), 10, 10, 0, Qt.LeftButton)
35     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 212, 344, 0, Qt.LeftButton) # construction plane
36     clickButton(waitForObject(":Partition.property_panel_ok_QToolButton"))
37     
38     test.vp("VP_PARTITION")