source: sasview/sasview/squish_test_suites/suite_sasview_qt/tst_Close SasView/test.py @ 9c39b317

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

SASVIEW-633: initial test suite for Squish functionality testing

  • 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.