Mod.Test.unittestgui.TkTestRunner Class Reference

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
 

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

◆ errorDialog()

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.

◆ getSelectedTestName()

def Mod.Test.unittestgui.TkTestRunner.getSelectedTestName (   self)

◆ 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()

◆ notifyStopped()

def Mod.Test.unittestgui.TkTestRunner.notifyStopped (   self)

◆ notifyTestErrored()

◆ notifyTestFailed()

◆ notifyTestFinished()

◆ notifyTestStarted()

def Mod.Test.unittestgui.TkTestRunner.notifyTestStarted (   self,
  test 
)

◆ showAboutDialog()

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.

◆ showHelpDialog()

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.

◆ showSelectedError()

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.

Member Data Documentation

◆ errorCountVar

◆ errorInfo

◆ errorListbox

◆ failCountVar

◆ progressBar

Mod.Test.unittestgui.TkTestRunner.progressBar

◆ remainingCountVar

◆ root

◆ runCountVar

◆ statusVar

◆ stopGoButton

Mod.Test.unittestgui.TkTestRunner.stopGoButton

◆ suiteNameVar

Mod.Test.unittestgui.TkTestRunner.suiteNameVar

◆ top


The documentation for this class was generated from the following file: