Salome HOME
Merge with Dev_1.5.0
[modules/shaper.git] / test.squish / suite_STANDALONE / tst_PARALLEL_2 / test.py
1 def sketch():
2     #[step] Create lines [vp VP_SKETCH]
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"), 123, 417, 0, Qt.LeftButton)
9     test.vp("VP_SKETCH")
10     
11     #[step] Create 2 lines parallel
12     parallel_create((355, 91), (445, 407))
13     # [check] Check that lines are parallel [vp VP_PARALLEL_1]
14     test.vp("VP_PARALLEL_1")
15     
16     #[step] Create 2 other lines parallel
17     parallel_create((155, 225), (589, 216))
18     #[check] Check that lines are parallel [vp VP_PARALLEL_2]
19     test.vp("VP_PARALLEL_2")
20
21 def main():
22     source(findFile("scripts", "common.py"))
23     
24     startApplication("linux_run.sh")
25     set_defaults()
26     
27     sketch_create(help_points("XY_plane"), lambda: sketch())
28
29     sendEvent("QCloseEvent", waitForObject(":OpenParts*_AppElements_MainWindow"))