正在显示
5 个修改的文件
包含
122 行增加
和
2 行删除
1 | name: 合伙人搜索——实际订单列表 | 1 | name: 合伙人搜索——实际订单列表 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | variables: | 3 | variables: |
4 | - searchText: '' | 4 | + partnerName: '' |
5 | + orderCode: '' | ||
6 | + deliveryCode: '' | ||
5 | partnerCategory: 1 | 7 | partnerCategory: 1 |
6 | updateTime: | 8 | updateTime: |
9 | + createTime: | ||
7 | request: | 10 | request: |
8 | headers: | 11 | headers: |
9 | Content-Type: application/json;charset=utf-8 | 12 | Content-Type: application/json;charset=utf-8 |
@@ -13,8 +16,11 @@ request: | @@ -13,8 +16,11 @@ request: | ||
13 | pageNumber: 1 | 16 | pageNumber: 1 |
14 | pageSize: 10 | 17 | pageSize: 10 |
15 | partnerCategory: $partnerCategory | 18 | partnerCategory: $partnerCategory |
16 | - searchText: $searchText | 19 | + partnerName: $partnerName |
17 | updateTime: $updateTime | 20 | updateTime: $updateTime |
21 | + createTime: $createTime | ||
22 | + orderCode: $orderCode | ||
23 | + deliveryCode: $deliveryCode | ||
18 | method: POST | 24 | method: POST |
19 | url: /v1/order/actual/list | 25 | url: /v1/order/actual/list |
20 | validate: | 26 | validate: |
api/m_api/admin/m_admin_detail_api.yml
0 → 100644
1 | +name: 管理员详情 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + id: 123456 | ||
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 | + id: $id | ||
12 | + method: POST | ||
13 | + url: /v1/admin/detail | ||
14 | +validate: | ||
15 | + - eq: | ||
16 | + - content.msg | ||
17 | + - ok |
api/m_api/admin/m_admin_update_api.yml
0 → 100644
1 | +name: 编辑用户 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + id: 123456 | ||
5 | + account: '19911111111' | ||
6 | + permissionType: | ||
7 | + status: 1 | ||
8 | + checkedPartner: | ||
9 | + isSenior: 2 | ||
10 | +request: | ||
11 | + headers: | ||
12 | + Content-Type: application/json;charset=utf-8 | ||
13 | + User-Agent: okhttp/3.12.3 | ||
14 | + Authorization: Bearer ${get_m_accesstoken()} | ||
15 | + json: | ||
16 | + id: $id | ||
17 | + account: $account | ||
18 | + permissionType: $permissionType | ||
19 | + status: $status | ||
20 | + checkedPartner: $checkedPartner | ||
21 | + isSenior: $isSenior | ||
22 | + method: POST | ||
23 | + url: /v1/admin/update | ||
24 | +validate: | ||
25 | + - eq: | ||
26 | + - content.msg | ||
27 | + - ok |
1 | +config: | ||
2 | + name: ADMIN004-管理员高管设置是否正确 | ||
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: 'autotester' | ||
14 | + api: api/m_api/admin/m_admin_list_api.yml | ||
15 | + extract: | ||
16 | + - totalRow: content.data.gridResult.totalRow | ||
17 | + - adminid: content.data.gridResult.lists.0.id | ||
18 | + validate: | ||
19 | + - length_equals: | ||
20 | + - content.data.gridResult.lists | ||
21 | + - $totalRow | ||
22 | + - equals: | ||
23 | + - content.data.gridResult.lists.0.isSenior | ||
24 | + - 1 | ||
25 | + | ||
26 | +- name: 查看用户详情 | ||
27 | + variables: | ||
28 | + id: $adminid | ||
29 | + api: api/m_api/admin/m_admin_detail_api.yml | ||
30 | + validate: | ||
31 | + - equals: | ||
32 | + - content.data.isSenior | ||
33 | + - 1 | ||
34 | + | ||
35 | +- name: 编辑用户,改为非高管 | ||
36 | + variables: | ||
37 | + id: $adminid | ||
38 | + isSenior: 2 | ||
39 | + api: api/m_api/admin/m_admin_update_api.yml | ||
40 | + validate: | ||
41 | + - equals: | ||
42 | + - content.code | ||
43 | + - 0 | ||
44 | + | ||
45 | +- name: 管理员列表 | ||
46 | + variables: | ||
47 | + searchText: 'autotester' | ||
48 | + api: api/m_api/admin/m_admin_list_api.yml | ||
49 | + extract: | ||
50 | + - totalRow: content.data.gridResult.totalRow | ||
51 | + - adminid: content.data.gridResult.lists.0.id | ||
52 | + validate: | ||
53 | + - length_equals: | ||
54 | + - content.data.gridResult.lists | ||
55 | + - $totalRow | ||
56 | + - equals: | ||
57 | + - content.data.gridResult.lists.0.isSenior | ||
58 | + - 2 | ||
59 | + | ||
60 | +- name: 查看用户详情 | ||
61 | + variables: | ||
62 | + id: $adminid | ||
63 | + api: api/m_api/admin/m_admin_detail_api.yml | ||
64 | + validate: | ||
65 | + - equals: | ||
66 | + - content.data.isSenior | ||
67 | + - 2 |
@@ -87,4 +87,7 @@ testcases: | @@ -87,4 +87,7 @@ testcases: | ||
87 | 87 | ||
88 | - name: ADMIN003-查看权限 | 88 | - name: ADMIN003-查看权限 |
89 | testcase: testcases/admin/ADMIN003_list_admin_permission_testcases.yml | 89 | testcase: testcases/admin/ADMIN003_list_admin_permission_testcases.yml |
90 | + | ||
91 | +- name: ADMIN004-管理员高管设置是否正确 | ||
92 | + testcase: testcases/admin/ADMIN004_admin_isSenior_testcases.yml | ||
90 | #################################成员管理结束################################ | 93 | #################################成员管理结束################################ |
-
请 注册 或 登录 后发表评论