Salome HOME
c34a608d05f504d3a63b1fb15c82632066abde85
[modules/shaper.git] / test.squish / suite_ISSUES / tst_PARALLEL_1 / test.py
1 def sketch():
2     line_create((244, 279), (226, 282))
3     line_create((200, 290), (250, 300))
4
5     #fit all
6     clickButton(waitForObject(":OpenParts*.Fit all_QToolButton"))
7     
8     #parallel
9     clickButton(waitForObject(":Constraints.Parallel_AppElements_Button"))
10     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 308, 255, 0, Qt.LeftButton)
11     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 417, 440, 0, Qt.LeftButton)
12     clickButton(waitForObject(":Constraints.Parallel_AppElements_Button"))
13     test.vp("VP1")
14
15 def main():
16     source(findFile("scripts", "common.py"))
17     
18     startApplication("GeomApp")
19     set_defaults()
20     
21     sketch_create(help_points("XY_plane"), lambda: sketch())
22
23     sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))
24