source: sasview/src/sas/qtgui/UnitTesting/SquishTestSuites/suite_sasview_qt/tst_Theory_ContextMenus2/test.py @ d6b234b

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalc
Last change on this file since d6b234b was d6b234b, checked in by Piotr Rozyczko <rozyczko@…>, 6 years ago

Cleanup after merge (removed sasview/sasview)

  • Property mode set to 100755
File size: 2.1 KB
Line 
1# -*- coding: utf-8 -*-
2
3def main():
4    startApplication("sasview")
5    clickTab(waitForObject(":Data Explorer.DataLoadWidget_DataExplorerWindow"), "Theory")
6    mouseClick(waitForObject(":groupBox_6.cbCategory_QComboBox"), 58, 6, 0, Qt.LeftButton)
7    mouseClick(waitForObjectItem(":groupBox_6.cbCategory_QComboBox", "Cylinder"), 45, 2, 0, Qt.LeftButton)
8    clickButton(waitForObject(":FittingWidgetUI.cmdPlot_QPushButton_2"))
9    clickButton(waitForObject(":groupBox_7.chk2DView_QCheckBox"))
10    clickButton(waitForObject(":FittingWidgetUI.cmdPlot_QPushButton_2"))
11    #test.compare(waitForObjectExists(":qt_workspacechild_FigureCanvasQTAgg_2").visible, True)
12    waitForObjectItem(":groupBox_2.freezeView_QTreeView", "M1 [barbell2d]")
13    clickItem(":groupBox_2.freezeView_QTreeView", "M1 [barbell2d]", 56, 5, 0, Qt.LeftButton)
14    openItemContextMenu(waitForObject(":groupBox_2.freezeView_QTreeView"), "M1 [barbell2d]", 56, 5, 0)
15    activateItem(waitForObjectItem(":MainWindow_QMenu", "Quick 3DPlot (slow)"))
16    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 596, 10, -120, 0, 2)
17    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 599, 13, -120, 0, 2)
18    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 601, 16, -120, 0, 2)
19    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 601, 16, -120, 0, 2)
20    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 601, 16, -120, 0, 2)
21    sendEvent("QWheelEvent", waitForObject(":LogDockWidget.qt_dockwidget_floatbutton_QTextBrowser"), 601, 16, -120, 0, 2)
22    openItemContextMenu(waitForObject(":groupBox_2.freezeView_QTreeView"), "M1 [barbell2d]", 85, 6, 0)
23    activateItem(waitForObjectItem(":MainWindow_QMenu", "Edit Mask"))
24    test.compare(waitForObjectExists(":MaskEditorUI_MaskEditor").visible, True)
25    test.compare(str(waitForObjectExists(":MaskEditorUI_MaskEditor").windowTitle), "Mask Editor for M1 [barbell2d]")
26    test.vp("VP1")
Note: See TracBrowser for help on using the repository browser.