You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Based on documentation here to apply some environment configurations we should use allure.environment(report='Allure report', browser=u'Я.Браузер') syntax. But in allure.py environment is missing. Before we have to use some environment.properties file in report folder to apply variables to the report. New functionality is missing.
Content of allure.py:
from allure_commons._allure import label
from allure_commons._allure import severity
from allure_commons._allure import tag
from allure_commons._allure import epic, feature, story
from allure_commons._allure import link
from allure_commons._allure import issue, testcase
from allure_commons._allure import Dynamic as dynamic
from allure_commons._allure import step
from allure_commons._allure import attach
from allure_commons.types import Severity as severity_level
from allure_commons.types import AttachmentType as attachment_type
__all__ = [
'label',
'severity',
'tag',
'epic'
'feature',
'story',
'link',
'issue',
'testcase',
'step'
'dynamic'
'severity_level',
'attach',
'attachment_type'
]
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
What is the motivation / use case for changing the behavior?
As workaround it's possible to create environment.xml and put it to alluredir after all tests executions finished. For pytest I have written next code:
Surely the above workaround will fail because allure considers the enviroment.xml in the allure-report dir as 'unclean' and refuse the generate without the --clean option?
@shpaker thanks,
any more elegant implementation in september 2029?
the definition of environment is so important,
why this feature is missing in allure?
probably the mindset of the implementation is different,
but are we not suppose to easily set environment variable during test execution and result collecting?
i think is normal to have the same code tested against different environment, so i would aspect a easy definition of the environment, probably by a command line parameter, without the need to implement your fixture.
thanks for any suggestion
Activity
[-]allure.environment is missing[/-][+]allure.environment is missing in allure.py[/+]antlong commentedon Aug 18, 2017
I made a ticket also with this not working. +1
mvoitko commentedon Aug 22, 2017
+1
antlong commentedon Aug 22, 2017
@mvoitko http://antlong.com/pytest-and-allure-reports/
mvoitko commentedon Aug 23, 2017
@antlong I am getting
And the issue was confirmed in the respective gitter channel.
sseliverstov commentedon Aug 23, 2017
Environment is not implemented in 2x version.
antlong commentedon Aug 23, 2017
aborovmind commentedon Sep 7, 2017
@sseliverstov about 'Environment Parameters' wrote in documentation and we expect it
https://docs.qameta.io/allure/latest/#_pytest
Das-Sreedeep commentedon Mar 7, 2018
pytest: error: unrecognized arguments: --allure_severities=blocker
inifile: None
Getting this error even I mentioned this before defining a method
Categorise Severity
sseliverstov commentedon Jul 7, 2018
yep allure still can't do environment( god bless the allure3
rrudakov commentedon Jul 15, 2018
As workaround it's possible to create
environment.xmland put it toalluredirafter all tests executions finished. For pytest I have written next code:Hope this will be helplul)
theObserver1 commentedon Aug 26, 2018
Surely the above workaround will fail because allure considers the enviroment.xml in the allure-report dir as 'unclean' and refuse the generate without the --clean option?
shpaker commentedon Mar 6, 2020
My implementation of the fixture for adding information to the Environment widget:
Example of usage:
teamdts commentedon May 19, 2020
@shpaker in this environmnet i want to add dynamic things like
browser name
browser version
environment like production/development/staging
so how i can add that dynamic things ?
Khouloud-moalla commentedon Jun 1, 2022
aany news for this!!
andreabisello commentedon Sep 6, 2023
@shpaker thanks,
any more elegant implementation in september 2029?
the definition of environment is so important,
why this feature is missing in allure?
probably the mindset of the implementation is different,
but are we not suppose to easily set environment variable during test execution and result collecting?
i think is normal to have the same code tested against different environment, so i would aspect a easy definition of the environment, probably by a command line parameter, without the need to implement your fixture.
thanks for any suggestion