jxz_wc.yml
3.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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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_1_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 已成功参与竞标,等待中标!!
- name: 19990000008登录系统
variables:
phone: ${ENV(wpftwphone)}
testcase: testcases/login_testcases.yml
- name: 19990000008查看公司悬赏任务
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: 19990000008任务详情
output:
- uid
api: api/task_api/task/taskDetails_api.yml
extract:
uid: content.data.tasks.bidders.0.uid
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000008中标
api: api/task_api/task/bidTask_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 中标成功
- 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/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
- 获取详情成功
- name: 19990000011完成任务
api: api/task_api/task/taskfinishTask_api.yml
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 完成成功