Robot Framework
robot.result.model.TestCase Class Reference

Represents results of a single test case. More...

Inheritance diagram for robot.result.model.TestCase:
robot.model.testcase.TestCase robot.result.model.StatusMixin robot.model.modelobject.ModelObject metaclass

Public Member Functions

def __init__ (self, name='', doc='', tags=None, timeout=None, lineno=None, status='FAIL', message='', starttime=None, endtime=None, parent=None)
 
- Public Member Functions inherited from robot.model.testcase.TestCase
def __init__ (self, name='', doc='', tags=None, timeout=None, lineno=None, parent=None)
 
def __str__ (self)
 
def body (self, body)
 Test body as a :class:~robot.model.body.Body object. More...
 
def tags (self, tags)
 Test tags as a :class:~.model.tags.Tags object. More...
 
def visit (self, visitor)
 :mod:Visitor interface <robot.model.visitor> entry-point. More...
 
- Public Member Functions inherited from robot.model.modelobject.ModelObject
def __repr__ (self)
 
def config (self, **attributes)
 Configure model object with given attributes. More...
 
def copy (self, **attributes)
 Return shallow copy of this object. More...
 
def deepcopy (self, **attributes)
 Return deep copy of this object. More...
 

Public Attributes

 endtime
 
 message
 
 starttime
 
 status
 
- Public Attributes inherited from robot.model.testcase.TestCase
 body
 
 doc
 
 lineno
 
 name
 
 parent
 
 tags
 
 timeout
 
- Public Attributes inherited from robot.result.model.StatusMixin
 status
 

Static Public Attributes

 body_class = Body
 
 fixture_class = Keyword
 
- Static Public Attributes inherited from robot.model.testcase.TestCase
 body_class = Body
 
 fixture_class = Keyword
 
tuple repr_args = ('name',)
 
- Static Public Attributes inherited from robot.model.modelobject.ModelObject
tuple repr_args = ()
 
- Static Public Attributes inherited from robot.result.model.StatusMixin
string FAIL = 'FAIL'
 
string NOT_RUN = 'NOT RUN'
 
string NOT_SET = 'NOT SET'
 
string PASS = 'PASS'
 
string SKIP = 'SKIP'
 

Properties

 critical = property
 
 not_run = property
 
- Properties inherited from robot.model.testcase.TestCase
 has_setup = property
 Check does a suite have a setup without creating a setup object. More...
 
 has_teardown = property
 Check does a test have a teardown without creating a teardown object. More...
 
 id = property
 Test case id in format like s1-t3. More...
 
 keywords = property
 Deprecated since Robot Framework 4.0. More...
 
 longname = property
 Test name prefixed with the long name of the parent suite. More...
 
 setup = property
 Test setup as a :class:~.model.keyword.Keyword object. More...
 
 source = property
 
 teardown = property
 Test teardown as a :class:~.model.keyword.Keyword object. More...
 
- Properties inherited from robot.result.model.StatusMixin
 elapsedtime = property
 Total execution time in milliseconds. More...
 
 failed = property
 True when :attr:status is 'FAIL', False otherwise. More...
 
 not_run = property
 True when :attr:status is 'NOT RUN', False otherwise. More...
 
 passed = property
 True when :attr:status is 'PASS', False otherwise. More...
 
 skipped = property
 True when :attr:status is 'SKIP', False otherwise. More...
 

Private Member Functions

def critical (self)
 
def not_run (self)
 

Static Private Attributes

list __slots__ = ['status', 'message', 'starttime', 'endtime']
 

Detailed Description

Represents results of a single test case.

See the base class for documentation of attributes not documented here.

Definition at line 565 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.result.model.TestCase.__init__ (   self,
  name = '',
  doc = '',
  tags = None,
  timeout = None,
  lineno = None,
  status = 'FAIL',
  message = '',
  starttime = None,
  endtime = None,
  parent = None 
)

Definition at line 570 of file model.py.

Member Function Documentation

◆ critical()

def robot.result.model.TestCase.critical (   self)
private

Definition at line 593 of file model.py.

◆ not_run()

def robot.result.model.TestCase.not_run (   self)
private

Reimplemented from robot.result.model.StatusMixin.

Definition at line 587 of file model.py.

Member Data Documentation

◆ __slots__

list robot.result.model.TestCase.__slots__ = ['status', 'message', 'starttime', 'endtime']
staticprivate

Definition at line 566 of file model.py.

◆ body_class

robot.result.model.TestCase.body_class = Body
static

Definition at line 567 of file model.py.

◆ endtime

robot.result.model.TestCase.endtime

Definition at line 582 of file model.py.

◆ fixture_class

robot.result.model.TestCase.fixture_class = Keyword
static

Definition at line 568 of file model.py.

◆ message

robot.result.model.TestCase.message

Definition at line 578 of file model.py.

◆ starttime

robot.result.model.TestCase.starttime

Definition at line 580 of file model.py.

◆ status

robot.result.model.TestCase.status

Definition at line 575 of file model.py.

Property Documentation

◆ critical

robot.result.model.TestCase.critical = property
static

Definition at line 591 of file model.py.

◆ not_run

robot.result.model.TestCase.not_run = property
static

Definition at line 585 of file model.py.


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