Allure Robot Framework configuration

Allure Robot Framework's behavior in regard to log messages (such as logging.info() calls) can be controlled by the ALLURE_MAX_STEP_MESSAGE_COUNT environment variable. The variable must be an integer number. When unset, the variable defaults to zero.

  • When the total number of log messages that occurred during a keyword execution is greater than ALLURE_MAX_STEP_MESSAGE_COUNT, Allure Robot Framework will present them as an attachment. This is usually the preferred behavior for tests that produce a lot of logs that you only occasionally need to read through. Since the default value of ALLURE_MAX_STEP_MESSAGE_COUNT is zero, this behavior is used for all keywords by default.

  • For keywords that produced fewer log messages than ALLURE_MAX_STEP_MESSAGE_COUNT, Allure Robot Framework will present each message as an individual sub-step. This is usually the preferred behavior for tests that produce few messages that can be analyzed at a glance.

You can use test plans to run different sets of tests at a time. This way, you will be able to set a different value of ALLURE_MAX_STEP_MESSAGE_COUNT before each run if necessary.

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.