Represents results of a single test case. More...
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'] |
Represents results of a single test case.
See the base class for documentation of attributes not documented here.
| def robot.result.model.TestCase.__init__ | ( | self, | |
name = '', |
|||
doc = '', |
|||
tags = None, |
|||
timeout = None, |
|||
lineno = None, |
|||
status = 'FAIL', |
|||
message = '', |
|||
starttime = None, |
|||
endtime = None, |
|||
parent = None |
|||
| ) |
|
private |
Reimplemented from robot.result.model.StatusMixin.