source: sasview/src/sas/qtgui/UnitTesting/SquishTestSuites/suite_sasview_qt/tst_SwitchPerspectives/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.4 KB
Line 
1# -*- coding: utf-8 -*-
2
3def main():
4    startApplication("sasview")
5    test.compare(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").visible, True)
6    mouseClick(waitForObject(":groupBox.cbFitting_QComboBox"), 70, 10, 0, Qt.LeftButton)
7    mouseClick(waitForObjectItem(":groupBox.cbFitting_QComboBox", "Invariant"), 52, 4, 0, Qt.LeftButton)
8    test.compare(str(waitForObjectExists(":groupBox.cbFitting_QComboBox").currentText), "Invariant")
9    test.compare(waitForObjectExists(":qt_workspacechild.Invariant Perspective_QWorkspaceTitleBar").visible, True)
10    test.compare(str(waitForObjectExists(":qt_workspacechild.Invariant Perspective_QWorkspaceTitleBar").windowTitle), "Invariant Perspective")
11    mouseClick(waitForObject(":groupBox.cbFitting_QComboBox"), 76, 13, 0, Qt.LeftButton)
12    mouseClick(waitForObjectItem(":groupBox.cbFitting_QComboBox", "Fitting"), 61, 6, 0, Qt.LeftButton)
13    test.compare(str(waitForObjectExists(":groupBox.cbFitting_QComboBox").currentText), "Fitting")
14    test.compare(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").visible, True)
15    test.compare(str(waitForObjectExists(":qt_workspacechild.Fit panel - Active Fitting Optimizer: Levenberg-Marquardt_QWorkspaceTitleBar").windowTitle), "Fit panel - Active Fitting Optimizer: Levenberg-Marquardt")
Note: See TracBrowser for help on using the repository browser.