44 Star 427 Fork 192

7y / apiAutoTest

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
config.yaml 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
7y 提交于 2022-02-28 00:37 . refactor:重构代码
server:
# 本地接口服务
test: http://127.0.0.1:8888/
dev: http://127.0.0.1:8888/api/private/v1/
# 基准的请求头信息
request_headers:
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36
file_path:
test_case: case_data.xls
report: report/
log: logs/run{time}.log
email:
serve:
# 发件人邮箱USER
user: 123456@163.com
# 发件人邮箱授权码
password: xxxx
# 邮箱host
host: smtp.163.com
context:
contents: 解压apiAutoReport.zip(接口测试报告)后,请使用已安装Live Server 插件的VsCode,打开解压目录下的index.html查看报告
# 收件人邮箱
to: ["396667207@qq.com"]
subject: 接口自动化测试报告(见附件)
# 附件
attachments: report.zip
# 数据库校验- mysql
database:
host: localhost
port: 3306
user: root
# 不用''会被解析成int类型数据
password: '123456'
db: mydb
# 数据库所在的服务器配置
ssh_server:
port: 22
username: root
password: '123456'
# 私有密钥文件路径
private_key_file:
# 私钥密码
private_password:
# 如果使用的docker容器部署mysql服务,需要传入mysql的容器id/name
mysql_container: mysql8
# 数据库备份文件导出的本地路径, 需要保证存在该文件夹
sql_data_file: backup_sql/
Python
1
https://gitee.com/zy7y/apiAutoTest.git
git@gitee.com:zy7y/apiAutoTest.git
zy7y
apiAutoTest
apiAutoTest
master

搜索帮助