source: sasview/src/sas/qtgui/UnitTesting/SquishTestSuites/suite_sasview_qt/tst_Close SasView/test.py @ e7a0b2f

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 e7a0b2f was d6b234b, checked in by Piotr Rozyczko <rozyczko@…>, 7 years ago

Cleanup after merge (removed sasview/sasview)

  • Property mode set to 100755
File size: 914 bytes
Line 
1# -*- coding: utf-8 -*-
2
3def main():
4    startApplication("sasview")
5    sendEvent("QCloseEvent", waitForObject(":MainWindow_MainSasViewWindow"))
6    test.compare(waitForObjectExists(":Information_QMessageBox").enabled, True)
7    test.compare(str(waitForObjectExists(":Information_QMessageBox").text), "Are you sure you want to exit the application?")
8    test.compare(waitForObjectExists(":Information_QMessageBox").visible, True)
9    test.compare(waitForObjectExists(":Information.Yes_QPushButton").default, True)
10    test.compare(waitForObjectExists(":Information.Yes_QPushButton").enabled, True)
11    test.compare(waitForObjectExists(":Information.No_QPushButton").default, False)
12    test.compare(waitForObjectExists(":Information.No_QPushButton").enabled, True)
13    clickButton(waitForObject(":Information.No_QPushButton"))
14    test.compare(waitForObjectExists(":MainWindow_MainSasViewWindow").visible, True)
Note: See TracBrowser for help on using the repository browser.