]> SALOME platform Git repositories - modules/shaper.git/blob - test.squish/suite_ISSUES/tst_PARALLEL_2/test.py
Salome HOME
Improve SQUISH tests for Jenkins
[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     test.vp("VP1")
14     mouseDrag(waitForObject(":OpenParts*_AppElements_ViewPort"), 663, 348, -375, 114, 1, Qt.LeftButton)
15     test.vp("VP2")
16     mouseDrag(waitForObject(":OpenParts*_AppElements_ViewPort"), 301, 125, 284, 67, 1, Qt.LeftButton)
17     mouseDrag(waitForObject(":OpenParts*_AppElements_ViewPort"), 156, 249, -15, 184, 1, Qt.LeftButton)
18     test.vp("VP3")
19     mouseClick(waitForObject(":OpenParts*_AppElements_ViewPort"), 336, 302, 0, Qt.LeftButton)
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"))