会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
dy20082250
博客园
首页
新随笔
联系
订阅
管理
2020年6月26日
做api测试冒出的想法01
摘要: 在使用api.github.com编写api测试脚本时,发现 返回的json串非常的长,我想开发一个工具,能够 快速对比两个返回的json串,并详细的展示出不同之处 类似于beyond
阅读全文
posted @ 2020-06-26 17:39 dy20082250
阅读(98)
评论(0)
推荐(0)
2020年6月25日
使用禅道做API测试踩坑记录1
摘要: # coding:utf-8 import requests host = 'http://192.168.75.175' url = host + '/zentao/user-login.html' req = requests.get(url) print(req.headers) h1 = {
阅读全文
posted @ 2020-06-25 09:25 dy20082250
阅读(533)
评论(0)
推荐(0)
2020年6月24日
学习httprunner记录03
摘要: 使用httprunner3.x版本 python版本是3.6 测试环境是zen dao 以下为脚本: # NOTE: Generated By HttpRunner v3.1.0 # FROM: assign_me.har import re from httprunner import HttpR
阅读全文
posted @ 2020-06-24 18:56 dy20082250
阅读(381)
评论(0)
推荐(0)
学习httprunner记录02
摘要: 使用测试脚本完成文件的自动上传,以下脚本是使用requests实现的: 使用的环境 python3.6 pipenv 虚拟化环境 测试服务器是禅道,功能场景是提交bug添加附件(可以是图片、文本,压缩包等等) # coding:utf-8 import requests host = 'http:/
阅读全文
posted @ 2020-06-24 14:40 dy20082250
阅读(256)
评论(0)
推荐(0)
2020年6月23日
学习httprunner记录01
摘要: python 3.6版本 使用 pipenv构建的虚拟化环境 安装指导遵从官方文档https://docs.httprunner.org/quickstart/ 测试环境:在vmware中安装centos7,然后在centos7安装禅道软件 步骤: 1 打开charles,作为proxy 2 使用浏
阅读全文
posted @ 2020-06-23 18:11 dy20082250
阅读(224)
评论(0)
推荐(0)
使用pytest和httprunner测试zendao的附件下载功能
摘要: 1 使用charles的录制功能,直接导出后生成python脚本,脚本可以直接运行,与手动操作唯一不同的是没有附件被下载下来 需要深入httprunner使用,毕竟文件下载功能很重要,目前的脚本仅仅是有逻辑上的下载动作 现在的内容存储于reponse.text字段,使用python的文件功能即可将内
阅读全文
posted @ 2020-06-23 15:19 dy20082250
阅读(386)
评论(0)
推荐(0)
2020年6月18日
python关于__init__.py的疑惑与解答
摘要: “The utility of having __init__.py files in every test subdirectory of a project confused me for a long time. However, the difference between having t
阅读全文
posted @ 2020-06-18 23:25 dy20082250
阅读(270)
评论(0)
推荐(0)
公告