会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
夜雪江寒
CnBlogs
Home
New Post
Contact
Admin
Subscription
[Top]
jmeter断言接口响应字段大小
一,有时候断言需要判断接口返回某个字段值是否大于或者小于预期值,此时断言需要用到BeanShell断言 写法如下: import com.alibaba.fastjson.JSONObject;// String expiresin=vars.get("body.expiresin");String
Read More
posted @ 2019-04-04 16:38 &阿岩
Views(1483)
Comments(0)
Diggs(0)
2020年5月21日
csv文件转换为xlsx文件
"""@author: ahan@file: csv2excel.py@time: 2020/5/20 22:36@ide: pycharm"""import csvimport openpyxldef rewrite_excel(fileName): wb = openpyxl.Workbook(
Read More
posted @ 2020-05-21 12:30 &阿岩
Views(1907)
Comments(0)
Diggs(0)
2020年4月24日
钉钉机器人发群消息笔记
import jsonimport requests def robotMessage(message): url = 'https://oapi.dingtalk.com/robot/send?access_token=b46c26dd24cc3c96d21773a7d8f3a41f4ac49da
Read More
posted @ 2020-04-24 18:07 &阿岩
Views(332)
Comments(0)
Diggs(0)
2020年4月19日
docker学习笔记
#############################docker常用命令################################ yum install docker-ce-17.12.1.ce 安装docker systemctl start docker 启动docker syst
Read More
posted @ 2020-04-19 11:33 &阿岩
Views(300)
Comments(0)
Diggs(0)
2020年4月17日
awk脚本分析日志
#######################统计日志中测试人员执行用例个############################# BEGIN{ printf "%-10s%-10s\n","Tester","TotalTestcases" } { USERS[$4] += 1 } END{ fo
Read More
posted @ 2020-04-17 14:54 &阿岩
Views(546)
Comments(0)
Diggs(0)
2020年4月16日
linux命令记录
Linux命令学习 ############################################################################# cat -n /etc/passwd #显示行号 head -5 /etc/passwd # 查看前5行内容 tail -5
Read More
posted @ 2020-04-16 13:25 &阿岩
Views(342)
Comments(1)
Diggs(0)
2020年4月9日
windows上传文件至服务器
"""@Time : 2020/4/9 10:33@Auth : hzsyy@File :uploadFileToLinux.py@IDE :PyCharm"""import osimport paramikodef uploadFileTolinux(reportFile, linuxPath,
Read More
posted @ 2020-04-09 11:50 &阿岩
Views(1044)
Comments(0)
Diggs(0)
2020年3月24日
解决抓包工具与pycharm发送https请求冲突问题
1、开启charles,运行pycharm发送https请求报以下错误 2、发送请求时,加上verify=False,即可解决 response = requests.post(url, headers=headers, params=data, verify=False) 3、再次运行会报如下提示
Read More
posted @ 2020-03-24 18:06 &阿岩
Views(1963)
Comments(0)
Diggs(1)
2020年3月12日
随机生成数据
# coding=utf-8from faker import Fakerclass datas: def getData(self): fake = Faker("zh_CN") data = {} data["address"] = fake.address() data["barcode"]
Read More
posted @ 2020-03-12 17:25 &阿岩
Views(199)
Comments(0)
Diggs(0)
2020年2月29日
调接口新增车辆
# coding = utf-8import jsonimport osimport timeimport requestsfrom getExcelData import get_excel_data, root_dirdef login(host, account, password): hea
Read More
posted @ 2020-02-29 18:24 &阿岩
Views(294)
Comments(0)
Diggs(0)
读取excel数据
# coding=utf-8 """@Time : 2020/2/29 15:32 @Author : hzsyy@FileName : getExcelData.py @IDE : PyCharm"""import osfrom openpyxl import *from data import
Read More
posted @ 2020-02-29 18:22 &阿岩
Views(422)
Comments(0)
Diggs(0)
下一页
公告