【发布时间】:2017-08-22 05:53:31
【问题描述】:
我正在使用allure framework 为我的 pytest 测试和行为 (BDD) 测试生成报告。在 pytest 中的代码是:
import allure
from allure.constants import AttachmentType
#use the below statement to attach the screenshot
allure.attach('screenshot', self.driver.get_screenshot_as_png(), type=AttachmentType.PNG)
但是,我无法找到类似的方式将屏幕截图附加到我的 html 报告中
【问题讨论】:
标签: pytest allure python-behave