Robot Framework
robot.result.model.TryBranch Class Reference
Inheritance diagram for robot.result.model.TryBranch:
robot.model.control.TryBranch robot.result.model.StatusMixin robot.result.modeldeprecation.DeprecatedAttributesMixin robot.model.body.BodyItem robot.model.modelobject.ModelObject metaclass

Public Member Functions

def __init__ (self, type=BodyItem.TRY, patterns=(), pattern_type=None, variable=None, status='FAIL', starttime=None, endtime=None, doc='', parent=None)
 
- Public Member Functions inherited from robot.model.control.TryBranch
def __init__ (self, type=BodyItem.TRY, patterns=(), pattern_type=None, variable=None, parent=None)
 
def __repr__ (self)
 
def __str__ (self)
 
def body (self, body)
 
def visit (self, visitor)
 
- Public Member Functions inherited from robot.model.modelobject.ModelObject
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

 doc
 
 endtime
 
 starttime
 
 status
 
- Public Attributes inherited from robot.model.control.TryBranch
 body
 
 parent
 
 pattern_type
 
 patterns
 
 type
 
 variable
 
- Public Attributes inherited from robot.result.model.StatusMixin
 status
 

Static Public Attributes

 body_class = Body
 
- Static Public Attributes inherited from robot.model.control.TryBranch
 body_class = Body
 
tuple repr_args = ('type', 'patterns', 'pattern_type', 'variable')
 
- Static Public Attributes inherited from robot.model.body.BodyItem
string BREAK = 'BREAK'
 
string CONTINUE = 'CONTINUE'
 
string ELSE = 'ELSE'
 
string ELSE_IF = 'ELSE IF'
 
string EXCEPT = 'EXCEPT'
 
string FINALLY = 'FINALLY'
 
string FOR = 'FOR'
 
string IF = 'IF'
 
string IF_ELSE_ROOT = 'IF/ELSE ROOT'
 
string ITERATION = 'ITERATION'
 
string KEYWORD = 'KEYWORD'
 
string MESSAGE = 'MESSAGE'
 
string RETURN = 'RETURN'
 
string SETUP = 'SETUP'
 
string TEARDOWN = 'TEARDOWN'
 
string TRY = 'TRY'
 
string TRY_EXCEPT_ROOT = 'TRY/EXCEPT ROOT'
 
 type = None
 
string WHILE = 'WHILE'
 
- 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

 name = property
 
- Properties inherited from robot.model.control.TryBranch
 id = property
 Branch id omits TRY/EXCEPT root from the parent id part. More...
 
- Properties inherited from robot.model.body.BodyItem
 has_setup = property
 
 has_teardown = property
 
 id = property
 Item id in format like s1-t3-k1. 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...
 
- Properties inherited from robot.result.modeldeprecation.DeprecatedAttributesMixin
 args = property
 
 assign = property
 
 kwname = property
 
 libname = property
 
 message = property
 
 name = property
 
 tags = property
 
 timeout = property
 

Private Member Functions

def name (self)
 

Static Private Attributes

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

Detailed Description

Definition at line 304 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.result.model.TryBranch.__init__ (   self,
  type = BodyItem.TRY,
  patterns = (),
  pattern_type = None,
  variable = None,
  status = 'FAIL',
  starttime = None,
  endtime = None,
  doc = '',
  parent = None 
)

Definition at line 308 of file model.py.

Member Function Documentation

◆ name()

def robot.result.model.TryBranch.name (   self)
private

Reimplemented from robot.result.modeldeprecation.DeprecatedAttributesMixin.

Definition at line 320 of file model.py.

Member Data Documentation

◆ __slots__

list robot.result.model.TryBranch.__slots__ = ['status', 'starttime', 'endtime', 'doc']
staticprivate

Definition at line 306 of file model.py.

◆ body_class

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

Definition at line 305 of file model.py.

◆ doc

robot.result.model.TryBranch.doc

Definition at line 314 of file model.py.

◆ endtime

robot.result.model.TryBranch.endtime

Definition at line 313 of file model.py.

◆ starttime

robot.result.model.TryBranch.starttime

Definition at line 312 of file model.py.

◆ status

robot.result.model.TryBranch.status

Definition at line 311 of file model.py.

Property Documentation

◆ name

robot.result.model.TryBranch.name = property
static

Definition at line 318 of file model.py.


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