作者 dengyuting

增加测试用例

正在显示 30 个修改的文件 包含 199 行增加809 行删除
  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 + action: 0
  10 + timeStart: 123456
  11 + timeEnd: 78956
  12 +request:
  13 + headers:
  14 + Content-Type: application/json;charset=utf-8
  15 + User-Agent: okhttp/3.12.3
  16 + X-MMM-AccessToken: $access_token
  17 + X-MMM-AppName: com.mmm.ability
  18 + X-MMM-AppProject: ability
  19 + X-MMM-DeviceType: '0'
  20 + X-MMM-Sign: $sign
  21 + X-MMM-Timestamp: $currtime
  22 + X-MMM-Uuid: $uuid
  23 + X-MMM-Version: 1.0.0
  24 + json:
  25 + pageIndex: 0
  26 + pageSize: 20
  27 + action: $action
  28 + timeStart: $timeStart
  29 + timeEnd: $timeEnd
  30 + method: POST
  31 + url: /v1/task/moneyDetail
  32 +validate:
  33 + - eq:
  34 + - content.code
  35 + - 0
  1 +name: 编辑素币
  2 +base_url: ${ENV(base_manager_url)}
  3 +verify: False
  4 +variables:
  5 + userId: 3284714710070272
  6 + reason: 编辑素币的理由
  7 + amount: 5
  8 + editType: 1
  9 +request:
  10 + headers:
  11 + Content-Type: application/json; charset=UTF-8
  12 + Authorization: Bearer ${get_task_manager_accesstoken()}
  13 + User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
  14 + X-Requested-With: XMLHttpRequest
  15 + json:
  16 + userId: $userId
  17 + reason: $reason
  18 + amount: $amount
  19 + editType: $editType
  20 + method: POST
  21 + url: /currency/record
  22 +validate:
  23 + - eq:
  24 + - content.code
  25 + - 0
  1 +config:
  2 + name: ME028-通过管理后台增加素币-当前素币增加、贡献值不变
  3 +# base_url: ${ENV(base_url)}
  4 +
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + variables:
  10 + phone: ${ENV(phone1)}
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 第一次查看当前素币和贡献值
  14 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  15 + extract:
  16 + - suMoney: content.data.taskMsg.suMoney
  17 + - winShares: content.data.taskMsg.winShares
  18 +
  19 +- name: 通过管理后台增加素币
  20 + variables:
  21 + userId: 3284714710070272
  22 + reason: 增加素币的理由
  23 + amount: 5
  24 + editType: 1
  25 + testcase: testcases/common/manager/COM006_manager_suMoney.yml
  26 +
  27 +- name: $phone 登录系统
  28 + variables:
  29 + phone: ${ENV(phone1)}
  30 + testcase: testcases/common/COM001_task_login_testcases.yml
  31 +
  32 +- name: 第二次查看当前素币与贡献值
  33 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  34 + validate:
  35 + - eq:
  36 + - content.data.taskMsg.suMoney
  37 + - ${add($suMoney,5)}
  38 + - eq:
  39 + - content.data.taskMsg.winShares
  40 + - ${add($winShares,0)}
  1 +config:
  2 + name: ME029-通过管理后台减少素币-当前素币减少、贡献值不变
  3 +# base_url: ${ENV(base_url)}
  4 +
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + variables:
  10 + phone: ${ENV(phone1)}
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 第一次查看当前素币和贡献值
  14 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  15 + extract:
  16 + - suMoney: content.data.taskMsg.suMoney
  17 + - winShares: content.data.taskMsg.winShares
  18 +
  19 +- name: 通过管理后台增加素币
  20 + variables:
  21 + userId: 3284714710070272
  22 + reason: 减少素币的理由
  23 + amount: 5
  24 + editType: 2
  25 + testcase: testcases/common/manager/COM006_manager_suMoney.yml
  26 +
  27 +- name: $phone 登录系统
  28 + variables:
  29 + phone: ${ENV(phone1)}
  30 + testcase: testcases/common/COM001_task_login_testcases.yml
  31 +
  32 +- name: 第二次查看当前素币与贡献值
  33 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  34 + validate:
  35 + - eq:
  36 + - content.data.taskMsg.suMoney
  37 + - ${add($suMoney,-5)}
  38 + - eq:
  39 + - content.data.taskMsg.winShares
  40 + - ${add($winShares,0)}
  1 +config:
  2 + name: ME030-通过管理后台兑换素币-当前素币减少、贡献值不变
  3 +# base_url: ${ENV(base_url)}
  4 +
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + variables:
  10 + phone: ${ENV(phone1)}
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 第一次查看当前素币和贡献值
  14 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  15 + extract:
  16 + - suMoney: content.data.taskMsg.suMoney
  17 + - winShares: content.data.taskMsg.winShares
  18 +
  19 +- name: 通过管理后台增加素币
  20 + variables:
  21 + userId: 3284714710070272
  22 + reason: 兑换素币的理由
  23 + amount: 5
  24 + editType: 3
  25 + testcase: testcases/common/manager/COM006_manager_suMoney.yml
  26 +
  27 +- name: $phone 登录系统
  28 + variables:
  29 + phone: ${ENV(phone1)}
  30 + testcase: testcases/common/COM001_task_login_testcases.yml
  31 +
  32 +- name: 第二次查看当前素币与贡献值
  33 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  34 + validate:
  35 + - eq:
  36 + - content.data.taskMsg.suMoney
  37 + - ${add($suMoney,-5)}
  38 + - eq:
  39 + - content.data.taskMsg.winShares
  40 + - ${add($winShares,0)}
