DIVI002_career_dividendslist_testcases.yml
4.9 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
config:
name: DIVI002-事业-调整数量-更改支付状态-统计值正确
base_url: ${ENV(base_manager_url)}
teststeps:
- name: 登录天联共创管理后台系统-分红管理-调整数量由100改为50-各个值计算正确
testcase: testcases/dividends/DIV004_1_app_dividends_editnum_testcases.yml
- name: 登录天联共创管理后台系统-分红管理-产品1支付分红成功,数据正确
testcase: testcases/dividends/DIV007_app_dividends_payDividends_testcases.yml
- name: 登录天联共创管理后台系统--分红管理-产品1支付分红成功后,调整数量由100改为50,数据正确
testcase: testcases/dividends/DIV008_app_dividends_payDividends_editnum_testcases.yml
- name: 登录天联共创管理后台系统--分红管理-批量支付分红成功,数据正确
testcase: testcases/dividends/DIV010_app_dividends_payDividends_batch_testcases.yml
- name: 查看实际订单列表
api: api/m_api/actual/m_order_actual_list_api.yml
extract:
#事业合伙
career_actual_list: content.data.gridResult.lists
career_partnerCategory: content.data.gridResult.lists.0.partnerCategory
output:
- career_actual_list
- career_partnerCategory
- name: 查看事业分红列表
variables:
partnerCategoryId: 1
orderType: 1
createTime: []
api: api/m_api/dividends/m_dividends_list_api.yml
extract:
#事业合伙
career_lists: content.data.gridResult.lists
career_totalRow: content.data.gridResult.totalRow
output:
- career_lists
- career_totalRow
- name: 查看业务分红列表
variables:
partnerCategoryId: 2
orderType: null
createTime: []
api: api/m_api/dividends/m_dividends_list_api.yml
extract:
#业务合伙
business_lists: content.data.gridResult.lists
output:
- business_lists
#
- name: 查看研发分红列表
variables:
partnerCategoryId: 3
orderType: null
createTime: []
api: api/m_api/dividends/m_dividends_list_api.yml
extract:
#研发合伙
develop_lists: content.data.gridResult.lists
output:
- develop_lists
#
- name: 查看业务-产品应用分红列表
variables:
partnerCategoryId: 4
orderType: null
createTime: []
api: api/m_api/dividends/m_dividends_list_api.yml
extract:
#业务-产品应用合伙
applicationOrders_lists: content.data.gridResult.lists
output:
- applicationOrders_lists
- name: 登录天联共创app端系统
####身份类型 1:合伙人 2:高管
variables:
idType: ${convert_to_int(1)}
testcase: testcases/app/common/app_login_testcases.yml
output:
- accessToken
- name: 查看分红统计
api: api/app_api/dividend/statistics_api.yml
extract:
quarters: content.data.statistics.quarters
output:
- quarters
validate:
#####累计所有年份应收分红
- eq:
- content.data.statistics.receivable
- ${statistics_func(dividendsReceivable,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
### ####累计所有年份已收分红
- eq:
- content.data.statistics.received
- ${statistics_func(receiveDividends,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
# ####累计所有年份未收分红
- eq:
- content.data.statistics.outstanding
- ${statistics_func(uncollectedDividends,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
## ####季度已收分红
- eq:
- ${get_quarters(received,$quarters)}
- ${statistics_func(receiveDividends,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
# ####季度应收分红
- eq:
- ${get_quarters(receivable,$quarters)}
- ${statistics_func(dividendsReceivable,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
# ####季度未收分红
- eq:
- ${get_quarters(outstanding,$quarters)}
- ${statistics_func(uncollectedDividends,$career_lists,$business_lists,$develop_lists,$applicationOrders_lists)}
#
- name: 查看订单统计
api: api/app_api/order/statistics_api.yml
validate:
# ###今日新增实发订单
- eq:
- content.data.career.todayRealQuantity
- $career_totalRow
# ####今日新增实发订单金额
- eq:
- content.data.career.todayRealMoney
- ${statistics_actual_func($career_partnerCategory,$career_actual_list)}
# ###累计实发订单
- eq:
- content.data.career.cumulativeQuantity
- $career_totalRow
###累计实发订单金额
- eq:
- content.data.career.cumulativeMoney
- ${statistics_actual_func($career_partnerCategory,$career_actual_list)}