QDRW005.yml
3.0 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
config:
name: RW003:登录系统-发布任务
teststeps:
- name: 19990000008发布任务
testcase: testcases/task/taskPublish_0_1_api.yml
- name: 19990000011登录系统-查看公司悬赏任务-点击抢单
variables:
phone: ${ENV(pfphone)}
testcase: testcases/task/jxz/jxz_wc.yml
- name: 19990000008登录系统
variables:
phone: ${ENV(wpftwphone)}
testcase: testcases/login_testcases.yml
- name: 19990000008查看任务-我发布的-待验收
output:
- id
api: api/task_api/task/iPublishedTasks_3_api.yml
extract:
id: content.data.tasks.0.id
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取成功
- name: 19990000008任务详情
output:
- rType
- refResources_id
- serialNo
- title
api: api/task_api/task/taskDetails_api.yml
extract:
rType: content.data.task.refResources.0.rType
refResources_id: content.data.task.refResources.0.id
serialNo: content.data.task.refResources.0.serialNo
title: content.data.task.refResources.0.title
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 获取详情成功
- name: 19990000008查找企业所有员工
output:
- uid0
- uname0
- uid1
- uname1
- uid8
- uname8
- uid11
- uname11
api: api/task_api/task/employee/allEmployees_api.yml
extract:
uid0: content.data.employees.0.uid
uname0: content.data.employees.0.uname
uid1: content.data.employees.1.uid
uname1: content.data.employees.1.uname
uid8: content.data.employees.8.uid
uname8: content.data.employees.8.uname
uid11: content.data.employees.11.uid
uname11: content.data.employees.11.uname
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- 查找成功
#- name: 19990000008我要验收
# api: api/task_api/task/taskcheckAccept_api.yml
# validate:
# - eq:
# - content.code
# - 0
# - eq:
# - content.msg
# - 验收成功
#
#- name: 19990000008查看已完成的任务
# output:
# - id
# api: api/task_api/task/rewards/currentTasks_1_api.yml
# extract:
# id: content.data.tasks.0.id
# validate:
# - eq:
# - content.code
# - 0
# - eq:
# - content.msg
# - 获取成功
#
#- name: 19990000008查看已完成的任务详情
# api: api/task_api/task/taskDetails_api.yml
# validate:
# - eq:
# - content.data.task.status
# - 5
# - eq:
# - content.code
# - 0
# - eq:
# - content.msg
# - 获取详情成功