]> SALOME platform Git repositories - modules/shaper.git/blob - test.squish/suite_ISSUES/tst_818/test.py
Salome HOME
Add GDB to SQUISH tests
[modules/shaper.git] / test.squish / suite_ISSUES / tst_818 / test.py
1 def main():
2     source(findFile("scripts", "common.py"))
3     
4     startApplication("linux_run.sh")
5     set_defaults()
6     
7     parameter_create("a", "100")
8     
9     sketch_create(help_points("XY_plane"), lambda: line_create((0, 0), ("a", 0)))
10
11     waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1)")
12     clickItem(":Object browser_XGUI_DataTree", "Parameters (1)", -10, 10, 0, Qt.LeftButton)
13     waitForObjectItem(":Object browser_XGUI_DataTree", "Parameters (1).a = 100")
14     clickItem(":Object browser_XGUI_DataTree", "Parameters (1).a = 100", 10, 10, 0, Qt.LeftButton)
15     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).a = 100", 10, 10, 0)
16     
17     activateItem(waitForObjectItem(":_QMenu", "Delete"))
18     
19     waitFor("object.exists(':Delete features.Label_QLabel')", 20000)
20     test.compare(str(findObject(":Delete features.Label_QLabel").text), "Selected features are used in the following features: SketchLine_1. These features will be deleted.\nAlso these features will be deleted: Sketch_1.\nWould you like to continue?")
21
22     clickButton(waitForObject(":Delete features.Yes_QPushButton"))