login_testcases.yml
1.0 KB
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
config:
name: 账号登录测试
base_url: ${ENV(base_url)}
teststeps:
- name: 登录统一用户中心
api: api/app_api/login_api/auth/ucenter_login_api.yml
teardown_hooks:
- ${teardown_hook_get_cuid($response)}
- ${teardown_hook_get_credentials($response)}
- ${teardown_hook_get_muid($response)}
- ${teardown_hook_get_cid($response)}
variables:
phone: ${ENV(appphone)}
varidate:
validate:
- eq:
- content.msg
- ok
- name: 登录app系统
api: api/app_api/login_api/auth/authorize_api.yml
teardown_hooks:
- ${teardown_hook_get_authcode($response)}
varidate:
validate:
- eq:
- content.msg
- 登录成功accessToken
- name: 获取accessToken
api: api/app_api/login_api/auth/accessToken_api.yml
teardown_hooks:
- ${teardown_hook_get_accesstoken($response)}
varidate:
validate:
- eq:
- content.msg
- 获取成功