随笔分类 - httprunner
摘要:可以使用下面语句,不使用官方地址,指定地址进行下载 pip install 包名 -i http://pypi.doubanio.com/simple/ --trusted-host pypi.doubanio.com
阅读全文
摘要:转:https://blog.csdn.net/u011092188/article/details/64123561 pip安装软件时出现:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-*
阅读全文
摘要:问题: 1.使用pip install安装psycopg2时报无法找到对应版本的错误 解决方法: 使用pip install psycopg2-binary进行下载安装,因为使用psycopg2-binary直接使用的whl进行安装的
阅读全文
摘要:问题:httpRunner请求参数中如果包含中文,会乱码,如下: 解决方法: requests库中,在处理json格式的请求时调用的json.dumps方法参数ensure_ascii默认为True.表示序列化时对中文默认使用的ascii编码。 如果想要显示中文,则将此参数的值改为False即可,如
阅读全文
摘要:.env testenv=xxxxx 1.当文件内包含注释或空行时,抛出异常 httprunner.exceptions.FileFormatError: .env format error 原因是源代码中没有对空行和 # 号做处理,代码片段 (loader - 130): with open(do
阅读全文
摘要:1.pytest脚本如下: `class TestAvatarUrl(HttpRunner): config = ( Config("生成图片链接").verify(False) .variables(**{}) .base_url("${ENV(xxx_base_url)}") .export(*
阅读全文