Robot Framework
robot.running.model.TestCase Class Reference

Represents a single executable test case. More...

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

Public Member Functions

def __init__ (self, name='', doc='', tags=None, timeout=None, template=None, lineno=None)
 
- Public Member Functions inherited from robot.model.testcase.TestCase
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

 template
 
- Public Attributes inherited from robot.model.testcase.TestCase
 body
 
 doc
 
 lineno
 
 name
 
 parent
 
 tags
 
 timeout
 

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

Properties

 source = 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...
 

Private Member Functions

def source (self)
 

Static Private Attributes

list __slots__ = ['template']
 

Detailed Description

Represents a single executable test case.

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

Definition at line 269 of file model.py.

Constructor & Destructor Documentation

◆ __init__()

def robot.running.model.TestCase.__init__ (   self,
  name = '',
  doc = '',
  tags = None,
  timeout = None,
  template = None,
  lineno = None 
)

Reimplemented from robot.model.testcase.TestCase.

Definition at line 274 of file model.py.

Member Function Documentation

◆ source()

def robot.running.model.TestCase.source (   self)
private

Reimplemented from robot.model.testcase.TestCase.

Definition at line 284 of file model.py.

Member Data Documentation

◆ __slots__

list robot.running.model.TestCase.__slots__ = ['template']
staticprivate

Definition at line 270 of file model.py.

◆ body_class

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

Definition at line 271 of file model.py.

◆ fixture_class

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

Definition at line 272 of file model.py.

◆ template

robot.running.model.TestCase.template

Definition at line 279 of file model.py.

Property Documentation

◆ source

robot.running.model.TestCase.source = property
static

Definition at line 282 of file model.py.


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