Python
文章平均质量分 61
月亮上的影子灰
这个作者很懒,什么都没留下…
展开
-
Allure报告生成测试用例数量与pycharm中pytest执行用例数量不一致
最后多方对比排查下来,发现是allure-pytest版本太高原因导致的(可能是他们的一个bug),当前运行环境中的的allure版本是2.13.2,降到2.12.0版本,重启项目,重新运行后,allure报告生成用例数量正常了。找到当前项目python运行的解释器,File>Settings>Project:xxx>Python Interpreter,找到allure-pytest查看版本,如下图所示,双击allure-pytest,进入版本安装界面。重新生成的allure报告用例数量-正确。原创 2023-07-14 19:10:42 · 998 阅读 · 5 评论 -
python创建/写入文件时报错“OSError: [Errno 22] Invalid argument:xxx“
Windows文件命名不能使用特殊符号原创 2023-01-16 15:59:00 · 1378 阅读 · 0 评论 -
os.system执行allure提示找不到sh: allure: command not found
mac执行allure报错,os.system执行allure提示找不到sh: allure: command not found,但terminal可以执行成功。terminal实际使用的是电脑本身的环境变量,python console和主程序都是用的python解释器的变量。原创 2022-11-11 20:33:06 · 4227 阅读 · 8 评论