| |
- BaseGUITestRunner
-
- TkTestRunner
- Tkinter.Frame(Tkinter.Widget)
-
- ProgressBar
- RollbackImporter
- unittest.TestResult
-
- GUITestResult
class BaseGUITestRunner |
|
Subclass this class to create a GUI TestRunner that uses a specific
windowing toolkit. The class takes care of running tests in the correct
manner, and making callbacks to the derived class to obtain information
or signal that events have occurred.
|
| |
- __init__(self, *args, **kwargs)
- no doc string
- errorDialog(self, title, message)
- Override to display an error arising from GUI usage
- getSelectedTestName(self)
- Override to return the name of the test selected to be run
- notifyRunning(self)
- Override to set GUI in 'running' mode, enabling 'stop' button etc.
- notifyStopped(self)
- Override to set GUI in 'stopped' mode, enabling 'run' button etc.
- notifyTestErrored(self, test, err)
- Override to indicate that a test has just errored
- notifyTestFailed(self, test, err)
- Override to indicate that a test has just failed
- notifyTestFinished(self, test)
- Override to indicate that a test has finished (it may already have
- failed or errored)
- notifyTestStarted(self, test)
- Override to indicate that a test is about to run
- runClicked(self)
- To be called in response to user choosing to run a test
- stopClicked(self)
- To be called in response to user stopping the running of a test
|
class TkTestRunner(BaseGUITestRunner) |
|
An implementation of BaseGUITestRunner using Tkinter.
|
| |
- 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.
- errorDialog(self, title, message)
- no doc string
- getSelectedTestName(self)
- no doc string
- 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(self)
- no doc string
- notifyStopped(self)
- no doc string
- notifyTestErrored(self, test, err)
- no doc string
- notifyTestFailed(self, test, err)
- no doc string
- notifyTestFinished(self, test)
- no doc string
- notifyTestStarted(self, test)
- no doc string
- showAboutDialog(self)
- no doc string
- showHelpDialog(self)
- no doc string
- showSelectedError(self)
- no doc string
| |