DIV006_dividends_edit_num_testcases.yml
6.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
config:
name: DIV006-分红管理-已支付订单数量减少
base_url: ${ENV(base_manager_url)}
variables:
stateOfPayment: 2
remark:
teststeps:
- name: 新增实际订单
testcase: testcases/common/COM001_actual_add_testcases.yml
output:
- actual_id
- product_id_1
- product_id_2
- name: 编辑分红-支付状态改为已支付
variables:
id: $actual_id
productId: $product_id_1
quantityControl: ''
api: api/m_api/dividends/m_dividends_edit_api.yml
validate:
- eq:
- content.msg
- ok
- name: 编辑事业分红-已支付订单数量减少
variables:
id: $actual_id
quantityControl: '60'
stateOfPayment: 2
productId: $product_id_1
api: api/m_api/dividends/m_dividends_edit_api.yml
validate:
- eq:
- content.msg
- ok
- name: 查看事业分红列表
api: api/m_api/dividends/m_dividends_list_api.yml
validate:
- eq:
- content.data.gridResult.lists.0.stateOfPayment
- 2
####应收分红
- eq:
- content.data.gridResult.lists.0.dividendsReceivable
- ${convert_to_string(390)}
####已收分红
- eq:
- content.data.gridResult.lists.0.receiveDividends
- ${convert_to_string(150)}
####未收分红
- eq:
- content.data.gridResult.lists.0.uncollectedDividends
- ${convert_to_string(300)}
####分红支出
- eq:
- content.data.gridResult.lists.0.dividendSpending
- ${convert_to_string(60)}
- name: 查看该订单的事业分红详情
variables:
id: ${convert_to_string($actual_id)}
api: api/m_api/dividends/m_dividends_detail_api.yml
validate:
- eq:
- content.data.order.id
- $actual_id
#####初始总数量
- eq:
- content.data.dividendCount.orderNum
- 300
#####初始总金额
- eq:
- content.data.dividendCount.orderAmountAdjustment
- 4500
#####调整后数量
- eq:
- content.data.dividendCount.orderNumControl
- ${convert_to_string(260)}
#####调整后总金额
- eq:
- content.data.dividendCount.orderAmountAdjustmentControl
- ${convert_to_string(3900)}
####业务员抽成
- eq:
- content.data.dividendCount.expectedCommission
- 195
#####合伙人应收分红总额
- eq:
- content.data.dividendCount.partnerDividends
- 450
#####合伙人应收分红总额调整
- eq:
- content.data.dividendCount.partnerDividendsControl
- ${convert_to_string(390)}
#####合伙人未收分红总额
- eq:
- content.data.dividendCount.notReceivedDividend
- 300
#####合伙人已收分红总额
- eq:
- content.data.dividendCount.receivedDividends
- 150
#####合伙人分红支出
- eq:
- content.data.dividendCount.dividendSpending
- 60
#####产品1是否正确
- eq:
- content.data.product.0.id
- $product_id_1
#####产品1总金额
- eq:
- content.data.product.0.detail.orderPrice
- 1500
#####产品1应收分红
- eq:
- content.data.product.0.detail.partnerDividendsReceivable
- 150
#####产品1数量调整
- eq:
- content.data.product.0.quantityControl
- ${convert_to_string(60)}
#####产品1金额调整
- eq:
- content.data.product.0.amountControl
- ${convert_to_string(900)}
#####产品1分红调整
- eq:
- content.data.product.0.partnerDividendControl
- ${convert_to_string(90)}
#####产品1未收分红
- eq:
- content.data.product.0.notReceivedDividend
- 0
#####产品1已收分红
- eq:
- content.data.product.0.receivedDividends
- 150
#####产品1分红支出
- eq:
- content.data.product.0.dividendSpending
- 60
#####产品1分红状态
- eq:
- content.data.product.0.stateOfPayment
- 2
#####产品2总金额
- eq:
- content.data.product.1.detail.orderPrice
- 3000
#####产品2应收分红
- eq:
- content.data.product.1.detail.partnerDividendsReceivable
- 300
#####产品2未收分红
- eq:
- content.data.product.1.notReceivedDividend
- 300
#####产品2分红状态
- eq:
- content.data.product.1.stateOfPayment
- 1
- name: 查看实际订单列表
api: api/m_api/actual/m_order_actual_list_api.yml
validate:
- eq:
- content.data.gridResult.lists.0.id
- $actual_id
###订单数量
- eq:
- content.data.gridResult.lists.0.orderNum
- 300
####订单数量调整
- eq:
- content.data.gridResult.lists.0.quantityControl
- ${convert_to_string(260)}
####订单金额
- eq:
- content.data.gridResult.lists.0.orderPrice
- 4500
####订单金额调整
- eq:
- content.data.gridResult.lists.0.priceControl
- ${convert_to_string(3900)}
- name: 查看实际订单详情
variables:
id: ${convert_to_string($actual_id)}
api: api/m_api/actual/m_order_actual_detail_api.yml
validate:
- eq:
- content.data.orderNumCount
- 300
- eq:
- content.data.orderAmountAdjustmentCount
- 4500
- eq:
- content.data.orderNumCountControl
- ${convert_to_string(260)}
- eq:
- content.data.orderAmountAdjustmentCountControl
- ${convert_to_string(3900)}
- eq:
- content.data.product.0.orderPrice
- 1500
- eq:
- content.data.product.0.quantityControl
- ${convert_to_string(60)}
- eq:
- content.data.product.0.priceControl
- ${convert_to_string(900)}
- eq:
- content.data.product.1.orderPrice
- 3000