Salome HOME
Fix suite_ISSUES/tst_PARALLEL_2 for CentOS
[modules/shaper.git] / test.squish / suite_ISSUES_SALOME / tst_construction_001 / test.py
1 def main():
2     #[project] NewGEOM
3     #[Scenario] Construction_001
4     #[Topic] 'Construction of point, axis and plane' functionality
5     #[Tested functionality] 
6     #[Summary description]
7     #[Expected results]
8     #[General comments]
9     
10     source(findFile("scripts", "common.py"))
11     
12     #[section] Application start
13     #[step] Launch SALOME
14     startApplication("salome_run.sh")
15
16     set_defaults()
17     
18     #[step] Open 'for_construction_001.hdf'
19     open(DATA_PATH + "/for_construction_001.hdf")
20     
21     #[step] Activate NewGeom
22     clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
23     
24     # [step] Activate Part_1
25     waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)")
26     clickItem(":Object browser_XGUI_DataTree", "Part\\_1 (Not loaded)", 71, 10, 0, Qt.LeftButton)
27     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Part\\_1 (Not loaded)", 70, 9, 0)
28     activateItem(waitForObjectItem(":_QMenu", "Activate"))
29     
30     #[step] Create plane basing on upper face of the box
31     plane((283, 127), 100) 
32
33     #[step] Fit all
34     fit_all()
35
36     #[check] Check that plane has been created
37     test.vp("VP1")
38     
39     point(-50, -50, 125)
40     point(50, 50, 125)
41     
42     axis((168, 138), (583, 137))
43
44     test.vp("VP2")
45     
46     # [step] Close application without saving
47     close_application()