Salome HOME
78320480a78a9e53b97040232eb3a5a6846ae4c3
[modules/shaper.git] / test.squish / suite_ISSUES / tst_PARALLEL_2 / test.py
1 def sketch():
2     #line creation
3     clickButton(waitForObject(":Basic.Line_AppElements_Button"))
4     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 123, 417, 0, Qt.LeftButton)
5     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 175, 132, 0, Qt.LeftButton)
6     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 477, 63, 0, Qt.LeftButton)
7     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 739, 397, 0, Qt.LeftButton)
8     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 222, 334, 0, Qt.LeftButton)
9     type(waitForObject(":OpenParts*_AppElements_ViewPort"), "<Esc>")
10     
11     parallel_create((165, 190), (581, 197))
12     parallel_create((285, 135), (469, 364))
13     #[check] Check that lines are parallel
14     test.vp("VP1")
15
16 def main():
17     source(findFile("scripts", "common.py"))
18     
19     startApplication("linux_run.sh")
20     set_defaults()
21     
22     sketch_create(help_points("XY_plane"), lambda: sketch())
23
24     sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))