OpenStructure
Public Member Functions
_XMLTestResult Class Reference

Inherits TestResult.

Public Member Functions

def __init__ (self, classname)
 
def startTest (self, test)
 
def stopTest (self, test)
 
def addError (self, test, err)
 
def addFailure (self, test, err)
 
def print_report (self, stream, time_taken, out, err)
 

Detailed Description

A test result class that stores result as XML.

Used by XMLTestRunner.

Definition at line 91 of file xmlrunner.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  classname 
)

Definition at line 99 of file xmlrunner.py.

Member Function Documentation

◆ addError()

def addError (   self,
  test,
  err 
)

Definition at line 124 of file xmlrunner.py.

◆ addFailure()

def addFailure (   self,
  test,
  err 
)

Definition at line 128 of file xmlrunner.py.

◆ print_report()

def print_report (   self,
  stream,
  time_taken,
  out,
  err 
)
Prints the XML report to the supplied stream.

The time the tests took to perform as well as the captured standard
output and standard error streams must be passed in.a

Definition at line 132 of file xmlrunner.py.

◆ startTest()

def startTest (   self,
  test 
)

Definition at line 107 of file xmlrunner.py.

◆ stopTest()

def stopTest (   self,
  test 
)

Definition at line 113 of file xmlrunner.py.


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