2 source(findFile("scripts", "common.py"))
4 startApplication("linux_run.sh")
7 parameter_create("a", "100")
9 sketch_create(help_points("XY_plane"), lambda: line_create((0, 0), ("a", 0)))
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)
17 activateItem(waitForObjectItem(":_QMenu", "Delete"))
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?")
22 clickButton(waitForObject(":Delete features.Yes_QPushButton"))