Robot Framework
robot.reporting.xunitwriter.XUnitFileWriter Class Reference

Provides an xUnit-compatible result file. More...

Inheritance diagram for robot.reporting.xunitwriter.XUnitFileWriter:

Public Member Functions

def __init__ (self, xml_writer)
 
def end_result (self, result)
 
def end_suite (self, suite)
 
def start_suite (self, suite)
 
def visit_errors (self, errors)
 
def visit_keyword (self, kw)
 
def visit_statistics (self, stats)
 
def visit_test (self, test)
 

Private Member Functions

def _starttime_to_isoformat (self, stime)
 
def _time_as_seconds (self, millis)
 

Private Attributes

 _writer
 

Detailed Description

Provides an xUnit-compatible result file.

Attempts to adhere to the de facto schema guessed by Peter Reilly, see:
http://marc.info/?l=ant-dev&m=123551933508682

Definition at line 36 of file xunitwriter.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.reporting.xunitwriter.XUnitFileWriter.__init__ (   self,
  xml_writer 
)

Definition at line 38 of file xunitwriter.py.

Member Function Documentation

◆ _starttime_to_isoformat()

def robot.reporting.xunitwriter.XUnitFileWriter._starttime_to_isoformat (   self,
  stime 
)
private

Definition at line 90 of file xunitwriter.py.

◆ _time_as_seconds()

def robot.reporting.xunitwriter.XUnitFileWriter._time_as_seconds (   self,
  millis 
)
private

Definition at line 75 of file xunitwriter.py.

◆ end_result()

def robot.reporting.xunitwriter.XUnitFileWriter.end_result (   self,
  result 
)

Definition at line 87 of file xunitwriter.py.

◆ end_suite()

def robot.reporting.xunitwriter.XUnitFileWriter.end_suite (   self,
  suite 
)

Definition at line 52 of file xunitwriter.py.

◆ start_suite()

def robot.reporting.xunitwriter.XUnitFileWriter.start_suite (   self,
  suite 
)

Definition at line 41 of file xunitwriter.py.

◆ visit_errors()

def robot.reporting.xunitwriter.XUnitFileWriter.visit_errors (   self,
  errors 
)

Definition at line 84 of file xunitwriter.py.

◆ visit_keyword()

def robot.reporting.xunitwriter.XUnitFileWriter.visit_keyword (   self,
  kw 
)

Definition at line 78 of file xunitwriter.py.

◆ visit_statistics()

def robot.reporting.xunitwriter.XUnitFileWriter.visit_statistics (   self,
  stats 
)

Definition at line 81 of file xunitwriter.py.

◆ visit_test()

def robot.reporting.xunitwriter.XUnitFileWriter.visit_test (   self,
  test 
)

Definition at line 62 of file xunitwriter.py.

Member Data Documentation

◆ _writer

robot.reporting.xunitwriter.XUnitFileWriter._writer
private

Definition at line 39 of file xunitwriter.py.


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