44 Arguments = {
'start_suite': StartSuiteArguments,
45 'end_suite': EndSuiteArguments,
46 'start_test': StartTestArguments,
47 'end_test': EndTestArguments,
48 'start_keyword': StartKeywordArguments,
49 'end_keyword': EndKeywordArguments,
50 'log_message': MessageArguments,
51 'message': MessageArguments}.get(name, ListenerArguments)
52 return Arguments(arguments)
58 attributes = {
'timestamp': msg.timestamp,
59 'message': msg.message,
61 'html':
'yes' if msg.html
else 'no'}
72 _attribute_names =
None
78 return item.name, attributes
81 value = getattr(item, name)
95 return item.data, item.result
102 _attribute_names = (
'id',
'longname',
'doc',
'metadata',
'starttime')
105 return {
'tests': [t.name
for t
in suite.tests],
106 'suites': [s.name
for s
in suite.suites],
107 'totaltests': suite.test_count,
108 'source': suite.source
or ''}
115 _attribute_names = (
'id',
'longname',
'doc',
'metadata',
'starttime',
116 'endtime',
'elapsedtime',
'status',
'message')
119 attrs = StartSuiteArguments._get_extra_attributes(self, suite)
120 attrs[
'statistics'] = suite.stat_message
128 _attribute_names = (
'id',
'longname',
'doc',
'tags',
'starttime')
131 return {
'critical':
'yes' if test.critical
else 'no',
132 'template': test.template
or ''}
139 _attribute_names = (
'id',
'longname',
'doc',
'tags',
'starttime',
140 'endtime',
'elapsedtime',
'status',
'message')
147 _attribute_names = (
'kwname',
'libname',
'doc',
'assign',
'tags',
152 _types = {
'kw':
'Keyword',
'setup':
'Setup',
'teardown':
'Teardown',
153 'for':
'For',
'foritem':
'For Item'}
157 return {
'args': args,
'type': self.
_types_types[kw.type]}
164 _attribute_names = (
'kwname',
'libname',
'doc',
'args',
'assign',
'tags',
165 'starttime',
'endtime',
'elapsedtime',
'status')
def _get_extra_attributes(self, suite)
def __init__(self, arguments)
def _get_version2_arguments(self, *arguments)
def _get_version3_arguments(self, *arguments)
def get_arguments(self, version)
def by_method_name(cls, name, arguments)
def _get_version2_arguments(self, msg)
def _get_version3_arguments(self, msg)
def _get_extra_attributes(self, kw)
def _get_extra_attributes(self, suite)
def _get_extra_attributes(self, test)
def _get_version3_arguments(self, item)
def _take_copy_of_mutable_value(self, value)
def _get_attribute_value(self, item, name)
def _get_version2_arguments(self, item)
def _get_extra_attributes(self, item)