allure特性
- 非动态特性
- @allure.epic、@allure.feature、@allure.story、@allure.suite
- @allure.title、@allure.description
- @allure.step、with allure.step
- @allure.severity、@allure.issue、@allure.testcase
- 动态特性
- allure.dynamic.feature、allure.dynamic.story
- allure.dynamic.title、allure.dynamic.description
- with allure.step
- allure.dynamic.severity、allure.dynamic.issue、allure.dynamic.testcase
- allure.attach、allure.attach.file
生成allure测试报告
- 执行pytest测试
- pytest.main(['--alluredir=../allure-results', '--clean-alluredir', 'py文件名'])
- 生成测试报告
- os.system('allure.bat generate ../allure-results -o ../allure-report --clean')
作者:暄总-tester