200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > 【自动化报告】如何使用Allure生成测试报告?

【自动化报告】如何使用Allure生成测试报告?

时间:2021-06-21 05:12:29

相关推荐

【自动化报告】如何使用Allure生成测试报告?

一、如何生成报告

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

二、生成的报告是什么样的

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。