1 | # -*- coding: utf-8 -*- |
---|
2 | |
---|
3 | def 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) |
---|