pytest集成Allure Report

https://blog.csdn.net/liuchunming033/article/details/79624474#commentBox

https://blog.csdn.net/lihua_tan/article/details/76099282

  • @allure.feature # 用于定义被测试的功能,被测产品的需求点
  • @allure.story # 用于定义被测功能的用户场景,即子功能点
  • with allure.step # 用于将一个测试用例,分成几个步骤在报告中输出
  • allure.attach # 用于向测试报告中输入一些附加的信息,通常是一些测试数据信息
  • @pytest.allure.step # 用于将一些通用的函数作为测试步骤输出到报告,调用此函数的地方会向报告中输出步骤
原文地址:https://www.cnblogs.com/shengs/p/9518736.html