会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
学习很苦,但坚持很酷。
什么都略懂一点点,生活就美好一点点
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2021年11月4日
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嘟嘟
阅读(146)
评论(0)
推荐(0)
编辑
2021年10月18日
pytest-allure清空上一次运行的记录(--clean-alluredir)用例重复显示
摘要: 指定--clean-alluredir参数清空上一次执行记录: 如果我们想每次执行用例的时候都生成新的测试报告,那么我们可以在命令中加上--clean-alluredir参数。 我们先来看一下跟报告相关的三个参数,命令行中使用pytest -h查看: --alluredir=DIR:指定测试报告的生
阅读全文
posted @ 2021-10-18 12:28 fxh嘟嘟
阅读(467)
评论(0)
推荐(0)
编辑
2021年3月3日
linux centos7 部署详细步骤 apache + php7.0 +mysql 8.0 +织梦cms
摘要: 【一】apache安装方法: 查看rmp地址库中是否有地址 yum seach httpd 通过yum安装并启动apache服务 [root@xuegod63 ~]# yum install -y httpd(默认启动) (systemctl start httpd.service #启动 syst
阅读全文
posted @ 2021-03-03 14:58 fxh嘟嘟
阅读(302)
评论(0)
推荐(0)
编辑
2021年2月7日
cmd 压缩文件 +jenkins 发送Email邮件附带report报告和日志
摘要: 由于cmd不支持压缩命令,所以我们要手动添加。 1.第一步:安装WinRAR软件,C:\Windows 文件下。 第二步:以管理员身份打开cmd。cmd 先进入到 C:\Windows\System32目录(切记 目录要正确) 第三步:rar a -r -ep1 "F:\soft\jenkins\j
阅读全文
posted @ 2021-02-07 15:09 fxh嘟嘟
阅读(288)
评论(0)
推荐(0)
编辑
2021年2月5日
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嘟嘟
阅读(1225)
评论(12)
推荐(0)
编辑
2021年1月29日
pycharm 环境运行正常, cmd 跟jenkins 中运行提示错误,需要将pycharm 环境中的配置手动添加至jenkins 的全局属性 Environment variables 中
摘要:
阅读全文
posted @ 2021-01-29 16:06 fxh嘟嘟
阅读(138)
评论(0)
推荐(0)
编辑
jenkins +allure 不能生成xml 文件问题
摘要: 的范德萨发
阅读全文
posted @ 2021-01-29 15:51 fxh嘟嘟
阅读(250)
评论(0)
推荐(0)
编辑
2021年1月26日
Python +excle+pytest+ Allure(报告)+ Jenkins(持续集成)接口自动化测试环境搭建
摘要: 一、概述 框架采用excle+pytest+jenkins+allure的结构,使用数据驱动方式进行开发测试。能够达到单个接口的多种测试数据的组合测试,以及基于业务流程的接口组合测试。考虑到测试人员编写测试用例的方便性,采用数据驱动的设计方式,将数据分层出来,与业务逻辑剥离。这样测试人员就可以通过数
阅读全文
posted @ 2021-01-26 10:15 fxh嘟嘟
阅读(241)
评论(0)
推荐(0)
编辑
2021年1月8日
jenkins 下载 安装部署
摘要: 1.下载地址 https://www.jenkins.io/zh/download/ 2.安装成功以后登录 访问地址:http://127.0.0.1:8080/
阅读全文
posted @ 2021-01-08 16:02 fxh嘟嘟
阅读(90)
评论(0)
推荐(0)
编辑
2020年12月23日
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嘟嘟
阅读(582)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
下一页