正在显示
5 个修改的文件
包含
109 行增加
和
3 行删除
@@ -10,6 +10,9 @@ variables: | @@ -10,6 +10,9 @@ variables: | ||
10 | partnerCategoryId: 1 | 10 | partnerCategoryId: 1 |
11 | # univalence2: 15 | 11 | # univalence2: 15 |
12 | # partnerRatio2: 20 | 12 | # partnerRatio2: 20 |
13 | + orderId: '实发订单号${get_stringcode(5)}' | ||
14 | + shipmentsId: '实发订单发货单号${get_stringcode(5)}' | ||
15 | + productName: 产品名称${get_stringcode(5)} | ||
13 | teardown_hooks: | 16 | teardown_hooks: |
14 | - ${sleep(2)} | 17 | - ${sleep(2)} |
15 | request: | 18 | request: |
@@ -18,15 +21,15 @@ request: | @@ -18,15 +21,15 @@ request: | ||
18 | User-Agent: okhttp/3.12.3 | 21 | User-Agent: okhttp/3.12.3 |
19 | Authorization: Bearer ${get_m_accesstoken()} | 22 | Authorization: Bearer ${get_m_accesstoken()} |
20 | json: | 23 | json: |
21 | - orderId: '实发订单号${get_stringcode(5)}' | ||
22 | - shipmentsId: '实发订单发货单号${get_stringcode(5)}' | 24 | + orderId: $orderId |
25 | + shipmentsId: $shipmentsId | ||
23 | partnerID: $partnerID | 26 | partnerID: $partnerID |
24 | partnerCategoryId: $partnerCategoryId | 27 | partnerCategoryId: $partnerCategoryId |
25 | buyer: '客户名称${get_stringcode(5)}' | 28 | buyer: '客户名称${get_stringcode(5)}' |
26 | orderDist: '订单区域${get_stringcode(5)}' | 29 | orderDist: '订单区域${get_stringcode(5)}' |
27 | commissionProportion: $commissionProportion | 30 | commissionProportion: $commissionProportion |
28 | product: | 31 | product: |
29 | - - productName: 产品名称${get_stringcode(5)} | 32 | + - productName: $productName |
30 | orderNum: $orderNum1 | 33 | orderNum: $orderNum1 |
31 | univalence: $univalence | 34 | univalence: $univalence |
32 | partnerRatio: $partnerRatio | 35 | partnerRatio: $partnerRatio |
1 | +config: | ||
2 | + name: ACT004-订单唯一性校验:新增订单号重复的实际订单,可以新增成功 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence: 15 | ||
9 | + partnerRatio: 10 | ||
10 | + orderNum2: 200 | ||
11 | + orderId: '实发订单号${get_stringcode(5)}' | ||
12 | +# univalence2: 15 | ||
13 | +# partnerRatio2: 20 | ||
14 | + | ||
15 | +teststeps: | ||
16 | + | ||
17 | +- name: 新增实际订单 | ||
18 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
19 | + | ||
20 | +- name: 新增实发订单 | ||
21 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
22 | + validate: | ||
23 | + - eq: | ||
24 | + - content.msg | ||
25 | + - ok |
1 | +config: | ||
2 | + name: ACT005-订单唯一性校验:新增发货单号重复的实际订单,可以新增成功 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence: 15 | ||
9 | + partnerRatio: 10 | ||
10 | + orderNum2: 200 | ||
11 | + shipmentsId: '实发订单发货单号${get_stringcode(5)}' | ||
12 | +# univalence2: 15 | ||
13 | +# partnerRatio2: 20 | ||
14 | + | ||
15 | +teststeps: | ||
16 | + | ||
17 | +- name: 新增实际订单 | ||
18 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
19 | + | ||
20 | +- name: 新增实发订单 | ||
21 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
22 | + validate: | ||
23 | + - eq: | ||
24 | + - content.msg | ||
25 | + - ok |
1 | +config: | ||
2 | + name: ACT006-订单唯一性校验:新增订单号+发货单号+合伙人ID+合伙人类型重复的实际订单,但是产品名称不同,可以新增成功 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence: 15 | ||
9 | + partnerRatio: 10 | ||
10 | + orderNum2: 200 | ||
11 | + orderId: '实发订单号${get_stringcode(5)}' | ||
12 | + shipmentsId: '实发订单发货单号${get_stringcode(5)}' | ||
13 | +# univalence2: 15 | ||
14 | +# partnerRatio2: 20 | ||
15 | + | ||
16 | +teststeps: | ||
17 | + | ||
18 | +- name: 新增实际订单 | ||
19 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
20 | + | ||
21 | +- name: 新增实发订单 | ||
22 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
23 | + validate: | ||
24 | + - eq: | ||
25 | + - content.msg | ||
26 | + - ok |
1 | +config: | ||
2 | + name: ACT007-订单唯一性校验:新增订单号+发货单号+合伙人ID+合伙人类型+产品名称重复的实际订单,不可以新增成功 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + partnerID: 1047 | ||
6 | + commissionProportion: 5 | ||
7 | + orderNum1: 100 | ||
8 | + univalence: 15 | ||
9 | + partnerRatio: 10 | ||
10 | + orderNum2: 200 | ||
11 | + orderId: '实发订单号${get_stringcode(5)}' | ||
12 | + shipmentsId: '实发订单发货单号${get_stringcode(5)}' | ||
13 | + productName: 产品名称${get_stringcode(5)} | ||
14 | +# univalence2: 15 | ||
15 | +# partnerRatio2: 20 | ||
16 | + | ||
17 | +teststeps: | ||
18 | + | ||
19 | +- name: 新增实际订单 | ||
20 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
21 | + | ||
22 | +- name: 新增实发订单 | ||
23 | + api: api/m_api/actual/m_add_order_actual_api.yml | ||
24 | + validate: | ||
25 | + - eq: | ||
26 | + - content.msg | ||
27 | + - 订单已存在 |
-
请 注册 或 登录 后发表评论