会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
亿逍遥
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2021年7月30日
jmeter将接口返回写入log
摘要: 1.添加BeanShell 后置处理程序 2. //拿到响应值 String json = prev.getResponseDataAsString(); log.info("Value为:"+ json);
阅读全文
posted @ 2021-07-30 13:52 亿逍遥
阅读(168)
评论(0)
推荐(0)
2021年4月12日
jmeter中使用csv文件时设置编码
摘要: 1.新建XLS文件,另存为CSV格式文件 2.在jmeter中可以尝试将编码设置成GB2312,或者utf-8
阅读全文
posted @ 2021-04-12 11:07 亿逍遥
阅读(371)
评论(0)
推荐(0)
2020年11月12日
Django框架搭建web项目(二)
摘要: 1.在路径XXXXX\mydjango\mydjango\mydjango下新建views.py(在浏览器中url请求后所展示的内容设置) from django.http import HttpResponse def hello(request): return HttpResponse("He
阅读全文
posted @ 2020-11-12 17:05 亿逍遥
阅读(104)
评论(0)
推荐(0)
2020年11月11日
Django框架搭建web项目(一)
摘要: 建议查看官方文档:https://docs.djangoproject.com/zh-hans/4.0/intro/tutorial01/ 1.本地安装python环境(略) 2.本地安装Django,在cmd中输入pip install Django==3.1.3 -i http://pypi.d
阅读全文
posted @ 2020-11-11 18:14 亿逍遥
阅读(550)
评论(0)
推荐(0)
skipif中condition字段无法获取到变量的解决办法
摘要: 目的 1.需要将A.py中接口返回的某字段作为下一个B.py中是否跳过用例的判断 步骤 1.先将A.py中的接口返回的值存储到Map中 2.在B.py中利用map读取出变量 首先,先在util下创建GlobalMap.py import json,logging class GlobalMap: m
阅读全文
posted @ 2020-11-11 11:02 亿逍遥
阅读(213)
评论(0)
推荐(0)
2020年11月4日
httprunner小试
摘要: 版本说明 python: 3.7.4 httprunner:3.1.4 har2case:0.3.1 pytest-html 2.1.1 安装httprunner第三方库 pip install httprunner 安装har2case pip install har2case 查看是否安装成功
阅读全文
posted @ 2020-11-04 16:44 亿逍遥
阅读(274)
评论(0)
推荐(0)
2020年10月22日
httprunner安装的那些坑
摘要: 一.httprunner安装成功了,但是使用hrun -V查看版本号时,程序错误 原因:可能是python版本不支持,安装python36和python39均不支持,最后安装了python37,可以使用了。。。 二.查看了网上,安装httpruner后,运行hrun -V、har2case -V;但
阅读全文
posted @ 2020-10-22 18:07 亿逍遥
阅读(1695)
评论(0)
推荐(0)
jmeter与python上传文件方式
摘要: MIME类型可根据抓包进行调整multipart/form-data;文件名称可进行参数化 备注: 最近在做上传文件接口时,postman可以调通,但是jmeter一直不通,抓包比较了两种调用方式后,jmeter上传文件提示:failed to decode multipart body,尝试了各种
阅读全文
posted @ 2020-10-22 16:30 亿逍遥
阅读(215)
评论(11)
推荐(0)
2020年10月9日
postman关联入参总结
摘要: 接口A的返回值是接口B的入参 首先,先调通接口A 请求链接中可看到有一个时间戳参数ts,需要在接口A的Pre-request Script中进行设置 pm.environment.set('now',Math.round(new Date()/1000)+10); 然后就可以从接口A的返回内容中获取
阅读全文
posted @ 2020-10-09 13:15 亿逍遥
阅读(603)
评论(0)
推荐(0)
2020年9月11日
pytest框架心得
摘要: 参考地址 1.https://www.cnblogs.com/sundawei7/p/11956618.html#_label0_0 2.https://www.cnblogs.com/poloyy/tag/Pytest/ pytest和unittest区别 unittestpytest 用例编写规
阅读全文
posted @ 2020-09-11 18:34 亿逍遥
阅读(279)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告