PARTNERS004_list_partner_batchDisabled_testcases.yml
1.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
config:
name: PARTNERS004-合伙人批量启用
base_url: ${ENV(base_manager_url)}
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(adminphone)}
testcase: testcases/common/m_login_testcases.yml
- name: 查看合伙列表,获取合伙人id
variables:
partnerType:
partnerName: ''
api: api/m_api/partners/m_partner_list_api.yml
extract:
- totalRow: content.data.gridResult.totalRow
- partner_id1: content.data.gridResult.lists.0.id
- partner_id2: content.data.gridResult.lists.1.id
validate:
- length_equals:
- content.data.gridResult.lists
- $totalRow
- name: 合伙人批量禁用
variables:
id:
- $partner_id1
- $partner_id2
status: 1
api: api/m_api/partners/m_partner_batchDisabled_api.yml
validate:
- equals:
- content.code
- 0
- name: 查看合伙人 $partner_id1 详情,状态为禁用
variables:
id: $partner_id1
api: api/m_api/partners/m_partner_detail_api.yml
validate:
- eq:
- content.data.state
- 1
- name: 查看合伙人 $partner_id2 详情,状态为禁用
variables:
id: $partner_id2
api: api/m_api/partners/m_partner_detail_api.yml
validate:
- eq:
- content.data.state
- 1