You can add custom metadata to the report start page using two methods:
Using Properties
Define key-value pairs within the <customParameters> block.
- Underscores in keys are converted to spaces in the report.
- URLs starting with
http, https, or ftp become clickable links. - If a key starts with an underscore (
_), only the value is displayed (the key is hidden).
<customParameters>
<Custom_Parameter>This is a test</Custom_Parameter>
<Custom_URL>http://www.google.com</Custom_URL>
<_Text>This is a long text displayed without the key.</_Text>
</customParameters>
Using a File
Specify a path to a .properties file using the customParametersFile property. The file should follow the standard properties format:
Custom_Parameter=This is a test
Custom_URL=http://www.google.com
_Text=This is a long text without the key.
Display Mode
Use customParametersDisplayMode to control where these parameters appear:
SCENARIO_PAGES (default): Only on scenario and scenario sequence pages.ALL_PAGES: On every page in the report.
<customParameters>
<Custom_Parameter>This is a test</Custom_Parameter>
<Custom_URL>http://www.google.com</Custom_URL>
<_Text>This is a long text that is displayed without the key. This can be used to display longer texts in the
report!
</_Text>
</customParameters>