Salome HOME
Merge with Dev_1.5.0
[modules/shaper.git] / test.squish / suite_FEATURE_SKETCH / tst_sketch_008 / test.py
1 def sketch():
2     #[step] Click 'Create sketch' toolbar button
3     #[step] Select XY plane for sketching 
4     #[step] Create point
5     point_create_in_view((340, 205))
6     #[step] Create line
7     line_create_in_view((274, 367), (554, 189))
8     #[step] Make them coincident
9     coincident((340, 205), (390, 293))
10     #[check] Check that objects are coincident
11     test.vp("VP1")
12     #[step] Uncheck 'Show constraints' check-box
13     clickButton(waitForObject(":Sketch.Show constraints_QCheckBox"))
14     #[check] Check that 'Coincident' icon disappears
15     test.vp("VP2")
16
17 def main():
18     
19     # [project] NewGEOM
20     # [Scenario] Sketch_008
21     #[Topic] 'Coincident' functionality
22     #[Tested functionality] 
23     #[Summary description]
24     #[Expected results] 
25     
26     source(findFile("scripts", "common.py"))
27     #[section] Application start
28     #[step] Launch SALOME
29     startApplication("salome_run.sh")
30
31     set_defaults()
32     
33     #[step] Activate NewGeom
34     #[step]Click 'New' button
35     activate_newgeom()
36     
37     #[section] Creation of sketch and objects inside it
38     #[step] Part - New part
39     part_create()
40
41     sketch_create(help_points("XY_plane"), lambda: sketch())
42
43     #[step] Close application without saving
44     close_application()