2020-08-03 16:15:03 +08:00
|
|
|
|
server:
|
2020-11-20 23:55:22 +08:00
|
|
|
|
# 本地接口服务
|
|
|
|
|
test: http://127.0.0.1:8888/
|
2020-11-19 00:49:26 +08:00
|
|
|
|
# https://space.bilibili.com/283273603 演示项目后端服务来自
|
|
|
|
|
dev: http://www.ysqorz.top:8888/api/private/v1/
|
|
|
|
|
|
2020-11-21 17:40:59 +08:00
|
|
|
|
# 基准的请求头信息
|
|
|
|
|
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
|
|
|
|
|
|
2020-08-03 16:15:03 +08:00
|
|
|
|
file_path:
|
2021-04-19 13:03:55 +08:00
|
|
|
|
test_case: data/case_data.xls
|
2020-12-16 11:01:31 +08:00
|
|
|
|
report: report/
|
|
|
|
|
log: log/run{time}.log
|
2020-08-03 16:15:03 +08:00
|
|
|
|
|
|
|
|
|
email:
|
|
|
|
|
# 发件人邮箱
|
|
|
|
|
user: 123456.com
|
|
|
|
|
# 发件人邮箱授权码
|
|
|
|
|
password: ASGCSFSGS
|
|
|
|
|
# 邮箱host
|
|
|
|
|
host: smtp.163.com
|
|
|
|
|
contents: 解压apiAutoReport.zip(接口测试报告)后,请使用已安装Live Server 插件的VsCode,打开解压目录下的index.html查看报告
|
|
|
|
|
# 收件人邮箱
|
2021-03-05 15:55:26 +08:00
|
|
|
|
addressees: ["收件人邮箱1", "收件人邮箱2"]
|
2020-08-03 16:15:03 +08:00
|
|
|
|
title: 接口自动化测试报告(见附件)
|
2021-03-05 15:55:26 +08:00
|
|
|
|
# 附件
|
|
|
|
|
enclosures: report.zip
|
2020-08-03 16:15:03 +08:00
|
|
|
|
|
2020-12-08 17:36:08 +08:00
|
|
|
|
# 数据库校验- mysql
|
|
|
|
|
database:
|
|
|
|
|
host: localhost
|
|
|
|
|
port: 3306
|
2021-01-19 18:55:59 +08:00
|
|
|
|
user: root
|
2020-12-08 17:36:08 +08:00
|
|
|
|
# 不用''会被解析成int类型数据
|
|
|
|
|
password: '123456'
|
2021-05-17 18:29:38 +08:00
|
|
|
|
db_name: apiautotest
|
2020-12-08 17:36:08 +08:00
|
|
|
|
charset: utf8mb4
|
|
|
|
|
|
2021-01-19 18:55:59 +08:00
|
|
|
|
# 数据库所在的服务器配置
|
|
|
|
|
ssh_server:
|
|
|
|
|
port: 22
|
|
|
|
|
username: root
|
|
|
|
|
password: '123456'
|
|
|
|
|
# 私有密钥文件路径
|
|
|
|
|
private_key_file:
|
2021-01-20 12:12:54 +08:00
|
|
|
|
# 私钥密码
|
|
|
|
|
privat_passowrd:
|
2021-01-19 18:55:59 +08:00
|
|
|
|
# 如果使用的docker容器部署mysql服务,需要传入mysql的容器id/name
|
|
|
|
|
mysql_container: mysql8
|
|
|
|
|
# 数据库备份文件导出的本地路径, 需要保证存在该文件夹
|
|
|
|
|
sql_data_file: backup_sqls/
|
2020-12-08 17:36:08 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|