Environment file

This page describes a data format used by Allure and its adapters for test frameworks. Depending on the test framework you use, this file may or may not be generated automatically based on the project configuration. Check your adapter's documentation.

The environment.properties file in the test results directory, if present, defines a set of key-value pairs to display in the test report. See Environment information.

The data is stored in the .properties format.

Example:

Properties file
os_platform = linux os_release = 5.15.0-60-generic os_version = #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 python_version = Python 3.10.9

Note that this feature should be used for properties that do not change for the whole test launch. If you have properties that can be different for different tests, consider using Parametrized tests.

Powered by
logo

Join our newsletter

Join our community

We aim to make Allure Report as reliable and user-friendly as possible, and together with the community, we're here to help when problems arise.

© 2024 Qameta Software Inc. All rights reserved.