随笔分类 -  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 阅读(1120) 评论(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 阅读(620) 评论(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 阅读(2196) 评论(0) 推荐(0)

导航