摘要: 主要原因是 请求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嘟嘟 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 指定--clean-alluredir参数清空上一次执行记录: 如果我们想每次执行用例的时候都生成新的测试报告,那么我们可以在命令中加上--clean-alluredir参数。 我们先来看一下跟报告相关的三个参数,命令行中使用pytest -h查看: --alluredir=DIR:指定测试报告的生 阅读全文
posted @ 2021-10-18 12:28 fxh嘟嘟 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 【一】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嘟嘟 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 由于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) 编辑
摘要: 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嘟嘟 阅读(1211) 评论(12) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-01-29 16:06 fxh嘟嘟 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 的范德萨发 阅读全文
posted @ 2021-01-29 15:51 fxh嘟嘟 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 一、概述 框架采用excle+pytest+jenkins+allure的结构,使用数据驱动方式进行开发测试。能够达到单个接口的多种测试数据的组合测试,以及基于业务流程的接口组合测试。考虑到测试人员编写测试用例的方便性,采用数据驱动的设计方式,将数据分层出来,与业务逻辑剥离。这样测试人员就可以通过数 阅读全文
posted @ 2021-01-26 10:15 fxh嘟嘟 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 1.下载地址 https://www.jenkins.io/zh/download/ 2.安装成功以后登录 访问地址:http://127.0.0.1:8080/ 阅读全文
posted @ 2021-01-08 16:02 fxh嘟嘟 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 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嘟嘟 阅读(580) 评论(0) 推荐(0) 编辑