A
Size: a a a
A
AG
AP
A
OK
AP
OK
AP
SV
МС
МС
А
from allure.constants import AttachmentTypeВот лог ошибки в логе дженкинса:
page = driver.get(link)
allure.attach('screenshot', page.get_screenshot_as_png(), type=AttachmentType.PNG)
severities = [x.value for x in list(allure.severity_level)]
AttributeError: module 'allure' has no attribute 'severity_level'
НС
А
pip freeze
alabaster==0.7.6
allure-pytest==2.8.17
allure-python-commons==2.8.17
asn1crypto==1.3.0
atomicwrites==1.3.0
attrs==19.3.0
Babel==2.8.0
Beaker==1.11.0
certifi==2020.6.20
cffi==1.14.0
chardet==3.0.4
commonmark==0.9.1
cryptography==2.6.1
Cython==0.29.15
docutils==0.15.2
enum34==1.1.10
future==0.18.2
idna==2.8
imagesize==1.1.0
importlib-metadata==0.23
Jinja2==2.10.1
lxml==4.5.2
Mako==1.0.14
MarkupSafe==1.1.1
meson==0.54.3
more-itertools==8.4.0
namedlist==1.7
packaging==20.4
pluggy==0.12.0
py==1.8.1
pycparser==2.20
Pygments==2.5.2
pyOpenSSL==19.0.0
pyparsing==2.4.7
PySocks==1.7.1
PyStemmer==2.0.0.1
pytest==4.5.0
pytest-allure-adaptor==1.7.10
pytz==2020.1
recommonmark==0.5.0
requests==2.22.0
selenium==3.141.0
six==1.14.0
snowballstemmer==1.2.1
Sphinx==3.1.2
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==1.0.3
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.4
urllib3==1.25.7
wcwidth==0.1.8
zipp==0.6.0
SS
pytest-allure-adaptor==1.7.10
SS
allure-pytest==2.8.17
allure-python-commons==2.8.17
и верхнийSS
SS
allure-pytest==2.8.17
allure-python-commons==2.8.17
А
А
from allure_commons.types import AttachmentType