pytest.allure.attach(name, self.driver.get_screenshot_as_png(), type=AttachmentType.PNG)

pytest 以上

uinttest 写个 装饰器

game over


↙↙↙阅读原文可查看相关链接,并与作者交流