loot_task_finishTask_testcase.yml
1.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
config:
name: 保存抢单任务-发布任务-确认领取人
#
teststeps:
#- name: 登录系统
# testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml
#
#- name: app端点击立即抢单
# testcase: testcases/task/task_rewards_taskDetails_testcase.yml
#
#- name: 确认领取人
# api: api/m_api/loot/loot_task_confirm_api.yml
## variables:
## id: ${get_task_id()}
# varidate:
# validate:
# - eq:
# - content.msg
# - ok
##-------------------------APP端完成抢单任务------------------------------
#- name: 完成任务
# testcase: testcases/task/task_finishTask_testcase.yml
#-------------------------web端验收抢单任务------------------------------
- name: 获取用户信息
output:
- uid0
- name0
- uid1
- name1
- uid2
- name2
- uid15
- name15
api: api/m_api/common/user_api.yml
teardown_hooks:
- ${teardown_hook_get_uid0($response)}
- ${teardown_hook_get_uid1($response)}
- ${teardown_hook_get_uid2($response)}
- ${teardown_hook_get_uid15($response)}
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
validate:
- eq:
- content.data.list.0.name
- $name0
- eq:
- content.data.list.1.name
- $name1
- eq:
- content.data.list.2.name
- $name2
- eq:
- content.data.list.15.name
- $name15
#- name: 验收任务
# api: api/m_api/loot/loot_task_accept_api.yml
- name: 验收任务
api: api/m_api/loot/loot_task_accept_api.yml