Salome HOME
1537b6df84e63b197c79eebe1735bf758f81da29
[modules/shaper.git] / test.squish / suite_ISSUES_SALOME / tst_679 / test.py
1 def main():
2     source(findFile("scripts", "common.py"))
3     
4     startApplication("salome_run.sh")
5     
6     activate_newgeom()
7     
8     clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
9     type(waitForObject(":Parameter_QLineEdit"), "a")
10     type(waitForObject(":Parameter_ExpressionEditor"), "3")
11     clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
12     
13     clickButton(waitForObject(":SALOME*.ConstructionPoint_QToolButton"))
14     type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
15     type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "a")
16     waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
17     test.compare(str(findObject(":Point.x_ModuleBase_ParamSpinBox").toolTip), "X coordinate")
18
19     type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
20     type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "b")
21
22     waitFor("object.exists(':Point_QFrame')", 20000)
23     test.compare(str(findObject(":Point_QFrame").toolTip), "x - Model_AttributeValidator: name 'b' is not defined")
24     waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
25     test.compare(str(findObject(":Point.x_ModuleBase_ParamSpinBox").toolTip), "X coordinate\nErrors:\nx - Model_AttributeValidator: name 'b' is not defined")
26
27     close_application()