Skip to content

Commit 91a2926

Browse files
authored
add stat labels (via #251)
1 parent 1911542 commit 91a2926

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

allure-robotframework/src/listener.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from allure_commons.logger import AllureFileLogger
99
from allure_commons.types import AttachmentType, LabelType, LinkType
1010
from allure_commons import plugin_manager
11+
from allure_commons.utils import platform_label
1112
from robot.libraries.BuiltIn import BuiltIn
1213
from allure_robotframework.constants import RobotKeywordType, RobotLogLevel
1314
from allure_robotframework import utils
@@ -98,6 +99,8 @@ def stop_current_test(self, name, attributes):
9899
test.labels.extend(utils.get_allure_tags(attributes.get('tags')))
99100
test.labels.append(utils.get_allure_thread(self.pool_id))
100101
test.labels.append(Label(LabelType.HOST, value=host_tag()))
102+
test.labels.append(Label(name=LabelType.FRAMEWORK, value='robotframework'))
103+
test.labels.append(Label(name=LabelType.LANGUAGE, value=platform_label()))
101104
test.statusDetails = StatusDetails(message=attributes.get('message'))
102105
test.description = attributes.get('doc')
103106
last_link = list(self.links.values())[-1] if self.links else None

0 commit comments

Comments
 (0)