1 -config:  
2 - name: 用户新增抢单任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/loot/loot_update_0_false_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_loot_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
1 -config:  
2 - name: 用户新增抢单任务-公司重要悬赏  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -#  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -#  
26 -- name: 保存任务  
27 - api: api/m_api/loot/loot_update_true_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_loot_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 -- name: 发布任务  
36 - api: api/m_api/loot/loot_open_api.yml  
37 - varidate:  
38 - validate:  
39 - - eq:  
40 - - content.msg  
41 - - ok  
1 -config:  
2 - name: 用户新增竞标任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/bid/bid_update_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_bid_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 -- name: 发布任务  
36 - api: api/m_api/bid/bid_open_api.yml  
37 - varidate:  
38 - validate:  
39 - - eq:  
40 - - content.msg  
41 - - ok  
1 -config:  
2 - name: 用户新增指派任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/appoint/appoint_update_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_bid_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
1 config: 1 config:
2 - name: 用户新增抢单任务 2 + name: 编辑素币
3 variables: 3 variables:
4 phone: ${ENV(adminphone)} 4 phone: ${ENV(adminphone)}
5 5
6 teststeps: 6 teststeps:
7 7
8 - name: $phone 登录系统 8 - name: $phone 登录系统
9 - testcase: testcases/common/COM001_task_login_testcases.yml 9 + testcase: testcases/common/COM002_m_login_testcases.yml
10 10
11 -  
12 -- name: 新增抢单任务  
13 - api: api/app_api/task_api/taskPublish_api.yml  
14 - varidate: 11 +- name: 编辑素币
  12 + variables:
  13 + userId: 3284714710070272
  14 + reason: 编辑素币的理由
  15 + amount: 5
  16 + editType: 1
  17 + api: api/m_api/currency/currency_record_api.yml
  18 + validate:
