Appearance
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 ofALLURE_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.
TIP
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.