Salome HOME
Correction of test sketch_004 and addition of new test sketch_005
[modules/shaper.git] / test.squish / suite_ISSUES_SALOME / tst_sketch_005 / test.py
1 def sketch():
2     #[step] Click 'Create sketch' toolbar button
3     #[step] Select XY plane for sketching
4     #[step] Sketch - Point
5     #[step] Create point via clicking inside viewer 
6     point_create_in_view((340, 205))
7     #[step] Check 'Auxiliary' check-box
8     #[step] Create point via clicking inside viewer
9     point_create_in_view((489, 380), 1) 
10     #[step] Finish creation of points via viewer
11     #[step] Create point via direct input of coordinates. Use coordinates (50, 60)
12     point_create((80, 160))
13     #[step] Check 'Auxiliary' check-box
14     #[step] Create point via direct input of coordinates. Use coordinates (150, 60)
15     point_create((250, 50), 1)
16     #[step] Fix positions of 2 points
17     point_fixe((340, 205))
18     point_fixe((504, 229))
19     #[step] Fit all
20     clickButton(waitForObject(":SALOME 7.6.0 - [Study1].Fit All_QToolButton"))
21     #[check] Check that 2 points have 'anchor' icons near themselves
22     test.vp("VP1")
23     #[step] Define distance between fixed and free points
24     distance((177, 81), (539, 506), (201, 320))
25     #[step] Change distance set
26     change_distance((249, 381), 200)
27     #[step] Check that distance has been modified, free point moved
28     test.vp("VP3")
29
30 def main():
31     
32     # [project] NewGEOM
33     # [Scenario] Sketch_005
34     #[Topic] Fixed point
35     #[Tested functionality] 
36     #[Summary description]
37     #[Expected results] 
38     
39     source(findFile("scripts", "common.py"))
40     #[section] Application start
41     #[step] Launch SALOME
42     startApplication("salome_run.sh")
43
44     set_defaults()
45     
46     #[step] Activate NewGeom
47     #[step]Click 'New' button
48     activate_newgeom()
49     
50     #[section] Creation of sketch and objects inside it
51     #[step] Part - New part
52     part_create()
53
54     sketch_create(help_points("XY_plane"), lambda: sketch())
55
56     #[step] Close application without saving
57     close_application()