COM002_m_login_testcases.yml
1023 字节
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
config:
name: 用户登录管理后台
teststeps:
- name: 登录企业平台
api: api/m_api/login_api/pwdLogin_api.yml
extract:
pwdLogintoken: content.data.access.token
varidate:
- eq:
- content.msg
- ok
- name: 选择公司登陆
variables:
companyId: ${ENV(companyId)}
api: api/m_api/login_api/anonymousLogin_api.yml
extract:
anonymousLogintoken: content.data.access.token
varidate:
- eq:
- content.msg
- ok
- name: 单点登录,获取secret用于登录子系统
api: api/m_api/login_api/getSingleLoginMenus_api.yml
extract:
url: content.data.list.0.url
varidate:
- eq:
- content.msg
- ok
- name: 登录价值系统
api: api/m_api/login_api/login_api.yml
teardown_hooks:
- ${teardown_hook_get_task_manager_accesstoken($response)}
validate:
- eq:
- content.msg
- ok