无需将
typeas设置为字符串
png,而需要使用
allure模块附件类型constant,它是一个
Enum具有
extension定义的属性:
from allure.constants import AttachmentTypeallure.attach('screenshot', driver.get_screenshot_as_png(), type=AttachmentType.PNG)
无需将
typeas设置为字符串
png,而需要使用
allure模块附件类型constant,它是一个
Enum具有
extension定义的属性:
from allure.constants import AttachmentTypeallure.attach('screenshot', driver.get_screenshot_as_png(), type=AttachmentType.PNG)