-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathconfig.yaml
58 lines (49 loc) · 1.46 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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/