09 2022 档案

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) 编辑

python + pytest多进程、多线程执行用例生成报告总结
摘要:背景: 使用多进程、多线程执行测试用例,生成测试报告;不使用多进程、多线程,以下两种方式都可生成报告 两种生成报告的形式 1、 pytestreport(pytest_session_finish时生成) 2、 allure 具体比较如下: pytest-xdist(多进程) pytest-para 阅读全文

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

pytest-parallel 多线程执行和allure生成报告,allure生成报告失败
摘要:背景: 使用多线程pytest-parallel执行测试用例,使用allure生成测试报告,发现生成报告内容为NaN 使用的pytest执行命令: pytest.main(["TestCase/test_xx.py", "-m", "test_xx", "--tests-per-worker=4", 阅读全文

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

pytest-parallel 多线程执行用例,访问pymysql数据库,遇到的问题
摘要:遇到的问题 1、pymysql.err.ProgrammingError: execute() first 2、File "D:\xxx\python3.8\lib\site-packages\pymysql\connections.py", line 729, in _read_bytes sel 阅读全文

posted @ 2022-09-08 15:30 刚刚好1 阅读(1507) 评论(0) 推荐(0) 编辑

python-pytest:多进程、多线程执行用例
摘要:准备工作: Python Package pytest-parallel-0.0.10: windows版本只能是0.0.10 pytest-xdist 这两个包都是基于pytest基础上,实现多进程、多线程执行测试用例 pytest-xdist和pytest-parallel 区别 pytest- 阅读全文

posted @ 2022-09-08 14:37 刚刚好1 阅读(3292) 评论(1) 推荐(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
点击右上角即可分享
微信分享提示