Table of Contents

Class: BaseGUITestRunner Twisted-0.19.0/pyunit/unittestgui.py

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.

Methods   
__init__
errorDialog
getSelectedTestName
notifyRunning
notifyStopped
notifyTestErrored
notifyTestFailed
notifyTestFinished
notifyTestStarted
runClicked
stopClicked
  __init__ 
__init__ (
        self,
        *args,
        *kwargs,
        )

  errorDialog 
errorDialog (
        self,
        title,
        message,
        )

Override to display an error arising from GUI usage

  getSelectedTestName 
getSelectedTestName ( self )

Override to return the name of the test selected to be run

  notifyRunning 
notifyRunning ( self )

Override to set GUI in running mode, enabling stop button etc.

  notifyStopped 
notifyStopped ( self )

Override to set GUI in stopped mode, enabling run button etc.

  notifyTestErrored 
notifyTestErrored (
        self,
        test,
        err,
        )

Override to indicate that a test has just errored

  notifyTestFailed 
notifyTestFailed (
        self,
        test,
        err,
        )

Override to indicate that a test has just failed

  notifyTestFinished 
notifyTestFinished ( self,  test )

Override to indicate that a test has finished (it may already have failed or errored)

  notifyTestStarted 
notifyTestStarted ( self,  test )

Override to indicate that a test is about to run

  runClicked 
runClicked ( self )

To be called in response to user choosing to run a test

  stopClicked 
stopClicked ( self )

To be called in response to user stopping the running of a test


Table of Contents

This document was automatically generated on Sun Jul 14 19:52:29 2002 by HappyDoc version 2.0