随笔分类 -  python allure生成测试报告

python + pytest + allure生成测试报告
python allure将生成报告和打开报告写到命令文件,并默认使用谷歌打开
摘要:背景: 使用python + pytest +allure,执行测试用例,并生成测试报告; allure报告要从收集的xml、json等文件,生成报告,不能直接点击报告的index.html,打开的报告为NaN; 所以,创建了一个bat文件,用于执行allure命令参数,主要为收集报告,和打开报告; 阅读全文

posted @ 2022-09-13 14:23 刚刚好1 阅读(1071) 评论(1) 推荐(0) 编辑

pytest-allure 命令生成的报告,test body 没有具体的参数和日志
摘要:run.py: pytest.main([命令参数执行]),pytest命令执行完毕后,使用os.system()执行allure的命令 原因: 使用了命令:os.system('allure generate ./test_result/allurereport -o ./test_result/ 阅读全文

posted @ 2022-09-09 18:07 刚刚好1 阅读(575) 评论(0) 推荐(0) 编辑

pytest执行_allure报“AttributeError: module 'allure' has no attribute 'severity_level'”
摘要:背景: 一个大项目A,需要项目B作为源码,即pycharm的 source_root 问题: 项目B,执行pytest.main([pytest命令]),控制台报错“AttributeError: module 'allure' has no attribute 'severity_level'”, 阅读全文

posted @ 2022-07-28 16:41 刚刚好1 阅读(2023) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示