COM012_loot_open_status_5_testcase.yml
1.2 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
config:
name: 抢单任务状态验证-已验收,已完成
teststeps:
- name: 抢单任务状态验证-已完成,待验收
testcase: testcases/common/COM011_loot_open_status_4_testcase.yml
- name: 用户列表
output:
- uid0
- name0
- uid1
- name1
- uid2
- name2
- uid15
- name15
api: api/m_api/common/user_api.yml
extract:
uid0: content.data.list.0.uid
name0: content.data.list.0.name
uid1: content.data.list.1.uid
name1: content.data.list.1.name
uid2: content.data.list.2.uid
name2: content.data.list.2.name
uid15: content.data.list.15.uid
name15: content.data.list.15.name
- name: 抢单任务验收
api: api/m_api/loot/loot_task_accept_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- ok
- name: 查看详情中的状态
api: api/m_api/loot/loot_detail_api.yml
variables:
status: ${get_task_status_5_from_database()}
msg: ok
varidate:
validate:
- eq:
- content.msg
- $msg
- eq:
- content.data.status
- $status