export SQUISH_GRABWINDOW_CLASSES=AppElements_ViewPort,OCCViewer_ViewPort3d
-SQUISH_DIR=/dn23/NEWGEOM/NEWGEOM_JENKINS_BUILD_AREA/tools/squish-5.1.1-qt48x-linux64
+SQUISH_DIR=/dn23/NEWGEOM/NEWGEOM_JENKINS_BUILD_AREA/tools/squish-6.0.0-qt48x-linux64
export PATH=${SQUISH_DIR}/bin:${PATH}
export SQUISH_LICENSEKEY_DIR=/dn23/NEWGEOM/NEWGEOM_JENKINS_BUILD_AREA/tools
:Mirror.Segments:_QListWidget {aboveWidget=':Mirror.Segments:_QLabel' container=':SALOME*.Mirror_XGUI_PropertyPanel' type='QListWidget' unnamed='1' visible='1'}
:Mirror.property_panel_ok_QToolButton {container=':SALOME*.Mirror_XGUI_PropertyPanel' name='property_panel_ok' type='QToolButton' visible='1'}
:OK_QPushButton {container=':Object browser_XGUI_DataTree' text='OK' type='QPushButton' unnamed='1' visible='1'}
+:Object browser.Part set_XGUI_ActiveDocLbl {container=':SALOME*.Object browser_QDockWidget' text='Part set' type='XGUI_ActiveDocLbl' unnamed='1' visible='1'}
:Object browser.qt_dockwidget_closebutton_QDockWidgetTitleButton {container=':SALOME*.Object browser_QDockWidget' name='qt_dockwidget_closebutton' type='QDockWidgetTitleButton' visible='1'}
:Object browser.qt_dockwidget_floatbutton_QDockWidgetTitleButton {container=':SALOME*.Object browser_QDockWidget' name='qt_dockwidget_floatbutton' type='QDockWidgetTitleButton' visible='1'}
:Object browser.qt_dockwidget_floatbutton_XGUI_ObjectsBrowser {aboveWidget=':Object browser.qt_dockwidget_floatbutton_QDockWidgetTitleButton' container=':SALOME*.Object browser_QDockWidget' type='XGUI_ObjectsBrowser' unnamed='1' visible='1'}
clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
type(waitForObject(":Parameter_QLineEdit"), "a")
type(waitForObject(":Parameter_ExpressionEditor"), "3")
+ type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
clickButton(waitForObject(":SALOME*.ConstructionPoint_QToolButton"))
type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "a")
+ type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Return>")
+
waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
test.compare(str(findObject(":Point.x_ModuleBase_ParamSpinBox").toolTip), "X coordinate")
type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Ctrl+A>")
type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "b")
+ type(waitForObject(":Point.x_ModuleBase_ParamSpinBox"), "<Return>")
waitFor("object.exists(':Point_QFrame')", 20000)
-
test.compare(str(findObject(":Point_QFrame").toolTip), "ModelAPI_StateInvalidArgument")
waitFor("object.exists(':Point.x_ModuleBase_ParamSpinBox')", 20000)
activateItem(waitForObjectItem(":Part_QMenu", "Parameter"))
type(waitForObject(":Parameter_QLineEdit"), "aa")
type(waitForObject(":Parameter_ExpressionEditor"), "4")
+ type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
# check the new parameter
activateItem(waitForObjectItem(":Part_QMenu", "Parameter"))
type(waitForObject(":Parameter_QLineEdit"), "bb")
type(waitForObject(":Parameter_ExpressionEditor"), "aa+1")
+ type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
# check the new parameter
waitForObjectItem(":Object browser_XGUI_DataTree", "Part\\_1.Parameters (1).bb = 5")
- openContextMenu(waitForObject(":Object browser_QLineEdit"), 10, 10, 0)
+ openContextMenu(waitForObject(":Object browser.Part set_XGUI_ActiveDocLbl"), 10, 10, 0)
activateItem(waitForObjectItem(":_QMenu", "Activate"))
openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).aa = 4", 10, 10, 0)
clickButton(waitForObject(":SALOME*.Parameter_QToolButton"))
type(waitForObject(":Parameter_QLineEdit"), "a")
type(waitForObject(":Parameter_ExpressionEditor"), "3")
+ type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
clickButton(waitForObject(":Parameter.property_panel_ok_QToolButton"))
openItemContextMenu(waitForObject(":Object browser_XGUI_DataTree"), "Parameters (1).a = 3", 10, 10, 0)
#[step] Enter variable expression '100+b'
type(waitForObject(":Parameter_ExpressionEditor"), "100+b")
+ type(waitForObject(":Parameter_ExpressionEditor"), "<Return>")
#[step] Check that expression tooltip is: Errors:\nexpression - Parameters_ExpressionValidator: name 'b' is not defined
waitFor("object.exists(':Parameter_ExpressionEditor')", 20000)
test.compare(False, findMenuItem(waitForObject(":_QMenu"), "Activate").enabled, "Activate is disabled on active Part")
#[step] Deactivate part by context menu on PartSet
- openContextMenu(waitForObject(":Object browser_QLineEdit"), 10, 10, 0)
+ openContextMenu(waitForObject(":Object browser.Part set_XGUI_ActiveDocLbl"), 10, 10, 0)
activateItem(waitForObjectItem(":_QMenu", "Activate"))
checkPartDeactivatedState("Part deactivation by context menu on PartSet")
#[step] Check that Activate is disabled in PartSet context menu
- openContextMenu(waitForObject(":Object browser_QLineEdit"), 10, 10, 0)
+ openContextMenu(waitForObject(":Object browser.Part set_XGUI_ActiveDocLbl"), 10, 10, 0)
test.compare(False, findMenuItem(waitForObject(":_QMenu"), "Activate").enabled, "Activate is disabled on active PartSet")
#[step] Activate part by context menu on Part