Allure测试框架(python+pytest+allure)(1)
1.allure介绍
2.allure安装
mac安装brew复制下面的命令,终端执行 官网Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3.pytest-allure插件、allure报告的生成
测试执行期间收集结果
pytest test_openindex.py -s -q --alluredir=./result/
第一种方式:
在线看报告 allure serve ./result/t/
第二种方式:
allure generate ./result/ -o ./report/ --clean
allure open -h 127.0.0.1 -p 8883 ./report/
4.allure特性分析
5.按feature,story运行
.....下一章
6.pytest+allure+selenium实战