Public Member Functions | |
def | createWidgets (self) |
def | errorDialog (self, title, message) |
def | getSelectedTestName (self) |
def | initGUI (self, root, initialTestName) |
def | notifyRunning (self) |
def | notifyStopped (self) |
def | notifyTestErrored (self, test, err) |
def | notifyTestFailed (self, test, err) |
def | notifyTestFinished (self, test) |
def | notifyTestStarted (self, test) |
def | showAboutDialog (self) |
def | showHelpDialog (self) |
def | showSelectedError (self) |
Public Member Functions inherited from Mod.Test.unittestgui.BaseGUITestRunner | |
def | errorDialog (self, title, message) |
def | getSelectedTestName (self) |
def | notifyRunning (self) |
def | notifyStopped (self) |
def | notifyTestErrored (self, test, err) |
def | notifyTestFailed (self, test, err) |
def | notifyTestFinished (self, test) |
def | notifyTestStarted (self, test) |
def | runClicked (self) |
def | stopClicked (self) |
Public Attributes | |
errorCountVar | |
errorInfo | |
errorListbox | |
failCountVar | |
progressBar | |
remainingCountVar | |
root | |
runCountVar | |
statusVar | |
stopGoButton | |
suiteNameVar | |
top | |
Public Attributes inherited from Mod.Test.unittestgui.BaseGUITestRunner | |
currentResult | |
running | |
totalTests | |
An implementation of BaseGUITestRunner using Tkinter.
def Mod.Test.unittestgui.TkTestRunner.createWidgets | ( | self | ) |
Creates and packs the various widgets. Why is it that GUI code always ends up looking a mess, despite all the best intentions to keep it tidy? Answers on a postcard, please.
References femsolver.solver_taskpanel.ControlWidget.runClicked, qtunittest.BaseGUITestRunner.runClicked(), Mod.Test.unittestgui.BaseGUITestRunner.runClicked(), Mod.Test.unittestgui.TkTestRunner.statusVar, Mod.Test.unittestgui.TkTestRunner.suiteNameVar, Gui::UnsignedValidator.top, nlohmann::json_pointer< BasicJsonType >.top(), ClipperLib::IntRect.top, PathScripts.PathDressupHoldingTags.Tag.top(), and Mod.Test.unittestgui.TkTestRunner.top.
def Mod.Test.unittestgui.TkTestRunner.errorDialog | ( | self, | |
title, | |||
message | |||
) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References e57::ImageFileImpl.root(), e57::ImageFile.root(), Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, PartGui::ResultModel.root, nlohmann::detail::json_sax_dom_parser< BasicJsonType >.root, nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >.root, PathScripts.PathFeatureExtensionsGui._Extension.root, QDomNodeModel.root(), qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
def Mod.Test.unittestgui.TkTestRunner.getSelectedTestName | ( | self | ) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References Mod.Test.unittestgui.TkTestRunner.suiteNameVar.
def Mod.Test.unittestgui.TkTestRunner.initGUI | ( | self, | |
root, | |||
initialTestName | |||
) |
Set up the GUI inside the given root window. The test name entry field will be pre-filled with the given initialTestName.
def Mod.Test.unittestgui.TkTestRunner.notifyRunning | ( | self | ) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References qtunittest.QtTestRunner.errorCountVar, Mod.Test.unittestgui.TkTestRunner.errorCountVar, qtunittest.QtTestRunner.failCountVar, Mod.Test.unittestgui.TkTestRunner.failCountVar, qtunittest.QtTestRunner.remainingCountVar, Mod.Test.unittestgui.TkTestRunner.remainingCountVar, qtunittest.QtTestRunner.runCountVar, Mod.Test.unittestgui.TkTestRunner.runCountVar, qtunittest.BaseGUITestRunner.totalTests, and Mod.Test.unittestgui.BaseGUITestRunner.totalTests.
def Mod.Test.unittestgui.TkTestRunner.notifyStopped | ( | self | ) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References Mod.Test.unittestgui.TkTestRunner.statusVar, and Mod.Test.unittestgui.TkTestRunner.stopGoButton.
def Mod.Test.unittestgui.TkTestRunner.notifyTestErrored | ( | self, | |
test, | |||
err | |||
) |
def Mod.Test.unittestgui.TkTestRunner.notifyTestFailed | ( | self, | |
test, | |||
err | |||
) |
def Mod.Test.unittestgui.TkTestRunner.notifyTestFinished | ( | self, | |
test | |||
) |
Override to indicate that a test has finished (it may already have failed or errored)
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References qtunittest.QtTestRunner.errorInfo, Mod.Test.unittestgui.TkTestRunner.errorInfo, Ui_DownloadItem.progressBar, TestGui::Ui_UnitTest.progressBar, package_details.Ui_PackageDetails.progressBar, Mod.Test.unittestgui.TkTestRunner.progressBar, qtunittest.QtTestRunner.remainingCountVar, Mod.Test.unittestgui.TkTestRunner.remainingCountVar, qtunittest.QtTestRunner.runCountVar, Mod.Test.unittestgui.TkTestRunner.runCountVar, qtunittest.BaseGUITestRunner.totalTests, and Mod.Test.unittestgui.BaseGUITestRunner.totalTests.
def Mod.Test.unittestgui.TkTestRunner.notifyTestStarted | ( | self, | |
test | |||
) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References Mod.Test.unittestgui.TkTestRunner.statusVar, Gui::UnsignedValidator.top, nlohmann::json_pointer< BasicJsonType >.top(), ClipperLib::IntRect.top, PathScripts.PathDressupHoldingTags.Tag.top(), and Mod.Test.unittestgui.TkTestRunner.top.
def Mod.Test.unittestgui.TkTestRunner.showAboutDialog | ( | self | ) |
References e57::ImageFileImpl.root(), e57::ImageFile.root(), Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, PartGui::ResultModel.root, nlohmann::detail::json_sax_dom_parser< BasicJsonType >.root, nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >.root, PathScripts.PathFeatureExtensionsGui._Extension.root, QDomNodeModel.root(), qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
def Mod.Test.unittestgui.TkTestRunner.showHelpDialog | ( | self | ) |
References e57::ImageFileImpl.root(), e57::ImageFile.root(), Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, PartGui::ResultModel.root, nlohmann::detail::json_sax_dom_parser< BasicJsonType >.root, nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >.root, PathScripts.PathFeatureExtensionsGui._Extension.root, QDomNodeModel.root(), qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
def Mod.Test.unittestgui.TkTestRunner.showSelectedError | ( | self | ) |
References qtunittest.QtTestRunner.errorInfo, Mod.Test.unittestgui.TkTestRunner.errorInfo, Mod.Test.unittestgui.TkTestRunner.errorListbox, e57::ImageFileImpl.root(), e57::ImageFile.root(), Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, PartGui::ResultModel.root, nlohmann::detail::json_sax_dom_parser< BasicJsonType >.root, nlohmann::detail::json_sax_dom_callback_parser< BasicJsonType >.root, PathScripts.PathFeatureExtensionsGui._Extension.root, QDomNodeModel.root(), qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
Mod.Test.unittestgui.TkTestRunner.errorCountVar |
Mod.Test.unittestgui.TkTestRunner.errorInfo |
Referenced by qtunittest.QtTestRunner.notifyTestErrored(), Mod.Test.unittestgui.TkTestRunner.notifyTestErrored(), qtunittest.QtTestRunner.notifyTestFailed(), Mod.Test.unittestgui.TkTestRunner.notifyTestFailed(), qtunittest.QtTestRunner.notifyTestFinished(), Mod.Test.unittestgui.TkTestRunner.notifyTestFinished(), and Mod.Test.unittestgui.TkTestRunner.showSelectedError().
Mod.Test.unittestgui.TkTestRunner.errorListbox |
Mod.Test.unittestgui.TkTestRunner.failCountVar |
Mod.Test.unittestgui.TkTestRunner.progressBar |
Referenced by Mod.Test.unittestgui.TkTestRunner.notifyTestFinished().
Mod.Test.unittestgui.TkTestRunner.remainingCountVar |
Mod.Test.unittestgui.TkTestRunner.root |
Mod.Test.unittestgui.TkTestRunner.runCountVar |
Mod.Test.unittestgui.TkTestRunner.statusVar |
Mod.Test.unittestgui.TkTestRunner.stopGoButton |
Referenced by Mod.Test.unittestgui.TkTestRunner.notifyStopped().
Mod.Test.unittestgui.TkTestRunner.suiteNameVar |
Mod.Test.unittestgui.TkTestRunner.top |