正在显示
5 个修改的文件
包含
119 行增加
和
3 行删除
1 | name: 合伙人添加 | 1 | name: 合伙人添加 |
2 | base_url: ${ENV(base_manager_url)} | 2 | base_url: ${ENV(base_manager_url)} |
3 | -times: 50 | 3 | +#times: 50 |
4 | teardown_hooks: | 4 | teardown_hooks: |
5 | - ${sleep(1)} | 5 | - ${sleep(1)} |
6 | request: | 6 | request: |
@@ -10,13 +10,22 @@ request: | @@ -10,13 +10,22 @@ request: | ||
10 | Authorization: Bearer ${get_m_accesstoken()} | 10 | Authorization: Bearer ${get_m_accesstoken()} |
11 | json: | 11 | json: |
12 | partnerName: '合伙人姓名${get_stringcode(5)}' | 12 | partnerName: '合伙人姓名${get_stringcode(5)}' |
13 | - partnerType: [1,2,3,4] | 13 | + partnerType: |
14 | + - id: 1 | ||
15 | + code: 事业合伙人编号${get_stringcode(8)} | ||
16 | + - id: 2 | ||
17 | + code: 业务合伙人编号${get_stringcode(8)} | ||
18 | + - id: 3 | ||
19 | + code: 研发合伙人编号${get_stringcode(8)} | ||
20 | + - id: 4 | ||
21 | + code: 业务产品应用合伙人编号${get_stringcode(8)} | ||
14 | area: '合伙人所属区域${get_stringcode(5)}' | 22 | area: '合伙人所属区域${get_stringcode(5)}' |
15 | account: 155${get_randint(10000000,99999999)} | 23 | account: 155${get_randint(10000000,99999999)} |
16 | state: 1 | 24 | state: 1 |
17 | cooperationTime: ${get_today()} | 25 | cooperationTime: ${get_today()} |
18 | salesmanName: '业务员姓名${get_stringcode(5)}' | 26 | salesmanName: '业务员姓名${get_stringcode(5)}' |
19 | phone: 155${get_randint(10000000,99999999)} | 27 | phone: 155${get_randint(10000000,99999999)} |
28 | + remark: '系统自动添加' | ||
20 | method: POST | 29 | method: POST |
21 | url: /v1/partners/add | 30 | url: /v1/partners/add |
22 | validate: | 31 | validate: |
@@ -9,7 +9,11 @@ request: | @@ -9,7 +9,11 @@ request: | ||
9 | Authorization: Bearer ${get_m_accesstoken()} | 9 | Authorization: Bearer ${get_m_accesstoken()} |
10 | json: | 10 | json: |
11 | partnerName: '合伙人姓名修改${get_stringcode(5)}' | 11 | partnerName: '合伙人姓名修改${get_stringcode(5)}' |
12 | - partnerType: [1,2,3,4] | 12 | + partnerType: |
13 | + - id: 1 | ||
14 | + code: 事业合伙人编号${get_stringcode(8)} | ||
15 | + - id: 2 | ||
16 | + code: 业务合伙人编号${get_stringcode(8)} | ||
13 | area: '合伙人所属区域修改${get_stringcode(5)}' | 17 | area: '合伙人所属区域修改${get_stringcode(5)}' |
14 | account: 155${get_randint(10000000,99999999)} | 18 | account: 155${get_randint(10000000,99999999)} |
15 | state: 0 | 19 | state: 0 |
@@ -17,6 +21,7 @@ request: | @@ -17,6 +21,7 @@ request: | ||
17 | salesmanName: '业务员姓名修改${get_stringcode(5)}' | 21 | salesmanName: '业务员姓名修改${get_stringcode(5)}' |
18 | phone: 155${get_randint(10000000,99999999)} | 22 | phone: 155${get_randint(10000000,99999999)} |
19 | id: $id | 23 | id: $id |
24 | + remark: '系统自动修改' | ||
20 | method: POST | 25 | method: POST |
21 | url: /v1/partners/edit | 26 | url: /v1/partners/edit |
22 | validate: | 27 | validate: |
api/m_api/partners/m_partner_remove_api.yml
0 → 100644
1 | +name: 合伙人移除 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + id: 1172 | ||
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/partners/remove | ||
14 | +validate: | ||
15 | + - eq: | ||
16 | + - content.msg | ||
17 | + - ok |
1 | +config: | ||
2 | + name: PARTNERS005-合伙人增删改查流程 | ||
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_add_api.yml | ||
13 | + extract: | ||
14 | + - partnerid: content.data.id | ||
15 | + validate: | ||
16 | + - equals: | ||
17 | + - content.msg | ||
18 | + - ok | ||
19 | + | ||
20 | +- name: 查看合伙列表 | ||
21 | + variables: | ||
22 | + partnerType: | ||
23 | + partnerName: '' | ||
24 | + api: api/m_api/partners/m_partner_list_api.yml | ||
25 | +# extract: | ||
26 | +# - totalRow: content.data.gridResult.totalRow | ||
27 | + validate: | ||
28 | + - equals: | ||
29 | + - content.data.gridResult.lists.0.id | ||
30 | + - $partnerid | ||
31 | + - length_equals: | ||
32 | + - content.data.gridResult.lists.0.partnerType | ||
33 | + - 4 | ||
34 | + | ||
35 | + | ||
36 | +- name: 编辑合伙人 | ||
37 | + variables: | ||
38 | + id: $partnerid | ||
39 | + api: api/m_api/partners/m_partner_edit_api.yml | ||
40 | + validate: | ||
41 | + - equals: | ||
42 | + - content.msg | ||
43 | + - ok | ||
44 | + | ||
45 | + | ||
46 | +- name: 查看合伙列表 | ||
47 | + variables: | ||
48 | + partnerType: | ||
49 | + partnerName: '' | ||
50 | + api: api/m_api/partners/m_partner_list_api.yml | ||
51 | +# extract: | ||
52 | +# - totalRow: content.data.gridResult.totalRow | ||
53 | + validate: | ||
54 | + - equals: | ||
55 | + - content.data.gridResult.lists.0.id | ||
56 | + - $partnerid | ||
57 | + - length_equals: | ||
58 | + - content.data.gridResult.lists.0.partnerType | ||
59 | + - 2 | ||
60 | + | ||
61 | + | ||
62 | +- name: 删除合伙人 | ||
63 | + variables: | ||
64 | + id: $partnerid | ||
65 | + api: api/m_api/partners/m_partner_remove_api.yml | ||
66 | + validate: | ||
67 | + - equals: | ||
68 | + - content.msg | ||
69 | + - ok | ||
70 | + | ||
71 | + | ||
72 | +- name: 查看合伙列表 | ||
73 | + variables: | ||
74 | + partnerType: | ||
75 | + partnerName: '' | ||
76 | + api: api/m_api/partners/m_partner_list_api.yml | ||
77 | +# extract: | ||
78 | +# - totalRow: content.data.gridResult.totalRow | ||
79 | + validate: | ||
80 | + - not_equals: | ||
81 | + - content.data.gridResult.lists.0.id | ||
82 | + - $partnerid |
@@ -71,6 +71,9 @@ testcases: | @@ -71,6 +71,9 @@ testcases: | ||
71 | - name: PARTNERS004-合伙人批量启用 | 71 | - name: PARTNERS004-合伙人批量启用 |
72 | testcase: testcases/partners/PARTNERS004_list_partner_batchDisabled_testcases.yml | 72 | testcase: testcases/partners/PARTNERS004_list_partner_batchDisabled_testcases.yml |
73 | 73 | ||
74 | +- name: PARTNERS005-合伙人增删改查流程 | ||
75 | + testcase: testcases/partners/PARTNERS005_partner_testcases.yml | ||
76 | + | ||
74 | #################################合伙人管理结束################################ | 77 | #################################合伙人管理结束################################ |
75 | #################################成员管理开始################################ | 78 | #################################成员管理开始################################ |
76 | - name: ADMIN001-查看所有成员列表,数据正确 | 79 | - name: ADMIN001-查看所有成员列表,数据正确 |
-
请 注册 或 登录 后发表评论