source: sasview/src/sas/qtgui/UnitTesting/SquishTestSuites/suite_sasview_qt/tst_Open SasView/test.py

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

Cleanup after merge (removed sasview/sasview)

  • Property mode set to 100755
File size: 1.6 KB
Line 
1# -*- coding: utf-8 -*-
2
3def main():
4    startApplication("sasview")
5    test.compare(waitForObjectExists(":_QSplashScreen").enabled, True)
6    test.compare(waitForObjectExists(":_QSplashScreen").enabled, True)
7    test.compare(waitForObjectExists(":MainWindow.Data Explorer_QDockWidget").enabled, True)
8    test.compare(waitForObjectExists(":MainWindow.Data Explorer_QDockWidget").visible, True)
9    test.compare(str(waitForObjectExists(":MainWindow.Data Explorer_QDockWidget").windowTitle), "Data Explorer")
10    test.compare(waitForObjectExists(":MainWindow.LogDockWidget_QDockWidget").floating, False)
11    test.compare(waitForObjectExists(":MainWindow.LogDockWidget_QDockWidget").visible, True)
12    test.compare(str(waitForObjectExists(":MainWindow.LogDockWidget_QDockWidget").windowTitle), "Log Explorer")
13    test.compare(waitForObjectExists(":MainWindow.LogDockWidget_QDockWidget").enabled, True)
14    test.compare(waitForObjectExists(":qt_tabwidget_stackedwidget.FittingWidgetUI_FittingWidget_2").enabled, True)
15    test.compare(str(waitForObjectExists(":qt_tabwidget_stackedwidget.FittingWidgetUI_FittingWidget_2").windowTitle), "Fitting")
16    test.compare(str(waitForObjectExists(":FittingWidgetUI.label_QLabel").text), "No data loaded")
17    test.compare(waitForObjectExists(":FittingWidgetUI.tabFitting_QTabWidget").enabled, True)
18    test.compare(str(waitForObjectExists(":FittingWidgetUI.cmdPlot_QPushButton").text), "Show Plot")
19    setWindowState(waitForObject(":MainWindow_MainSasViewWindow"), WindowState.Normal)
20    setWindowState(waitForObject(":MainWindow_MainSasViewWindow"), WindowState.Maximize)
Note: See TracBrowser for help on using the repository browser.