一,有时候断言需要判断接口返回某个字段值是否大于或者小于预期值,此时断言需要用到BeanShell断言 写法如下: import com.alibaba.fastjson.JSONObject;// String expiresin=vars.get("body.expiresin");String Read More
posted @ 2019-04-04 16:38 &阿岩 Views(1436) Comments(0) Diggs(0) Edit
"""@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(1859) Comments(0) Diggs(0) Edit
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(324) Comments(0) Diggs(0) Edit
#############################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) Edit
#######################统计日志中测试人员执行用例个############################# BEGIN{ printf "%-10s%-10s\n","Tester","TotalTestcases" } { USERS[$4] += 1 } END{ fo Read More
posted @ 2020-04-17 14:54 &阿岩 Views(543) Comments(0) Diggs(0) Edit
Linux命令学习 ############################################################################# cat -n /etc/passwd #显示行号 head -5 /etc/passwd # 查看前5行内容 tail -5 Read More
posted @ 2020-04-16 13:25 &阿岩 Views(333) Comments(1) Diggs(0) Edit
"""@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(1038) Comments(0) Diggs(0) Edit
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(1907) Comments(0) Diggs(1) Edit
# 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(196) Comments(0) Diggs(0) Edit
# 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(292) Comments(0) Diggs(0) Edit
# 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(419) Comments(0) Diggs(0) Edit