Salome HOME
Update SQUISH tests.
[modules/shaper.git] / test.squish / suite_ISSUES_SALOME / tst_474 / test.py
1 def main():
2     source(findFile("scripts", "common.py"))
3     
4     startApplication("salome_run.sh")
5     
6     create_new_document()
7     
8     clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
9     type(waitForObject(":Parameter_QLineEdit"), "aa")
10     type(waitForObject(":Parameter_ExpressionEditor"), "4")
11     clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
12
13     clickButton(waitForObject(":SALOME*.New part_QToolButton"))
14     
15     clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
16     type(waitForObject(":Parameter_QLineEdit"), "bb")
17     type(waitForObject(":Parameter_ExpressionEditor"), "aa+1")
18     clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
19
20     openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).aa = 4", 10, 10, 0)
21     activateItem(waitForObjectItem(":_QMenu", "Delete"))
22     waitFor("object.exists(':Delete features._QLabel')", 20000)
23     test.compare(str(findObject(":Delete features._QLabel").text), "Selected features are used in the following features: bb. These features will be deleted.\nWould you like to continue?")
24     clickButton(waitForObject(":Delete features.No_QPushButton"))
25     
26     close_application()