正在显示
13 个修改的文件
包含
609 行增加
和
14 行删除
1 | +name: 分红管理—修改数量or合伙人分红比例 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + orderId: ${convert_to_string(1072)} | ||
5 | + state: 1 | ||
6 | + goodNumber: 50 | ||
7 | + partnerBonusPercent: 10 | ||
8 | + reason: '修改原因${get_stringcode(5)}' | ||
9 | + productId: ${convert_to_string(2132)} | ||
10 | +teardown_hooks: | ||
11 | + - ${sleep(1)} | ||
12 | +request: | ||
13 | + headers: | ||
14 | + Content-Type: application/json;charset=utf-8 | ||
15 | + User-Agent: okhttp/3.12.3 | ||
16 | + Authorization: Bearer ${get_m_accesstoken()} | ||
17 | + json: | ||
18 | + orderId: $orderId | ||
19 | + state: $state | ||
20 | + goodNumber: $goodNumber | ||
21 | + partnerBonusPercent: $partnerBonusPercent | ||
22 | + reason: $reason | ||
23 | + productId: $productId | ||
24 | + method: POST | ||
25 | + url: /v1/dividends/modify | ||
26 | +# extract: | ||
27 | +# - num: content.data.gridResult.totalRow | ||
28 | +validate: | ||
29 | + - eq: | ||
30 | + - content.msg | ||
31 | + - ok |
1 | +name: 分红管理—支付分红 | ||
2 | +base_url: ${ENV(base_manager_url)} | ||
3 | +variables: | ||
4 | + orderId: ${convert_to_string(1072)} | ||
5 | + productId: ${convert_to_string(2132)} | ||
6 | +teardown_hooks: | ||
7 | + - ${sleep(1)} | ||
8 | +request: | ||
9 | + headers: | ||
10 | + Content-Type: application/json;charset=utf-8 | ||
11 | + User-Agent: okhttp/3.12.3 | ||
12 | + Authorization: Bearer ${get_m_accesstoken()} | ||
13 | + json: | ||
14 | + orderId: $orderId | ||
15 | + productId: $productId | ||
16 | + method: POST | ||
17 | + url: /v1/dividends/payDividends | ||
18 | +# extract: | ||
19 | +# - num: content.data.gridResult.totalRow | ||
20 | +validate: | ||
21 | + - eq: | ||
22 | + - content.msg | ||
23 | + - ok |
1 | +config: | ||
2 | + name: DIV003_1-分红管理-初始状态-各个值计算正确 | ||
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 | +# partnerRatio2: 20 | ||
12 | + | ||
13 | +teststeps: | ||
14 | +- name: 新增实际订单 | ||
15 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
16 | + output: | ||
17 | + - actual_id | ||
18 | + | ||
19 | +- name: 查看该订单的分红详情 | ||
20 | + variables: | ||
21 | + id: ${convert_to_string($actual_id)} | ||
22 | + api: api/m_api/dividends/m_dividends_detail_api.yml | ||
23 | + validate: | ||
24 | + - eq: | ||
25 | + - content.data.order.id | ||
26 | + - ${convert_to_string($actual_id)} | ||
27 | + #####合伙人应收分红总额 | ||
28 | + - eq: | ||
29 | + - content.data.order.partnerDividends | ||
30 | + - ${cal_Ratio($partnerRatio, $univalence, $orderNum1, $orderNum2)} | ||
31 | + #####合伙人已收分红总额 | ||
32 | + - eq: | ||
33 | + - content.data.order.receivedDividends | ||
34 | + - 0 | ||
35 | + #####合伙人未收分红总额 | ||
36 | + - eq: | ||
37 | + - content.data.order.notReceivedDividend | ||
38 | + - ${cal_Ratio($partnerRatio, $univalence, $orderNum1, $orderNum2)} | ||
39 | + #####合伙人分红支出总额 | ||
40 | + - eq: | ||
41 | + - content.data.order.dividendSpending | ||
42 | + - 0 | ||
43 | + #####订单类型 | ||
44 | + - eq: | ||
45 | + - content.data.order.orderType | ||
46 | + - 1 | ||
47 | + #####产品1总金额 | ||
48 | + - eq: | ||
49 | + - content.data.product.0.detail.commodityPrice | ||
50 | + - ${convert_to_string(1500)} | ||
51 | + #####产品1应收分红 | ||
52 | + - eq: | ||
53 | + - content.data.product.0.detail.partnerDividends | ||
54 | + - ${cal_Ratio($partnerRatio, $univalence, $orderNum1)} | ||
55 | + #####产品1分红状态 | ||
56 | + - eq: | ||
57 | + - content.data.product.0.paymentStatus | ||
58 | + - 1 | ||
59 | + #####产品2总金额 | ||
60 | + - eq: | ||
61 | + - content.data.product.1.detail.commodityPrice | ||
62 | + - ${convert_to_string(3000)} | ||
63 | + #####产品2应收分红 | ||
64 | + - eq: | ||
65 | + - content.data.product.1.detail.partnerDividends | ||
66 | + - ${cal_Ratio($partnerRatio, $univalence, $orderNum2)} | ||
67 | + #####产品2分红状态 | ||
68 | + - eq: | ||
69 | + - content.data.product.1.stateOfPayment | ||
70 | + - 1 | ||
71 | + #####订单总数量 | ||
72 | + - eq: | ||
73 | + - content.data.product.orderNumCount | ||
74 | + - ${add($orderNum1,$orderNum2)} | ||
75 | + #####总金额 | ||
76 | + - eq: | ||
77 | + - content.data.product.orderAmountAdjustmentCount | ||
78 | + - ${cal_orderPrice($univalence, $orderNum1, $orderNum2)} | ||
79 | + ####合伙人应收分红合计 | ||
80 | + - eq: | ||
81 | + - content.data.product.partnerDividendsCount | ||
82 | + - ${cal_Ratio($partnerRatio, $univalence, $orderNum1, $orderNum2)} |
1 | +config: | ||
2 | + name: DIV004_1-分红管理-调整数量由100改为50-各个值计算正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + goodNumber: 50 | ||
6 | + | ||
7 | + | ||
8 | +teststeps: | ||
9 | +- name: 新增实际订单 | ||
10 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
11 | + output: | ||
12 | + - actual_id | ||
13 | + - product_id_1 | ||
14 | + - product_id_2 | ||
15 | + | ||
16 | +- name: 编辑分红-数量由100调整为50 | ||
17 | + variables: | ||
18 | + orderId: ${convert_to_string($actual_id)} | ||
19 | + state: 1 | ||
20 | + partnerBonusPercent: 10 | ||
21 | + reason: '修改原因${get_stringcode(5)}' | ||
22 | + productId: ${convert_to_string($product_id_1)} | ||
23 | + api: api/m_api/dividends/m_dividends_modify_api.yml | ||
24 | + validate: | ||
25 | + - eq: | ||
26 | + - content.msg | ||
27 | + - ok | ||
28 | + | ||
29 | +- name: 查看分红列表 | ||
30 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
31 | + validate: | ||
32 | + #####已支付状态=1 | ||
33 | + - eq: | ||
34 | + - content.data.gridResult.lists.0.stateOfPayment | ||
35 | + - 1 | ||
36 | + ######应收分红 | ||
37 | + - eq: | ||
38 | + - content.data.gridResult.lists.0.dividendsReceivable | ||
39 | + - ${convert_to_string(375)} | ||
40 | + #####已收分红 | ||
41 | + - eq: | ||
42 | + - content.data.gridResult.lists.0.receiveDividends | ||
43 | + - ${convert_to_string(0)} | ||
44 | + #####未收分红 | ||
45 | + - eq: | ||
46 | + - content.data.gridResult.lists.0.uncollectedDividends | ||
47 | + - ${convert_to_string(375)} | ||
48 | + | ||
49 | + | ||
50 | +- name: 查看该订单的分红详情 | ||
51 | + variables: | ||
52 | + id: ${convert_to_string($actual_id)} | ||
53 | + api: api/m_api/dividends/m_dividends_detail_api.yml | ||
54 | + validate: | ||
55 | + - eq: | ||
56 | + - content.data.order.id | ||
57 | + - ${convert_to_string($actual_id)} | ||
58 | + #####合伙人未收分红总额 | ||
59 | + - eq: | ||
60 | + - content.data.order.notReceivedDividend | ||
61 | + - 0 | ||
62 | + #####合伙人已收分红总额 | ||
63 | + - eq: | ||
64 | + - content.data.order.receivedDividends | ||
65 | + - 0 | ||
66 | + #####合伙人应收分红总额 | ||
67 | + - eq: | ||
68 | + - content.data.order.partnerDividends | ||
69 | + - 375 | ||
70 | + #####合伙人分红支出总额 | ||
71 | + - eq: | ||
72 | + - content.data.order.dividendSpending | ||
73 | + - 0 | ||
74 | + #####初始总数量 | ||
75 | + - eq: | ||
76 | + - content.data.product.orderNumCount | ||
77 | + - 250 | ||
78 | + #####初始总金额 | ||
79 | + - eq: | ||
80 | + - content.data.product.orderAmountAdjustmentCount | ||
81 | + - 3750 | ||
82 | + #####合伙人应收分红总额调整 | ||
83 | + - eq: | ||
84 | + - content.data.product.partnerDividendsCount | ||
85 | + - 375 | ||
86 | + #####产品1是否正确 | ||
87 | + - eq: | ||
88 | + - content.data.product.0.id | ||
89 | + - $product_id_1 | ||
90 | + #####产品1总金额 | ||
91 | + - eq: | ||
92 | + - content.data.product.0.detail.commodityPrice | ||
93 | + - 750 | ||
94 | + #####产品1应收分红 | ||
95 | + - eq: | ||
96 | + - content.data.product.0.detail.partnerDividends | ||
97 | + - 75 | ||
98 | + #####产品1数量调整 | ||
99 | + - eq: | ||
100 | + - content.data.product.0.orderNum | ||
101 | + - $goodNumber | ||
102 | + #####产品1分红状态 | ||
103 | + - eq: | ||
104 | + - content.data.product.0.stateOfPayment | ||
105 | + - 1 | ||
106 | + #####产品2总金额 | ||
107 | + - eq: | ||
108 | + - content.data.product.1.detail.commodityPrice | ||
109 | + - 3000 | ||
110 | + #####产品2应收分红 | ||
111 | + - eq: | ||
112 | + - content.data.product.1.detail.partnerDividends | ||
113 | + - 300 | ||
114 | + #####产品2分红状态 | ||
115 | + - eq: | ||
116 | + - content.data.product.1.stateOfPayment | ||
117 | + - 1 | ||
118 | + | ||
119 | +- name: 查看实际订单列表 | ||
120 | + api: api/m_api/actual/m_order_actual_list_api.yml | ||
121 | + validate: | ||
122 | + - eq: | ||
123 | + - content.data.gridResult.lists.0.id | ||
124 | + - $actual_id | ||
125 | + - eq: | ||
126 | + - content.data.gridResult.lists.0.orderNum | ||
127 | + - 300 | ||
128 | + - eq: | ||
129 | + - content.data.gridResult.lists.0.quantityControl | ||
130 | + - ${convert_to_string(250)} | ||
131 | + - eq: | ||
132 | + - content.data.gridResult.lists.0.orderPrice | ||
133 | + - 4500 | ||
134 | + - eq: | ||
135 | + - content.data.gridResult.lists.0.priceControl | ||
136 | + - ${convert_to_string(3750)} | ||
137 | + | ||
138 | +- name: 查看实际订单详情 | ||
139 | + variables: | ||
140 | + id: ${convert_to_string($actual_id)} | ||
141 | + api: api/m_api/actual/m_order_actual_detail_api.yml | ||
142 | + validate: | ||
143 | + - eq: | ||
144 | + - content.data.orderNumCount | ||
145 | + - 300 | ||
146 | + - eq: | ||
147 | + - content.data.orderAmountAdjustmentCount | ||
148 | + - 4500 | ||
149 | + - eq: | ||
150 | + - content.data.orderNumCountControl | ||
151 | + - ${convert_to_string(250)} | ||
152 | + - eq: | ||
153 | + - content.data.orderAmountAdjustmentCountControl | ||
154 | + - ${convert_to_string(3750)} | ||
155 | + - eq: | ||
156 | + - content.data.product.0.orderPrice | ||
157 | + - 1500 | ||
158 | + - eq: | ||
159 | + - content.data.product.0.quantityControl | ||
160 | + - $goodNumber | ||
161 | + - eq: | ||
162 | + - content.data.product.0.priceControl | ||
163 | + - ${convert_to_string(750)} | ||
164 | + - eq: | ||
165 | + - content.data.product.1.orderPrice | ||
166 | + - 3000 |
1 | config: | 1 | config: |
2 | - name: DIV005-事业分红-调整数量-更改支付状态-各个值计算正确 | 2 | + name: DIV005-分红管理-调整数量由100改为50-更改支付状态-各个值计算正确 |
3 | base_url: ${ENV(base_manager_url)} | 3 | base_url: ${ENV(base_manager_url)} |
4 | variables: | 4 | variables: |
5 | quantityControl: '50' | 5 | quantityControl: '50' |
@@ -15,7 +15,7 @@ teststeps: | @@ -15,7 +15,7 @@ teststeps: | ||
15 | - product_id_1 | 15 | - product_id_1 |
16 | - product_id_2 | 16 | - product_id_2 |
17 | 17 | ||
18 | -- name: 编辑事业分红-数量由100调整为50,支付状态改为已支付 | 18 | +- name: 编辑分红-数量由100调整为50,支付状态改为已支付 |
19 | variables: | 19 | variables: |
20 | id: $actual_id | 20 | id: $actual_id |
21 | productId: $product_id_1 | 21 | productId: $product_id_1 |
1 | config: | 1 | config: |
2 | - name: DIV006-事业分红-已支付订单数量减少 | 2 | + name: DIV006-分红管理-已支付订单数量减少 |
3 | base_url: ${ENV(base_manager_url)} | 3 | base_url: ${ENV(base_manager_url)} |
4 | variables: | 4 | variables: |
5 | stateOfPayment: 2 | 5 | stateOfPayment: 2 |
@@ -14,7 +14,7 @@ teststeps: | @@ -14,7 +14,7 @@ teststeps: | ||
14 | - product_id_1 | 14 | - product_id_1 |
15 | - product_id_2 | 15 | - product_id_2 |
16 | 16 | ||
17 | -- name: 编辑事业分红-支付状态改为已支付 | 17 | +- name: 编辑分红-支付状态改为已支付 |
18 | variables: | 18 | variables: |
19 | id: $actual_id | 19 | id: $actual_id |
20 | productId: $product_id_1 | 20 | productId: $product_id_1 |
1 | +config: | ||
2 | + name: DIV007-分红管理-产品1支付分红成功,数据正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + | ||
5 | + | ||
6 | +teststeps: | ||
7 | +- name: 新增实际订单 | ||
8 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
9 | + output: | ||
10 | + - actual_id | ||
11 | + - product_id_1 | ||
12 | + - product_id_2 | ||
13 | + | ||
14 | +- name: 支付分红 | ||
15 | + variables: | ||
16 | + orderId: ${convert_to_string($actual_id)} | ||
17 | + productId: ${convert_to_string($product_id_1)} | ||
18 | + api: api/m_api/dividends/m_dividends_payDividends_api.yml | ||
19 | + validate: | ||
20 | + - eq: | ||
21 | + - content.msg | ||
22 | + - ok | ||
23 | + | ||
24 | +- name: 查看分红列表 | ||
25 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
26 | + validate: | ||
27 | + #####已支付状态=1 | ||
28 | + - eq: | ||
29 | + - content.data.gridResult.lists.0.stateOfPayment | ||
30 | + - 2 | ||
31 | + ######应收分红 | ||
32 | + - eq: | ||
33 | + - content.data.gridResult.lists.0.dividendsReceivable | ||
34 | + - ${convert_to_string(450)} | ||
35 | + #####已收分红 | ||
36 | + - eq: | ||
37 | + - content.data.gridResult.lists.0.receiveDividends | ||
38 | + - ${convert_to_string(150)} | ||
39 | + #####未收分红 | ||
40 | + - eq: | ||
41 | + - content.data.gridResult.lists.0.uncollectedDividends | ||
42 | + - ${convert_to_string(300)} | ||
43 | + | ||
44 | + | ||
45 | +- name: 查看该订单的分红详情 | ||
46 | + variables: | ||
47 | + id: ${convert_to_string($actual_id)} | ||
48 | + api: api/m_api/dividends/m_dividends_detail_api.yml | ||
49 | + validate: | ||
50 | + - eq: | ||
51 | + - content.data.order.id | ||
52 | + - ${convert_to_string($actual_id)} | ||
53 | + #####合伙人应收分红总额 | ||
54 | + - eq: | ||
55 | + - content.data.order.partnerDividends | ||
56 | + - 450 | ||
57 | + #####合伙人未收分红总额 | ||
58 | + - eq: | ||
59 | + - content.data.order.notReceivedDividend | ||
60 | + - 300 | ||
61 | + #####合伙人已收分红总额 | ||
62 | + - eq: | ||
63 | + - content.data.order.receivedDividends | ||
64 | + - 150 | ||
65 | + #####合伙人分红支出总额 | ||
66 | + - eq: | ||
67 | + - content.data.order.dividendSpending | ||
68 | + - 0 | ||
69 | + #####产品1是否正确 | ||
70 | + - eq: | ||
71 | + - content.data.product.0.id | ||
72 | + - $product_id_1 | ||
73 | + #####产品1总金额 | ||
74 | + - eq: | ||
75 | + - content.data.product.0.detail.commodityPrice | ||
76 | + - 1500 | ||
77 | + #####产品1应收分红 | ||
78 | + - eq: | ||
79 | + - content.data.product.0.detail.partnerDividends | ||
80 | + - 150 | ||
81 | + #####产品1数量 | ||
82 | + - eq: | ||
83 | + - content.data.product.0.orderNum | ||
84 | + - 100 | ||
85 | + #####产品1分红状态 | ||
86 | + - eq: | ||
87 | + - content.data.product.0.stateOfPayment | ||
88 | + - 2 | ||
89 | + #####产品2总金额 | ||
90 | + - eq: | ||
91 | + - content.data.product.1.detail.commodityPrice | ||
92 | + - 3000 | ||
93 | + #####产品2应收分红 | ||
94 | + - eq: | ||
95 | + - content.data.product.1.detail.partnerDividends | ||
96 | + - 300 | ||
97 | + #####产品2分红状态 | ||
98 | + - eq: | ||
99 | + - content.data.product.1.stateOfPayment | ||
100 | + - 1 | ||
101 | + | ||
102 | +- name: 查看实际订单列表 | ||
103 | + api: api/m_api/actual/m_order_actual_list_api.yml | ||
104 | + validate: | ||
105 | + - eq: | ||
106 | + - content.data.gridResult.lists.0.id | ||
107 | + - $actual_id | ||
108 | + - eq: | ||
109 | + - content.data.gridResult.lists.0.orderNum | ||
110 | + - 300 | ||
111 | + - eq: | ||
112 | + - content.data.gridResult.lists.0.orderPrice | ||
113 | + - 4500 | ||
114 | + | ||
115 | +- name: 查看实际订单详情 | ||
116 | + variables: | ||
117 | + id: ${convert_to_string($actual_id)} | ||
118 | + api: api/m_api/actual/m_order_actual_detail_api.yml | ||
119 | + validate: | ||
120 | + - eq: | ||
121 | + - content.data.orderNumCount | ||
122 | + - 300 | ||
123 | + - eq: | ||
124 | + - content.data.orderAmountAdjustmentCount | ||
125 | + - 4500 | ||
126 | + - eq: | ||
127 | + - content.data.product.0.orderPrice | ||
128 | + - 1500 | ||
129 | + - eq: | ||
130 | + - content.data.product.1.orderPrice | ||
131 | + - 3000 |
1 | +config: | ||
2 | + name: DIV008-分红管理-产品1支付分红成功后,调整数量由100改为50,数据正确 | ||
3 | + base_url: ${ENV(base_manager_url)} | ||
4 | + variables: | ||
5 | + goodNumber: 50 | ||
6 | + | ||
7 | + | ||
8 | +teststeps: | ||
9 | +- name: 新增实际订单 | ||
10 | + testcase: testcases/common/COM001_actual_add_testcases.yml | ||
11 | + output: | ||
12 | + - actual_id | ||
13 | + - product_id_1 | ||
14 | + - product_id_2 | ||
15 | + | ||
16 | +- name: 支付分红 | ||
17 | + variables: | ||
18 | + orderId: ${convert_to_string($actual_id)} | ||
19 | + productId: ${convert_to_string($product_id_1)} | ||
20 | + api: api/m_api/dividends/m_dividends_payDividends_api.yml | ||
21 | + validate: | ||
22 | + - eq: | ||
23 | + - content.msg | ||
24 | + - ok | ||
25 | + | ||
26 | +- name: 编辑分红-数量由100调整为50 | ||
27 | + variables: | ||
28 | + orderId: ${convert_to_string($actual_id)} | ||
29 | + state: 1 | ||
30 | + partnerBonusPercent: 10 | ||
31 | + reason: '修改原因${get_stringcode(5)}' | ||
32 | + productId: ${convert_to_string($product_id_1)} | ||
33 | + api: api/m_api/dividends/m_dividends_modify_api.yml | ||
34 | + validate: | ||
35 | + - eq: | ||
36 | + - content.msg | ||
37 | + - ok | ||
38 | + | ||
39 | +- name: 查看分红列表 | ||
40 | + api: api/m_api/dividends/m_dividends_list_api.yml | ||
41 | + validate: | ||
42 | + #####已支付状态=1 | ||
43 | + - eq: | ||
44 | + - content.data.gridResult.lists.0.stateOfPayment | ||
45 | + - 2 | ||
46 | + ######应收分红 | ||
47 | + - eq: | ||
48 | + - content.data.gridResult.lists.0.dividendsReceivable | ||
49 | + - ${convert_to_string(375)} | ||
50 | + #####已收分红 | ||
51 | + - eq: | ||
52 | + - content.data.gridResult.lists.0.receiveDividends | ||
53 | + - ${convert_to_string(150)} | ||
54 | + #####未收分红 | ||
55 | + - eq: | ||
56 | + - content.data.gridResult.lists.0.uncollectedDividends | ||
57 | + - ${convert_to_string(300)} | ||
58 | + #####分红支出 | ||
59 | + - eq: | ||
60 | + - content.data.gridResult.lists.0.uncollectedDividends | ||
61 | + - ${convert_to_string(75)} | ||
62 | + | ||
63 | + | ||
64 | +- name: 查看该订单的分红详情 | ||
65 | + variables: | ||
66 | + id: ${convert_to_string($actual_id)} | ||
67 | + api: api/m_api/dividends/m_dividends_detail_api.yml | ||
68 | + validate: | ||
69 | + - eq: | ||
70 | + - content.data.order.id | ||
71 | + - ${convert_to_string($actual_id)} | ||
72 | + #####合伙人应收分红总额 | ||
73 | + - eq: | ||
74 | + - content.data.order.partnerDividends | ||
75 | + - 450 | ||
76 | + #####合伙人未收分红总额 | ||
77 | + - eq: | ||
78 | + - content.data.order.notReceivedDividend | ||
79 | + - 300 | ||
80 | + #####合伙人已收分红总额 | ||
81 | + - eq: | ||
82 | + - content.data.order.receivedDividends | ||
83 | + - 150 | ||
84 | + #####合伙人分红支出总额 | ||
85 | + - eq: | ||
86 | + - content.data.order.dividendSpending | ||
87 | + - 75 | ||
88 | + #####产品1是否正确 | ||
89 | + - eq: | ||
90 | + - content.data.product.0.id | ||
91 | + - $product_id_1 | ||
92 | + #####产品1总金额 | ||
93 | + - eq: | ||
94 | + - content.data.product.0.detail.commodityPrice | ||
95 | + - 1500 | ||
96 | + #####产品1应收分红 | ||
97 | + - eq: | ||
98 | + - content.data.product.0.detail.partnerDividends | ||
99 | + - 150 | ||
100 | + #####产品1数量 | ||
101 | + - eq: | ||
102 | + - content.data.product.0.orderNum | ||
103 | + - 100 | ||
104 | + #####产品1分红状态 | ||
105 | + - eq: | ||
106 | + - content.data.product.0.stateOfPayment | ||
107 | + - 2 | ||
108 | + #####产品2总金额 | ||
109 | + - eq: | ||
110 | + - content.data.product.1.detail.commodityPrice | ||
111 | + - 3000 | ||
112 | + #####产品2应收分红 | ||
113 | + - eq: | ||
114 | + - content.data.product.1.detail.partnerDividends | ||
115 | + - 300 | ||
116 | + #####产品2分红状态 | ||
117 | + - eq: | ||
118 | + - content.data.product.1.stateOfPayment | ||
119 | + - 1 | ||
120 | + | ||
121 | +- name: 查看实际订单列表 | ||
122 | + api: api/m_api/actual/m_order_actual_list_api.yml | ||
123 | + validate: | ||
124 | + - eq: | ||
125 | + - content.data.gridResult.lists.0.id | ||
126 | + - $actual_id | ||
127 | + - eq: | ||
128 | + - content.data.gridResult.lists.0.orderNum | ||
129 | + - 300 | ||
130 | + - eq: | ||
131 | + - content.data.gridResult.lists.0.orderPrice | ||
132 | + - 4500 | ||
133 | + | ||
134 | +- name: 查看实际订单详情 | ||
135 | + variables: | ||
136 | + id: ${convert_to_string($actual_id)} | ||
137 | + api: api/m_api/actual/m_order_actual_detail_api.yml | ||
138 | + validate: | ||
139 | + - eq: | ||
140 | + - content.data.orderNumCount | ||
141 | + - 300 | ||
142 | + - eq: | ||
143 | + - content.data.orderAmountAdjustmentCount | ||
144 | + - 4500 | ||
145 | + - eq: | ||
146 | + - content.data.product.0.orderPrice | ||
147 | + - 1500 | ||
148 | + - eq: | ||
149 | + - content.data.product.1.orderPrice | ||
150 | + - 3000 |
@@ -6,23 +6,35 @@ testcases: | @@ -6,23 +6,35 @@ testcases: | ||
6 | testcase: testcases/common/start_testcases.yml | 6 | testcase: testcases/common/start_testcases.yml |
7 | 7 | ||
8 | ############################分红管理模块开始################################# | 8 | ############################分红管理模块开始################################# |
9 | -- name: DIV001-事业分红列表-数据源来自于实发订单 | 9 | +- name: DIV001-分红列表-数据源来自于实发订单 |
10 | testcase: testcases/dividends/DIV001_dividendslist_testcases.yml | 10 | testcase: testcases/dividends/DIV001_dividendslist_testcases.yml |
11 | 11 | ||
12 | -#- name: DIV002-事业分红列表-数据源不来自于意向订单(已废弃) | 12 | +#- name: DIV002-分红列表-数据源不来自于意向订单 |
13 | # testcase: testcases/dividends/DIV002_dividendslist_testcases.yml | 13 | # testcase: testcases/dividends/DIV002_dividendslist_testcases.yml |
14 | 14 | ||
15 | -- name: DIV003-事业分红详情-初始状态-各个值计算正确 | 15 | +- name: DIV003-分红管理-初始状态-各个值计算正确(旧接口) |
16 | testcase: testcases/dividends/DIV003_dividends_cal_testcases.yml | 16 | testcase: testcases/dividends/DIV003_dividends_cal_testcases.yml |
17 | 17 | ||
18 | -- name: DIV004-事业分红-调整数量-各个值计算正确 | 18 | +- name: DIV003_1-分红管理-初始状态-各个值计算正确 |
19 | + testcase: testcases/dividends/DIV003_1_dividends_cal_testcases.yml | ||
20 | + | ||
21 | +- name: DIV004-分红管理-调整数量由100改为50-各个值计算正确(旧接口) | ||
19 | testcase: testcases/dividends/DIV004_dividends_editnum_testcases.yml | 22 | testcase: testcases/dividends/DIV004_dividends_editnum_testcases.yml |
20 | 23 | ||
21 | -- name: DIV005-事业分红-调整数量-更改支付状态-各个值计算正确 | 24 | +- name: DIV004_1-分红管理-调整数量由100改为50-各个值计算正确 |
25 | + testcase: testcases/dividends/DIV004_1_dividends_editnum_testcases.yml | ||
26 | + | ||
27 | +- name: DIV005-分红管理-调整数量由100改为50-更改支付状态-各个值计算正确(旧接口) | ||
22 | testcase: testcases/dividends/DIV005_dividends_edit_num_pay_testcases.yml | 28 | testcase: testcases/dividends/DIV005_dividends_edit_num_pay_testcases.yml |
23 | 29 | ||
24 | -- name: DIV006-事业分红-已支付订单数量减少 | 30 | +- name: DIV006-分红管理-已支付订单数量减少(旧接口) |
25 | testcase: testcases/dividends/DIV006_dividends_edit_num_testcases.yml | 31 | testcase: testcases/dividends/DIV006_dividends_edit_num_testcases.yml |
32 | + | ||
33 | +- name: DIV007-分红管理-产品1支付分红成功,数据正确 | ||
34 | + testcase: testcases/dividends/DIV007_dividends_payDividends_testcases.yml | ||
35 | + | ||
36 | +- name: DIV008-分红管理-产品1支付分红成功后,调整数量由100改为50,数据正确 | ||
37 | + testcase: testcases/dividends/DIV008_dividends_payDividends_editnum_testcases.yml | ||
26 | ############################分红管理模块结束################################## | 38 | ############################分红管理模块结束################################## |
27 | 39 | ||
28 | - name: ACT001-实际订单-各个值计算正确 | 40 | - name: ACT001-实际订单-各个值计算正确 |
-
请 注册 或 登录 后发表评论