1 #[tested functionality] 1. Add parameter 2. Use wrong parameter name 3. Error notification in header 3. Error notification in widget
4 source(findFile("scripts", "common.py"))
6 startApplication("salome_run.sh")
10 clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
11 type(waitForObject(":Parameter_QLineEdit"), "a")
12 type(waitForObject(":Parameter_ExpressionEditor"), "3")
13 type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
14 clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
16 clickButton(waitForObject(":SALOME*.ConstructionPoint_QToolButton"))
17 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
18 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "a")
19 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Return>")
21 waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
22 test.compare(str(findObject(":Point.x_ModuleBase_ParamSpinBox").toolTip), "X coordinate")
24 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
25 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "b")
26 type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Return>")
28 waitFor("object.exists(':Point_QFrame')", 20000)
29 test.compare(str(findObject(":Point_QFrame").toolTip), "ModelAPI_StateInvalidArgument")
31 waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
32 test.compare(str(findObject(":Point.x_ModuleBase_ParamSpinBox").toolTip), "X coordinate\nErrors:\nx - Model_AttributeValidator: name 'b' is not defined")