3 # [Scenario] 'Platine' model created by PythonAPI
4 # [Topic] PythonAPI functionality
5 # [Tested functionality]
6 # [Summary description]
10 source(findFile("scripts", "common.py"))
12 # [section] Application start
13 # [step] Launch SALOME
14 startApplication("salome_run.sh")
18 # [step] Activate Shaper module and create new file
21 # [step] In Python console type: import examples.Platine
22 type(waitForObject(":Python Console_PyConsole_EnhEditor"), "import examples.Platine")
23 type(waitForObject(":Python Console_PyConsole_EnhEditor"), "<Return>")
24 clickButton(waitForObject(":SALOME*.Fit All_QToolButton"))
26 # [step] Check that the model is correct [vp VP_PLATINE]
29 # [step] Check that the object browser contains all objects from the model [vp VP_TREE]
30 waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1.Parameters (3)")
31 clickItem(":Object browser_XGUI_DataTree", "Part\\_1.Parameters (3)", -10, 10, 0, Qt.LeftButton)
32 waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1.Constructions (3)")
33 clickItem(":Object browser_XGUI_DataTree", "Part\\_1.Constructions (3)", -10, 10, 0, Qt.LeftButton)
34 waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1.Bodies (1)")
35 clickItem(":Object browser_XGUI_DataTree", "Part\\_1.Bodies (1)", -10, 10, 0, Qt.LeftButton)
38 # [step] Close application without saving