allure功能使用-测试时添加文件attach

allure.attach("get env", "附加文本", attachment_type=allure.attachment_type.TEXT)
allure.attach("<body>测试body</body>", "html代码", attachment_type=allure.attachment_type.HTML)
allure.attach.file("./test.png", "图片信息", attachment_type=allure.attachment_type.PNG)

 

 

 

 

posted @ 2024-05-06 18:07  遇事不决,量子力学  阅读(5)  评论(0编辑  收藏  举报