Represents results of a single keyword. More...
Public Member Functions | |
| def | __init__ (self, kwname='', libname='', doc='', args=(), assign=(), tags=(), timeout=None, type=BodyItem.KEYWORD, status='FAIL', starttime=None, endtime=None, parent=None, sourcename=None) |
| def | body (self, body) |
Child keywords and messages as a :class:~.Body object. More... | |
Public Member Functions inherited from robot.model.keyword.Keyword | |
| def | __bool__ (self) |
| def | __init__ (self, name='', doc='', args=(), assign=(), tags=(), timeout=None, type=BodyItem.KEYWORD, parent=None) |
| def | __str__ (self) |
| def | tags (self, tags) |
Keyword 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 | |
| body | |
| endtime | |
| kwname | |
| libname | |
| message | |
| sourcename | |
| starttime | |
| status | |
Public Attributes inherited from robot.model.keyword.Keyword | |
| args | |
| assign | |
| doc | |
| parent | |
| tags | |
| timeout | |
| type | |
Public Attributes inherited from robot.result.model.StatusMixin | |
| status | |
Static Public Attributes | |
| body_class = Body | |
Static Public Attributes inherited from robot.model.keyword.Keyword | |
| tuple | repr_args = ('name', 'args', 'assign') |
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 | |
| children = property | |
| List of child keywords and messages in creation order. More... | |
| keywords = property | |
| Deprecated since Robot Framework 4.0. More... | |
| messages = property | |
| Keyword's messages. More... | |
| name = property | |
Keyword name in format libname.kwname. More... | |
Properties inherited from robot.model.keyword.Keyword | |
| has_teardown = property | |
| Check does a keyword have a teardown without creating a teardown object. More... | |
| name = property | |
| teardown = property | |
Keyword teardown as a :class:Keyword object. 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... | |
Private Member Functions | |
| def | children (self) |
| def | keywords (self) |
| def | keywords (self, keywords) |
| def | messages (self) |
| def | name (self) |
| def | name (self, name) |
Static Private Attributes | |
| list | __slots__ |
Represents results of a single keyword.
See the base class for documentation of attributes not documented here.
| def robot.result.model.Keyword.__init__ | ( | self, | |
kwname = '', |
|||
libname = '', |
|||
doc = '', |
|||
args = (), |
|||
assign = (), |
|||
tags = (), |
|||
timeout = None, |
|||
type = BodyItem.KEYWORD, |
|||
status = 'FAIL', |
|||
starttime = None, |
|||
endtime = None, |
|||
parent = None, |
|||
sourcename = None |
|||
| ) |
| def robot.result.model.Keyword.body | ( | self, | |
| body | |||
| ) |
|
private |
|
private |
Reimplemented from robot.model.keyword.Keyword.
|
private |
Reimplemented from robot.model.keyword.Keyword.
|
staticprivate |
|
static |
|
static |
|
static |
|
static |
Keyword name in format libname.kwname.
Just ``kwname`` if :attr:`libname` is empty. In practice that is the
case only with user keywords in the same file as the executed test case
or test suite.
Cannot be set directly. Set :attr:`libname` and :attr:`kwname`
separately instead.