正在显示
34 个修改的文件
包含
316 行增加
和
264 行删除
@@ -12,3 +12,4 @@ base_ucenter=http://public-interface-test.fjmaimaimai.com | @@ -12,3 +12,4 @@ base_ucenter=http://public-interface-test.fjmaimaimai.com | ||
12 | base_business_admin=http://suplus-business-admin-gateway-test.fjmaimaimai.com | 12 | base_business_admin=http://suplus-business-admin-gateway-test.fjmaimaimai.com |
13 | companyId=214 | 13 | companyId=214 |
14 | adminphone=19911111111 | 14 | adminphone=19911111111 |
15 | +partnerphone=15510101010 |
1 | +name: 获取统一用户中心公司(登录凭证) | ||
2 | +base_url: ${ENV(base_url)} | ||
3 | +variables: | ||
4 | + currtime: ${make_time()} | ||
5 | + uuid: ${make_uuid()} | ||
6 | + access_token: '' | ||
7 | + sign: ${make_sign($currtime, $uuid,$access_token)} | ||
8 | + grantType: signInPassword | ||
9 | + phone: ${ENV(partnerphone)} | ||
10 | + password: 7c4a8d09ca3762af61e59520943dc26494f8941b | ||
11 | +#teardown_hooks: | ||
12 | +# - ${teardown_hook_get_authcode($response)} | ||
13 | +request: | ||
14 | + headers: | ||
15 | + Content-Type: application/json;charset=utf-8 | ||
16 | + User-Agent: okhttp/3.12.3 | ||
17 | + X-MMM-AccessToken: $access_token | ||
18 | + X-MMM-AppName: com.mmm.partner | ||
19 | + X-MMM-AppProject: ability | ||
20 | + X-MMM-DeviceType: '1' | ||
21 | + X-MMM-Sign: $sign | ||
22 | + X-MMM-Timestamp: $currtime | ||
23 | + X-MMM-Uuid: $uuid | ||
24 | + X-MMM-Version: 0.1.0 | ||
25 | + json: | ||
26 | + phone: $phone | ||
27 | + grantType: $grantType | ||
28 | + password: $password | ||
29 | + clientId: 'pdf233Znkjo' | ||
30 | + method: POST | ||
31 | + url: /v1/auth/centerCompanys |
1 | -name: 账号登录:/v1/auth/login | 1 | +name: 账号登录(废弃):/v1/auth/login |
2 | base_url: ${ENV(base_url)} | 2 | base_url: ${ENV(base_url)} |
3 | variables: | 3 | variables: |
4 | currtime: ${make_time()} | 4 | currtime: ${make_time()} |
@@ -7,9 +7,9 @@ variables: | @@ -7,9 +7,9 @@ variables: | ||
7 | sign: ${make_sign($currtime, $uuid,$access_token)} | 7 | sign: ${make_sign($currtime, $uuid,$access_token)} |
8 | grantType: signInPassword | 8 | grantType: signInPassword |
9 | phone: ${get_partner_account_from_database()} | 9 | phone: ${get_partner_account_from_database()} |
10 | - password: ${get_partner_password_from_database()} | ||
11 | -teardown_hooks: | ||
12 | - - ${teardown_hook_get_authcode($response)} | 10 | + password: 7c4a8d09ca3762af61e59520943dc26494f8941b |
11 | +#teardown_hooks: | ||
12 | +# - ${teardown_hook_get_authcode($response)} | ||
13 | request: | 13 | request: |
14 | headers: | 14 | headers: |
15 | Content-Type: application/json;charset=utf-8 | 15 | Content-Type: application/json;charset=utf-8 |
api/m_api/admin/m_admin_list_api.yml
0 → 100644
1 | +name: 管理员列表 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + searchText: '' | ||
5 | +request: | ||
6 | + headers: | ||
7 | + Content-Type: application/json;charset=utf-8 | ||
8 | + User-Agent: okhttp/3.12.3 | ||
9 | + Authorization: Bearer ${get_m_accesstoken()} | ||
10 | + json: | ||
11 | + pageNumber: 1 | ||
12 | + pageSize: 100 | ||
13 | + searchText: $searchText | ||
14 | + method: POST | ||
15 | + url: /v1/admin/list | ||
16 | +validate: | ||
17 | + - eq: | ||
18 | + - content.msg | ||
19 | + - ok |
api/m_api/admin/m_admin_permission_api.yml
0 → 100644
1 | +name: 管理员权限前置接口 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + searchText: '' | ||
5 | +request: | ||
6 | + headers: | ||
7 | + Content-Type: application/json;charset=utf-8 | ||
8 | + User-Agent: okhttp/3.12.3 | ||
9 | + Authorization: Bearer ${get_m_accesstoken()} | ||
10 | + json: | ||
11 | + pageNumber: 1 | ||
12 | + method: POST | ||
13 | + url: /v1/admin/permission | ||
14 | +validate: | ||
15 | + - eq: | ||
16 | + - content.msg | ||
17 | + - ok |
1 | -name: 合伙人批量禁用:/v1/partners/batchDisabled | 1 | +name: 合伙人批量禁用/启用:/v1/partners/batchDisabled |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | id: | 4 | id: |
5 | - 1 | 5 | - 1 |
6 | - 2 | 6 | - 2 |
7 | + status: 1 | ||
7 | request: | 8 | request: |
8 | headers: | 9 | headers: |
9 | Content-Type: application/json;charset=utf-8 | 10 | Content-Type: application/json;charset=utf-8 |
@@ -11,6 +12,7 @@ request: | @@ -11,6 +12,7 @@ request: | ||
11 | Authorization: Bearer ${get_m_accesstoken()} | 12 | Authorization: Bearer ${get_m_accesstoken()} |
12 | json: | 13 | json: |
13 | id: $id | 14 | id: $id |
15 | + status: $status | ||
14 | method: POST | 16 | method: POST |
15 | url: /v1/partners/batchDisabled | 17 | url: /v1/partners/batchDisabled |
16 | validate: | 18 | validate: |
1 | -config: | ||
2 | - name: 新增管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员新增 | ||
14 | - api: api/m_api/admin/m_admin_update(new)_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | +config: | ||
2 | + name: ADMIN001-查看所有成员列表,数据正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 管理员列表 | ||
12 | + api: api/m_api/admin/m_admin_list_api.yml | ||
13 | + extract: | ||
14 | + - totalRow: content.data.gridResult.totalRow | ||
15 | + validate: | ||
16 | + - length_equals: | ||
17 | + - content.data.gridResult.lists | ||
18 | + - $totalRow |
1 | -config: | ||
2 | - name: 编辑管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员编辑 | ||
14 | - api: api/m_api/admin/m_admin_update(edit)_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok | ||
19 | - |
1 | +config: | ||
2 | + name: ADMIN002-查看成员列表-空列表返回正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 管理员列表 | ||
12 | + variables: | ||
13 | + searchText: '!@#$%' | ||
14 | + api: api/m_api/admin/m_admin_list_api.yml | ||
15 | + extract: | ||
16 | + - totalRow: content.data.gridResult.totalRow | ||
17 | + validate: | ||
18 | + - length_equals: | ||
19 | + - content.data.gridResult.lists | ||
20 | + - $totalRow | ||
21 | + - eq: | ||
22 | + - content.code | ||
23 | + - 0 |
1 | +config: | ||
2 | + name: ADMIN003-查看权限 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看登陆者权限 | ||
12 | + api: api/m_api/admin/m_admin_permission_api.yml | ||
13 | + validate: | ||
14 | + - length_equals: | ||
15 | + - content.data | ||
16 | + - 7 | ||
17 | + - eq: | ||
18 | + - content.code | ||
19 | + - 0 |
1 | -config: | ||
2 | - name: 搜索管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${convert_to_string(10000000001)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员搜索 | ||
14 | - api: api/m_api/admin/m_admin_list_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok | ||
19 | - - eq: | ||
20 | - - content.data.gridResult.lists.0.statue | ||
21 | - - 1 |
1 | -config: | ||
2 | - name: 查看管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员查看 | ||
14 | - api: api/m_api/admin/m_admin_detail_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok | ||
19 | - - eq: | ||
20 | - - content.data.status | ||
21 | - - 1 |
1 | -config: | ||
2 | - name: 禁用管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员禁用 | ||
14 | - api: api/m_api/admin/m_admin_forbidden_0_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 启用管理员 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 管理员启用 | ||
14 | - api: api/m_api/admin/m_admin_forbidden_1_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
@@ -29,7 +29,7 @@ teststeps: | @@ -29,7 +29,7 @@ teststeps: | ||
29 | - ok | 29 | - ok |
30 | 30 | ||
31 | - name: 查看实际订单列表 | 31 | - name: 查看实际订单列表 |
32 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | 32 | + api: api/m_api/actual/m_order_actual_list_api.yml |
33 | extract: | 33 | extract: |
34 | - actual_id: content.data.gridResult.lists.0.id | 34 | - actual_id: content.data.gridResult.lists.0.id |
35 | validate: | 35 | validate: |
@@ -140,7 +140,7 @@ teststeps: | @@ -140,7 +140,7 @@ teststeps: | ||
140 | - 1 | 140 | - 1 |
141 | 141 | ||
142 | - name: 查看实际订单列表 | 142 | - name: 查看实际订单列表 |
143 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | 143 | + api: api/m_api/actual/m_order_actual_list_api.yml |
144 | validate: | 144 | validate: |
145 | - eq: | 145 | - eq: |
146 | - content.data.gridResult.lists.0.id | 146 | - content.data.gridResult.lists.0.id |
@@ -136,7 +136,7 @@ teststeps: | @@ -136,7 +136,7 @@ teststeps: | ||
136 | - 1 | 136 | - 1 |
137 | 137 | ||
138 | - name: 查看实际订单列表 | 138 | - name: 查看实际订单列表 |
139 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | 139 | + api: api/m_api/actual/m_order_actual_list_api.yml |
140 | validate: | 140 | validate: |
141 | - eq: | 141 | - eq: |
142 | - content.data.gridResult.lists.0.id | 142 | - content.data.gridResult.lists.0.id |
@@ -167,7 +167,7 @@ teststeps: | @@ -167,7 +167,7 @@ teststeps: | ||
167 | - 1 | 167 | - 1 |
168 | 168 | ||
169 | - name: 查看实际订单列表 | 169 | - name: 查看实际订单列表 |
170 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | 170 | + api: api/m_api/actual/m_order_actual_list_api.yml |
171 | validate: | 171 | validate: |
172 | - eq: | 172 | - eq: |
173 | - content.data.gridResult.lists.0.id | 173 | - content.data.gridResult.lists.0.id |
@@ -25,7 +25,7 @@ teststeps: | @@ -25,7 +25,7 @@ teststeps: | ||
25 | - ok | 25 | - ok |
26 | 26 | ||
27 | - name: 查看实际订单列表 | 27 | - name: 查看实际订单列表 |
28 | - api: api/m_api/actual/m_order_actual_partner_list_api.yml | 28 | + api: api/m_api/actual/m_order_actual_list_api.yml |
29 | extract: | 29 | extract: |
30 | - actual_id: content.data.gridResult.lists.0.id | 30 | - actual_id: content.data.gridResult.lists.0.id |
31 | validate: | 31 | validate: |
1 | -config: | ||
2 | - name: 新增合伙人 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -#- name: $phone 登录系统 | ||
11 | -# testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 合伙人新增 | ||
14 | - api: api/m_api/partners/m_partner_add_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | +config: | ||
2 | + name: PARTNERS001-查看合伙人列表,数据正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看合伙列表 | ||
12 | + api: api/m_api/partners/m_partner_list_api.yml | ||
13 | + extract: | ||
14 | + - totalRow: content.data.gridResult.totalRow | ||
15 | + validate: | ||
16 | + - length_equals: | ||
17 | + - content.data.gridResult.lists | ||
18 | + - $totalRow |
1 | -config: | ||
2 | - name: 合伙人编辑 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 编辑合伙人 | ||
14 | - api: api/m_api/partners/m_partner_edit_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | +config: | ||
2 | + name: PARTNERS002-合伙人查询无数据时,返回正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看合伙列表 | ||
12 | + variables: | ||
13 | + partnerType: 2 | ||
14 | + partnerName: '!@#¥%' | ||
15 | + api: api/m_api/partners/m_partner_list_api.yml | ||
16 | + extract: | ||
17 | + - totalRow: content.data.gridResult.totalRow | ||
18 | + validate: | ||
19 | + - length_equals: | ||
20 | + - content.data.gridResult.lists | ||
21 | + - $totalRow |
1 | +config: | ||
2 | + name: PARTNERS003-合伙人批量禁用 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看合伙列表,获取合伙人id | ||
12 | + variables: | ||
13 | + partnerType: | ||
14 | + partnerName: '' | ||
15 | + api: api/m_api/partners/m_partner_list_api.yml | ||
16 | + extract: | ||
17 | + - totalRow: content.data.gridResult.totalRow | ||
18 | + - partner_id1: content.data.gridResult.lists.0.id | ||
19 | + - partner_id2: content.data.gridResult.lists.1.id | ||
20 | + validate: | ||
21 | + - length_equals: | ||
22 | + - content.data.gridResult.lists | ||
23 | + - $totalRow | ||
24 | + | ||
25 | +- name: 合伙人批量禁用 | ||
26 | + variables: | ||
27 | + id: | ||
28 | + - $partner_id1 | ||
29 | + - $partner_id2 | ||
30 | + status: 0 | ||
31 | + api: api/m_api/partners/m_partner_batchDisabled_api.yml | ||
32 | + validate: | ||
33 | + - equals: | ||
34 | + - content.code | ||
35 | + - 0 | ||
36 | + | ||
37 | + | ||
38 | +- name: 查看合伙人 $partner_id1 详情,状态为禁用 | ||
39 | + variables: | ||
40 | + id: $partner_id1 | ||
41 | + api: api/m_api/partners/m_partner_detail_api.yml | ||
42 | + validate: | ||
43 | + - eq: | ||
44 | + - content.data.state | ||
45 | + - 0 | ||
46 | + | ||
47 | +- name: 查看合伙人 $partner_id2 详情,状态为禁用 | ||
48 | + variables: | ||
49 | + id: $partner_id2 | ||
50 | + api: api/m_api/partners/m_partner_detail_api.yml | ||
51 | + validate: | ||
52 | + - eq: | ||
53 | + - content.data.state | ||
54 | + - 0 |
1 | -config: | ||
2 | - name: 搜索合伙类型 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - status: ${get_status_from_database()} | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/m_login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 搜索合伙类型 | ||
15 | - api: api/m_api/partners/m_partner_partnertype_list_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - ok | ||
20 | - - eq: | ||
21 | - - content.data.gridResult.lists.0.state | ||
22 | - - $status |
1 | +config: | ||
2 | + name: PARTNERS004-合伙人批量启用 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | +teststeps: | ||
6 | +- name: $phone 登录系统 | ||
7 | + variables: | ||
8 | + phone: ${ENV(adminphone)} | ||
9 | + testcase: testcases/common/m_login_testcases.yml | ||
10 | + | ||
11 | +- name: 查看合伙列表,获取合伙人id | ||
12 | + variables: | ||
13 | + partnerType: | ||
14 | + partnerName: '' | ||
15 | + api: api/m_api/partners/m_partner_list_api.yml | ||
16 | + extract: | ||
17 | + - totalRow: content.data.gridResult.totalRow | ||
18 | + - partner_id1: content.data.gridResult.lists.0.id | ||
19 | + - partner_id2: content.data.gridResult.lists.1.id | ||
20 | + validate: | ||
21 | + - length_equals: | ||
22 | + - content.data.gridResult.lists | ||
23 | + - $totalRow | ||
24 | + | ||
25 | +- name: 合伙人批量禁用 | ||
26 | + variables: | ||
27 | + id: | ||
28 | + - $partner_id1 | ||
29 | + - $partner_id2 | ||
30 | + status: 1 | ||
31 | + api: api/m_api/partners/m_partner_batchDisabled_api.yml | ||
32 | + validate: | ||
33 | + - equals: | ||
34 | + - content.code | ||
35 | + - 0 | ||
36 | + | ||
37 | + | ||
38 | +- name: 查看合伙人 $partner_id1 详情,状态为禁用 | ||
39 | + variables: | ||
40 | + id: $partner_id1 | ||
41 | + api: api/m_api/partners/m_partner_detail_api.yml | ||
42 | + validate: | ||
43 | + - eq: | ||
44 | + - content.data.state | ||
45 | + - 1 | ||
46 | + | ||
47 | +- name: 查看合伙人 $partner_id2 详情,状态为禁用 | ||
48 | + variables: | ||
49 | + id: $partner_id2 | ||
50 | + api: api/m_api/partners/m_partner_detail_api.yml | ||
51 | + validate: | ||
52 | + - eq: | ||
53 | + - content.data.state | ||
54 | + - 1 |
1 | -config: | ||
2 | - name: 搜索合伙人名称 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - status: ${get_status_from_database()} | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/m_login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 搜索合伙人名称 | ||
15 | - api: api/m_api/partners/m_partner_partnerName_list_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - ok | ||
20 | - - eq: | ||
21 | - - content.data.gridResult.lists.0.state | ||
22 | - - $status |
1 | -config: | ||
2 | - name: 查看合伙人 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - status: ${get_status_from_database()} | ||
7 | - teardown_hooks: | ||
8 | - - ${sleep(2)} | ||
9 | - | ||
10 | -teststeps: | ||
11 | -- name: $phone 登录系统 | ||
12 | - testcase: testcases/m_login_testcases.yml | ||
13 | - | ||
14 | -- name: $phone 查看合伙人 | ||
15 | - api: api/m_api/partners/m_partner_detail_api.yml | ||
16 | - validate: | ||
17 | - - eq: | ||
18 | - - content.msg | ||
19 | - - ok | ||
20 | - - eq: | ||
21 | - - content.data.state | ||
22 | - - $status |
1 | -config: | ||
2 | - name: 禁用合伙人 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 禁用合伙人 | ||
14 | - api: api/m_api/partners/m_partner_set-status_1_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
1 | -config: | ||
2 | - name: 启用合伙人 | ||
3 | - base_url: ${ENV(base_manager_url)} | ||
4 | - variables: | ||
5 | - phone: ${get_admin_account_from_database(admin_user)} | ||
6 | - teardown_hooks: | ||
7 | - - ${sleep(2)} | ||
8 | - | ||
9 | -teststeps: | ||
10 | -- name: $phone 登录系统 | ||
11 | - testcase: testcases/m_login_testcases.yml | ||
12 | - | ||
13 | -- name: $phone 启用合伙人 | ||
14 | - api: api/m_api/partners/m_partner_set-status_2_api.yml | ||
15 | - validate: | ||
16 | - - eq: | ||
17 | - - content.msg | ||
18 | - - ok |
@@ -33,3 +33,28 @@ testcases: | @@ -33,3 +33,28 @@ testcases: | ||
33 | # | 33 | # |
34 | #- name: PUR002-意向订单-发货(已废弃) | 34 | #- name: PUR002-意向订单-发货(已废弃) |
35 | # testcase: testcases/order/purpose/PUR002_pur_sendout_testcases.yml | 35 | # testcase: testcases/order/purpose/PUR002_pur_sendout_testcases.yml |
36 | + | ||
37 | +#################################合伙人管理开始################################ | ||
38 | +- name: PARTNERS001-查看合伙人列表,数据正确 | ||
39 | + testcase: testcases/partners/PARTNERS001_list_partner_testcases.yml | ||
40 | + | ||
41 | +- name: PARTNERS002-合伙人查询无数据时,返回正确 | ||
42 | + testcase: testcases/partners/PARTNERS002_list_partner_search_null_testcases.yml | ||
43 | + | ||
44 | +- name: PARTNERS003-合伙人批量禁用 | ||
45 | + testcase: testcases/partners/PARTNERS003_list_partner_batchDisabled_testcases.yml | ||
46 | + | ||
47 | +- name: PARTNERS004-合伙人批量启用 | ||
48 | + testcase: testcases/partners/PARTNERS004_list_partner_batchDisabled_testcases.yml | ||
49 | + | ||
50 | +#################################合伙人管理结束################################ | ||
51 | +#################################成员管理开始################################ | ||
52 | +- name: ADMIN001-查看所有成员列表,数据正确 | ||
53 | + testcase: testcases/admin/ADMIN001_list_admin_testcases.yml | ||
54 | + | ||
55 | +- name: ADMIN002-查看成员列表-空列表返回正确 | ||
56 | + testcase: testcases/admin/ADMIN002_list_admin_search_null_testcases.yml | ||
57 | + | ||
58 | +- name: ADMIN003-查看权限 | ||
59 | + testcase: testcases/admin/ADMIN003_list_admin_permission_testcases.yml | ||
60 | +#################################成员管理结束################################ |
-
请 注册 或 登录 后发表评论