:Exit.Ok_QPushButton {text='Ok' type='QPushButton' unnamed='1' visible='1' window=':Exit_SalomeApp_ExitDlg'}
:Exit.Shutdown servers_QCheckBox {text='Shutdown servers' type='QCheckBox' unnamed='1' visible='1' window=':Exit_SalomeApp_ExitDlg'}
:Exit_SalomeApp_ExitDlg {type='SalomeApp_ExitDlg' unnamed='1' visible='1' windowTitle='Exit'}
-:SALOME 7.6.0 - [Study1].3D View Operations_OCCViewer_ViewPort3d {aboveWidget=':SALOME 7.6.0 - [Study1].3D View Operations_QtxToolBar' type='OCCViewer_ViewPort3d' unnamed='1' visible='1' window=':SALOME 7.6.0 - [Study1]_STD_TabDesktop'}
-:SALOME 7.6.0 - [Study1].3D View Operations_QtxToolBar {name='OCCViewer3DViewOperations' type='QtxToolBar' visible='1' window=':SALOME 7.6.0 - [Study1]_STD_TabDesktop' windowTitle='3D View Operations'}
-:SALOME 7.6.0 - [Study1].Circle_QToolButton {text='Circle' type='QToolButton' unnamed='1' visible='1' window=':SALOME 7.6.0 - [Study1]_STD_TabDesktop'}
-:SALOME 7.6.0 - [Study1].Sketch_QToolButton {text='Sketch' type='QToolButton' unnamed='1' visible='1' window=':SALOME 7.6.0 - [Study1]_STD_TabDesktop'}
-:SALOME 7.6.0 - [Study1]_QToolButton {occurrence='16' type='QToolButton' unnamed='1' visible='1' window=':SALOME 7.6.0 - [Study1]_STD_TabDesktop'}
-:SALOME 7.6.0 - [Study1]_STD_TabDesktop {type='STD_TabDesktop' unnamed='1' visible='1' windowTitle='SALOME 7.6.0 - [Study1]'}
-:SALOME 7.6.0.Geometry_QToolButton {text='Geometry' type='QToolButton' unnamed='1' visible='1' window=':SALOME 7.6.0_STD_TabDesktop'}
-:SALOME 7.6.0.NewGeom_QToolButton {text='NewGeom' type='QToolButton' unnamed='1' visible='1' window=':SALOME 7.6.0_STD_TabDesktop'}
-:SALOME 7.6.0_STD_TabDesktop {type='STD_TabDesktop' unnamed='1' visible='1' windowTitle='SALOME 7.6.0'}
+:Object browser_XGUI_DataTree {container=':SALOME*.Object browser_QDockWidget' type='XGUI_DataTree' unnamed='1' visible='1'}
+:Parameter.Attribute "expression" invalidated by "Parameters_ExpressionValidator" with error: Expression is empty._ExpressionEditor {aboveWidget=':Parameter.Attribute "expression" invalidated by "Parameters_ExpressionValidator" with error: Expression is empty._QLabel' container=':SALOME*.Parameter_XGUI_PropertyPanel' type='ExpressionEditor' unnamed='1' visible='1'}
+:Parameter.Attribute "expression" invalidated by "Parameters_ExpressionValidator" with error: Expression is empty._QLabel {container=':SALOME*.Parameter_XGUI_PropertyPanel' text='Attribute "expression" invalidated by "Parameters_ExpressionValidator" with error: Expression is empty.' type='QLabel' unnamed='1' visible='1'}
+:Parameter.property_panel_ok_QToolButton {container=':SALOME*.Parameter_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
+:Parameter_ExpressionEditor {container=':SALOME*.Parameter_XGUI_PropertyPanel' type='ExpressionEditor' unnamed='1' visible='1'}
+:Parameter_QLineEdit {container=':SALOME*.Parameter_XGUI_PropertyPanel' type='QLineEdit' unnamed='1' visible='1'}
+:Parameters (1).b = 3_QModelIndex {column='0' container=':Parameters (1)_QModelIndex' text='b = 3' type='QModelIndex'}
+:Parameters (1)_QModelIndex {column='0' container=':Object browser_XGUI_DataTree' text='Parameters (1)' type='QModelIndex'}
+:SALOME*.NewGeom_QToolButton {text='NewGeom' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
+:SALOME*.Object browser_QDockWidget {type='QDockWidget' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Object browser'}
+:SALOME*.Parameter_QToolButton {text='Parameter' type='QToolButton' unnamed='1' visible='1' window=':SALOME*_STD_TabDesktop'}
+:SALOME*.Parameter_XGUI_PropertyPanel {name='property_panel_dock' type='XGUI_PropertyPanel' visible='1' window=':SALOME*_STD_TabDesktop' windowTitle='Parameter'}
+:SALOME*_STD_TabDesktop {type='STD_TabDesktop' unnamed='1' visible='1' windowTitle?='SALOME*'}
+:_QExpandingLineEdit {columnIndex='0' container=':Object browser_XGUI_DataTree' rowIndex='0' type='QExpandingLineEdit' unnamed='1' visible='1'}
+:_QMenu {type='QMenu' unnamed='1' visible='1'}
AUT=salome_run.sh
-CWD=<CWD_of_Server>
+CWD=<AUT_path>
ENVVARS=envvars
HOOK_SUB_PROCESSES=true
IMPLICITAUTSTART=0
--- /dev/null
+def main():
+ startApplication("salome_run.sh")
+
+ clickButton(waitForObject(":SALOME*.NewGeom_QToolButton"))
+ clickButton(waitForObject(":Activate module.New_QPushButton"))
+
+ clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
+ type(waitForObject(":Parameter_QLineEdit"), "a")
+ type(waitForObject(":Parameter_ExpressionEditor"), "3")
+ clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
+
+ openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).a = 3", 10, 10, 0)
+ activateItem(waitForObjectItem(":_QMenu", "Rename"))
+ type(waitForObject(":_QExpandingLineEdit"), "b")
+ type(waitForObject(":_QExpandingLineEdit"), "<Return>")
+
+ waitFor("object.exists(':Parameters (1).b = 3_QModelIndex')", 20000)
+ test.compare(findObject(":Parameters (1).b = 3_QModelIndex").text, "b = 3")
+
+ openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).b = 3", 111, 5, 0)
+ activateItem(waitForObjectItem(":_QMenu", "Edit..."))
+ waitFor("object.exists(':Parameter_QLineEdit')", 20000)
+ test.compare(str(findObject(":Parameter_QLineEdit").text), "b")
+ waitFor("object.exists(':Parameter_ExpressionEditor')", 20000)
+ test.compare(str(findObject(":Parameter_ExpressionEditor").plainText), "3")
+
+ sendEvent("QCloseEvent", waitForObject(":SALOME*_STD_TabDesktop"))
+ clickButton(waitForObject(":Exit.Shutdown servers_QCheckBox"))
+ clickButton(waitForObject(":Exit.Ok_QPushButton"))
+ clickButton(waitForObject(":Close active study.Close w/o saving_QPushButton"))
+
+++ /dev/null
-def main():
- startApplication("salome_run.sh")
-
- clickButton(waitForObject(":SALOME 7.6.0.NewGeom_QToolButton"))
- clickButton(waitForObject(":Activate module.New_QPushButton"))
- clickButton(waitForObject(":SALOME 7.6.0 - [Study1].Sketch_QToolButton"))
- mouseClick(waitForObject(":SALOME 7.6.0 - [Study1].3D View Operations_OCCViewer_ViewPort3d"), 437, 318, 0, Qt.LeftButton)
- clickButton(waitForObject(":SALOME 7.6.0 - [Study1].Circle_QToolButton"))
- mouseClick(waitForObject(":SALOME 7.6.0 - [Study1].3D View Operations_OCCViewer_ViewPort3d"), 384, 278, 0, Qt.LeftButton)
- sendEvent("QMouseEvent", waitForObject(":SALOME 7.6.0 - [Study1].3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonPress, 556, 381, Qt.LeftButton, 1, 0)
- sendEvent("QMouseEvent", waitForObject(":SALOME 7.6.0 - [Study1].3D View Operations_OCCViewer_ViewPort3d"), QEvent.MouseButtonRelease, 556, 381, Qt.LeftButton, 0, 0)
- clickButton(waitForObject(":SALOME 7.6.0 - [Study1].Circle_QToolButton"))
- clickButton(waitForObject(":SALOME 7.6.0 - [Study1]_QToolButton"))
-
- sendEvent("QCloseEvent", waitForObject(":SALOME 7.6.0 - [Study1]_STD_TabDesktop"))
- clickButton(waitForObject(":Exit.Shutdown servers_QCheckBox"))
- sendEvent("QMoveEvent", waitForObject(":Exit_SalomeApp_ExitDlg"), 502, 326, 1265, 44)
- clickButton(waitForObject(":Exit.Ok_QPushButton"))
- clickButton(waitForObject(":Close active study.Close w/o saving_QPushButton"))