OpenStructure
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Attributes
_XMLTestResult Class Reference

Inherits TestResult.

Public Member Functions

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

Data Fields

 errors
 
 failures
 
 testsRun
 

Protected Attributes

 _test_name
 
 _start_time
 
 _tests
 
 _error
 
 _failure
 

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

__init__ (   self,
  classname 
)

Definition at line 99 of file xmlrunner.py.

Member Function Documentation

◆ addError()

addError (   self,
  test,
  err 
)

Definition at line 124 of file xmlrunner.py.

◆ addFailure()

addFailure (   self,
  test,
  err 
)

Definition at line 128 of file xmlrunner.py.

◆ print_report()

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

startTest (   self,
  test 
)

Definition at line 107 of file xmlrunner.py.

◆ stopTest()

stopTest (   self,
  test 
)

Definition at line 113 of file xmlrunner.py.

Field Documentation

◆ _error

_error
protected

Definition at line 104 of file xmlrunner.py.

◆ _failure

_failure
protected

Definition at line 105 of file xmlrunner.py.

◆ _start_time

_start_time
protected

Definition at line 102 of file xmlrunner.py.

◆ _test_name

_test_name
protected

Definition at line 101 of file xmlrunner.py.

◆ _tests

_tests
protected

Definition at line 103 of file xmlrunner.py.

◆ errors

errors

Definition at line 140 of file xmlrunner.py.

◆ failures

failures

Definition at line 140 of file xmlrunner.py.

◆ testsRun

testsRun

Definition at line 144 of file xmlrunner.py.


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