正在显示
9 个修改的文件
包含
696 行增加
和
2 行删除
api/app_api/task_api/rejectReceiver_api.yml
0 → 100644
1 | +name: 驳回领取人 | ||
2 | +base_url: ${ENV(base_url)} | ||
3 | +verify: False | ||
4 | +variables: | ||
5 | + currtime: ${make_time()} | ||
6 | + uuid: ${make_uuid()} | ||
7 | + access_token: ${get_task_accesstoken()} | ||
8 | + sign: ${make_sign($currtime, $uuid, $access_token)} | ||
9 | + taskId: 123456 | ||
10 | + reason: 666777 | ||
11 | +request: | ||
12 | + headers: | ||
13 | + Content-Type: application/json;charset=utf-8 | ||
14 | + User-Agent: okhttp/3.12.3 | ||
15 | + X-MMM-AccessToken: $access_token | ||
16 | + X-MMM-AppName: com.mmm.ability | ||
17 | + X-MMM-AppProject: ability | ||
18 | + X-MMM-DeviceType: '0' | ||
19 | + X-MMM-Sign: $sign | ||
20 | + X-MMM-Timestamp: $currtime | ||
21 | + X-MMM-Uuid: $uuid | ||
22 | + X-MMM-Version: 1.0.0 | ||
23 | + json: | ||
24 | + taskId: $taskId | ||
25 | + reason: $reason | ||
26 | + method: POST | ||
27 | + url: /v1/task/rejectReceiver | ||
28 | +validate: | ||
29 | + - eq: | ||
30 | + - content.code | ||
31 | + - 0 |
@@ -56,7 +56,7 @@ def sendinfo(): | @@ -56,7 +56,7 @@ def sendinfo(): | ||
56 | # '\n 执行时间:' + str(r[4]) + \ | 56 | # '\n 执行时间:' + str(r[4]) + \ |
57 | # 's\n TOTAL:' + str(r[1]) + '\n SUCCESS:' + str(r[2]) + '\n FAIL:' + str(r[3]) | 57 | # 's\n TOTAL:' + str(r[1]) + '\n SUCCESS:' + str(r[2]) + '\n FAIL:' + str(r[3]) |
58 | 58 | ||
59 | - url = 'https://oapi.dingtalk.com/robot/send?access_token=9a52a7e69fd1bd7cb01e86bf0577af4d74dc15a50f1b17234c50ec2df856021e' | 59 | + url = 'https://oapi.dingtalk.com/robot/send?access_token=fe977b6b42e09ed386cfa312117505939c80faae50f046b3563050bede02ac8f' |
60 | headers = {'Content-Type': 'application/json'} | 60 | headers = {'Content-Type': 'application/json'} |
61 | 61 | ||
62 | requests.post(url, json=data, headers=headers) | 62 | requests.post(url, json=data, headers=headers) |
1 | +config: | ||
2 | + name: ME020-指派我的-任务数量统计校验 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '指派任务标题${get_nowtime()}' | ||
6 | + content: '指派任务内容${get_nowtime()}' | ||
7 | + acceptability: '指派任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + variables: | ||
14 | + phone: ${ENV(phone1)} | ||
15 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
16 | + | ||
17 | +- name: 第一次查看我领取的、指派我的 | ||
18 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
19 | + extract: | ||
20 | + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify | ||
21 | + - iGetInProgress: content.data.taskMsg.iGetInProgress | ||
22 | + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance | ||
23 | + - iGetCompleted: content.data.taskMsg.iGetCompleted | ||
24 | + - assignMeInProgress: content.data.taskMsg.assignMeInProgress | ||
25 | + - assignMeWaitAcceptance: content.data.taskMsg.assignMeWaitAcceptance | ||
26 | + - assignMeCompleted: content.data.taskMsg.assignMeCompleted | ||
27 | + | ||
28 | +- name: $phone 登录系统 | ||
29 | + variables: | ||
30 | + phone: ${ENV(phone2)} | ||
31 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
32 | + | ||
33 | + | ||
34 | +- name: 发布指派任务 | ||
35 | + variables: | ||
36 | + action: 1 | ||
37 | + type: 2 | ||
38 | + plannedFinishDate: ${get_endtime()} | ||
39 | + uid: 3284714710070272 | ||
40 | + uname: '价值系统账号1' | ||
41 | + api: api/app_api/task_api/taskPublish_api.yml | ||
42 | + | ||
43 | +- name: $phone 登录系统 | ||
44 | + variables: | ||
45 | + phone: ${ENV(phone1)} | ||
46 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
47 | + | ||
48 | +- name: 第二次查看我领取的、指派我的-进行中+1 | ||
49 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
50 | + validate: | ||
51 | + - eq: | ||
52 | + - content.data.taskMsg.iGetWaitVerify | ||
53 | + - ${add($iGetWaitVerify,0)} | ||
54 | + - eq: | ||
55 | + - content.data.taskMsg.iGetInProgress | ||
56 | + - ${add($iGetInProgress,0)} | ||
57 | + - eq: | ||
58 | + - content.data.taskMsg.iGetWaitAcceptance | ||
59 | + - ${add($iGetWaitAcceptance,0)} | ||
60 | + - eq: | ||
61 | + - content.data.taskMsg.iGetCompleted | ||
62 | + - ${add($iGetCompleted,0)} | ||
63 | + - eq: | ||
64 | + - content.data.taskMsg.assignMeInProgress | ||
65 | + - ${add($assignMeInProgress,1)} | ||
66 | + - eq: | ||
67 | + - content.data.taskMsg.assignMeWaitAcceptance | ||
68 | + - ${add($assignMeWaitAcceptance,0)} | ||
69 | + - eq: | ||
70 | + - content.data.taskMsg.assignMeCompleted | ||
71 | + - ${add($assignMeCompleted,0)} | ||
72 | + | ||
73 | +- name: 查看指派我的-进行中 | ||
74 | + variables: | ||
75 | + action: 0 | ||
76 | + api: api/app_api/task_api/AssignMeTasks_api.yml | ||
77 | + extract: | ||
78 | + - tasks_id: content.data.tasks.0.id | ||
79 | + validate: | ||
80 | + - eq: | ||
81 | + - content.data.tasks.0.title | ||
82 | + - $title | ||
83 | + | ||
84 | +- name: 完成任务 | ||
85 | + variables: | ||
86 | + id: $tasks_id | ||
87 | + api: api/app_api/task_api/finishTask_api.yml | ||
88 | + validate: | ||
89 | + - eq: | ||
90 | + - content.msg | ||
91 | + - 完成成功 | ||
92 | + | ||
93 | + | ||
94 | +- name: 查看我领取的、指派我的-进行中恢复初始状态,待验收+1 | ||
95 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
96 | + validate: | ||
97 | + - eq: | ||
98 | + - content.data.taskMsg.iGetWaitVerify | ||
99 | + - ${add($iGetWaitVerify,0)} | ||
100 | + - eq: | ||
101 | + - content.data.taskMsg.iGetInProgress | ||
102 | + - ${add($iGetInProgress,0)} | ||
103 | + - eq: | ||
104 | + - content.data.taskMsg.iGetWaitAcceptance | ||
105 | + - ${add($iGetWaitAcceptance,0)} | ||
106 | + - eq: | ||
107 | + - content.data.taskMsg.iGetCompleted | ||
108 | + - ${add($iGetCompleted,0)} | ||
109 | + - eq: | ||
110 | + - content.data.taskMsg.assignMeInProgress | ||
111 | + - ${add($assignMeInProgress,0)} | ||
112 | + - eq: | ||
113 | + - content.data.taskMsg.assignMeWaitAcceptance | ||
114 | + - ${add($assignMeWaitAcceptance,1)} | ||
115 | + - eq: | ||
116 | + - content.data.taskMsg.assignMeCompleted | ||
117 | + - ${add($assignMeCompleted,0)} | ||
118 | + | ||
119 | +- name: $phone 登录系统 | ||
120 | + variables: | ||
121 | + phone: ${ENV(phone2)} | ||
122 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
123 | + | ||
124 | +- name: 验收任务 | ||
125 | + variables: | ||
126 | + id: $tasks_id | ||
127 | + actualFinishDate: ${get_endtime()} | ||
128 | + api: api/app_api/task_api/checkAccept_api.yml | ||
129 | + validate: | ||
130 | + - eq: | ||
131 | + - content.msg | ||
132 | + - 验收成功 | ||
133 | + | ||
134 | +- name: $phone 登录系统 | ||
135 | + variables: | ||
136 | + phone: ${ENV(phone1)} | ||
137 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
138 | + | ||
139 | +- name: 查看我领取的、指派我的-待验收恢复初始状态,已完成+1 | ||
140 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
141 | + validate: | ||
142 | + - eq: | ||
143 | + - content.data.taskMsg.iGetWaitVerify | ||
144 | + - ${add($iGetWaitVerify,0)} | ||
145 | + - eq: | ||
146 | + - content.data.taskMsg.iGetInProgress | ||
147 | + - ${add($iGetInProgress,0)} | ||
148 | + - eq: | ||
149 | + - content.data.taskMsg.iGetWaitAcceptance | ||
150 | + - ${add($iGetWaitAcceptance,0)} | ||
151 | + - eq: | ||
152 | + - content.data.taskMsg.iGetCompleted | ||
153 | + - ${add($iGetCompleted,0)} | ||
154 | + - eq: | ||
155 | + - content.data.taskMsg.assignMeInProgress | ||
156 | + - ${add($assignMeInProgress,0)} | ||
157 | + - eq: | ||
158 | + - content.data.taskMsg.assignMeWaitAcceptance | ||
159 | + - ${add($assignMeWaitAcceptance,0)} | ||
160 | + - eq: | ||
161 | + - content.data.taskMsg.assignMeCompleted | ||
162 | + - ${add($assignMeCompleted,1)} |
1 | +config: | ||
2 | + name: ME021-抢单任务驳回后-我领取的-待确认-1 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '抢单任务标题${get_nowtime()}' | ||
6 | + content: '抢单任务内容${get_nowtime()}' | ||
7 | + acceptability: '抢单任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + variables: | ||
14 | + phone: ${ENV(phone2)} | ||
15 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
16 | + | ||
17 | +- name: 发布抢单任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + api: api/app_api/task_api/taskPublish_api.yml | ||
21 | + | ||
22 | + | ||
23 | +- name: $phone 登录系统 | ||
24 | + variables: | ||
25 | + phone: ${ENV(phone1)} | ||
26 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
27 | + | ||
28 | +- name: 查看抢单任务列表 | ||
29 | + variables: | ||
30 | + action: 0 | ||
31 | + newest: 1 | ||
32 | + api: api/app_api/task_api/contendTasks_api.yml | ||
33 | + extract: | ||
34 | + - tasks_id: content.data.tasks.0.id | ||
35 | + validate: | ||
36 | + - eq: | ||
37 | + - content.data.tasks.0.title | ||
38 | + - $title | ||
39 | + | ||
40 | +- name: 领取任务 | ||
41 | + variables: | ||
42 | + action: 0 | ||
43 | + id: $tasks_id | ||
44 | + api: api/app_api/task_api/submitCompete_api.yml | ||
45 | + | ||
46 | +- name: 第一次查看我领取的 | ||
47 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
48 | + extract: | ||
49 | + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify | ||
50 | + - iGetInProgress: content.data.taskMsg.iGetInProgress | ||
51 | + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance | ||
52 | + - iGetCompleted: content.data.taskMsg.iGetCompleted | ||
53 | + | ||
54 | +- name: $phone 登录系统 | ||
55 | + variables: | ||
56 | + phone: ${ENV(phone2)} | ||
57 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
58 | + | ||
59 | +- name: 查看我发布的-待确认 | ||
60 | + variables: | ||
61 | + action: 5 | ||
62 | + api: api/app_api/task_api/iPublishedTasks_api.yml | ||
63 | + validate: | ||
64 | + - eq: | ||
65 | + - content.data.tasks.0.title | ||
66 | + - $title | ||
67 | + - eq: | ||
68 | + - content.data.tasks.0.id | ||
69 | + - $tasks_id | ||
70 | + | ||
71 | +- name: 驳回领取人 | ||
72 | + variables: | ||
73 | + taskId: $tasks_id | ||
74 | + reason: "抢单任务驳回理由${get_endtime()}" | ||
75 | + api: api/app_api/task_api/rejectReceiver_api.yml | ||
76 | + validate: | ||
77 | + - eq: | ||
78 | + - content.msg | ||
79 | + - 驳回成功 | ||
80 | + | ||
81 | +- name: $phone 登录系统 | ||
82 | + variables: | ||
83 | + phone: ${ENV(phone1)} | ||
84 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
85 | + | ||
86 | +- name: 第二次查看我领取的-待确认-1 | ||
87 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
88 | + validate: | ||
89 | + - eq: | ||
90 | + - content.data.taskMsg.iGetWaitVerify | ||
91 | + - ${add($iGetWaitVerify,-1)} | ||
92 | + - eq: | ||
93 | + - content.data.taskMsg.iGetInProgress | ||
94 | + - ${add($iGetInProgress,0)} | ||
95 | + - eq: | ||
96 | + - content.data.taskMsg.iGetWaitAcceptance | ||
97 | + - ${add($iGetWaitAcceptance,0)} | ||
98 | + - eq: | ||
99 | + - content.data.taskMsg.iGetCompleted | ||
100 | + - ${add($iGetCompleted,0)} |
1 | +config: | ||
2 | + name: ME022-抢单任务驳回后-我发布的-待确认-1,待领取+1 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '抢单任务标题${get_nowtime()}' | ||
6 | + content: '抢单任务内容${get_nowtime()}' | ||
7 | + acceptability: '抢单任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + variables: | ||
14 | + phone: ${ENV(phone2)} | ||
15 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
16 | + | ||
17 | +- name: 发布抢单任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + api: api/app_api/task_api/taskPublish_api.yml | ||
21 | + | ||
22 | + | ||
23 | +- name: $phone 登录系统 | ||
24 | + variables: | ||
25 | + phone: ${ENV(phone1)} | ||
26 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
27 | + | ||
28 | +- name: 查看抢单任务列表 | ||
29 | + variables: | ||
30 | + action: 0 | ||
31 | + newest: 1 | ||
32 | + api: api/app_api/task_api/contendTasks_api.yml | ||
33 | + extract: | ||
34 | + - tasks_id: content.data.tasks.0.id | ||
35 | + validate: | ||
36 | + - eq: | ||
37 | + - content.data.tasks.0.title | ||
38 | + - $title | ||
39 | + | ||
40 | +- name: 领取任务 | ||
41 | + variables: | ||
42 | + action: 0 | ||
43 | + id: $tasks_id | ||
44 | + api: api/app_api/task_api/submitCompete_api.yml | ||
45 | + | ||
46 | +- name: $phone 登录系统 | ||
47 | + variables: | ||
48 | + phone: ${ENV(phone2)} | ||
49 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
50 | + | ||
51 | +- name: 第一次查看我发布的 | ||
52 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
53 | + extract: | ||
54 | + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish | ||
55 | + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive | ||
56 | + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify | ||
57 | + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress | ||
58 | + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance | ||
59 | + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted | ||
60 | + | ||
61 | +- name: 查看我发布的-待确认 | ||
62 | + variables: | ||
63 | + action: 5 | ||
64 | + api: api/app_api/task_api/iPublishedTasks_api.yml | ||
65 | + validate: | ||
66 | + - eq: | ||
67 | + - content.data.tasks.0.title | ||
68 | + - $title | ||
69 | + - eq: | ||
70 | + - content.data.tasks.0.id | ||
71 | + - $tasks_id | ||
72 | + | ||
73 | +- name: 驳回领取人 | ||
74 | + variables: | ||
75 | + taskId: $tasks_id | ||
76 | + reason: "抢单任务驳回理由${get_endtime()}" | ||
77 | + api: api/app_api/task_api/rejectReceiver_api.yml | ||
78 | + validate: | ||
79 | + - eq: | ||
80 | + - content.msg | ||
81 | + - 驳回成功 | ||
82 | + | ||
83 | + | ||
84 | +- name: 第二次查看我发布的-待确认-1,待领取+1 | ||
85 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
86 | + validate: | ||
87 | + - eq: | ||
88 | + - content.data.taskMsg.iPublishedWaitPublish | ||
89 | + - ${add($iPublishedWaitPublish,0)} | ||
90 | + - eq: | ||
91 | + - content.data.taskMsg.iPublishedToReceive | ||
92 | + - ${add($iPublishedToReceive,1)} | ||
93 | + - eq: | ||
94 | + - content.data.taskMsg.iPublishedWaitVerify | ||
95 | + - ${add($iPublishedWaitVerify,-1)} | ||
96 | + - eq: | ||
97 | + - content.data.taskMsg.iPublishedInProgress | ||
98 | + - ${add($iPublishedInProgress,0)} | ||
99 | + - eq: | ||
100 | + - content.data.taskMsg.iPublishedWaitAcceptance | ||
101 | + - ${add($iPublishedWaitAcceptance,0)} | ||
102 | + - eq: | ||
103 | + - content.data.taskMsg.iPublishedCompleted | ||
104 | + - ${add($iPublishedCompleted,0)} |
1 | +config: | ||
2 | + name: ME023-竞标任务驳回后-我发布的统计校验 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '竞标任务标题${get_nowtime()}' | ||
6 | + content: '竞标任务内容${get_nowtime()}' | ||
7 | + acceptability: '竞标任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + variables: | ||
14 | + phone: ${ENV(phone2)} | ||
15 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
16 | + | ||
17 | +- name: 发布竞标任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + type: 1 | ||
21 | + bidStartTime: ${get_starttime()} | ||
22 | + bidEndTime: ${get_endtime()} | ||
23 | + api: api/app_api/task_api/taskPublish_api.yml | ||
24 | + | ||
25 | + | ||
26 | +- name: $phone 登录系统 | ||
27 | + variables: | ||
28 | + phone: ${ENV(phone1)} | ||
29 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
30 | + | ||
31 | +- name: 查看竞标任务列表 | ||
32 | + variables: | ||
33 | + action: 1 | ||
34 | + newest: 1 | ||
35 | + api: api/app_api/task_api/contendTasks_api.yml | ||
36 | + extract: | ||
37 | + - tasks_id: content.data.tasks.0.id | ||
38 | + validate: | ||
39 | + - eq: | ||
40 | + - content.data.tasks.0.title | ||
41 | + - $title | ||
42 | + | ||
43 | +- name: 领取竞标任务 | ||
44 | + variables: | ||
45 | + action: 1 | ||
46 | + id: $tasks_id | ||
47 | + api: api/app_api/task_api/submitCompete_api.yml | ||
48 | + | ||
49 | + | ||
50 | +- name: $phone 登录系统 | ||
51 | + variables: | ||
52 | + phone: ${ENV(phone2)} | ||
53 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
54 | + | ||
55 | + | ||
56 | +- name: 查看我发布的-待领取 | ||
57 | + variables: | ||
58 | + action: 1 | ||
59 | + api: api/app_api/task_api/iPublishedTasks_api.yml | ||
60 | + validate: | ||
61 | + - eq: | ||
62 | + - content.data.tasks.0.title | ||
63 | + - $title | ||
64 | + - eq: | ||
65 | + - content.data.tasks.0.id | ||
66 | + - $tasks_id | ||
67 | + | ||
68 | +- name: 查看任务详情 | ||
69 | + variables: | ||
70 | + id: $tasks_id | ||
71 | + api: api/app_api/task_api/taskDetails_api.yml | ||
72 | + extract: | ||
73 | + - bidders: content.data.task.bidders.0.uid | ||
74 | + validate: | ||
75 | + - eq: | ||
76 | + - content.msg | ||
77 | + - 获取详情成功 | ||
78 | + - eq: | ||
79 | + - content.data.task.title | ||
80 | + - $title | ||
81 | + | ||
82 | +- name: 竞标人中标确认 | ||
83 | + variables: | ||
84 | + id: $tasks_id | ||
85 | + uid: $bidders | ||
86 | + planFinishDate: ${get_endtime()} | ||
87 | + api: api/app_api/task_api/bidTask_api.yml | ||
88 | + validate: | ||
89 | + - eq: | ||
90 | + - content.msg | ||
91 | + - 中标成功 | ||
92 | + | ||
93 | +- name: 第一次查看我发布的 | ||
94 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
95 | + extract: | ||
96 | + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish | ||
97 | + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive | ||
98 | + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify | ||
99 | + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress | ||
100 | + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance | ||
101 | + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted | ||
102 | + | ||
103 | +- name: 驳回领取人 | ||
104 | + variables: | ||
105 | + taskId: $tasks_id | ||
106 | + reason: "竞标任务驳回理由${get_endtime()}" | ||
107 | + api: api/app_api/task_api/rejectReceiver_api.yml | ||
108 | + validate: | ||
109 | + - eq: | ||
110 | + - content.msg | ||
111 | + - 驳回成功 | ||
112 | + | ||
113 | + | ||
114 | +- name: 第二次查看我发布的,待领取+1,进行中-1 | ||
115 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
116 | + validate: | ||
117 | + - eq: | ||
118 | + - content.data.taskMsg.iPublishedWaitPublish | ||
119 | + - ${add($iPublishedWaitPublish,0)} | ||
120 | + - eq: | ||
121 | + - content.data.taskMsg.iPublishedToReceive | ||
122 | + - ${add($iPublishedToReceive,1)} | ||
123 | + - eq: | ||
124 | + - content.data.taskMsg.iPublishedWaitVerify | ||
125 | + - ${add($iPublishedWaitVerify,0)} | ||
126 | + - eq: | ||
127 | + - content.data.taskMsg.iPublishedInProgress | ||
128 | + - ${add($iPublishedInProgress,-1)} | ||
129 | + - eq: | ||
130 | + - content.data.taskMsg.iPublishedWaitAcceptance | ||
131 | + - ${add($iPublishedWaitAcceptance,0)} | ||
132 | + - eq: | ||
133 | + - content.data.taskMsg.iPublishedCompleted | ||
134 | + - ${add($iPublishedCompleted,0)} |
testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml
0 → 100644
1 | +config: | ||
2 | + name: ME024-竞标任务被驳回-我领取的、我参与的统计校验 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '竞标任务标题${get_nowtime()}' | ||
6 | + content: '竞标任务内容${get_nowtime()}' | ||
7 | + acceptability: '竞标任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + variables: | ||
14 | + phone: ${ENV(phone2)} | ||
15 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
16 | + | ||
17 | +- name: 发布竞标任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + type: 1 | ||
21 | + bidStartTime: ${get_starttime()} | ||
22 | + bidEndTime: ${get_endtime()} | ||
23 | + api: api/app_api/task_api/taskPublish_api.yml | ||
24 | + | ||
25 | + | ||
26 | +- name: $phone 登录系统 | ||
27 | + variables: | ||
28 | + phone: ${ENV(phone1)} | ||
29 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
30 | + | ||
31 | +- name: 查看竞标任务列表 | ||
32 | + variables: | ||
33 | + action: 1 | ||
34 | + newest: 1 | ||
35 | + api: api/app_api/task_api/contendTasks_api.yml | ||
36 | + extract: | ||
37 | + - tasks_id: content.data.tasks.0.id | ||
38 | + validate: | ||
39 | + - eq: | ||
40 | + - content.data.tasks.0.title | ||
41 | + - $title | ||
42 | + | ||
43 | +- name: 领取竞标任务 | ||
44 | + variables: | ||
45 | + action: 1 | ||
46 | + id: $tasks_id | ||
47 | + api: api/app_api/task_api/submitCompete_api.yml | ||
48 | + | ||
49 | + | ||
50 | +- name: $phone 登录系统 | ||
51 | + variables: | ||
52 | + phone: ${ENV(phone2)} | ||
53 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
54 | + | ||
55 | + | ||
56 | +- name: 查看我发布的-待领取 | ||
57 | + variables: | ||
58 | + action: 1 | ||
59 | + api: api/app_api/task_api/iPublishedTasks_api.yml | ||
60 | + validate: | ||
61 | + - eq: | ||
62 | + - content.data.tasks.0.title | ||
63 | + - $title | ||
64 | + - eq: | ||
65 | + - content.data.tasks.0.id | ||
66 | + - $tasks_id | ||
67 | + | ||
68 | +- name: 查看任务详情 | ||
69 | + variables: | ||
70 | + id: $tasks_id | ||
71 | + api: api/app_api/task_api/taskDetails_api.yml | ||
72 | + extract: | ||
73 | + - bidders: content.data.task.bidders.0.uid | ||
74 | + validate: | ||
75 | + - eq: | ||
76 | + - content.msg | ||
77 | + - 获取详情成功 | ||
78 | + - eq: | ||
79 | + - content.data.task.title | ||
80 | + - $title | ||
81 | + | ||
82 | +- name: 竞标人中标确认 | ||
83 | + variables: | ||
84 | + id: $tasks_id | ||
85 | + uid: $bidders | ||
86 | + planFinishDate: ${get_endtime()} | ||
87 | + api: api/app_api/task_api/bidTask_api.yml | ||
88 | + validate: | ||
89 | + - eq: | ||
90 | + - content.msg | ||
91 | + - 中标成功 | ||
92 | + | ||
93 | +- name: $phone 登录系统 | ||
94 | + variables: | ||
95 | + phone: ${ENV(phone1)} | ||
96 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
97 | + | ||
98 | +- name: 第一次查看我领取的、我参与的 | ||
99 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
100 | + extract: | ||
101 | + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify | ||
102 | + - iGetInProgress: content.data.taskMsg.iGetInProgress | ||
103 | + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance | ||
104 | + - iGetCompleted: content.data.taskMsg.iGetCompleted | ||
105 | + - iParticipationBid: content.data.taskMsg.iParticipationBid | ||
106 | + - iParticipationCompleted: content.data.taskMsg.iParticipationCompleted | ||
107 | + | ||
108 | +- name: $phone 登录系统 | ||
109 | + variables: | ||
110 | + phone: ${ENV(phone2)} | ||
111 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
112 | + | ||
113 | +- name: 驳回领取人 | ||
114 | + variables: | ||
115 | + taskId: $tasks_id | ||
116 | + reason: "竞标任务驳回理由${get_endtime()}" | ||
117 | + api: api/app_api/task_api/rejectReceiver_api.yml | ||
118 | + validate: | ||
119 | + - eq: | ||
120 | + - content.msg | ||
121 | + - 驳回成功 | ||
122 | + | ||
123 | +- name: $phone 登录系统 | ||
124 | + variables: | ||
125 | + phone: ${ENV(phone1)} | ||
126 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
127 | + | ||
128 | +- name: 第二次查看我领取的-进行中-1,我参与的-竞标中+1 | ||
129 | + api: api/app_api/taskStatistics_api/taskStatistics_api.yml | ||
130 | + validate: | ||
131 | + - eq: | ||
132 | + - content.data.taskMsg.iGetWaitVerify | ||
133 | + - ${add($iGetWaitVerify,0)} | ||
134 | + - eq: | ||
135 | + - content.data.taskMsg.iGetInProgress | ||
136 | + - ${add($iGetInProgress,-1)} | ||
137 | + - eq: | ||
138 | + - content.data.taskMsg.iGetWaitAcceptance | ||
139 | + - ${add($iGetWaitAcceptance,0)} | ||
140 | + - eq: | ||
141 | + - content.data.taskMsg.iGetCompleted | ||
142 | + - ${add($iGetCompleted,0)} | ||
143 | + - eq: | ||
144 | + - content.data.taskMsg.iParticipationBid | ||
145 | + - ${add($iParticipationBid,1)} | ||
146 | + - eq: | ||
147 | + - content.data.taskMsg.iParticipationCompleted | ||
148 | + - ${add($iParticipationCompleted,0)} |
@@ -74,3 +74,18 @@ testcases: | @@ -74,3 +74,18 @@ testcases: | ||
74 | 74 | ||
75 | - name: ME019-竞标任务-参与人的“我参与的-已完成”数量校验 | 75 | - name: ME019-竞标任务-参与人的“我参与的-已完成”数量校验 |
76 | testcase: testcases/app/taskStatistics/ME019-taskStatistics-iParticipation-bidPart.yml | 76 | testcase: testcases/app/taskStatistics/ME019-taskStatistics-iParticipation-bidPart.yml |
77 | + | ||
78 | +- name: ME020-指派我的-任务数量统计校验 | ||
79 | + testcase: testcases/app/taskStatistics/ME020-taskStatistics-assignMe.yml | ||
80 | + | ||
81 | +- name: ME021-抢单任务驳回后-我领取的-待确认-1 | ||
82 | + testcase: testcases/app/taskStatistics/ME021-taskStatistics-rejectReceiver-iget-loot.yml | ||
83 | + | ||
84 | +- name: ME022-抢单任务驳回后-我发布的-待确认-1,待领取+1 | ||
85 | + testcase: testcases/app/taskStatistics/ME022-taskStatistics-rejectReceiver-ipublish-loot.yml | ||
86 | + | ||
87 | +- name: ME023-竞标任务驳回后-我发布的统计校验 | ||
88 | + testcase: testcases/app/taskStatistics/ME023-taskStatistics-rejectReceiver-iget-bid.yml | ||
89 | + | ||
90 | +- name: ME024-竞标任务被驳回-我领取的、我参与的统计校验 | ||
91 | + testcase: testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml |
-
请 注册 或 登录 后发表评论