随笔 - 64  文章 - 5 评论 - 23 阅读 - 64051
< 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

随笔分类 -  Python自动化

Python
UnicodeEncodeError: 'latin-1' codec can't encode character '\u7801' in position 49: Body ('码') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8. 请求body里面有 汉字
摘要:主要原因是 请求body里面有 汉字,没有进行untf-8编码导致,解决方法,对data进行 encode()编码 即可res=requests.post(url,headers=heder,data=indatafengz) 改成 这样即可 res=requests.post(url,header 阅读全文
posted @ 2021-11-04 19:40 fxh嘟嘟 阅读(183) 评论(0) 推荐(0) 编辑
jenkins+pytest+allure+python ModuleNotFoundError: No module named 'pytest'
摘要:Traceback (most recent call last): File "main.py", line 1, in <module> import pytest ModuleNotFoundError: No module named 'pytest' 当程序在本地可以运行并可生成报告,但是 阅读全文
posted @ 2021-02-05 20:59 fxh嘟嘟 阅读(1256) 评论(12) 推荐(0) 编辑
Python +excle+pytest+ Allure(报告)+ Jenkins(持续集成)接口自动化测试环境搭建
摘要:一、概述 框架采用excle+pytest+jenkins+allure的结构,使用数据驱动方式进行开发测试。能够达到单个接口的多种测试数据的组合测试,以及基于业务流程的接口组合测试。考虑到测试人员编写测试用例的方便性,采用数据驱动的设计方式,将数据分层出来,与业务逻辑剥离。这样测试人员就可以通过数 阅读全文
posted @ 2021-01-26 10:15 fxh嘟嘟 阅读(258) 评论(0) 推荐(0) 编辑
python+pytest+allure测试报告,批量执行测试用例命令生成测试报告
摘要:cd F:\python_11\teach01\testcasepytest -sq testLogin.py --alluredir=../report/tmpallure generate ../report/tmp -o ../report/report --clean 操作:双击执行api_ 阅读全文
posted @ 2020-12-23 15:12 fxh嘟嘟 阅读(609) 评论(0) 推荐(0) 编辑
Pytest+allure测试报告本地运行测试报告显示显示loading 使用: allure open +报告路径 如:allure open F:\python_11\teach01\report\report 即可
摘要:Pytest+allure测试报告本地运行测试报告显示显示loading 使用: allure open +报告路径 如:allure open F:\python_11\teach01\report\report 即可 阅读全文
posted @ 2020-12-23 10:30 fxh嘟嘟 阅读(804) 评论(0) 推荐(0) 编辑
使用pycharm Terminal控制台 时提示 pytest不是内部或外部命令,也不是可运行的程序 或批处理文件
摘要:pycharm中都成功安装pytest(通过pycharm工具自动化安装的),但仍然不能在pycharm控制台运行pytest命令。原因:python安装路径的Scripts目录下没有pytest.exe 解决方案:找到pytest安装目录,将Scripts文件夹复制到python安装路径的Scri 阅读全文
posted @ 2020-10-28 12:09 fxh嘟嘟 阅读(1932) 评论(0) 推荐(0) 编辑
Pycharm中如何同时显示多个工程名?(python接口自动化)
摘要:第一步 第二步 第三步:完成 阅读全文
posted @ 2020-10-27 14:19 fxh嘟嘟 阅读(172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示