pycharm安装faker库失败

摘要: 报错信息: ERROR: Could not find a version that satisfies the requirement faker (from versions: none)ERROR: No matching distribution found for faker 解决方法:换 阅读全文
posted @ 2024-09-04 15:30 宋霏 阅读(3) 评论(0) 推荐(0) 编辑

Linux:Job for network.service failed because the control process exited with error code

摘要: 1、su root 2、输入密码 3、systemctl restart network 报错:Job for network.service failed because the control process exited with error code 4、systemctl status n 阅读全文
posted @ 2024-09-03 21:27 宋霏 阅读(10) 评论(0) 推荐(0) 编辑

pycharm报错:TypeError: unhashable type: 'slice'

摘要: 一、原因:没有使用正确的数组或没有使用正确的读取数据的方式 二、因为我在yaml中,传参用的是字典格式 三、但是 @pytest.mark.parametrize("",[ ]),需要传数组 import pytest # 数组的形式 @pytest.mark.parametrize("name,w 阅读全文
posted @ 2024-09-03 19:42 宋霏 阅读(10) 评论(0) 推荐(0) 编辑

python如何获取动态绝对路径

摘要: 代码如下: 先获取当前 再获取当前的父目录 再获取父目录的父目录,找到根目录了 再join想要的目录名+文件名 import os print(os.path.realpath(__file__)) # D:\My-Test\ApiTest\utils\test.py print(os.path.d 阅读全文
posted @ 2024-09-03 17:28 宋霏 阅读(6) 评论(0) 推荐(0) 编辑

pycharm:报错,执行用例提示找不到yaml文件(写死绝对路径)

摘要: 一、报错信息如下: 二、原因:yaml在config目录下,测试文件在test cases目录下,跨目录时不能使用相对路径!! 三、copy绝对路径 1、右键yaml文件 2、点击 四、把路径复制到yaml中 阅读全文
posted @ 2024-09-03 17:15 宋霏 阅读(12) 评论(0) 推荐(0) 编辑

pycharm报错-Cannot start process, the working directory 'xxx'

摘要: 一、运行main方法报错,但是运行单个用例不报错 错误提示: 二、原因:竟然是因为我修改了包名 三、找到edit Configuration 四、把路径修改正确 五、🆗了 阅读全文
posted @ 2024-09-03 12:02 宋霏 阅读(13) 评论(0) 推荐(0) 编辑

pycharm警告 :PytestConfigWarning: Unknown config option: makers

摘要: 一、PytestConfigWarning: Unknown config option: makers 虽然不影响执行测试用例,但是,追求完美的我很想解决掉他! 二、找报错的单词在哪,大概率这种报错在ini文件 我的makers在pytest.ini。起初是想打标签,但是标签的注解是@pytest 阅读全文
posted @ 2024-09-02 20:37 宋霏 阅读(7) 评论(0) 推荐(0) 编辑

zentao.py

摘要: 源码修改部分1、修改优先级部分,找到zentao.py,修改以下方法 def gen_case_priority(priority): # 修改前 # mapping = {1: '高', 2: '中', 3: '低'} # 修改后 mapping = {1: '1', 2: '2', 3: '3' 阅读全文
posted @ 2023-11-20 15:43 宋霏 阅读(28) 评论(0) 推荐(0) 编辑

xmind写测试用例转禅道全部细节讲解

摘要: 一、下载xmind8pro破解版 资源: 百度网盘XMind8:链接:https://pan.baidu.com/s/1h2DXkni4-POEpHyBqLxjwA 提取码:kqgy 破解补丁: 链接:https://pan.baidu.com/s/16yVSMIInTnhipjGZGjisTA 提 阅读全文
posted @ 2023-11-20 15:12 宋霏 阅读(42) 评论(0) 推荐(0) 编辑

关于pip install xxx报错

摘要: pip install 包名 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 其他源: 阿里云 http://mirrors.aliyun.com/pypi/simple/中国科技大学 https://pypi.mirr 阅读全文
posted @ 2023-05-15 17:29 宋霏 阅读(8) 评论(0) 推荐(0) 编辑