Robot Framework Integrated Development Environment (RIDE)
robotide.lib.robot.result.model.TestCase Class Reference

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

Inheritance diagram for robotide.lib.robot.result.model.TestCase:
robotide.lib.robot.model.testcase.TestCase robotide.lib.robot.model.modelobject.ModelObject object

Public Member Functions

def __init__ (self, name='', doc='', tags=None, timeout=None, status='FAIL', message='', starttime=None, endtime=None)
 
- Public Member Functions inherited from robotide.lib.robot.model.testcase.TestCase
def __init__ (self, name='', doc='', tags=None, timeout=None)
 
def keywords (self, keywords)
 Keywords as a :class:~.Keywords 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 robotide.lib.robot.model.modelobject.ModelObject
def __repr__ (self)
 
def __setstate__ (self, state)
 Customize attribute updating when using the copy module. More...
 
def __unicode__ (self)
 
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 robotide.lib.robot.model.testcase.TestCase
 doc
 
 keywords
 
 name
 
 parent
 
 tags
 
 timeout
 

Static Public Attributes

 keyword_class = Keyword
 
- Static Public Attributes inherited from robotide.lib.robot.model.testcase.TestCase
 keyword_class = Keyword
 

Properties

 critical = property
 True/False depending on is the test considered critical. More...
 
 elapsedtime = property
 Total execution time in milliseconds. More...
 
 passed = property
 True/False depending on the :attr:status. More...
 
- Properties inherited from robotide.lib.robot.model.testcase.TestCase
 id = property
 Test case id in format like s1-t3. More...
 
 longname = property
 Test name prefixed with the long name of the parent suite. More...
 

Private Member Functions

def critical (self)
 
def elapsedtime (self)
 
def passed (self)
 
def passed (self, passed)
 

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 127 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 131 of file model.py.

Member Function Documentation

◆ critical()

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

Definition at line 171 of file model.py.

◆ elapsedtime()

def robotide.lib.robot.result.model.TestCase.elapsedtime (   self)
private

Definition at line 148 of file model.py.

◆ passed() [1/2]

def robotide.lib.robot.result.model.TestCase.passed (   self)
private

Definition at line 155 of file model.py.

◆ passed() [2/2]

def robotide.lib.robot.result.model.TestCase.passed (   self,
  passed 
)
private

Definition at line 160 of file model.py.

Member Data Documentation

◆ __slots__

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

Definition at line 128 of file model.py.

◆ endtime

robotide.lib.robot.result.model.TestCase.endtime

Definition at line 142 of file model.py.

◆ keyword_class

robotide.lib.robot.result.model.TestCase.keyword_class = Keyword
static

Definition at line 129 of file model.py.

◆ message

robotide.lib.robot.result.model.TestCase.message

Definition at line 138 of file model.py.

◆ starttime

robotide.lib.robot.result.model.TestCase.starttime

Definition at line 140 of file model.py.

◆ status

robotide.lib.robot.result.model.TestCase.status

Definition at line 135 of file model.py.

Property Documentation

◆ critical

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

True/False depending on is the test considered critical.

    Criticality is determined based on test's :attr:`tags` and
    :attr:`~TestSuite.criticality` of the :attr:`parent` suite.

Definition at line 169 of file model.py.

◆ elapsedtime

robotide.lib.robot.result.model.TestCase.elapsedtime = property
static

Total execution time in milliseconds.

Definition at line 146 of file model.py.

◆ passed

robotide.lib.robot.result.model.TestCase.passed = property
static

True/False depending on the :attr:status.

Definition at line 153 of file model.py.


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