jxz_gb.yml
1.6 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
config:
name: jxz:登录系统-查看公司悬赏任务-点击抢单
teststeps:
- name: 19990000011登录系统
variables:
phone: ${ENV(pfphone)}
testcase: testcases/login_testcases.yml
- name: 19990000011查看公司悬赏任务
output:
- id
api: api/task_api/task/rewards/rewards_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.id
- $id
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000011点击抢单
api: api/task_api/task/rewards/submitCompete_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 抢单成功!
- name: 19990000011查看进行中的任务
api: api/task_api/task/rewards/currentTasks_0_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000011任务详情
api: api/task_api/task/taskDetails_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.data.task.status
- 3
- eq:
- content.msg
- 获取详情成功