正在显示
10 个修改的文件
包含
453 行增加
和
2 行删除
@@ -16,6 +16,7 @@ variables: | @@ -16,6 +16,7 @@ variables: | ||
16 | title: 'APP提交任务标题' | 16 | title: 'APP提交任务标题' |
17 | content: 'APP提交任务内容' | 17 | content: 'APP提交任务内容' |
18 | acceptability: 'APP提交验收标准' | 18 | acceptability: 'APP提交验收标准' |
19 | + isReward: False | ||
19 | teardown_hooks: | 20 | teardown_hooks: |
20 | - ${sleep(1)} | 21 | - ${sleep(1)} |
21 | request: | 22 | request: |
@@ -56,7 +57,7 @@ request: | @@ -56,7 +57,7 @@ request: | ||
56 | serialNo: | 57 | serialNo: |
57 | title: | 58 | title: |
58 | content: | 59 | content: |
59 | - isReward: | 60 | + isReward: $isReward |
60 | attribute: | 61 | attribute: |
61 | id: 17 | 62 | id: 17 |
62 | name: '项目归属1' | 63 | name: '项目归属1' |
api/app_api/task_api/taskrewards_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 | +request: | ||
10 | + headers: | ||
11 | + Content-Type: application/json;charset=utf-8 | ||
12 | + User-Agent: okhttp/3.12.3 | ||
13 | + X-MMM-AccessToken: $access_token | ||
14 | + X-MMM-AppName: com.mmm.ability | ||
15 | + X-MMM-AppProject: ability | ||
16 | + X-MMM-DeviceType: '0' | ||
17 | + X-MMM-Sign: $sign | ||
18 | + X-MMM-Timestamp: $currtime | ||
19 | + X-MMM-Uuid: $uuid | ||
20 | + X-MMM-Version: 1.0.0 | ||
21 | + json: | ||
22 | + pageIndex: 0 | ||
23 | + pageSize: 20 | ||
24 | + method: POST | ||
25 | + url: /v1/task/rewards | ||
26 | +validate: | ||
27 | + - eq: | ||
28 | + - content.code | ||
29 | + - 0 |
1 | +config: | ||
2 | + name: RED001-保存抢单悬赏任务-悬赏任务列表无数据 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + phone: ${ENV(phone2)} | ||
6 | + title: '抢单悬赏任务标题${get_nowtime()}' | ||
7 | + content: '抢单悬赏任务内容${get_nowtime()}' | ||
8 | + acceptability: '抢单悬赏任务验收标准${get_nowtime()}' | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
14 | + | ||
15 | +- name: 保存抢单悬赏任务 | ||
16 | + variables: | ||
17 | + action: 0 | ||
18 | + type: 0 | ||
19 | + isReward: True | ||
20 | + api: api/app_api/task_api/taskPublish_api.yml | ||
21 | + | ||
22 | +- name: 查看悬赏任务列表 | ||
23 | + api: api/app_api/task_api/taskrewards_api.yml | ||
24 | + validate: | ||
25 | + - not_equals: | ||
26 | + - content.data.tasks.0.title | ||
27 | + - $title |
1 | +config: | ||
2 | + name: RED002-发布抢单悬赏任务-悬赏任务列表有数据 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + phone: ${ENV(phone2)} | ||
6 | + title: '抢单悬赏任务标题${get_nowtime()}' | ||
7 | + content: '抢单悬赏任务内容${get_nowtime()}' | ||
8 | + acceptability: '抢单悬赏任务验收标准${get_nowtime()}' | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
14 | + | ||
15 | +- name: 保存抢单悬赏任务 | ||
16 | + variables: | ||
17 | + action: 1 | ||
18 | + type: 0 | ||
19 | + isReward: True | ||
20 | + api: api/app_api/task_api/taskPublish_api.yml | ||
21 | + | ||
22 | +- name: 查看悬赏任务列表 | ||
23 | + api: api/app_api/task_api/taskrewards_api.yml | ||
24 | + validate: | ||
25 | + - equals: | ||
26 | + - content.data.tasks.0.title | ||
27 | + - $title | ||
28 | + - equals: | ||
29 | + - content.data.tasks.0.inBid | ||
30 | + - 0 |
1 | +config: | ||
2 | + name: RED003-抢单悬赏任务被领取-悬赏任务列表无数据 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '抢单悬赏任务标题${get_nowtime()}' | ||
6 | + content: '抢单悬赏任务内容${get_nowtime()}' | ||
7 | + acceptability: '抢单悬赏任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | +teststeps: | ||
10 | + | ||
11 | +- name: $phone 登录系统 | ||
12 | + variables: | ||
13 | + phone: ${ENV(phone2)} | ||
14 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
15 | + | ||
16 | +- name: 保存抢单悬赏任务 | ||
17 | + variables: | ||
18 | + action: 1 | ||
19 | + type: 0 | ||
20 | + isReward: True | ||
21 | + api: api/app_api/task_api/taskPublish_api.yml | ||
22 | + | ||
23 | +- name: 查看悬赏任务列表 | ||
24 | + api: api/app_api/task_api/taskrewards_api.yml | ||
25 | + validate: | ||
26 | + - equals: | ||
27 | + - content.data.tasks.0.title | ||
28 | + - $title | ||
29 | + - equals: | ||
30 | + - content.data.tasks.0.inBid | ||
31 | + - 0 | ||
32 | + | ||
33 | +- name: $phone 登录系统 | ||
34 | + variables: | ||
35 | + phone: ${ENV(phone1)} | ||
36 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
37 | + | ||
38 | +- name: 查看抢单任务列表 | ||
39 | + variables: | ||
40 | + action: 0 | ||
41 | + newest: 1 | ||
42 | + api: api/app_api/task_api/contendTasks_api.yml | ||
43 | + extract: | ||
44 | + - tasks_id: content.data.tasks.0.id | ||
45 | + validate: | ||
46 | + - eq: | ||
47 | + - content.data.tasks.0.title | ||
48 | + - $title | ||
49 | + | ||
50 | +- name: 领取任务 | ||
51 | + variables: | ||
52 | + action: 0 | ||
53 | + id: $tasks_id | ||
54 | + api: api/app_api/task_api/submitCompete_api.yml | ||
55 | + | ||
56 | + | ||
57 | +- name: $phone 登录系统 | ||
58 | + variables: | ||
59 | + phone: ${ENV(phone2)} | ||
60 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
61 | + | ||
62 | +- name: 查看悬赏任务列表 | ||
63 | + api: api/app_api/task_api/taskrewards_api.yml | ||
64 | + validate: | ||
65 | + - not_equals: | ||
66 | + - content.data.tasks.0.title | ||
67 | + - $title |
1 | +config: | ||
2 | + name: RED004-保存竞标悬赏任务-悬赏任务列表无数据 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + phone: ${ENV(phone2)} | ||
6 | + title: '竞标悬赏任务标题${get_nowtime()}' | ||
7 | + content: '竞标悬赏任务内容${get_nowtime()}' | ||
8 | + acceptability: '竞标悬赏任务验收标准${get_nowtime()}' | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
14 | + | ||
15 | + | ||
16 | +- name: 保存竞标任务 | ||
17 | + variables: | ||
18 | + action: 0 | ||
19 | + type: 1 | ||
20 | + bidStartTime: ${get_starttime()} | ||
21 | + bidEndTime: ${get_endtime()} | ||
22 | + isReward: True | ||
23 | + api: api/app_api/task_api/taskPublish_api.yml | ||
24 | + | ||
25 | +- name: 查看悬赏任务列表 | ||
26 | + api: api/app_api/task_api/taskrewards_api.yml | ||
27 | + validate: | ||
28 | + - not_equals: | ||
29 | + - content.data.tasks.0.title | ||
30 | + - $title |
1 | +config: | ||
2 | + name: RED005-发布竞标悬赏任务-悬赏任务列表有数据 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + phone: ${ENV(phone2)} | ||
6 | + title: '竞标悬赏任务标题${get_nowtime()}' | ||
7 | + content: '竞标悬赏任务内容${get_nowtime()}' | ||
8 | + acceptability: '竞标悬赏任务验收标准${get_nowtime()}' | ||
9 | + | ||
10 | +teststeps: | ||
11 | + | ||
12 | +- name: $phone 登录系统 | ||
13 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
14 | + | ||
15 | + | ||
16 | +- name: 发布竞标任务 | ||
17 | + variables: | ||
18 | + action: 1 | ||
19 | + type: 1 | ||
20 | + bidStartTime: ${get_starttime()} | ||
21 | + bidEndTime: ${get_endtime()} | ||
22 | + isReward: True | ||
23 | + api: api/app_api/task_api/taskPublish_api.yml | ||
24 | + | ||
25 | +- name: 查看悬赏任务列表 | ||
26 | + api: api/app_api/task_api/taskrewards_api.yml | ||
27 | + validate: | ||
28 | + - equals: | ||
29 | + - content.data.tasks.0.title | ||
30 | + - $title | ||
31 | + - equals: | ||
32 | + - content.data.tasks.0.inBid | ||
33 | + - 0 |
1 | +config: | ||
2 | + name: RED006-竞标悬赏任务参与竞标且未确认-悬赏任务列表有数据,参与竞标状态正确 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '竞标悬赏任务标题${get_nowtime()}' | ||
6 | + content: '竞标悬赏任务内容${get_nowtime()}' | ||
7 | + acceptability: '竞标悬赏任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | +teststeps: | ||
10 | + | ||
11 | +- name: $phone 登录系统 | ||
12 | + variables: | ||
13 | + phone: ${ENV(phone2)} | ||
14 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
15 | + | ||
16 | + | ||
17 | +- name: 发布竞标任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + type: 1 | ||
21 | + bidStartTime: ${get_starttime()} | ||
22 | + bidEndTime: ${get_endtime()} | ||
23 | + isReward: True | ||
24 | + api: api/app_api/task_api/taskPublish_api.yml | ||
25 | + | ||
26 | +- name: 查看悬赏任务列表 | ||
27 | + api: api/app_api/task_api/taskrewards_api.yml | ||
28 | + validate: | ||
29 | + - equals: | ||
30 | + - content.data.tasks.0.title | ||
31 | + - $title | ||
32 | + - equals: | ||
33 | + - content.data.tasks.0.inBid | ||
34 | + - 0 | ||
35 | + | ||
36 | +- name: $phone 登录系统 | ||
37 | + variables: | ||
38 | + phone: ${ENV(phone1)} | ||
39 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
40 | + | ||
41 | +- name: 查看竞标任务列表 | ||
42 | + variables: | ||
43 | + action: 1 | ||
44 | + newest: 1 | ||
45 | + api: api/app_api/task_api/contendTasks_api.yml | ||
46 | + extract: | ||
47 | + - tasks_id: content.data.tasks.0.id | ||
48 | + validate: | ||
49 | + - eq: | ||
50 | + - content.data.tasks.0.title | ||
51 | + - $title | ||
52 | + | ||
53 | +- name: 领取竞标任务 | ||
54 | + variables: | ||
55 | + action: 1 | ||
56 | + id: $tasks_id | ||
57 | + api: api/app_api/task_api/submitCompete_api.yml | ||
58 | + | ||
59 | +- name: 查看悬赏任务列表 | ||
60 | + api: api/app_api/task_api/taskrewards_api.yml | ||
61 | + validate: | ||
62 | + - equals: | ||
63 | + - content.data.tasks.0.title | ||
64 | + - $title | ||
65 | + - equals: | ||
66 | + - content.data.tasks.0.inBid | ||
67 | + - 1 | ||
68 | + | ||
69 | +- name: $phone 登录系统 | ||
70 | + variables: | ||
71 | + phone: ${ENV(phone2)} | ||
72 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
73 | + | ||
74 | +- name: 查看悬赏任务列表 | ||
75 | + api: api/app_api/task_api/taskrewards_api.yml | ||
76 | + validate: | ||
77 | + - equals: | ||
78 | + - content.data.tasks.0.title | ||
79 | + - $title | ||
80 | + - equals: | ||
81 | + - content.data.tasks.0.inBid | ||
82 | + - 0 |
1 | +config: | ||
2 | + name: RED007-竞标悬赏任务参与竞标且确认-悬赏任务列表无数据,参与竞标状态正确 | ||
3 | + base_url: ${ENV(base_url)} | ||
4 | + variables: | ||
5 | + title: '竞标悬赏任务标题${get_nowtime()}' | ||
6 | + content: '竞标悬赏任务内容${get_nowtime()}' | ||
7 | + acceptability: '竞标悬赏任务验收标准${get_nowtime()}' | ||
8 | + | ||
9 | +teststeps: | ||
10 | + | ||
11 | +- name: $phone 登录系统 | ||
12 | + variables: | ||
13 | + phone: ${ENV(phone2)} | ||
14 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
15 | + | ||
16 | + | ||
17 | +- name: 发布竞标任务 | ||
18 | + variables: | ||
19 | + action: 1 | ||
20 | + type: 1 | ||
21 | + bidStartTime: ${get_starttime()} | ||
22 | + bidEndTime: ${get_endtime()} | ||
23 | + isReward: True | ||
24 | + api: api/app_api/task_api/taskPublish_api.yml | ||
25 | + | ||
26 | +- name: 查看悬赏任务列表 | ||
27 | + api: api/app_api/task_api/taskrewards_api.yml | ||
28 | + validate: | ||
29 | + - equals: | ||
30 | + - content.data.tasks.0.title | ||
31 | + - $title | ||
32 | + - equals: | ||
33 | + - content.data.tasks.0.inBid | ||
34 | + - 0 | ||
35 | + | ||
36 | +- name: $phone 登录系统 | ||
37 | + variables: | ||
38 | + phone: ${ENV(phone1)} | ||
39 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
40 | + | ||
41 | +- name: 查看竞标任务列表 | ||
42 | + variables: | ||
43 | + action: 1 | ||
44 | + newest: 1 | ||
45 | + api: api/app_api/task_api/contendTasks_api.yml | ||
46 | + extract: | ||
47 | + - tasks_id: content.data.tasks.0.id | ||
48 | + validate: | ||
49 | + - eq: | ||
50 | + - content.data.tasks.0.title | ||
51 | + - $title | ||
52 | + | ||
53 | +- name: 领取竞标任务 | ||
54 | + variables: | ||
55 | + action: 1 | ||
56 | + id: $tasks_id | ||
57 | + api: api/app_api/task_api/submitCompete_api.yml | ||
58 | + | ||
59 | +- name: 查看悬赏任务列表 | ||
60 | + api: api/app_api/task_api/taskrewards_api.yml | ||
61 | + validate: | ||
62 | + - equals: | ||
63 | + - content.data.tasks.0.title | ||
64 | + - $title | ||
65 | + - equals: | ||
66 | + - content.data.tasks.0.inBid | ||
67 | + - 1 | ||
68 | + | ||
69 | +- name: $phone 登录系统 | ||
70 | + variables: | ||
71 | + phone: ${ENV(phone2)} | ||
72 | + testcase: testcases/common/COM001_task_login_testcases.yml | ||
73 | + | ||
74 | +- name: 查看悬赏任务列表 | ||
75 | + api: api/app_api/task_api/taskrewards_api.yml | ||
76 | + validate: | ||
77 | + - equals: | ||
78 | + - content.data.tasks.0.title | ||
79 | + - $title | ||
80 | + - equals: | ||
81 | + - content.data.tasks.0.inBid | ||
82 | + - 0 | ||
83 | + | ||
84 | +- name: 查看我发布的-待领取 | ||
85 | + variables: | ||
86 | + action: 1 | ||
87 | + api: api/app_api/task_api/iPublishedTasks_api.yml | ||
88 | + validate: | ||
89 | + - eq: | ||
90 | + - content.data.tasks.0.title | ||
91 | + - $title | ||
92 | + - eq: | ||
93 | + - content.data.tasks.0.id | ||
94 | + - $tasks_id | ||
95 | + | ||
96 | +- name: 查看任务详情 | ||
97 | + variables: | ||
98 | + id: $tasks_id | ||
99 | + api: api/app_api/task_api/taskDetails_api.yml | ||
100 | + extract: | ||
101 | + - bidders: content.data.task.bidders.0.uid | ||
102 | + validate: | ||
103 | + - eq: | ||
104 | + - content.msg | ||
105 | + - 获取详情成功 | ||
106 | + - eq: | ||
107 | + - content.data.task.title | ||
108 | + - $title | ||
109 | + | ||
110 | +- name: 竞标人中标确认 | ||
111 | + variables: | ||
112 | + id: $tasks_id | ||
113 | + uid: $bidders | ||
114 | + planFinishDate: ${get_endtime()} | ||
115 | + api: api/app_api/task_api/bidTask_api.yml | ||
116 | + validate: | ||
117 | + - eq: | ||
118 | + - content.msg | ||
119 | + - 中标成功 | ||
120 | + | ||
121 | +- name: 查看悬赏任务列表 | ||
122 | + api: api/app_api/task_api/taskrewards_api.yml | ||
123 | + validate: | ||
124 | + - not_equals: | ||
125 | + - content.data.tasks.0.title | ||
126 | + - $title |
@@ -88,4 +88,30 @@ testcases: | @@ -88,4 +88,30 @@ testcases: | ||
88 | testcase: testcases/app/taskStatistics/ME023-taskStatistics-rejectReceiver-iget-bid.yml | 88 | testcase: testcases/app/taskStatistics/ME023-taskStatistics-rejectReceiver-iget-bid.yml |
89 | 89 | ||
90 | - name: ME024-竞标任务被驳回-我领取的、我参与的统计校验 | 90 | - name: ME024-竞标任务被驳回-我领取的、我参与的统计校验 |
91 | - testcase: testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml | ||
91 | + testcase: testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml | ||
92 | + | ||
93 | +##############################################个人中心数量统计用例结束################################### | ||
94 | + | ||
95 | +##############################################悬赏任务列表用例开始################################### | ||
96 | +- name: RED001-保存抢单悬赏任务-悬赏任务列表无数据 | ||
97 | + testcase: testcases/app/taskrewards/RED001-taskrewards-lootsave.yml | ||
98 | + | ||
99 | +- name: RED002-发布抢单悬赏任务-悬赏任务列表有数据 | ||
100 | + testcase: testcases/app/taskrewards/RED002-taskrewards-lootpublish.yml | ||
101 | + | ||
102 | +- name: RED003-抢单悬赏任务被领取-悬赏任务列表无数据 | ||
103 | + testcase: testcases/app/taskrewards/RED003-taskrewards-lootreceive.yml | ||
104 | + | ||
105 | +- name: RED004-保存竞标悬赏任务-悬赏任务列表无数据 | ||
106 | + testcase: testcases/app/taskrewards/RED004-taskrewards-bidsave.yml | ||
107 | + | ||
108 | +- name: RED005-发布竞标悬赏任务-悬赏任务列表有数据 | ||
109 | + testcase: testcases/app/taskrewards/RED005-taskrewards-bidpublish.yml | ||
110 | + | ||
111 | +- name: RED006-竞标悬赏任务参与竞标且未确认-悬赏任务列表有数据,参与竞标状态正确 | ||
112 | + testcase: testcases/app/taskrewards/RED006-taskrewards-bidreceive.yml | ||
113 | + | ||
114 | +- name: RED007-竞标悬赏任务参与竞标且确认-悬赏任务列表无数据,参与竞标状态正确 | ||
115 | + testcase: testcases/app/taskrewards/RED007-taskrewards-bidVerify.yml | ||
116 | + | ||
117 | +##############################################悬赏任务列表用例结束################################### |
-
请 注册 或 登录 后发表评论