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 | 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 | |
Detailed Description
An implementation of BaseGUITestRunner using Tkinter.
Member Function Documentation
◆ createWidgets()
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 Mod.Test.unittestgui.BaseGUITestRunner.runClicked(), qtunittest.BaseGUITestRunner.runClicked(), femsolver.solver_taskpanel.ControlWidget.runClicked, Mod.Test.unittestgui.TkTestRunner.statusVar, Mod.Test.unittestgui.TkTestRunner.suiteNameVar, Gui::UnsignedValidator.top, ClipperLib::IntRect.top, and Mod.Test.unittestgui.TkTestRunner.top.
◆ errorDialog()
def Mod.Test.unittestgui.TkTestRunner.errorDialog | ( | self, | |
title, | |||
message | |||
) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References PathScripts.PathPocketShapeGui._Extension.root, PartGui::ResultModel.root, Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
◆ getSelectedTestName()
def Mod.Test.unittestgui.TkTestRunner.getSelectedTestName | ( | self | ) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References Mod.Test.unittestgui.TkTestRunner.suiteNameVar.
◆ initGUI()
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.
◆ notifyRunning()
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, Mod.Test.unittestgui.BaseGUITestRunner.totalTests, and qtunittest.BaseGUITestRunner.totalTests.
◆ notifyStopped()
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.
◆ notifyTestErrored()
def Mod.Test.unittestgui.TkTestRunner.notifyTestErrored | ( | self, | |
test, | |||
err | |||
) |
◆ notifyTestFailed()
def Mod.Test.unittestgui.TkTestRunner.notifyTestFailed | ( | self, | |
test, | |||
err | |||
) |
◆ notifyTestFinished()
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, Mod.Test.unittestgui.TkTestRunner.progressBar, qtunittest.QtTestRunner.remainingCountVar, Mod.Test.unittestgui.TkTestRunner.remainingCountVar, qtunittest.QtTestRunner.runCountVar, Mod.Test.unittestgui.TkTestRunner.runCountVar, Mod.Test.unittestgui.BaseGUITestRunner.totalTests, and qtunittest.BaseGUITestRunner.totalTests.
◆ notifyTestStarted()
def Mod.Test.unittestgui.TkTestRunner.notifyTestStarted | ( | self, | |
test | |||
) |
Reimplemented from Mod.Test.unittestgui.BaseGUITestRunner.
References Mod.Test.unittestgui.TkTestRunner.statusVar, Gui::UnsignedValidator.top, ClipperLib::IntRect.top, and Mod.Test.unittestgui.TkTestRunner.top.
◆ showAboutDialog()
def Mod.Test.unittestgui.TkTestRunner.showAboutDialog | ( | self | ) |
References PathScripts.PathPocketShapeGui._Extension.root, PartGui::ResultModel.root, Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
◆ showHelpDialog()
def Mod.Test.unittestgui.TkTestRunner.showHelpDialog | ( | self | ) |
References PathScripts.PathPocketShapeGui._Extension.root, PartGui::ResultModel.root, Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
◆ showSelectedError()
def Mod.Test.unittestgui.TkTestRunner.showSelectedError | ( | self | ) |
References qtunittest.QtTestRunner.errorInfo, Mod.Test.unittestgui.TkTestRunner.errorInfo, Mod.Test.unittestgui.TkTestRunner.errorListbox, PathScripts.PathPocketShapeGui._Extension.root, PartGui::ResultModel.root, Gui::SoRegPoint.root, Gui::SoFCBoundingBox.root, qtunittest.QtTestRunner.root, and Mod.Test.unittestgui.TkTestRunner.root.
Member Data Documentation
◆ errorCountVar
Mod.Test.unittestgui.TkTestRunner.errorCountVar |
◆ errorInfo
Mod.Test.unittestgui.TkTestRunner.errorInfo |
◆ errorListbox
Mod.Test.unittestgui.TkTestRunner.errorListbox |
◆ failCountVar
Mod.Test.unittestgui.TkTestRunner.failCountVar |
◆ progressBar
Mod.Test.unittestgui.TkTestRunner.progressBar |
Referenced by Mod.Test.unittestgui.TkTestRunner.notifyTestFinished().
◆ remainingCountVar
Mod.Test.unittestgui.TkTestRunner.remainingCountVar |
◆ root
Mod.Test.unittestgui.TkTestRunner.root |
◆ runCountVar
Mod.Test.unittestgui.TkTestRunner.runCountVar |
◆ statusVar
Mod.Test.unittestgui.TkTestRunner.statusVar |
◆ stopGoButton
Mod.Test.unittestgui.TkTestRunner.stopGoButton |
Referenced by Mod.Test.unittestgui.TkTestRunner.notifyStopped().
◆ suiteNameVar
Mod.Test.unittestgui.TkTestRunner.suiteNameVar |
◆ top
Mod.Test.unittestgui.TkTestRunner.top |
The documentation for this class was generated from the following file:
- src/Mod/Test/unittestgui.py