15 - eq: 19 - eq:
16 - content.msg 20 - content.msg
17 - ok 21 - ok
1 -config:  
2 - name: 抢单任务状态验证-待发布  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - username: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/loot/loot_update_false_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_loot_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 -  
36 -- name: 查看详情  
37 - api: api/m_api/loot/loot_detail_api.yml  
38 - variables:  
39 - status: ${get_task_status_1_from_database()}  
40 - msg: ok  
41 - varidate:  
42 - validate:  
43 - - eq:  
44 - - content.msg  
45 - - $msg  
46 - - eq:  
47 - - content.data.status  
48 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-已发布,待领取  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-待发布  
7 - testcase: testcases/common/COM007_loot_update_status_1_testcase.yml  
8 -  
9 -- name: 发布任务  
10 - api: api/m_api/loot/loot_open_api.yml  
11 - varidate:  
12 - validate:  
13 - - eq:  
14 - - content.msg  
15 - - ok  
16 -  
17 -- name: 查看详情  
18 - api: api/m_api/loot/loot_detail_api.yml  
19 - variables:  
20 - status: ${get_task_status_2_from_database()}  
21 - msg: ok  
22 - varidate:  
23 - validate:  
24 - - eq:  
25 - - content.msg  
26 - - $msg  
27 - - eq:  
28 - - content.data.status  
29 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-已领取,待确认  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-已发布,待领取  
7 - testcase: testcases/common/COM008_loot_open_status_2_testcase.yml  
8 -  
9 -- name: app端点击立即抢单  
10 - testcase: testcases/task/loot/loot_rewards_taskDetails_testcase.yml  
11 -  
12 -- name: 查看详情  
13 - api: api/m_api/loot/loot_detail_api.yml  
14 - variables:  
15 - status: ${get_task_status_7_from_database()}  
16 - msg: ok  
17 - varidate:  
18 - validate:  
19 - - eq:  
20 - - content.msg  
21 - - $msg  
22 - - eq:  
23 - - content.data.status  
24 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-进行中  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-已领取,待确认  
7 - testcase: testcases/common/COM009_loot_open_status_7_testcase.yml  
8 -  
9 -- name: 确认领取人  
10 - api: api/m_api/loot/loot_task_confirm_api.yml  
11 - varidate:  
12 - validate:  
13 - - eq:  
14 - - content.msg  
15 - - ok  
16 -- name: 查看详情中的状态  
17 - api: api/m_api/loot/loot_detail_api.yml  
18 - variables:  
19 - status: ${get_task_status_3_from_database()}  
20 - msg: ok  
21 - varidate:  
22 - validate:  
23 - - eq:  
24 - - content.msg  
25 - - $msg  
26 - - eq:  
27 - - content.data.status  
28 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-已完成,待验收  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-进行中  
7 - testcase: testcases/common/COM010_loot_open_status_3_testcase.yml  
8 -  
9 -##-------------------------APP端完成抢单任务------------------------------  
10 -- name: 完成任务  
11 - testcase: testcases/task/loot/loot_task_finishTask_testcase.yml  
12 -  
13 -- name: 查看详情中的状态  
14 - api: api/m_api/loot/loot_detail_api.yml  
15 - variables:  
16 - status: ${get_task_status_4_from_database()}  
17 - msg: ok  
18 - varidate:  
19 - validate:  
20 - - eq:  
21 - - content.msg  
22 - - $msg  
23 - - eq:  
24 - - content.data.status  
25 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-已验收,已完成  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-已完成,待验收  
7 - testcase: testcases/common/COM011_loot_open_status_4_testcase.yml  
8 -  
9 -- name: 用户列表  
10 - output:  
11 - - uid0  
12 - - name0  
13 - - uid1  
14 - - name1  
15 - - uid2  
16 - - name2  
17 - - uid15  
18 - - name15  
19 - api: api/m_api/common/user_api.yml  
20 - extract:  
21 - uid0: content.data.list.0.uid  
22 - name0: content.data.list.0.name  
23 - uid1: content.data.list.1.uid  
24 - name1: content.data.list.1.name  
25 - uid2: content.data.list.2.uid  
26 - name2: content.data.list.2.name  
27 - uid15: content.data.list.15.uid  
28 - name15: content.data.list.15.name  
29 -  
30 -- name: 抢单任务验收  
31 - api: api/m_api/loot/loot_task_accept_api.yml  
32 - validate:  
33 - - eq:  
34 - - content.code  
35 - - 0  
36 - - eq:  
37 - - content.msg  
38 - - ok  
39 -  
40 -- name: 查看详情中的状态  
41 - api: api/m_api/loot/loot_detail_api.yml  
42 - variables:  
43 - status: ${get_task_status_5_from_database()}  
44 - msg: ok  
45 - varidate:  
46 - validate:  
47 - - eq:  
48 - - content.msg  
49 - - $msg  
50 - - eq:  
51 - - content.data.status  
52 - - $status  
1 -config:  
2 - name: 抢单任务状态验证-已验收,已完成  
3 -  
4 -teststeps:  
5 -  
6 -- name: 抢单任务状态验证-已发布,待领取  
7 - testcase: testcases/common/COM008_loot_open_status_2_testcase.yml  
8 -  
9 -  
10 -- name: 关闭任务  
11 - api: api/m_api/loot/loot_task_close_api.yml  
12 - validate:  
13 - - eq:  
14 - - content.code  
15 - - 0  
16 - - eq:  
17 - - content.msg  
18 - - ok  
19 -  
20 -- name: 查看详情中的状态  
21 - api: api/m_api/loot/loot_detail_api.yml  
22 - variables:  
23 - status: ${get_task_status_6_from_database()}  
24 - msg: ok  
25 - varidate:  
26 - validate:  
27 - - eq:  
28 - - content.msg  
29 - - $msg  
30 - - eq:  
31 - - content.data.status  
32 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-待发布  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/bid/bid_update_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_bid_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 -  
36 -- name: 查看详情  
37 - api: api/m_api/bid/bid_detail_api.yml  
38 - variables:  
39 - status: ${get_bid_task_status_1_from_database()}  
40 - msg: ok  
41 - varidate:  
42 - validate:  
43 - - eq:  
44 - - content.msg  
45 - - $msg  
46 - - eq:  
47 - - content.data.status  
48 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已发布,待领取  
3 -  
4 -teststeps:  
5 -  
6 -- name: 竞标任务状态验证-待发布  
7 - testcase: testcases/common/COM014_bid_update_status_1_testcase.yml  
8 -  
9 -- name: 发布任务  
10 - api: api/m_api/bid/bid_open_api.yml  
11 - varidate:  
12 - validate:  
13 - - eq:  
14 - - content.msg  
15 - - ok  
16 -  
17 -- name: 查看详情  
18 - api: api/m_api/bid/bid_detail_api.yml  
19 - variables:  
20 - status: ${get_bid_task_status_2_from_database()}  
21 - msg: ok  
22 - varidate:  
23 - validate:  
24 - - eq:  
25 - - content.msg  
26 - - $msg  
27 - - eq:  
28 - - content.data.status  
29 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已领取,待中标  
3 -  
4 -teststeps:  
5 -  
6 -- name: 竞标任务状态验证-已发布,待领取  
7 - testcase: testcases/common/COM015_bid_open_status_2_testcase.yml  
8 -  
9 -- name: app端点击立即竞标  
10 - testcase: testcases/task/bid/bid_contendTasks_taskDetails_testcase.yml  
11 -  
12 -- name: 查看详情  
13 - api: api/m_api/bid/bid_detail_api.yml  
14 - variables:  
15 - status: ${get_bid_task_status_2_from_database()}  
16 - msg: ok  
17 - varidate:  
18 - validate:  
19 - - eq:  
20 - - content.msg  
21 - - $msg  
22 - - eq:  
23 - - content.data.status  
24 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已领取,进行中  
3 -  
4 -teststeps:  
5 -  
6 -- name: 竞标任务状态验证-已领取,待中标  
7 - testcase: testcases/common/COM016_bid_open_status_2_testcase.yml  
8 -  
9 -- name: 竞标任务-中标  
10 - api: api/m_api/bid/bid_outbid_api.yml  
11 -  
12 -- name: 查看详情  
13 - api: api/m_api/bid/bid_detail_api.yml  
14 - variables:  
15 - status: ${get_bid_task_status_3_from_database()}  
16 - msg: ok  
17 - varidate:  
18 - validate:  
19 - - eq:  
20 - - content.msg  
21 - - $msg  
22 - - eq:  
23 - - content.data.status  
24 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已完成,待验收  
3 -  
4 -teststeps:  
5 -  
6 -- name: 竞标任务状态验证-待领取,进行中  
7 - testcase: testcases/common/COM017_bid_open_status_3_testcase.yml  
8 -  
9 -##-------------------------APP端完成竞标任务------------------------------  
10 -- name: 完成任务  
11 - testcase: testcases/task/bid/bid_task_finishTask_testcase.yml  
12 -  
13 -- name: 查看详情  
14 - api: api/m_api/bid/bid_detail_api.yml  
15 - variables:  
16 - status: ${get_bid_task_status_4_from_database()}  
17 - msg: ok  
18 - varidate:  
19 - validate:  
20 - - eq:  
21 - - content.msg  
22 - - $msg  
23 - - eq:  
24 - - content.data.status  
25 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已验收,已完成  
3 -  
4 -teststeps:  
5 -- name: 竞标任务状态验证-已完成,待验收  
6 - testcase: testcases/common/COM018_bid_open_status_4_testcase.yml  
7 -  
8 -- name: 用户列表  
9 - output:  
10 - - uid0  
11 - - name0  
12 - - uid1  
13 - - name1  
14 - - uid2  
15 - - name2  
16 - - uid15  
17 - - name15  
18 - api: api/m_api/common/user_api.yml  
19 - extract:  
20 - uid0: content.data.list.0.uid  
21 - name0: content.data.list.0.name  
22 - uid1: content.data.list.1.uid  
23 - name1: content.data.list.1.name  
24 - uid2: content.data.list.2.uid  
25 - name2: content.data.list.2.name  
26 - uid15: content.data.list.15.uid  
27 - name15: content.data.list.15.name  
28 -  
29 -- name: 竞标任务验收  
30 - api: api/m_api/bid/bid_task_accept_api.yml  
31 - validate:  
32 - - eq:  
33 - - content.code  
34 - - 0  
35 - - eq:  
36 - - content.msg  
37 - - ok  
38 -  
39 -- name: 查看详情中的状态  
40 - api: api/m_api/bid/bid_detail_api.yml  
41 - variables:  
42 - status: ${get_bid_task_status_5_from_database()}  
43 - msg: ok  
44 - varidate:  
45 - validate:  
46 - - eq:  
47 - - content.msg  
48 - - $msg  
49 - - eq:  
50 - - content.data.status  
51 - - $status  
1 -config:  
2 - name: 竞标任务状态验证-已关闭  
3 -  
4 -teststeps:  
5 -- name: 竞标任务状态验证-已发布,待领取  
6 - testcase: testcases/common/COM015_bid_open_status_2_testcase.yml  
7 -  
8 -- name: 关闭任务  
9 - api: api/m_api/bid/bid_task_close_api.yml  
10 - validate:  
11 - - eq:  
12 - - content.code  
13 - - 0  
14 - - eq:  
15 - - content.msg  
16 - - ok  
17 -  
18 -- name: 查看详情中的状态  
19 - api: api/m_api/bid/bid_detail_api.yml  
20 - variables:  
21 - status: ${get_bid_task_status_6_from_database()}  
22 - msg: ok  
23 - varidate:  
24 - validate:  
25 - - eq:  
26 - - content.msg  
27 - - $msg  
28 - - eq:  
29 - - content.data.status  
30 - - $status  
1 -config:  
2 - name: 指派任务状态验证-待发布  
3 -  
4 -teststeps:  
5 -  
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml  
8 -  
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -  
26 -- name: 保存任务  
27 - api: api/m_api/appoint/appoint_update_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_appoint_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 -  
36 -- name: 查看详情  
37 - api: api/m_api/appoint/appoint_detail_api.yml  
38 - variables:  
39 - status: ${get_appoint_task_status_1_from_database()}  
40 - msg: ok  
41 - varidate:  
42 - validate:  
43 - - eq:  
44 - - content.msg  
45 - - $msg  
46 - - eq:  
47 - - content.data.status  
48 - - $status  
1 -config:  
2 - name: 指派任务状态验证-已发布,进行中  
3 -  
4 -teststeps:  
5 -  
6 -- name: 指派任务状态验证-待发布  
7 - testcase: testcases/common/COM021_appoint_update_status_1_testcase.yml  
8 -  
9 -- name: 发布任务  
10 - api: api/m_api/appoint/appoint_open_api.yml  
11 - varidate:  
12 - validate:  
13 - - eq:  
14 - - content.msg  
15 - - ok  
16 -  
17 -- name: 查看详情  
18 - api: api/m_api/appoint/appoint_detail_api.yml  
19 - variables:  
20 - status: ${get_appoint_task_status_3_from_database()}  
21 - msg: ok  
22 - varidate:  
23 - validate:  
24 - - eq:  
25 - - content.msg  
26 - - $msg  
27 - - eq:  
28 - - content.data.status  
29 - - $status  
1 -config:  
2 - name: 指派任务状态验证-进行中,待验收  
3 -  
4 -teststeps:  
5 -  
6 -- name: 指派任务状态验证-已发布,进行中  
7 - testcase: testcases/common/COM022_appoint_open_status_3_testcase.yml  
8 -  
9 -##-------------------------APP端完成指派任务------------------------------  
10 -- name: 完成任务  
11 - testcase: testcases/task/appoint/appoint_task_finishTask_testcase.yml  
12 -  
13 -- name: 查看详情  
14 - api: api/m_api/appoint/appoint_detail_api.yml  
15 - variables:  
16 - status: ${get_appoint_task_status_4_from_database()}  
17 - msg: ok  
18 - varidate:  
19 - validate:  
20 - - eq:  
21 - - content.msg  
22 - - $msg  
23 - - eq:  
24 - - content.data.status  
25 - - $status  
1 -config:  
2 - name: 指派任务状态验证-已验收,已完成  
3 -  
4 -teststeps:  
5 -  
6 -- name: 指派任务状态验证-进行中,待验收  
7 - testcase: testcases/common/COM023_appoint_open_status_4_testcase.yml  
8 -  
9 -- name: 用户列表  
10 - output:  
11 - - uid0  
12 - - name0  
13 - - uid1  
14 - - name1  
15 - - uid2  
16 - - name2  
17 - - uid15  
18 - - name15  
19 - api: api/m_api/common/user_api.yml  
20 - extract:  
21 - uid0: content.data.list.0.uid  
22 - name0: content.data.list.0.name  
23 - uid1: content.data.list.1.uid  
24 - name1: content.data.list.1.name  
25 - uid2: content.data.list.2.uid  
26 - name2: content.data.list.2.name  
27 - uid15: content.data.list.15.uid  
28 - name15: content.data.list.15.name  
29 -  
30 -- name: 指派任务验收  
31 - api: api/m_api/appoint/appoint_task_accept_api.yml  
32 - validate:  
33 - - eq:  
34 - - content.code  
35 - - 0  
36 - - eq:  
37 - - content.msg  
38 - - ok  
39 -- name: 查看详情  
40 - api: api/m_api/appoint/appoint_detail_api.yml  
41 - variables:  
42 - status: ${get_appoint_task_status_5_from_database()}  
43 - msg: ok  
44 - varidate:  
45 - validate:  
46 - - eq:  
47 - - content.msg  
48 - - $msg  
49 - - eq:  
50 - - content.data.status  
51 - - $status  
1 -config:  
2 - name: 指派任务状态验证-已验收,已完成  
3 -  
4 -teststeps:  
5 -  
6 -- name: 指派任务状态验证-已发布,进行中  
7 - testcase: testcases/common/COM022_appoint_open_status_3_testcase.yml  
8 -  
9 -- name: 关闭任务  
10 - api: api/m_api/appoint/appoint_task_close_api.yml  
11 - validate:  
12 - - eq:  
13 - - content.code  
14 - - 0  
15 - - eq:  
16 - - content.msg  
17 - - ok  
18 -  
19 -- name: 查看详情  
20 - api: api/m_api/appoint/appoint_detail_api.yml  
21 - variables:  
22 - status: ${get_appoint_task_status_6_from_database()}  
23 - msg: ok  
24 - varidate:  
25 - validate:  
26 - - eq:  
27 - - content.msg  
28 - - $msg  
29 - - eq:  
30 - - content.data.status  
31 - - $status  
@@ -100,6 +100,15 @@ testcases: @@ -100,6 +100,15 @@ testcases:
100 - name: ME027-指派任务验收成功-任务领取人和参与人当前素币、贡献值数据正确 100 - name: ME027-指派任务验收成功-任务领取人和参与人当前素币、贡献值数据正确
101 testcase: testcases/app/taskStatistics/ME027-taskStatistics-suMoney-winShares-appointCompleted.yml 101 testcase: testcases/app/taskStatistics/ME027-taskStatistics-suMoney-winShares-appointCompleted.yml
102 102
  103 +- name: ME028-通过管理后台增加素币-当前素币增加、贡献值不变
  104 + testcase: testcases/app/taskStatistics/ME028-taskStatistics-suMoney-winShares-add.yml
  105 +
  106 +- name: ME029-通过管理后台减少素币-当前素币减少、贡献值不变
  107 + testcase: testcases/app/taskStatistics/ME029-taskStatistics-suMoney-winShares-down.yml
  108 +
  109 +- name: ME030-通过管理后台兑换素币-当前素币减少、贡献值不变
  110 + testcase: testcases/app/taskStatistics/ME030-taskStatistics-suMoney-winShares-exc.yml
  111 +
103 ##############################################个人中心数量统计用例结束################################### 112 ##############################################个人中心数量统计用例结束###################################
104 113
105 ##############################################悬赏任务列表用例开始################################### 114 ##############################################悬赏任务列表用例开始###################################