一、如何生成报告
1、输入:python3 -m pytest src/testcase/login --alluredir report/testdata返回:===== test session starts =====platform darwin -- Python 3.7.4, pytest-4.4.1, py-1.8.0, pluggy-0.9.0rootdir: /Users/xxx/Downloads/Projectplugins: allure-pytest-2.6.2collected 2 items src/testcase/login/test_login.py . [ 50%]src/testcase/login/test_logout.py . [100%]===== 2 passed in 76.66 seconds ======2、输入:allure generate report/testdata -o report/testreport --clean返回:Report successfully generated to report/testreport3、# Starting web server输入:allure open -h 127.0.0.1 -p 8083 report/testreport/index.html返回:Starting web server...-09-24 17:43:06.277:INFO::main: Logging initialized @371ms to org.eclipse.jetty.util.log.StdErrLogServer started at <http://localhost:8083/>. Press <Ctrl+C> to exit4、浏览器查看报告查看方法1:手动点击index.html,使用浏览器打开进行查看查看方法2:浏览器直接输入:http://localhost:63342/Project/report/testreport/index.html