摘要: 使用pytest执行用例,控制台显示警告信息: 解决方法: 新增pytest.ini文件,文件内容: [pytest] addopts = -p no:warnings 再次运行测试用例,控制台打印无警告信息 阅读全文
posted @ 2022-11-03 17:57 zhanchenglan 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 一、项目目录下增加environment.properties文件 environment.properties文件内容: systemVersion=win32 pythonVersion=3.9 allureVersion=2.8.17 author=TesterRoad 二、在运行测试用例时, 阅读全文
posted @ 2022-11-03 17:30 zhanchenglan 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 问题:使用allure.dynamic.title(testCases['title'])的方式添加用例标题时,标题样式出现如下问题: 解决方法: 1.找到python目录下 \Lib\site-packages\allure_pytest\listener.py 文件(如果在python目录未找到 阅读全文
posted @ 2022-11-03 17:01 zhanchenglan 阅读(151) 评论(0) 推荐(0) 编辑