Reporters¶
TL;DR: Use
Reportersto set run-level reporting defaults for saved artifacts, traces, and ReportPortal publishing.
When to use¶
Use the Reporters section when a whole Runner configuration should share the same reporting behavior. These values are optional. When a value is not set here, each assertion keeps control through its own reporting keys.
Reporters is useful for CI and triage profiles where every assertion result should include the same diagnostic payloads, such as saved session data, attachments, logs, templates, or assertion traces.
YAML configuration¶
Reporters:
SaveSessionData: true
SaveAttachments: true
SaveLogs: true
SaveTemplate: true
DisplayTrace: true
ReportPortal:
Enabled: true
Endpoint: 'https://reportportal.example/api/'
Project: '{MetaData.Team}'
ApiKey: '${REPORT_PORTAL_API_KEY}'
The complete schema-derived field list is in the configuration table. The copy-ready scaffold is in the YAML scaffold.
Reporting defaults¶
The artifact flags apply to reporters created for assertion results:
SaveSessionDatacontrols saved session data attachments.SaveAttachmentscontrols assertion-provided attachments.SaveLogscontrols session log attachments.SaveTemplatecontrols the rendered configuration template attachment.DisplayTracecontrols whether assertion traces are rendered in report details.
When any of these values is omitted, Runner falls back to the matching assertion-level value.
ReportPortal¶
ReportPortal configures optional publishing in addition to the Allure output. Enabled controls whether ReportPortal publishing is active. Endpoint, Project, and ApiKey can override registered runtime defaults for a single run.
If Project is omitted, Runner uses the MetaData.Team value. Keep API keys in runtime variables or secret-backed placeholders rather than committed YAML.
Edge cases¶
Reportersis optional; Runner still creates its default reporters when the section is absent.- Assertion-level reporting keys are still valid and remain the fallback when run-level reporter defaults are not set.
- ReportPortal publishing requires a reachable endpoint and a key with access to the target project.