reporting.yml
The reporting.yml file defines the reports and dashboards to output data to during the test run.
failure_screenshots
failure_screenshots: true
Enable the collection of a screenshot on the failure of a test. The screenshot will be saved as a png to the results folder for the test run and embedded in compatible reports.
The screenshot will also be uploaded to Halo if enabled is set to true
in the dashboard section.
resize_for_screenshots
resize_for_screenshots: false
Enable resizing of a browser to collect a screenshot of the whole page, not just the visible viewport. This option only applies for desktop browsers under certain circumstances.
local
The local section configures reports that will be generated locally in the test run subfolder of the results directory or the remote_test_results folder in the root of the project.
html_report
html_report: true
Enables generation of a html report. This will be saved to the test run subfolder of the results directory. If failure_screenshots is enabled, failure screenshots will be embedded against the failing scenario.
realtime_failure
realtime_failure: true
Enables generation of the realtime failure report. This will be saved to the failures subfolder of the remote_test_results directory and will update during the test run. If failure_screenshots is enabled, failure screenshots will be embedded against the failing scenario.
junit
junit: true
Outputs the test run results to a junit xml file in the remote_test_results folder.
json
json: true
Outputs the test run results to a json file in the remote_test_results folder.
rerun
rerun: true
Creates a file with a list of failing tests in the remote_test_results folder. This can be used to execute only the test scenarios that failed in the test run.
dashboard
The dashboard section configures the output to the Test Evolve cloud reporting.
enabled
enabled: true
When set to true, data from the test run will be sent to Test Evolve Halo after each scenario or after a time specified in 'scheduled_interval' if 'scheduled_updates' is enabled.
dashboard_url
deprecated
Please remove this option from your configuration file.
project_id
project_id: 1
The project id in Halo to push data to. This ID can be found on the Project selection screen in Halo or the navigation bar in the project itself.
label
label: example-label
The label to be associated with your test run in Halo. More information on managing labels is available here.
auth_token
auth_token: api-key
Specify an api key that is saved in the admin section of the Test Evolve cloud reporting for your organisation.
This value can be overridden with the TE_HALO_AUTH_TOKEN environment variable.
scheduled_updates
scheduled_updates: true
Enable to output data to the Test Evolve cloud reporting after a scheduled interval rather than after every scenario. The interval at which to send data is specified in scheduled_interval.
scheduled_interval
scheduled_interval: 10
Specify the number of seconds for the interval between posting data to the Test Evolve cloud reporting. If scheduled_updates is enabled this value will be used instead of posting data after every scenario.
testrail
The testrail section configures the output to Test Rail.
enabled
enabled: true
When set to true, results of testrail tagged scenarios in the test run will be sent to Test Rail.
domain
domain: example-domain
The domain for your Test Rail account. For example if your Test Rail url is example-domain.testrail.io
then the domain configuration should be example-domain
.
project_id
project_id: 1
The id of the project in Test Rail that results will be output to.
test_run_id
test_run_id: 1
The id of the test run in Test Rail that results will be output to.
If the test_run_id is set to 0, a new Test Rail test run will be created in the specified project.
Example reporting.yml
- Ruby
- JavaScript
&defaults_reporting
failure_screenshots: true
resize_for_screenshots: false
local:
html_report: true
realtime_failure: false
junit: true
json: true
rerun: true
dashboard:
enabled: false
project_id: 1
label: example-label
auth_token: api-key
scheduled_updates: false
scheduled_interval: 10
testrail:
enabled: false
domain: example-domain
project_id: 1
test_run_id: 0
failure_screenshots: true
local:
html_report: true
realtime_failure: true
junit: false
json: false
rerun: true
dashboard:
enabled: false
project_id: 1
label: test-evolve-label
auth_token: api_key
scheduled_updates: false
scheduled_interval: 10
testrail:
enabled: false
domain: example-domain
project_id: 1
test_run_id: 0