order_statistics_testcases.yml
1.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
config:
name: 订单统计
base_url: ${ENV(base_manager_url)}
variables:
phone: ${get_partner_account_from_database(partner_info)}
todayIntentionQuantity: ${get_todayIntentionQuantity_from_database(order)}
todayIntentionMoney: ${get_todayIntentionMoney_from_database(order)}
todayRealQuantity: ${get_todayRealQuantity_from_database(order)}
todayRealMoney: ${get_todayRealMoney_from_database(order)}
cumulativeQuantity: ${get_cumulativeQuantity_from_database(order)}
cumulativeMoney: ${get_cumulativeMoney_from_database(order)}
msg: 成功
teardown_hooks:
- ${sleep(2)}
teststeps:
- name: $phone 登录系统
testcase: testcases/login_testcases.yml
- name: $phone 订单统计
api: api/app_api/order/statistics_api.yml
validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.statistics.cumulativeMoney
- $cumulativeMoney
- eq:
- content.data.statistics.cumulativeQuantity
- $cumulativeQuantity
- eq:
- content.data.statistics.todayIntentionMoney
- $todayIntentionMoney
- eq:
- content.data.statistics.todayIntentionQuantity
- $todayIntentionQuantity
- eq:
- content.data.statistics.todayRealMoney
- $todayRealMoney
- eq:
- content.data.statistics.todayRealQuantity
- $todayRealQuantity