Package rosunit :: Module junitxml :: Class TestCaseResult
[frames] | no frames]

Class TestCaseResult

source code

object --+
         |
        TestCaseResult

'testcase' result container

Instance Methods
 
__init__(self, name)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_failure(self, failure)
@param failure TestFailure
source code
 
add_error(self, error)
@param failure TestError
source code
str
xml(self)
@return XML tag representing the object, with non-XML text filtered out
source code
xml.etree.ElementTree.Element
xml_element(self)
@return XML tag representing the object, with non-XML text filtered out
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
bool passed
str description

Inherited from object: __class__

Method Details

__init__(self, name)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • name (str) - name of testcase
Overrides: object.__init__

Property Details

passed

Get Method:
_passed(self) - Returns: True if test passed
Type:
bool

description

Get Method:
_description(self) - Returns: description of testcase result
Type:
str