-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.example.yaml
61 lines (57 loc) · 1.71 KB
/
config.example.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
55
56
57
58
59
60
61
DEBUG: True/False #是否开启调试模式,True-不生成生成报告,方便调试
IMAGE: True/False #是否截图,DEBUG为False且IMAGE设置为True时截图
MAIL:
SEND: True/False #是否开启发送邮箱配置,前提是,在DEBUG为false情况下生效
# 邮箱服务端配置
SMTP:
username: [email protected]
password: xxxxxxxxxx
host: smtp.163.com
port: 25
# 收件人列表
receiver:
BROWSER:
#浏览器类型
type: Chrome/Firefox
#bmp程序路径
bmp_path: your/browsermob-proxy/path
#是否开启代理,开启后,配置listener的操作,会记录请求日志到logs目录下
proxy: True/False
#H5
H5: True/False
#模拟的设备名称,目前只有在Chrome下生效,Firefox实现的策略是修改user_agent并设置浏览器界面大小
device_name: iPhone 7
#是否开启无头模式
headless: True/False
WEBSITE:
#启动页地址
url: http://www.your_website_url.com
MENU:
login:
key: login
name: 登录
type: xpath
content: //button[@class='btn btn-primary' and text()='登录']
index: -1
action: click
listener:
-
url: login/url
code: 0
operation:
-
name: 用户名
type: tag name
content: input
value: xxxxx
index: 2
action: sendKeys
-
name: 密码
type: tag name
content: input
value: xxxxx
index: 3
action: sendKeys