作者 dengyuting

fix

正在显示 100 个修改的文件 包含 2595 行增加1166 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

  1 +adminphone=19911111111
  2 +phone1=19999990001
  3 +phone2=19999990002
  4 +phone3=19999990003
1 wpftwphone=19990000008 5 wpftwphone=19990000008
2 pfphone=19990000011 6 pfphone=19990000011
3 pfphone1=19990000015 7 pfphone1=19990000015
@@ -5,7 +9,8 @@ wtaskphone=19999999999 @@ -5,7 +9,8 @@ wtaskphone=19999999999
5 appphone1=19990000014 9 appphone1=19990000014
6 appphone=19990000015 10 appphone=19990000015
7 password=123456 11 password=123456
8 -base_url=https://ability-test.fjmaimaimai.com  
9 -base_public_url = http://public-interface-test.fjmaimaimai.com/  
10 -base_business_url = https://suplus-business-admin-gateway-test.fjmaimaimai.com/  
11 -base_worth_url = https://suplus-worth-web-gateway-test.fjmaimaimai.com/  
  12 +base_url=https://suplus-worth-app-gateway-test.fjmaimaimai.com
  13 +base_ucenter = http://public-interface-test.fjmaimaimai.com
  14 +base_business_admin = https://suplus-business-admin-gateway-test.fjmaimaimai.com
  15 +base_manager_url = https://suplus-worth-web-gateway-test.fjmaimaimai.com
  16 +companyid=214
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_accesstoken()}  
8 - sign: ${make_sign($currtime, $uuid, $access_token)}  
9 - title: 最有价值测试${get_second()}  
10 - content: 最有价值测试${get_second()}  
11 -request:  
12 - headers:  
13 - Content-Type: application/json;charset=utf-8  
14 - User-Agent: abilityIOSTest/1000012 CFNetwork/1121.2.2 Darwin/19.3.0  
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 - content: $content  
25 - id: 0  
26 - initDep:  
27 - id: 101229  
28 - name: 食品  
29 - pictures:  
30 - - h: 1334  
31 - path: http://ability-test.fjmaimaimai.com:8899/html/ab/1586654116769645740.jpg  
32 - w: 750  
33 - relatedDeps:  
34 - - id: 101229  
35 - name: 食品  
36 - selected: true  
37 - title: $title  
38 - way: 1  
39 - method: POST  
40 - url: /v1/question/addQuestion  
41 -validate:  
42 - - eq:  
43 - - content.code  
44 - - 0  
45 - - eq:  
46 - - content.msg  
47 - - 发布成功  
1 -name: 首页BOSS足迹:/v1/question/bossFootprints  
2 -base_url: ${ENV(base_url)}  
3 -variables:  
4 - currtime: ${make_time()}  
5 - uuid: ${make_uuid()}  
6 - access_token: ${get_accesstoken()}  
7 - sign: ${make_sign($currtime, $uuid, $access_token)}  
8 -request:  
9 - headers:  
10 - Content-Type: application/json;charset=utf-8  
11 - User-Agent: okhttp/3.12.3  
12 - X-MMM-AccessToken: $access_token  
13 - X-MMM-AppName: com.mmm.ability  
14 - X-MMM-AppProject: ability  
15 - X-MMM-DeviceType: '1'  
16 - X-MMM-Sign: $sign  
17 - X-MMM-Timestamp: $currtime  
18 - X-MMM-Uuid: $uuid  
19 - X-MMM-Version: 0.4.0  
20 - json: {}  
21 - method: POST  
22 - url: /v1/question/bossFootprints  
23 -validate:  
24 - - eq:  
25 - - content.code  
26 - - 0  
27 - - eq:  
28 - - content.msg  
29 - - 获取BOSS足迹成功  
@@ -2,29 +2,27 @@ name: 获取授权令牌 @@ -2,29 +2,27 @@ name: 获取授权令牌
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 - currtime: ${make_time()}  
6 - uuid: ${make_uuid()}  
7 - access_token: ''  
8 - sign: ${make_sign($currtime, $uuid,$access_token)}  
9 -teardown_hooks:  
10 - - ${teardown_hook_get_task_accesstoken($response)} 5 + currtime2: ${make_time()}
  6 + uuid2: ${make_uuid()}
  7 + access_token2: ''
  8 + sign2: ${make_sign($currtime2, $uuid2,$access_token2)}
11 request: 9 request:
12 headers: 10 headers:
13 Content-Type: application/json;charset=utf-8 11 Content-Type: application/json;charset=utf-8
14 User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0 12 User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
15 -# X-MMM-AppName: com.maimaimai.abilityIOS  
16 X-MMM-AppProject: ability 13 X-MMM-AppProject: ability
  14 + X-MMM-AccessToken: $access_token2
17 X-MMM-DeviceType: "0" 15 X-MMM-DeviceType: "0"
18 - X-MMM-Sign: $sign  
19 - X-MMM-Timestamp: $currtime  
20 - X-MMM-Uuid: $uuid 16 + X-MMM-Sign: $sign2
  17 + X-MMM-Timestamp: $currtime2
  18 + X-MMM-Uuid: $uuid2
21 X-MMM-Version: 0.12.0 19 X-MMM-Version: 0.12.0
22 json: 20 json:
23 clientId: lks3Z8Ncn2j 21 clientId: lks3Z8Ncn2j
24 - authCode: ${get_task_authcode()} 22 + authCode: ${get_authcode()}
25 clientSecret: gtfhyjukiol3Qncbvmdwe67khh 23 clientSecret: gtfhyjukiol3Qncbvmdwe67khh
26 method: POST 24 method: POST
27 - url: v1/auth/accessToken 25 + url: /v1/auth/accessToken
28 validate: 26 validate:
29 - eq: 27 - eq:
30 - content.code 28 - content.code
1 -name: /api/time/get_timestamp  
2 -request:  
3 - headers:  
4 - User-Agent: okhttp/3.12.3  
5 - method: GET  
6 - url: http://tongji.fjmaimaimai.com/api/time/get_timestamp  
7 -validate:  
8 - - eq:  
9 - - content.msg  
10 - - success  
11 - - eq:  
12 - - content.code  
13 - - 0  
1 -name: 客户端账号登录  
2 -base_url: ${ENV(base_url)}  
3 -verify: False  
4 -variables:  
5 - currtime: ${make_time()}  
6 - uuid: ${make_uuid()}  
7 - access_token: ''  
8 - sign: ${make_sign($currtime, $uuid,$access_token)}  
9 - phone: ${ENV(wpftwphone)}  
10 -teardown_hooks:  
11 - - ${teardown_hook_get_authcode($response)}  
12 -request:  
13 - headers:  
14 - Content-Type: application/json;charset=utf-8  
15 - User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0  
16 - X-MMM-AppName: com.maimaimai.abilityIOS  
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: 0.12.0  
23 - json:  
24 - clientId: lks3Z8Ncn2j  
25 - credentials: ${get_credentials()}  
26 - cuid: ${get_cuid()}  
27 - muid: ${get_muid()}  
28 - cid: ${get_cid()}  
29 - method: POST  
30 - url: v1/auth/authorize  
31 -validate:  
32 -- eq:  
33 - - content.code  
34 - - 0  
35 -- eq:  
36 - - content.msg  
37 - - 登录成功  
38 -  
  1 +name: 登录价值系统
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +#teardown_hooks:
  5 +# - ${teardown_hook_get_authcode($response)}
  6 +variables:
  7 + currtime1: ${make_time()}
  8 + uuid1: ${make_uuid()}
  9 + access_token1: ''
  10 + sign1: ${make_sign($currtime1, $uuid1,$access_token1)}
  11 + credentials: $credentials
  12 + cuid: $cuid
  13 + muid: $muid
  14 + cid: ${ENV(companyid)}
  15 +request:
  16 + headers:
  17 + Content-Type: application/json;charset=utf-8
  18 + User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
  19 + X-MMM-AppName: com.maimaimai.abilityIOS
  20 + X-MMM-AccessToken: $access_token1
  21 + X-MMM-AppProject: ability
  22 + X-MMM-DeviceType: '0'
  23 + X-MMM-Sign: $sign1
  24 + X-MMM-Timestamp: $currtime1
  25 + X-MMM-Uuid: $uuid1
  26 + X-MMM-Version: 0.12.0
  27 + json:
  28 + clientId: lks3Z8Ncn2j
  29 + credentials: $credentials
  30 + cuid: $cuid
  31 + muid: $muid
  32 + cid: ${ENV(companyid)}
  33 + method: POST
  34 + url: /v1/auth/authorize
  35 +extract:
  36 + authCode: content.data.authCode
  37 +validate:
  38 +- eq:
  39 + - content.code
  40 + - 0
  41 +
1 -name: 登录价值系统  
2 -base_url: ${ENV(base_url)}  
3 -verify: False  
4 -variables:  
5 - currtime: ${make_time()}  
6 - uuid: ${make_uuid()}  
7 - access_token: ''  
8 - sign: ${make_sign($currtime, $uuid,$access_token)}  
9 - phone: ${ENV(wpftwphone)}  
10 -teardown_hooks:  
11 - - ${teardown_hook_get_task_authcode($response)}  
12 -request:  
13 - headers:  
14 - Content-Type: application/json;charset=utf-8  
15 - User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0  
16 - X-MMM-AppName: com.maimaimai.abilityIOS  
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: 0.12.0  
23 - json:  
24 - clientId: lks3Z8Ncn2j  
25 - credentials: ${get_credentials()}  
26 - cuid: ${get_cuid()}  
27 - muid: ${get_muid()}  
28 - cid: ${get_cid()}  
29 - method: POST  
30 - url: v1/auth/authorize  
31 -validate:  
32 -- eq:  
33 - - content.code  
34 - - 0  
35 -- eq:  
36 - - content.msg  
37 - - 登录成功  
38 -  
1 -name: 用户中心账号登录  
2 -base_url: ${ENV(base_public_url)} 1 +name: 账号登录:/auth/loginAggregate
  2 +base_url: ${ENV(base_ucenter)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 - currtime: ${make_time()}  
6 - uuid: ${make_uuid()}  
7 - access_token: ''  
8 - sign: ${make_sign($currtime, $uuid,$access_token)}  
9 grantType: signInPassword 5 grantType: signInPassword
10 - phone: ${ENV(appphone)} 6 + phone: ${ENV(adminphone)}
11 password: 7c4a8d09ca3762af61e59520943dc26494f8941b 7 password: 7c4a8d09ca3762af61e59520943dc26494f8941b
12 Type: 1 8 Type: 1
13 msg: ok 9 msg: ok
14 -teardown_hooks:  
15 - - ${teardown_hook_get_cuid($response)}  
16 - - ${teardown_hook_get_credentials($response)}  
17 - - ${teardown_hook_get_muid($response)}  
18 - - ${teardown_hook_get_cid($response)}  
19 - 10 +#teardown_hooks:
  11 +# - ${teardown_hook_get_authcode($response)}
20 request: 12 request:
21 headers: 13 headers:
22 Content-Type: application/json;charset=utf-8 14 Content-Type: application/json;charset=utf-8
23 User-Agent: okhttp/3.12.3 15 User-Agent: okhttp/3.12.3
24 - X-MMM-AccessToken: $access_token  
25 X-MMM-DeviceType: '1' 16 X-MMM-DeviceType: '1'
26 - X-MMM-Sign: $sign  
27 - X-MMM-Timestamp: $currtime  
28 - X-MMM-Uuid: $uuid  
29 X-MMM-Version: 0.9.0 17 X-MMM-Version: 0.9.0
30 json: 18 json:
31 grantType: $grantType 19 grantType: $grantType
@@ -33,11 +21,12 @@ request: @@ -33,11 +21,12 @@ request:
33 phone: $phone 21 phone: $phone
34 clientId: lks3Z8Ncn2j 22 clientId: lks3Z8Ncn2j
35 method: POST 23 method: POST
36 - url: ucenter/v2/auth/loginAggregate 24 + url: /ucenter/v2/auth/loginAggregate
37 extract: 25 extract:
38 -# cuid: content.data.cuid 26 + cuid: content.data.cuid
39 credentials: content.data.credentials 27 credentials: content.data.credentials
  28 + muid: content.data.companys.0.muid
40 validate: 29 validate:
41 - eq: 30 - eq:
42 - content.msg 31 - content.msg
43 - - ok 32 + - $msg
1 -name: 获取授权令牌 1 +name: 获取用户信息
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 currtime: ${make_time()} 5 currtime: ${make_time()}
6 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
7 - access_token: ''  
8 - sign: ${make_sign($currtime, $uuid,$access_token)}  
9 -teardown_hooks:  
10 - - ${teardown_hook_get_accesstoken($response)} 7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
11 request: 9 request:
12 headers: 10 headers:
13 Content-Type: application/json;charset=utf-8 11 Content-Type: application/json;charset=utf-8
14 User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0 12 User-Agent: abilityIOSTest/120004 CFNetwork/1121.2.2 Darwin/19.3.0
  13 + X-MMM-AccessToken: $access_token
15 # X-MMM-AppName: com.maimaimai.abilityIOS 14 # X-MMM-AppName: com.maimaimai.abilityIOS
16 X-MMM-AppProject: ability 15 X-MMM-AppProject: ability
17 X-MMM-DeviceType: "0" 16 X-MMM-DeviceType: "0"
@@ -20,15 +19,10 @@ request: @@ -20,15 +19,10 @@ request:
20 X-MMM-Uuid: $uuid 19 X-MMM-Uuid: $uuid
21 X-MMM-Version: 0.12.0 20 X-MMM-Version: 0.12.0
22 json: 21 json:
23 - clientId: lks3Z8Ncn2j  
24 - authCode: ${get_authcode()}  
25 - clientSecret: gtfhyjukiol3Qncbvmdwe67khh 22 + clientId: lks3Z8Ncn2jhr
26 method: POST 23 method: POST
27 - url: v1/auth/accessToken 24 + url: /v2/user/userInfo
28 validate: 25 validate:
29 - eq: 26 - eq:
30 - content.code 27 - content.code
31 - 0 28 - 0
32 -- eq:  
33 - - content.msg  
34 - - 获取成功  
1 -name: 待我审核:/v1/question/audits_ireview  
2 -base_url: ${ENV(base_url)}  
3 -variables:  
4 - currtime: ${make_time()}  
5 - uuid: ${make_uuid()}  
6 - access_token: ${get_accesstoken()}  
7 - sign: ${make_sign($currtime, $uuid, $access_token)}  
8 -#output:  
9 -# qid: qid  
10 -  
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: 0.12.0  
23 - json:  
24 - dids: ''  
25 - lastId: 0  
26 - pageSize: 20  
27 - method: POST  
28 - url: /v1/question/audits_ireview  
29 -#extract:  
30 -# qid: content.data.questions.0.id  
31 -validate:  
32 -- eq:  
33 - - content.code  
34 - - 0  
35 -- eq:  
36 - - content.msg  
37 - - 问题审核列表成功  
1 -name: 获取BOSS足迹:/v2/question/bossFootprints  
2 -base_url: ${ENV(base_url)}  
3 -variables:  
4 - currtime: ${make_time()}  
5 - uuid: ${make_uuid()}  
6 - var_access_token: ${get_accesstoken()}  
7 - sign: ${make_sign($currtime, $uuid, $var_access_token)}  
8 -request:  
9 - headers:  
10 - Content-Type: application/json;charset=utf-8  
11 - User-Agent: okhttp/3.12.3  
12 - X-MMM-AccessToken: $var_access_token  
13 - X-MMM-AppName: com.mmm.ability  
14 - X-MMM-AppProject: ability  
15 - X-MMM-DeviceType: '0'  
16 - X-MMM-Sign: $sign  
17 - X-MMM-Timestamp: $currtime  
18 - X-MMM-Uuid: $uuid  
19 - X-MMM-Version: 0.12.0  
20 - json:  
21 - pageIndex: 0  
22 - pageSize: 20  
23 - method: POST  
24 - url: /v2/question/bossFootprints  
25 -validate:  
26 - - eq:  
27 - - content.code  
28 - - 0  
29 - - eq:  
30 - - content.msg  
31 - - 获取BOSS足迹成功  
1 -name: 查看提问详情:/v2/question/details  
2 -base_url: ${ENV(base_url)}  
3 -variables:  
4 - currtime: ${make_time()}  
5 - uuid: ${make_uuid()}  
6 - access_token: ${get_accesstoken()}  
7 - sign: ${make_sign($currtime, $uuid, $access_token)}  
8 -teardown_hooks:  
9 - - ${teardown_hook_get_serialNo($response)}  
10 -request:  
11 - headers:  
12 - Content-Type: application/json;charset=utf-8  
13 - User-Agent: okhttp/3.12.3  
14 - X-MMM-AccessToken: $access_token  
15 - X-MMM-AppName: com.mmm.ability  
16 - X-MMM-AppProject: ability  
17 - X-MMM-DeviceType: '0'  
18 - X-MMM-Sign: $sign  
19 - X-MMM-Timestamp: $currtime  
20 - X-MMM-Uuid: $uuid  
21 - X-MMM-Version: 0.12.0  
22 - json:  
23 -# commentLastId: 0  
24 -# commentPageSize: 20  
25 - qid: $qid  
26 - method: POST  
27 - url: /v2/question/details  
28 -validate:  
29 -- eq:  
30 - - content.code  
31 - - 0  
32 -- eq:  
33 - - content.msg  
34 - - 获取问题详情成功  
1 -name: 公司悬赏任务 1 +name: 任务统计
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
@@ -19,17 +19,10 @@ request: @@ -19,17 +19,10 @@ request:
19 X-MMM-Uuid: $uuid 19 X-MMM-Uuid: $uuid
20 X-MMM-Version: 1.0.0 20 X-MMM-Version: 1.0.0
21 json: 21 json:
22 - pageIndex: 0  
23 - pageSize: 20 22 + id: 0
24 method: POST 23 method: POST
25 - url: v1/task/rewards 24 + url: /v1/task/taskStatistics
26 validate: 25 validate:
27 - eq: 26 - eq:
28 - content.code 27 - content.code
29 - 0 28 - 0
30 - - eq:  
31 - - content.data.tasks.0.id  
32 - - $id  
33 - - eq:  
34 - - content.msg  
35 - - 获取成功  
1 -name: 公司任务(进行中) 1 +name: 个人中心-指派我的
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
@@ -6,8 +6,7 @@ variables: @@ -6,8 +6,7 @@ variables:
6 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
7 access_token: ${get_task_accesstoken()} 7 access_token: ${get_task_accesstoken()}
8 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
9 -teardown_hooks:  
10 - - ${teardown_hook_get_task_3_2_total($response)} 9 + action: 0
11 request: 10 request:
12 headers: 11 headers:
13 Content-Type: application/json;charset=utf-8 12 Content-Type: application/json;charset=utf-8
@@ -21,16 +20,12 @@ request: @@ -21,16 +20,12 @@ request:
21 X-MMM-Uuid: $uuid 20 X-MMM-Uuid: $uuid
22 X-MMM-Version: 1.0.0 21 X-MMM-Version: 1.0.0
23 json: 22 json:
24 - action: 0  
25 - newest: 0  
26 pageIndex: 0 23 pageIndex: 0
27 pageSize: 20 24 pageSize: 20
  25 + action: $action
28 method: POST 26 method: POST
29 - url: v1/task/currentTasks 27 + url: /v1/task/AssignMeTasks
30 validate: 28 validate:
31 - eq: 29 - eq:
32 - content.code 30 - content.code
33 - 0 31 - 0
34 - - eq:  
35 - - content.msg  
36 - - 获取成功  
1 -name: 公告列表:/v1/message/announcements 1 +name: 中标
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
  9 + id: 12345678
  10 + uid: 123456789
  11 + planFinishDate: 1603900800000
8 request: 12 request:
9 headers: 13 headers:
10 Content-Type: application/json;charset=utf-8 14 Content-Type: application/json;charset=utf-8
@@ -16,14 +20,14 @@ request: @@ -16,14 +20,14 @@ request:
16 X-MMM-Sign: $sign 20 X-MMM-Sign: $sign
17 X-MMM-Timestamp: $currtime 21 X-MMM-Timestamp: $currtime
18 X-MMM-Uuid: $uuid 22 X-MMM-Uuid: $uuid
19 - X-MMM-Version: 0.12.0  
20 - json: {} 23 + X-MMM-Version: 1.0.0
  24 + json:
  25 + id: $id
  26 + planFinishDate: $planFinishDate
  27 + uid: $uid
21 method: POST 28 method: POST
22 - url: /v1/message/announcements 29 + url: /v1/task/bidTask
23 validate: 30 validate:
24 - eq: 31 - eq:
25 - content.code 32 - content.code
26 - 0 33 - 0
27 - - eq:  
28 - - content.msg  
29 - - 获取公告信息成功  
1 -name: 审核提问:/v1/question/auditQuestion 1 +name: 验收任务
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
8 - published: 2 9 + id: 0123456
  10 + actualFinishDate: 1568956
9 request: 11 request:
10 headers: 12 headers:
11 Content-Type: application/json;charset=utf-8 13 Content-Type: application/json;charset=utf-8
@@ -17,18 +19,27 @@ request: @@ -17,18 +19,27 @@ request:
17 X-MMM-Sign: $sign 19 X-MMM-Sign: $sign
18 X-MMM-Timestamp: $currtime 20 X-MMM-Timestamp: $currtime
19 X-MMM-Uuid: $uuid 21 X-MMM-Uuid: $uuid
20 - X-MMM-Version: 0.12.0 22 + X-MMM-Version: 1.0.0
21 json: 23 json:
22 - id: $qid  
23 - published: $published  
24 - qTypeId: 149  
25 - scoreAsk: 0.5 24 + id: $id
  25 + actualFinishDate: $actualFinishDate
  26 + taskAwards:
  27 + - uid: 3284714710070272
  28 + uname: '价值系统账号1'
  29 + bonus: 90
  30 + percent: 90
  31 + - uid: 3284714779253760
  32 + uname: '价值系统账号3'
  33 + bonus: 10
  34 + percent: 10
  35 +# resourceAwards:
  36 +# -
  37 + solveReport: '解决方案报告${get_nowtime()}'
  38 +# solveImages:
  39 +# -
26 method: POST 40 method: POST
27 - url: /v1/question/auditQuestion 41 + url: /v1/task/checkAccept
28 validate: 42 validate:
29 -- eq: 43 + - eq:
30 - content.code 44 - content.code
31 - 0 45 - 0
32 -- eq:  
33 - - content.msg  
34 - - 审核成功  
1 -name: 首页搜索:/v1/question/searchAll 1 +name: 任务列表
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
8 - 9 + action: 0
  10 + newest: 0
9 request: 11 request:
10 headers: 12 headers:
11 Content-Type: application/json;charset=utf-8 13 Content-Type: application/json;charset=utf-8
@@ -13,22 +15,28 @@ request: @@ -13,22 +15,28 @@ request:
13 X-MMM-AccessToken: $access_token 15 X-MMM-AccessToken: $access_token
14 X-MMM-AppName: com.mmm.ability 16 X-MMM-AppName: com.mmm.ability
15 X-MMM-AppProject: ability 17 X-MMM-AppProject: ability
16 - X-MMM-DeviceType: '1' 18 + X-MMM-DeviceType: '0'
17 X-MMM-Sign: $sign 19 X-MMM-Sign: $sign
18 X-MMM-Timestamp: $currtime 20 X-MMM-Timestamp: $currtime
19 X-MMM-Uuid: $uuid 21 X-MMM-Uuid: $uuid
20 - X-MMM-Version: 0.5.0 22 + X-MMM-Version: 1.0.0
21 json: 23 json:
22 - keyword: ' '  
23 pageIndex: 0 24 pageIndex: 0
24 pageSize: 20 25 pageSize: 20
25 - solved: 0 26 + action: $action
  27 + newest: $newest
  28 +# natures:
  29 +# - id:
  30 +# name:
  31 +# attributes:
  32 +# - id:
  33 +# name:
  34 +# csVals:
  35 +# - id:
  36 +# name:
26 method: POST 37 method: POST
27 - url: /v1/question/searchAll 38 + url: /v1/task/contendTasks
28 validate: 39 validate:
29 -- eq: 40 + - eq:
30 - content.code 41 - content.code
31 - 0 42 - 0
32 -- eq:  
33 - - content.msg  
34 - - 获取提问列表成功  
1 -name: 消息数量统计(首页、个人中心):/v1/message/msgStatistics 1 +name: 完成任务
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
  9 + id: 12345678
8 request: 10 request:
9 headers: 11 headers:
10 Content-Type: application/json;charset=utf-8 12 Content-Type: application/json;charset=utf-8
@@ -16,15 +18,12 @@ request: @@ -16,15 +18,12 @@ request:
16 X-MMM-Sign: $sign 18 X-MMM-Sign: $sign
17 X-MMM-Timestamp: $currtime 19 X-MMM-Timestamp: $currtime
18 X-MMM-Uuid: $uuid 20 X-MMM-Uuid: $uuid
19 - X-MMM-Version: 0.12.0 21 + X-MMM-Version: 1.0.0
20 json: 22 json:
21 - typeTotal: 1835019 23 + id: $id
22 method: POST 24 method: POST
23 - url: /v1/message/msgStatistics 25 + url: /v1/task/finishTask
24 validate: 26 validate:
25 - eq: 27 - eq:
26 - content.code 28 - content.code
27 - 0 29 - 0
28 - - eq:  
29 - - content.msg  
30 - - 获取统计信息成功  
1 -name: 公司任务(进行中) 1 +name: 个人中心-我发布的
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
@@ -6,8 +6,8 @@ variables: @@ -6,8 +6,8 @@ variables:
6 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
7 access_token: ${get_task_accesstoken()} 7 access_token: ${get_task_accesstoken()}
8 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
9 -teardown_hooks:  
10 - - ${teardown_hook_get_task_3_1_total($response)} 9 + action: 0
  10 + type: [0,1,2]
11 request: 11 request:
12 headers: 12 headers:
13 Content-Type: application/json;charset=utf-8 13 Content-Type: application/json;charset=utf-8
@@ -21,19 +21,11 @@ request: @@ -21,19 +21,11 @@ request:
21 X-MMM-Uuid: $uuid 21 X-MMM-Uuid: $uuid
22 X-MMM-Version: 1.0.0 22 X-MMM-Version: 1.0.0
23 json: 23 json:
24 - action: 0  
25 - newest: 0  
26 - pageIndex: 0  
27 - pageSize: 20 24 + action: $action
  25 + type: $type
28 method: POST 26 method: POST
29 - url: v1/task/currentTasks 27 + url: /v1/task/iPublishedTasks
30 validate: 28 validate:
31 - eq: 29 - eq:
32 - content.code 30 - content.code
33 - 0 31 - 0
34 - - eq:  
35 - - content.msg  
36 - - 获取成功  
37 -# - eq:  
38 -# - $task_total1  
39 -# - $task_total2  
1 -name: 公司任务(进行中) 1 +name: 领取任务
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
@@ -6,8 +6,8 @@ variables: @@ -6,8 +6,8 @@ variables:
6 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
7 access_token: ${get_task_accesstoken()} 7 access_token: ${get_task_accesstoken()}
8 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
9 -teardown_hooks:  
10 - - ${teardown_hook_get_task_3_2_total($response)} 9 + action: 0
  10 + id: 3120540807229604864
11 request: 11 request:
12 headers: 12 headers:
13 Content-Type: application/json;charset=utf-8 13 Content-Type: application/json;charset=utf-8
@@ -21,19 +21,11 @@ request: @@ -21,19 +21,11 @@ request:
21 X-MMM-Uuid: $uuid 21 X-MMM-Uuid: $uuid
22 X-MMM-Version: 1.0.0 22 X-MMM-Version: 1.0.0
23 json: 23 json:
24 - action: 0  
25 - newest: 0  
26 - pageIndex: 0  
27 - pageSize: 20 24 + id: $id
  25 + action: $action
28 method: POST 26 method: POST
29 - url: v1/task/currentTasks 27 + url: /v1/task/submitCompete
30 validate: 28 validate:
31 - eq: 29 - eq:
32 - content.code 30 - content.code
33 - 0 31 - 0
34 - - eq:  
35 - - content.msg  
36 - - 获取成功  
37 - - eq:  
38 - - $task_total1  
39 - - $task_total2  
1 -name: 申请解决提问:/v1/question/applyForQuestions 1 +name: 查看任务详情
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
8 - 9 + id: 12345678
9 request: 10 request:
10 headers: 11 headers:
11 Content-Type: application/json;charset=utf-8 12 Content-Type: application/json;charset=utf-8
@@ -17,15 +18,12 @@ request: @@ -17,15 +18,12 @@ request:
17 X-MMM-Sign: $sign 18 X-MMM-Sign: $sign
18 X-MMM-Timestamp: $currtime 19 X-MMM-Timestamp: $currtime
19 X-MMM-Uuid: $uuid 20 X-MMM-Uuid: $uuid
20 - X-MMM-Version: 0.12.0 21 + X-MMM-Version: 1.0.0
21 json: 22 json:
22 - qid: $qid 23 + id: $id
23 method: POST 24 method: POST
24 - url: /v1/question/applyForQuestions 25 + url: /v1/task/taskDetails
25 validate: 26 validate:
26 -- eq: 27 + - eq:
27 - content.code 28 - content.code
28 - 0 29 - 0
29 -- eq:  
30 - - content.msg  
31 - - 申请解决成功  
  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 + type: 0
  11 + bidStartTime:
  12 + bidEndTime:
  13 + plannedFinishDate:
  14 + uid:
  15 + uname:
  16 + title: 'APP提交任务标题'
  17 + content: 'APP提交任务内容'
  18 + acceptability: 'APP提交验收标准'
  19 +request:
  20 + headers:
  21 + Content-Type: application/json;charset=utf-8
  22 + User-Agent: okhttp/3.12.3
  23 + X-MMM-AccessToken: $access_token
  24 + X-MMM-AppName: com.mmm.ability
  25 + X-MMM-AppProject: ability
  26 + X-MMM-DeviceType: '0'
  27 + X-MMM-Sign: $sign
  28 + X-MMM-Timestamp: $currtime
  29 + X-MMM-Uuid: $uuid
  30 + X-MMM-Version: 1.0.0
  31 + json:
  32 + id: 0
  33 + action: $action
  34 + type: $type
  35 + title: $title
  36 + content: $content
  37 + acceptability: $acceptability
  38 +# images:
  39 +# - path:
  40 +# w:
  41 +# h:
  42 + nature:
  43 + id: 16
  44 + name: '性质管理1'
  45 + csVals:
  46 + - id: 36
  47 + name: '价值管理1'
  48 + bidStartTime: $bidStartTime
  49 + bidEndTime: $bidEndTime
  50 + bonus: 100
  51 + refResources:
  52 + rType:
  53 + id:
  54 + serialNo:
  55 + title:
  56 + content:
  57 + isReward:
  58 + attribute:
  59 + id: 17
  60 + name: '项目归属1'
  61 + employees:
  62 + uid: $uid
  63 + uname: $uname
  64 + plannedFinishDate: $plannedFinishDate
  65 + deadlineRemind:
  66 + method: POST
  67 + url: /v1/task/taskPublish
  68 +validate:
  69 + - eq:
  70 + - content.code
  71 + - 0
1 -name: 首页公告内容:/v1/notice/announcement 1 +name: 确认领取人
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
  3 +verify: False
3 variables: 4 variables:
4 currtime: ${make_time()} 5 currtime: ${make_time()}
5 uuid: ${make_uuid()} 6 uuid: ${make_uuid()}
6 - access_token: ${get_accesstoken()} 7 + access_token: ${get_task_accesstoken()}
7 sign: ${make_sign($currtime, $uuid, $access_token)} 8 sign: ${make_sign($currtime, $uuid, $access_token)}
  9 + taskId: 123456789
  10 + planDate: 1603900800000
8 request: 11 request:
9 headers: 12 headers:
10 Content-Type: application/json;charset=utf-8 13 Content-Type: application/json;charset=utf-8
@@ -16,14 +19,13 @@ request: @@ -16,14 +19,13 @@ request:
16 X-MMM-Sign: $sign 19 X-MMM-Sign: $sign
17 X-MMM-Timestamp: $currtime 20 X-MMM-Timestamp: $currtime
18 X-MMM-Uuid: $uuid 21 X-MMM-Uuid: $uuid
19 - X-MMM-Version: 0.12.0  
20 - json: {} 22 + X-MMM-Version: 1.0.0
  23 + json:
  24 + taskId: $taskId
  25 + planDate: $planDate
21 method: POST 26 method: POST
22 - url: /v1/notice/announcement 27 + url: /v1/task/verifyReceiver
23 validate: 28 validate:
24 - eq: 29 - eq:
25 - content.code 30 - content.code
26 - 0 31 - 0
27 - - eq:  
28 - - content.msg  
29 - - 获取公告信息成功  
1 -name: 获取用户信息  
2 -base_url: ${ENV(base_url)}  
3 -variables:  
4 - currtime: ${make_time()}  
5 - uuid: ${make_uuid()}  
6 - var_access_token: ${get_task_accesstoken()}  
7 - sign: ${make_sign($currtime, $uuid, $var_access_token)}  
8 -request:  
9 - headers:  
10 - Content-Type: application/json;charset=utf-8  
11 - User-Agent: okhttp/3.12.3  
12 - X-MMM-AccessToken: $var_access_token  
13 - X-MMM-AppName: com.mmm.ability  
14 - X-MMM-AppProject: ability  
15 - X-MMM-DeviceType: '0'  
16 - X-MMM-Sign: $sign  
17 - X-MMM-Timestamp: $currtime  
18 - X-MMM-Uuid: $uuid  
19 - X-MMM-Version: 0.12.0  
20 - json: {}  
21 - method: POST  
22 - url: v2/user/userInfo  
23 -validate:  
24 - - eq:  
25 - - content.code  
26 - - 0  
27 - - eq:  
28 - - content.msg  
29 - - 获取用户信息  
30 - - eq:  
31 - - content.data.user.permissionTaskPublish  
32 - - $permissionTaskPublish  
1 name: 登录公司 1 name: 登录公司
2 -base_url: ${ENV(base_business_url)} 2 +base_url: ${ENV(base_business_admin)}
3 verify: False 3 verify: False
4 -teardown_hooks:  
5 - - ${teardown_hook_get_access_token($response)} 4 +variables:
  5 + companyId: ${ENV(companyId)}
6 request: 6 request:
7 headers: 7 headers:
8 Content-Type: application/json; charset=UTF-8 8 Content-Type: application/json; charset=UTF-8
9 - Authorization: Bearer ${get_Authorization()} 9 + Authorization: Bearer $pwdLogintoken
10 Origin: https://enterprise-platform-dev.fjmaimaimai.com 10 Origin: https://enterprise-platform-dev.fjmaimaimai.com
11 Referer: https://enterprise-platform-dev.fjmaimaimai.com/ 11 Referer: https://enterprise-platform-dev.fjmaimaimai.com/
12 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 12 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
@@ -14,11 +14,8 @@ request: @@ -14,11 +14,8 @@ request:
14 json: 14 json:
15 companyId: $companyId 15 companyId: $companyId
16 method: POST 16 method: POST
17 - url: auth/anonymousLogin 17 + url: /auth/anonymousLogin
18 validate: 18 validate:
19 -- eq:  
20 - - content.code  
21 - - 0  
22 -- eq: 19 + - eq:
23 - content.msg 20 - content.msg
24 - ok 21 - ok
1 name: 登录列表 1 name: 登录列表
2 -base_url: ${ENV(base_business_url)} 2 +base_url: ${ENV(base_business_admin)}
3 verify: False 3 verify: False
4 -teardown_hooks:  
5 - - ${teardown_hook_get_login_code($response)}  
6 request: 4 request:
7 headers: 5 headers:
8 Content-Type: application/json; charset=UTF-8 6 Content-Type: application/json; charset=UTF-8
9 - Authorization: Bearer ${get_access_token()}  
10 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
11 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/ 7 + Authorization: Bearer $anonymousLogintoken
12 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
13 X-Requested-With: XMLHttpRequest 9 X-Requested-With: XMLHttpRequest
14 json: 10 json:
  11 + companyId: 214
15 method: POST 12 method: POST
16 - url: auth/getSingleLoginMenus 13 + url: /auth/getSingleLoginMenus
  14 +extract:
  15 + url: content.data.list.0.url
17 validate: 16 validate:
18 - eq: 17 - eq:
19 - content.code 18 - content.code
20 - 0 19 - 0
21 -- eq:  
22 - - content.msg  
23 - - ok  
1 name: 登录价值系统 1 name: 登录价值系统
2 -base_url: ${ENV(base_worth_url)} 2 +base_url: ${ENV(base_manager_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
  5 + secret: ${get_secret($url)}
5 msg: ok 6 msg: ok
6 -teardown_hooks:  
7 - - ${teardown_hook_get_task_Authorization($response)}  
8 -  
9 request: 7 request:
10 headers: 8 headers:
11 -# Authorization: Bearer ${get_access_token()}  
12 Content-Type: application/json; charset=UTF-8 9 Content-Type: application/json; charset=UTF-8
13 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
14 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
15 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36 10 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36
16 X-Requested-With: XMLHttpRequest 11 X-Requested-With: XMLHttpRequest
17 json: 12 json:
18 - code: ${get_login_code()} 13 + code: $secret
19 method: POST 14 method: POST
20 url: auth/login 15 url: auth/login
21 validate: 16 validate:
1 name: 企业平台账号登录 1 name: 企业平台账号登录
2 -base_url: ${ENV(base_business_url)} 2 +base_url: ${ENV(base_business_admin)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 -# username: ${ENV(wpftwphone)} 5 + phone: ${ENV(adminphone)}
6 password: 7c4a8d09ca3762af61e59520943dc26494f8941b 6 password: 7c4a8d09ca3762af61e59520943dc26494f8941b
7 -teardown_hooks:  
8 - - ${teardown_hook_get_Authorization($response)}  
9 7
10 request: 8 request:
11 headers: 9 headers:
@@ -16,9 +14,11 @@ request: @@ -16,9 +14,11 @@ request:
16 X-Requested-With: XMLHttpRequest 14 X-Requested-With: XMLHttpRequest
17 json: 15 json:
18 password: $password 16 password: $password
19 - username: $username 17 + username: ${phone}
20 method: POST 18 method: POST
21 - url: auth/pwdLogin 19 + url: /auth/pwdLogin
  20 +extract:
  21 + pwdLogintoken: content.data.access.token
22 validate: 22 validate:
23 - eq: 23 - eq:
24 - content.msg 24 - content.msg
1 -name: 保存抢单任务  
2 -base_url: ${ENV(base_worth_url)} 1 +name: 新增抢单任务
  2 +base_url: ${ENV(base_manager_url)}
3 verify: False 3 verify: False
4 variables: 4 variables:
5 name: 测试抢单任务名称${get_nowtime()} 5 name: 测试抢单任务名称${get_nowtime()}
6 acceptanceCriteria: 测试抢单任务的验收标准${get_nowtime()} 6 acceptanceCriteria: 测试抢单任务的验收标准${get_nowtime()}
7 description: 测试抢单任务的任务描述${get_nowtime()} 7 description: 测试抢单任务的任务描述${get_nowtime()}
  8 + isImportant: false
8 msg: ok 9 msg: ok
9 -teardown_hooks:  
10 - - ${teardown_hook_get_loot_task_id($response)} 10 +#teardown_hooks:
  11 +# - ${teardown_hook_get_loot_task_id($response)}
11 request: 12 request:
12 headers: 13 headers:
13 Content-Type: application/json; charset=UTF-8 14 Content-Type: application/json; charset=UTF-8
14 - Authorization: Bearer ${get_task_Authorization()}  
15 - Origin: https://value-test.fjmaimaimai.com  
16 - Referer: https://value-test.fjmaimaimai.com/ 15 + Authorization: Bearer ${get_task_manager_accesstoken()}
17 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 16 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
18 - X-Requested-With: XMLHttpRequest  
19 json: 17 json:
20 name: $name 18 name: $name
21 - resourceType: 1  
22 - resourceList:  
23 - - id: ${get_resource_id()}  
24 - title: ${get_resource_title()}  
25 - content: ${get_resource_content()}  
26 - serial: ${get_serialNo()} 19 +# resourceType: 1
  20 +# resourceList:
  21 +# - id: ${get_resource_id()}
  22 +# title: ${get_resource_title()}
  23 +# content: ${get_resource_content()}
  24 +# serial: ${get_serialNo()}
27 customerValue: 25 customerValue:
28 - 31 26 - 31
29 taskCharacter: 12 27 taskCharacter: 12
30 reward: 2000 28 reward: 2000
31 acceptanceCriteria: $acceptanceCriteria 29 acceptanceCriteria: $acceptanceCriteria
32 description: $description 30 description: $description
33 - isImportant: true 31 + isImportant: $isImportant
34 taskBelong: 13 32 taskBelong: 13
35 # pictures: 33 # pictures:
36 method: POST 34 method: POST
37 - url: task/loot/update 35 + url: /task/loot/update
38 validate: 36 validate:
39 - eq: 37 - eq:
40 - - content.code  
41 - - 0  
42 - - eq:  
43 - content.msg 38 - content.msg
44 - $msg 39 - $msg
1 -426iJfhpTdwa4y5kRwFiekPznxmETSTA  
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvYW5vbnltb3VzTG9naW4iLCJpYXQiOjE1OTk3MjMyNzcsImV4cCI6MTU5OTczNDA3NywibmJmIjoxNTk5NzIzMjc3LCJqdGkiOiJJTmJjQXZlelc5MFhBbnlIIiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU4Yzc5XHU1YjUwXHU1OTM0IiwicGhvbmUiOiIxOTk5MDAwMDAwOCIsImlkIjozMjQ4ODE3NjEzNjgxNjY0LCJhZG1pblR5cGUiOjF9.3VNOCzT9Pu_RGsCICXEsMuM_mFRETunNtoSB_TPDshE  
1 -dd1ea685842935996b653a7535369e29b68d929fa63dad46d1c0bee989c568eba721eb29  
1 -3679205383782400  
1 -3248817613892608  
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NzIzMjc3LCJleHAiOjE1OTk3MzQwNzcsIm5iZiI6MTU5OTcyMzI3NywianRpIjoiUUx4dlFBWWlJUzFUNDEyUiIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.C6WiMH4f3HTpNMd90OIPwH0Xj0IO9KQTw_8fFQArMkA  
1 -AdPr5t7P7iGyWEkawhEHjE676QGXHFD2  
  1 +rCGkdEk6mjkyz7jkwjezjxsZ5Z5ASjAd
1 -3248817613892608  
1 -3248817613863936  
1 -3247366011913216  
1 -3248817613835264  
1 import json 1 import json
2 import time 2 import time
  3 +from urllib import parse
  4 +
3 from helpfunc.db_func import * 5 from helpfunc.db_func import *
4 from helpfunc.header_func import * 6 from helpfunc.header_func import *
5 from helpfunc.login_func import * 7 from helpfunc.login_func import *
6 -from helpfunc.m_func import *  
7 from helpfunc.pg_db_loot_func import * 8 from helpfunc.pg_db_loot_func import *
8 from helpfunc.pg_db_bid_func import * 9 from helpfunc.pg_db_bid_func import *
9 from helpfunc.pg_db_appoint_func import * 10 from helpfunc.pg_db_appoint_func import *
10 -# from helpfunc.time_func import * 11 +
11 12
12 import time,datetime,re 13 import time,datetime,re
13 14
@@ -23,36 +24,38 @@ def convert_to_string(value): @@ -23,36 +24,38 @@ def convert_to_string(value):
23 24
24 def convert_to_number(value): 25 def convert_to_number(value):
25 return int(value) 26 return int(value)
26 -# print(type(convert_to_number(get_resource_id())))  
27 -# def get_base_url(env_type="test"):  
28 -# """  
29 -# 根据配置选择运行环境  
30 -# :param env_type:  
31 -# :return:  
32 -# """  
33 -# if env_type == "test":  
34 -# return "https://ability-test.fjmaimaimai.com"  
35 -# else:  
36 -# return "https://ability-prod.fjmaimaimai.com" 27 +
37 28
38 def get_nowtime(): 29 def get_nowtime():
39 return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time())) 30 return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
40 31
41 32
42 -def get_second():  
43 - curr_time = datetime.datetime.now()  
44 - return curr_time.second 33 +def get_starttime():
  34 + now = datetime.datetime.now()
  35 + start_time = now - datetime.timedelta(hours=now.hour, minutes=now.minute, seconds=now.second, microseconds=now.microsecond)
  36 + start_time = str(start_time)
  37 + start_time = int(time.mktime(time.strptime(start_time, "%Y-%m-%d %H:%M:%S")))*1000
  38 + return start_time
45 39
46 -def get_tomorrow():  
47 - td = datetime.timedelta(days=1)  
48 - tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ")  
49 - return tomorrow  
50 40
51 -def get_today1():  
52 - td = datetime.timedelta(days=0)  
53 - tomorrow = (datetime.datetime.utcnow() + td).strftime("%Y-%m-%dT%H:%M:%SZ")  
54 - return tomorrow 41 +def get_endtime():
  42 + now = datetime.datetime.now()
  43 + start_time = now - datetime.timedelta(hours=now.hour, minutes=now.minute, seconds=now.second,
  44 + microseconds=now.microsecond)
  45 + end_time = start_time + datetime.timedelta(hours=23, minutes=59, seconds=59)
  46 + end_time = str(end_time)
  47 + end_time = int(time.mktime(time.strptime(end_time, "%Y-%m-%d %H:%M:%S")))*1000
  48 + return end_time
  49 +
55 50
56 def add(x, y): 51 def add(x, y):
57 - return str(int(x)+y) 52 + return int(int(x)+y)
  53 +
  54 +
  55 +#获取secret用于子系统单点登录
  56 +def get_secret(url):
  57 + urllist = url.split('code=',1)
  58 + code = urllist[1]
  59 + de_code = parse.unquote(code)
  60 + return de_code
58 61
@@ -4,9 +4,9 @@ @@ -4,9 +4,9 @@
4 # @Author:bxh 4 # @Author:bxh
5 # @file: login_func.py 5 # @file: login_func.py
6 import json 6 import json
7 -import time,datetime  
8 -path = 'E:/task_api/'  
9 -# path = 'E:/mmm_auto/task_api/' 7 +import time, datetime
  8 +
  9 +
10 def teardown_hook_sleep_N_secs(response,n_secs): 10 def teardown_hook_sleep_N_secs(response,n_secs):
11 """ sleep n seconds after request """ 11 """ sleep n seconds after request """
12 if response.status_code == 200: 12 if response.status_code == 200:
@@ -14,20 +14,6 @@ def teardown_hook_sleep_N_secs(response,n_secs): @@ -14,20 +14,6 @@ def teardown_hook_sleep_N_secs(response,n_secs):
14 else: 14 else:
15 time.sleep(n_secs) 15 time.sleep(n_secs)
16 16
17 -def teardown_hook_get_cuid(response):  
18 - if response.status_code == 200:  
19 - jsondata = json.loads(response.text)  
20 - cuid =str(jsondata['data']['cuid'])  
21 -  
22 - try:  
23 -  
24 - with open(path + 'config/cuid.csv','w+') as f:  
25 - f.write(cuid)  
26 - print('写入成功,cuid:{}'.format(cuid))  
27 - f.close()  
28 - except Exception as e:  
29 - print('写入失败', e)  
30 - return cuid  
31 17
32 def teardown_hook_get_serialNo(response): 18 def teardown_hook_get_serialNo(response):
33 if response.status_code == 200: 19 if response.status_code == 200:
@@ -36,7 +22,7 @@ def teardown_hook_get_serialNo(response): @@ -36,7 +22,7 @@ def teardown_hook_get_serialNo(response):
36 22
37 try: 23 try:
38 24
39 - with open(path + 'config/serialNo.txt','w+') as f: 25 + with open('config/serialNo.txt','w+') as f:
40 f.write(serialno) 26 f.write(serialno)
41 print('写入成功,serialno:{}'.format(serialno)) 27 print('写入成功,serialno:{}'.format(serialno))
42 f.close() 28 f.close()
@@ -44,19 +30,6 @@ def teardown_hook_get_serialNo(response): @@ -44,19 +30,6 @@ def teardown_hook_get_serialNo(response):
44 print('写入失败', e) 30 print('写入失败', e)
45 return serialno 31 return serialno
46 32
47 -def teardown_hook_get_accesstoken(response):  
48 - if response.status_code == 200:  
49 - jsondata = json.loads(response.text)  
50 - access_token =jsondata['data']['accessToken']  
51 - try:  
52 - # 保存token到文件  
53 - with open(path + 'config/accessToken.csv','w+') as f:  
54 - f.write(access_token)  
55 - print('写入成功,access_token:{}'.format(access_token))  
56 - f.close()  
57 - except Exception as e:  
58 - print('写入失败', e)  
59 - return access_token  
60 33
61 def teardown_hook_get_task_accesstoken(response): 34 def teardown_hook_get_task_accesstoken(response):
62 if response.status_code == 200: 35 if response.status_code == 200:
@@ -64,7 +37,7 @@ def teardown_hook_get_task_accesstoken(response): @@ -64,7 +37,7 @@ def teardown_hook_get_task_accesstoken(response):
64 access_token =jsondata['data']['accessToken'] 37 access_token =jsondata['data']['accessToken']
65 try: 38 try:
66 # 保存token到文件 39 # 保存token到文件
67 - with open(path + 'config/task_accessToken.csv','w+') as f: 40 + with open('config/task_accessToken.csv','w+') as f:
68 f.write(access_token) 41 f.write(access_token)
69 print('写入成功,access_token:{}'.format(access_token)) 42 print('写入成功,access_token:{}'.format(access_token))
70 f.close() 43 f.close()
@@ -72,67 +45,11 @@ def teardown_hook_get_task_accesstoken(response): @@ -72,67 +45,11 @@ def teardown_hook_get_task_accesstoken(response):
72 print('写入失败', e) 45 print('写入失败', e)
73 return access_token 46 return access_token
74 47
75 -def teardown_hook_get_authcode(response):  
76 - if response.status_code ==200:  
77 - jsondata = json.loads(response.text)  
78 - auth_code = jsondata['data']['authCode']  
79 - try:  
80 -  
81 - with open(path + "config/authCode.csv", 'w+') as f:  
82 - f.write(auth_code)  
83 - print('写入成功,authCode:{}'.format(auth_code))  
84 - except Exception as e:  
85 - print('写入失败', e)  
86 - return auth_code  
87 -  
88 -def teardown_hook_get_task_authcode(response):  
89 - if response.status_code ==200:  
90 - jsondata = json.loads(response.text)  
91 - auth_code = jsondata['data']['authCode']  
92 - try:  
93 -  
94 - with open(path + "config/task_authCode.csv", 'w+') as f:  
95 - f.write(auth_code)  
96 - print('写入成功,authCode:{}'.format(auth_code))  
97 - except Exception as e:  
98 - print('写入失败', e)  
99 - return auth_code  
100 -  
101 -def get_authcode():  
102 - try:  
103 - with open(path + "config/authCode.csv", 'r') as f:  
104 - auth_code = f.read()  
105 - print('读取成功,authCode:{}'.format(auth_code))  
106 - except Exception as e:  
107 - print('读取失败', e)  
108 - auth_code = str(auth_code)  
109 - return auth_code  
110 -  
111 -def get_task_authcode():  
112 - try:  
113 - with open(path + "config/task_authCode.csv", 'r') as f:  
114 - auth_code = f.read()  
115 - print('读取成功,authCode:{}'.format(auth_code))  
116 - except Exception as e:  
117 - print('读取失败', e)  
118 - auth_code = str(auth_code)  
119 - return auth_code  
120 -  
121 -def get_accesstoken():  
122 - try:  
123 - # 保存token到文件  
124 - with open(path + "config/accessToken.csv", 'r') as f:  
125 - accesstoken = f.read()  
126 - print('读取成功,accesstoken:{}'.format(accesstoken))  
127 - except Exception as e:  
128 - print('读取失败', e)  
129 - accesstoken = str(accesstoken)  
130 - return accesstoken  
131 48
132 def get_task_accesstoken(): 49 def get_task_accesstoken():
133 try: 50 try:
134 # 保存token到文件 51 # 保存token到文件
135 - with open(path + "config/task_accessToken.csv", 'r') as f: 52 + with open("config/task_accessToken.csv", 'r') as f:
136 accesstoken = f.read() 53 accesstoken = f.read()
137 print('读取成功,accesstoken:{}'.format(accesstoken)) 54 print('读取成功,accesstoken:{}'.format(accesstoken))
138 except Exception as e: 55 except Exception as e:
@@ -140,124 +57,71 @@ def get_task_accesstoken(): @@ -140,124 +57,71 @@ def get_task_accesstoken():
140 accesstoken = str(accesstoken) 57 accesstoken = str(accesstoken)
141 return accesstoken 58 return accesstoken
142 59
143 -def get_serialNo():  
144 - try:  
145 - with open(path + "config/serialNo.txt", 'r') as f:  
146 - serialno = f.read()  
147 - print('读取成功,serialno:{}'.format(serialno))  
148 - except Exception as e:  
149 - print('读取失败', e)  
150 - serialno = str(serialno)  
151 - return serialno  
152 -  
153 -def get_cuid():  
154 - global cuid  
155 - cuid = ''  
156 - try:  
157 - with open(path + "config/cuid.csv", 'r') as f:  
158 - cuid = f.read()  
159 - print('读取成功,cuid:{}'.format(cuid))  
160 - except Exception as e:  
161 - print('读取失败', e)  
162 - cuid = str(cuid)  
163 - return cuid  
164 60
165 -def get_credentials():  
166 - global credentials  
167 - credentials = '' 61 +def teardown_hook_get_task_manager_accesstoken(response):
  62 + if response.status_code == 200:
  63 + jsondata = json.loads(response.text)
  64 + access_token =jsondata['data']['access']['accessToken']
168 try: 65 try:
169 - with open(path + "config/credentials.csv", 'r') as f:  
170 - credentials = f.read()  
171 - print('读取成功,credentials:{}'.format(credentials)) 66 + # 保存token到文件
  67 + with open('config/task_manager_accessToken.csv','w+') as f:
  68 + f.write(access_token)
  69 + print('写入成功,access_token:{}'.format(access_token))
  70 + f.close()
172 except Exception as e: 71 except Exception as e:
173 - print('读取失败', e)  
174 - # credentials = str(credentials)  
175 - return credentials 72 + print('写入失败', e)
  73 + return access_token
176 74
177 -def get_muid():  
178 - global muid  
179 - muid = ''  
180 - try:  
181 - with open(path + "config/muid.csv", 'r') as f:  
182 - muid = f.read()  
183 - print('读取成功,muid:{}'.format(muid))  
184 - except Exception as e:  
185 - print('读取失败', e)  
186 - muid = str(muid)  
187 - return muid  
188 75
189 -def get_cid():  
190 - global cid  
191 - cid = '' 76 +def get_task_manager_accesstoken():
192 try: 77 try:
193 - with open(path + "config/cid.csv", 'r') as f:  
194 - cid = f.read()  
195 - print('读取成功,muid:{}'.format(cid)) 78 + # 保存token到文件
  79 + with open("config/task_manager_accessToken.csv", 'r') as f:
  80 + accesstoken = f.read()
  81 + print('读取成功,accesstoken:{}'.format(accesstoken))
196 except Exception as e: 82 except Exception as e:
197 print('读取失败', e) 83 print('读取失败', e)
198 - cid = str(cid)  
199 - return cid  
200 -  
201 -t =datetime.datetime.now()  
202 -def get_bidStartTime():  
203 - #当前日期  
204 - t1 = t.strftime('%Y-%m-%d 00:00:00')  
205 - # #转为秒级时间戳  
206 - # bidStartTime = time.mktime(time.strptime(t1, '%Y-%m-%d %H:%M:%S'))  
207 - # #转为毫秒级  
208 - # bidStartTime = str(bidStartTime*1000).split(".")[0]  
209 - return t1  
210 -  
211 -def get_bidEndTime():  
212 - # 1天后  
213 - bidEndTime = (t + datetime.timedelta(days=1)).strftime("%Y-%m-%d 00:00:00") 84 + accesstoken = str(accesstoken)
  85 + return accesstoken
214 86
215 - return bidEndTime  
216 87
217 -def teardown_hook_get_credentials(response): 88 +def teardown_hook_get_authcode(response):
218 if response.status_code == 200: 89 if response.status_code == 200:
219 jsondata = json.loads(response.text) 90 jsondata = json.loads(response.text)
220 - credentials =str(jsondata['data']['credentials'])  
221 - 91 + auth_code = jsondata['data']['authCode']
222 try: 92 try:
223 -  
224 - with open(path + 'config/credentials.csv','w+') as f:  
225 - f.write(credentials)  
226 - print('写入成功,credentials:{}'.format(credentials)) 93 + # 保存token到文件
  94 + with open('config/authCode.csv','w') as f:
  95 + f.write(auth_code)
  96 + print('写入成功,authCode:{}'.format(auth_code))
227 f.close() 97 f.close()
228 except Exception as e: 98 except Exception as e:
229 print('写入失败', e) 99 print('写入失败', e)
230 - return credentials 100 + return auth_code
231 101
232 -def teardown_hook_get_muid(response):  
233 - if response.status_code == 200:  
234 - jsondata = json.loads(response.text)  
235 - muid =str(jsondata['data']['companys'][0]['muid'])  
236 102
  103 +def get_authcode():
237 try: 104 try:
238 -  
239 - with open(path + 'config/muid.csv','w+') as f:  
240 - f.write(muid)  
241 - print('写入成功,muid:{}'.format(muid)) 105 + with open('config/authCode.csv','r') as f:
  106 + authcode_value = f.read()
  107 + print('读取authcode_value成功:{}'.format(authcode_value))
242 f.close() 108 f.close()
243 except Exception as e: 109 except Exception as e:
244 - print('写入失败', e)  
245 - return muid 110 + print('读取失败', e)
  111 + authcode_value = str(authcode_value)
  112 + return authcode_value
246 113
247 -def teardown_hook_get_cid(response):  
248 - if response.status_code == 200:  
249 - jsondata = json.loads(response.text)  
250 - cid =str(jsondata['data']['companys'][0]['cid'])  
251 114
  115 +def get_serialNo():
252 try: 116 try:
253 -  
254 - with open(path + 'config/cid.csv','w+') as f:  
255 - f.write(cid)  
256 - print('写入成功,muid:{}'.format(cid))  
257 - f.close() 117 + with open("config/serialNo.txt", 'r') as f:
  118 + serialno = f.read()
  119 + print('读取成功,serialno:{}'.format(serialno))
258 except Exception as e: 120 except Exception as e:
259 - print('写入失败', e)  
260 - return cid 121 + print('读取失败', e)
  122 + serialno = str(serialno)
  123 + return serialno
  124 +
261 #———————————————————————————————————————————————————————————————————————————————————————————————————————————— 125 #————————————————————————————————————————————————————————————————————————————————————————————————————————————
262 #引用资源模块 126 #引用资源模块
263 def teardown_hook_get_resource_id(response): 127 def teardown_hook_get_resource_id(response):
@@ -267,7 +131,7 @@ def teardown_hook_get_resource_id(response): @@ -267,7 +131,7 @@ def teardown_hook_get_resource_id(response):
267 jsondata = json.loads(response.text) 131 jsondata = json.loads(response.text)
268 resource_id = str(jsondata['data']['list'][0]['id']) 132 resource_id = str(jsondata['data']['list'][0]['id'])
269 try: 133 try:
270 - with open(path + "config/resource_id.txt", 'w+') as f: 134 + with open("config/resource_id.txt", 'w+') as f:
271 f.write(resource_id) 135 f.write(resource_id)
272 print('写入成功,resource_id:{}'.format(resource_id)) 136 print('写入成功,resource_id:{}'.format(resource_id))
273 except Exception as e: 137 except Exception as e:
@@ -278,7 +142,7 @@ def get_resource_id(): @@ -278,7 +142,7 @@ def get_resource_id():
278 global resource_id 142 global resource_id
279 resource_id ='' 143 resource_id =''
280 try: 144 try:
281 - with open(path + "config/resource_id.txt", 'r') as f: 145 + with open("config/resource_id.txt", 'r') as f:
282 resource_id = f.read() 146 resource_id = f.read()
283 print('读取成功,resource_id:{}'.format(resource_id)) 147 print('读取成功,resource_id:{}'.format(resource_id))
284 except Exception as e: 148 except Exception as e:
@@ -297,7 +161,7 @@ def teardown_hook_get_resource_title(response): @@ -297,7 +161,7 @@ def teardown_hook_get_resource_title(response):
297 resource_title = jsondata['data']['list'][0]['title'] 161 resource_title = jsondata['data']['list'][0]['title']
298 try: 162 try:
299 163
300 - with open(path + "config/resource_title.txt", 'w+') as f: 164 + with open("config/resource_title.txt", 'w+') as f:
301 f.write(resource_title) 165 f.write(resource_title)
302 print('写入成功,resource_title:{}'.format(resource_title)) 166 print('写入成功,resource_title:{}'.format(resource_title))
303 except Exception as e: 167 except Exception as e:
@@ -308,7 +172,7 @@ def get_resource_title(): @@ -308,7 +172,7 @@ def get_resource_title():
308 global resource_title 172 global resource_title
309 resource_title = '' 173 resource_title = ''
310 try: 174 try:
311 - with open(path + "config/resource_title.txt", 'r') as f: 175 + with open("config/resource_title.txt", 'r') as f:
312 resource_title = f.read() 176 resource_title = f.read()
313 print('读取成功,resource_id:{}'.format(resource_title)) 177 print('读取成功,resource_id:{}'.format(resource_title))
314 except Exception as e: 178 except Exception as e:
@@ -324,7 +188,7 @@ def teardown_hook_get_resource_content(response): @@ -324,7 +188,7 @@ def teardown_hook_get_resource_content(response):
324 resource_content = jsondata['data']['list'][0]['content'] 188 resource_content = jsondata['data']['list'][0]['content']
325 try: 189 try:
326 190
327 - with open(path + "config/resource_content.txt", 'w+') as f: 191 + with open("config/resource_content.txt", 'w+') as f:
328 f.write(resource_content) 192 f.write(resource_content)
329 print('写入成功,authCode:{}'.format(resource_content)) 193 print('写入成功,authCode:{}'.format(resource_content))
330 except Exception as e: 194 except Exception as e:
@@ -335,7 +199,7 @@ def get_resource_content(): @@ -335,7 +199,7 @@ def get_resource_content():
335 global resource_content 199 global resource_content
336 resource_content = '' 200 resource_content = ''
337 try: 201 try:
338 - with open(path + "config/resource_content.txt", 'r') as f: 202 + with open("config/resource_content.txt", 'r') as f:
339 resource_content = f.read() 203 resource_content = f.read()
340 print('读取成功,resource_content:{}'.format(resource_content)) 204 print('读取成功,resource_content:{}'.format(resource_content))
341 except Exception as e: 205 except Exception as e:
1 -#! /usr/bin/env python  
2 -# -*- coding: utf-8 -*-  
3 -# Date: 2020/5/28 23:13  
4 -# @Author:bxh  
5 -# @file: usiness_admin_func.py  
6 -  
7 -import json  
8 -from urllib.parse import *  
9 -  
10 -path = 'E:/task_api/'  
11 -# path = 'E:/mmm_auto/task_api/'  
12 -def teardown_hook_get_Authorization(response):  
13 - if response.status_code == 200:  
14 - jsondata = json.loads(response.text)  
15 - Authorization =jsondata['data']['access']['token']  
16 - try:  
17 - # 保存token到文件  
18 - with open(path + 'config/Authorization.txt','w+') as f:  
19 - f.write(Authorization)  
20 - print('写入成功,Authorization:{}'.format(Authorization))  
21 - f.close()  
22 - except Exception as e:  
23 - print('写入失败', e)  
24 - return Authorization  
25 -  
26 -def teardown_hook_get_task_Authorization(response):  
27 - if response.status_code == 200:  
28 - jsondata = json.loads(response.text)  
29 - Authorization =jsondata['data']['access']['accessToken']  
30 - try:  
31 - # 保存token到文件  
32 - with open(path + 'config/task_Authorization.txt','w+') as f:  
33 - f.write(Authorization)  
34 - print('写入成功,Authorization:{}'.format(Authorization))  
35 - f.close()  
36 - except Exception as e:  
37 - print('写入失败', e)  
38 - return Authorization  
39 -  
40 -def teardown_hook_get_access_token(response):  
41 - if response.status_code == 200:  
42 - jsondata = json.loads(response.text)  
43 - access_token =jsondata['data']['access']['token']  
44 - try:  
45 - # 保存token到文件  
46 - with open(path + 'config/access_token.txt','w+') as f:  
47 - f.write(access_token)  
48 - print('写入成功,access_token:{}'.format(access_token))  
49 - f.close()  
50 - except Exception as e:  
51 - print('写入失败', e)  
52 - return access_token  
53 -  
54 -def teardown_hook_get_login_code(response):  
55 - if response.status_code == 200:  
56 - jsondata = json.loads(response.text)  
57 - login_code =jsondata['data']['list'][2]['url']  
58 - res = login_code.split("=")[1].rstrip('"')  
59 - res = unquote(res)  
60 -  
61 - try:  
62 - # 保存token到文件  
63 - with open(path + 'config/login_code.txt','w+') as f:  
64 - f.write(res)  
65 - print('写入成功,res:{}'.format(res))  
66 - f.close()  
67 - except Exception as e:  
68 - print('写入失败', e)  
69 - return res  
70 -#写入抢单任务id  
71 -def teardown_hook_get_loot_task_id(response):  
72 - if response.status_code == 200:  
73 - jsondata = json.loads(response.text)  
74 - task_id =jsondata['data']['id']  
75 - try:  
76 - # 保存token到文件  
77 - with open(path + 'config/loot_task_id.txt','w+') as f:  
78 - f.write(task_id)  
79 - print('写入成功,task_id:{}'.format(task_id))  
80 - f.close()  
81 - except Exception as e:  
82 - print('写入失败', e)  
83 - return task_id  
84 -#获取抢单任务id  
85 -def get_loot_task_id():  
86 - try:  
87 - # 保存token到文件  
88 - with open(path + "config/loot_task_id.txt", 'r') as f:  
89 - task_id = f.read()  
90 - print('读取成功,task_id:{}'.format(task_id))  
91 - except Exception as e:  
92 - print('读取失败', e)  
93 - # Authorization = str(Authorization)  
94 - return task_id  
95 -#写入竞标任务id  
96 -def teardown_hook_get_bid_task_id(response):  
97 - if response.status_code == 200:  
98 - jsondata = json.loads(response.text)  
99 - task_id =jsondata['data']['id']  
100 - try:  
101 - # 保存token到文件  
102 - with open(path + 'config/bid_task_id.txt','w+') as f:  
103 - f.write(task_id)  
104 - print('写入成功,task_id:{}'.format(task_id))  
105 - f.close()  
106 - except Exception as e:  
107 - print('写入失败', e)  
108 - return task_id  
109 -#获取竞标任务id  
110 -def get_bid_task_id():  
111 - try:  
112 - # 保存token到文件  
113 - with open(path + "config/bid_task_id.txt", 'r') as f:  
114 - task_id = f.read()  
115 - print('读取成功,task_id:{}'.format(task_id))  
116 - except Exception as e:  
117 - print('读取失败', e)  
118 - # Authorization = str(Authorization)  
119 - return task_id  
120 -  
121 -#写入指派任务id  
122 -def teardown_hook_get_appoint_task_id(response):  
123 - if response.status_code == 200:  
124 - jsondata = json.loads(response.text)  
125 - task_id =jsondata['data']['id']  
126 - try:  
127 - # 保存token到文件  
128 - with open(path + 'config/appoint_task_id.txt','w+') as f:  
129 - f.write(task_id)  
130 - print('写入成功,task_id:{}'.format(task_id))  
131 - f.close()  
132 - except Exception as e:  
133 - print('写入失败', e)  
134 - return task_id  
135 -  
136 -#第一次写入进行中的数据  
137 -def teardown_hook_get_task_3_1_total(response):  
138 - if response.status_code == 200:  
139 - jsondata = json.loads(response.text)  
140 - task_total =str(len(jsondata['data']['tasks']))  
141 - try:  
142 - with open(path + 'config/task_3_total.txt','w+') as f:  
143 - f.write(task_total)  
144 - print('写入成功,task_total:{}'.format(task_total))  
145 - f.close()  
146 - except Exception as e:  
147 - print('写入失败', e)  
148 - return task_total  
149 -#第二次写入进行中的数据  
150 -def teardown_hook_get_task_3_2_total(response):  
151 - if response.status_code == 200:  
152 - jsondata = json.loads(response.text)  
153 - task_total =str(len(jsondata['data']['tasks']))  
154 - try:  
155 - with open(path + 'config/task_3_2_total.txt','w+') as f:  
156 - f.write(task_total)  
157 - print('写入成功,task_total:{}'.format(task_total))  
158 - f.close()  
159 - except Exception as e:  
160 - print('写入失败', e)  
161 - return task_total  
162 -#第一次获取进行中的数据  
163 -def get_task_3_total():  
164 - try:  
165 - # 保存token到文件  
166 - with open(path + "config/task_3_total.txt", 'r') as f:  
167 - task_total = f.read()  
168 - print('读取成功,task_total:{}'.format(task_total))  
169 - except Exception as e:  
170 - print('读取失败', e)  
171 - return task_total  
172 -#第二次获取进行中的数据  
173 -def get_task_3_2_total():  
174 - try:  
175 - # 保存token到文件  
176 - with open(path + "config/task_3_2_total.txt", 'r') as f:  
177 - task_total = f.read()  
178 - print('读取成功,task_total:{}'.format(task_total))  
179 - except Exception as e:  
180 - print('读取失败', e)  
181 - return task_total  
182 -#获取指派任务id  
183 -def get_appoint_task_id():  
184 - try:  
185 - # 保存token到文件  
186 - with open(path + "config/appoint_task_id.txt", 'r') as f:  
187 - task_id = f.read()  
188 - print('读取成功,task_id:{}'.format(task_id))  
189 - except Exception as e:  
190 - print('读取失败', e)  
191 - # Authorization = str(Authorization)  
192 - return task_id  
193 -  
194 -def get_Authorization():  
195 - try:  
196 - # 保存token到文件  
197 - with open(path + "config/Authorization.txt", 'r') as f:  
198 - Authorization = f.read()  
199 - print('读取成功,Authorization:{}'.format(Authorization))  
200 - except Exception as e:  
201 - print('读取失败', e)  
202 - # Authorization = str(Authorization)  
203 - return Authorization  
204 -  
205 -def get_task_Authorization():  
206 - try:  
207 - # 保存token到文件  
208 - with open(path + "config/task_Authorization.txt", 'r') as f:  
209 - Authorization = f.read()  
210 - print('读取成功,Authorization:{}'.format(Authorization))  
211 - except Exception as e:  
212 - print('读取失败', e)  
213 - # Authorization = str(Authorization)  
214 - return Authorization  
215 -  
216 -def get_access_token():  
217 - try:  
218 - # 保存token到文件  
219 - with open(path + "config/access_token.txt", 'r') as f:  
220 - access_token = f.read()  
221 - print('读取成功,access_token:{}'.format(access_token))  
222 - except Exception as e:  
223 - print('读取失败', e)  
224 - # Authorization = str(Authorization)  
225 - return access_token  
226 -  
227 -def get_login_code():  
228 - try:  
229 - # 保存token到文件  
230 - with open(path + "config/login_code.txt", 'r') as f:  
231 - login_code = f.read()  
232 - print('读取成功,access_token:{}'.format(login_code))  
233 - except Exception as e:  
234 - print('读取失败', e)  
235 - # Authorization = str(Authorization)  
236 - return login_code  
237 -#----------------------------获取公共用户id-------------------------  
238 -def teardown_hook_get_uid0(response):  
239 - if response.status_code == 200:  
240 - jsondata = json.loads(response.text)  
241 - uid0 =jsondata['data']['list'][0]['uid']  
242 - try:  
243 - # 保存token到文件  
244 - with open(path + 'config/uid0.txt','w+') as f:  
245 - f.write(uid0)  
246 - print('写入成功,uid0:{}'.format(uid0))  
247 - f.close()  
248 - except Exception as e:  
249 - print('写入失败', e)  
250 - return uid0  
251 -  
252 -def get_uid0():  
253 - try:  
254 - # 保存token到文件  
255 - with open(path + "config/uid0.txt", 'r') as f:  
256 - uid0 = f.read()  
257 - print('读取成功,uid0:{}'.format(uid0))  
258 - except Exception as e:  
259 - print('读取失败', e)  
260 - # Authorization = str(Authorization)  
261 - return uid0  
262 -def teardown_hook_get_uid1(response):  
263 - if response.status_code == 200:  
264 - jsondata = json.loads(response.text)  
265 - uid1 =jsondata['data']['list'][1]['uid']  
266 - try:  
267 - # 保存token到文件  
268 - with open(path + 'config/uid1.txt','w+') as f:  
269 - f.write(uid1)  
270 - print('写入成功,uid1:{}'.format(uid1))  
271 - f.close()  
272 - except Exception as e:  
273 - print('写入失败', e)  
274 - return uid1  
275 -  
276 -def get_uid1():  
277 - try:  
278 - # 保存token到文件  
279 - with open(path + "config/uid1.txt", 'r') as f:  
280 - uid1 = f.read()  
281 - print('读取成功,uid1:{}'.format(uid1))  
282 - except Exception as e:  
283 - print('读取失败', e)  
284 - # Authorization = str(Authorization)  
285 - return uid1  
286 -  
287 -def teardown_hook_get_uid2(response):  
288 - if response.status_code == 200:  
289 - jsondata = json.loads(response.text)  
290 - uid2 = jsondata['data']['list'][2]['uid']  
291 - try:  
292 - # 保存token到文件  
293 - with open(path + 'config/uid2.txt','w+') as f:  
294 - f.write(uid2)  
295 - print('写入成功,uid2:{}'.format(uid2))  
296 - f.close()  
297 - except Exception as e:  
298 - print('写入失败', e)  
299 - return uid2  
300 -  
301 -def get_uid2():  
302 - try:  
303 - # 保存token到文件  
304 - with open(path + "config/uid2.txt", 'r') as f:  
305 - uid2 = f.read()  
306 - print('读取成功,uid2:{}'.format(uid2))  
307 - except Exception as e:  
308 - print('读取失败', e)  
309 - # Authorization = str(Authorization)  
310 - return uid2  
311 -  
312 -  
313 -def teardown_hook_get_uid15(response):  
314 - if response.status_code == 200:  
315 - jsondata = json.loads(response.text)  
316 - uid15 =jsondata['data']['list'][15]['uid']  
317 - try:  
318 - # 保存token到文件  
319 - with open(path + 'config/uid15.txt','w+') as f:  
320 - f.write(uid15)  
321 - print('写入成功,uid15:{}'.format(uid15))  
322 - f.close()  
323 - except Exception as e:  
324 - print('写入失败', e)  
325 - return uid15  
326 -  
327 -def get_uid15():  
328 - try:  
329 - # 保存token到文件  
330 - with open(path + "config/uid15.txt", 'r') as f:  
331 - uid15 = f.read()  
332 - uid15 = int(uid15)  
333 - print('读取成功,uid15:{}'.format(uid15))  
334 - except Exception as e:  
335 - print('读取失败', e)  
336 - # Authorization = str(Authorization)  
337 - return uid15  
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 # Date: 2020/7/12 16:27 3 # Date: 2020/7/12 16:27
4 # @Author:bxh 4 # @Author:bxh
5 # @file: pg_db_func.py 5 # @file: pg_db_func.py
6 -from helpfunc.m_func import *  
7 import psycopg2 6 import psycopg2
8 from datetime import * 7 from datetime import *
9 8
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 # Date: 2020/7/12 16:27 3 # Date: 2020/7/12 16:27
4 # @Author:bxh 4 # @Author:bxh
5 # @file: pg_db_func.py 5 # @file: pg_db_func.py
6 -from helpfunc.m_func import *  
7 import psycopg2 6 import psycopg2
8 from datetime import * 7 from datetime import *
9 8
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 # Date: 2020/7/12 16:27 3 # Date: 2020/7/12 16:27
4 # @Author:bxh 4 # @Author:bxh
5 # @file: pg_db_func.py 5 # @file: pg_db_func.py
6 -from helpfunc.m_func import * 6 +
7 import psycopg2 7 import psycopg2
8 from datetime import * 8 from datetime import *
9 9
  1 +# -*- coding:utf-8 -*-
  2 +# @Time :2019/12/4 9:37
  3 +# @Author :dengyuting
  4 +# @File :sendmsg.py
  5 +import os
  6 +import json
  7 +
  8 +import requests
  9 +
  10 +JENKINS_URL = str(os.getenv("JENKINS_URL"))
  11 +BUILD_NUMBER = str(os.getenv("BUILD_NUMBER"))
  12 +JOB_NAME = str(os.getenv("JOB_NAME"))
  13 +CAUSE = str(os.getenv("CAUSE"))
  14 +BUILD_URL = str(os.getenv("BUILD_URL"))
  15 +JOB_URL = str(os.getenv("JOB_URL"))
  16 +
  17 +path = os.path.dirname(__file__)
  18 +summary_file = os.path.join(path, 'logs','testsuites','task_testsuites.summary.json')
  19 +
  20 +def getresult():
  21 + try:
  22 + with open(summary_file, 'r', encoding='UTF-8') as f:
  23 + f = f.read()
  24 + jsonfile = json.loads(f)
  25 + if jsonfile["success"] == True:
  26 + result = "SUCCESS"
  27 + else:
  28 + result = "FAIL"
  29 + total = jsonfile["stat"]["testcases"]["total"]
  30 + success = jsonfile["stat"]["testcases"]["success"]
  31 + fail = jsonfile["stat"]["testcases"]["fail"]
  32 + duration = round(jsonfile["time"]["duration"])
  33 + # teststeps_total = jsonfile["stat"]["teststeps"]["total"]
  34 + # teststeps_successes = jsonfile["stat"]["teststeps"]["successes"]
  35 + # teststeps_failures = jsonfile["stat"]["teststeps"]["failures"]
  36 + # teststeps_errors = jsonfile["stat"]["teststeps"]["errors"]
  37 + # teststeps_skipped = jsonfile["stat"]["teststeps"]["skipped"]
  38 + return result, total, success, fail, duration
  39 + except Exception as err:
  40 + print("this is err:{}" .format(err))
  41 +
  42 +
  43 +
  44 +def sendinfo():
  45 + r =getresult()
  46 + data = {}
  47 + data['msgtype'] = 'text'
  48 + data['text'] = {}
  49 + data['text']['content'] = '价值系统项目【mmm_value_api_test】:' \
  50 + '\n测试结果:'+r[0]+ \
  51 + '\n执行时间:' +str(r[4])+ \
  52 + 's\n共执行测试用例:' +str(r[1]) +'\nSUCCESS:' +str(r[2])+ '\nFAIL:' +str(r[3])+ \
  53 + '\n测试报告地址:http://jenkins.fjmaimaimai.com/view/test/job/mmm_value_api_test/HTML_20Report/'
  54 + # data['text']['mentioned_mobile_list'] = ["13559112969","@all"]
  55 + # data['text']['content'] = '【opp_api】测试执行结果:' + r[0] + \
  56 + # '\n 执行时间:' + str(r[4]) + \
  57 + # 's\n TOTAL:' + str(r[1]) + '\n SUCCESS:' + str(r[2]) + '\n FAIL:' + str(r[3])
  58 +
  59 + url = 'https://oapi.dingtalk.com/robot/send?access_token=9a52a7e69fd1bd7cb01e86bf0577af4d74dc15a50f1b17234c50ec2df856021e'
  60 + headers = {'Content-Type': 'application/json'}
  61 +
  62 + requests.post(url, json=data, headers=headers)
  63 +
  64 +if __name__ == '__main__':
  65 + sendinfo()
  66 +
  67 +
  1 +config:
  2 + name: ME001-保存抢单任务-任务数量统计待发布+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的-待发布
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 保存抢单任务
  23 + variables:
  24 + action: 0
  25 + type: 0
  26 + title: '抢单任务标题${get_nowtime()}'
  27 + content: '抢单任务内容${get_nowtime()}'
  28 + acceptability: '抢单任务验收标准${get_nowtime()}'
  29 + api: api/app_api/task_api/taskPublish_api.yml
  30 +
  31 +- name: 第二次查看我发布的-待发布
  32 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  33 + validate:
  34 + - eq:
  35 + - content.data.taskMsg.iPublishedWaitPublish
  36 + - ${add($iPublishedWaitPublish,1)}
  37 + - eq:
  38 + - content.data.taskMsg.iPublishedToReceive
  39 + - ${add($iPublishedToReceive,0)}
  40 + - eq:
  41 + - content.data.taskMsg.iPublishedWaitVerify
  42 + - ${add($iPublishedWaitVerify,0)}
  43 + - eq:
  44 + - content.data.taskMsg.iPublishedInProgress
  45 + - ${add($iPublishedInProgress,0)}
  46 + - eq:
  47 + - content.data.taskMsg.iPublishedWaitAcceptance
  48 + - ${add($iPublishedWaitAcceptance,0)}
  49 + - eq:
  50 + - content.data.taskMsg.iPublishedCompleted
  51 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME002-保存竞标任务-任务数量统计待发布+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的-待发布
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 保存竞标任务
  23 + variables:
  24 + action: 0
  25 + type: 1
  26 + bidStartTime: ${get_starttime()}
  27 + bidEndTime: ${get_endtime()}
  28 + title: '竞标任务标题${get_nowtime()}'
  29 + content: '竞标任务内容${get_nowtime()}'
  30 + acceptability: '竞标任务验收标准${get_nowtime()}'
  31 + api: api/app_api/task_api/taskPublish_api.yml
  32 +
  33 +- name: 第二次查看我发布的-待发布
  34 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  35 + validate:
  36 + - eq:
  37 + - content.data.taskMsg.iPublishedWaitPublish
  38 + - ${add($iPublishedWaitPublish,1)}
  39 + - eq:
  40 + - content.data.taskMsg.iPublishedToReceive
  41 + - ${add($iPublishedToReceive,0)}
  42 + - eq:
  43 + - content.data.taskMsg.iPublishedWaitVerify
  44 + - ${add($iPublishedWaitVerify,0)}
  45 + - eq:
  46 + - content.data.taskMsg.iPublishedInProgress
  47 + - ${add($iPublishedInProgress,0)}
  48 + - eq:
  49 + - content.data.taskMsg.iPublishedWaitAcceptance
  50 + - ${add($iPublishedWaitAcceptance,0)}
  51 + - eq:
  52 + - content.data.taskMsg.iPublishedCompleted
  53 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME003-保存指派任务-任务数量统计待发布+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的-待发布
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 保存指派任务
  23 + variables:
  24 + action: 0
  25 + type: 2
  26 + plannedFinishDate: ${get_endtime()}
  27 + uid: 3284714710070272
  28 + uname: '价值系统账号1'
  29 + title: '指派任务标题${get_nowtime()}'
  30 + content: '指派任务内容${get_nowtime()}'
  31 + acceptability: '指派任务验收标准${get_nowtime()}'
  32 + api: api/app_api/task_api/taskPublish_api.yml
  33 +
  34 +- name: 第二次查看我发布的-待发布
  35 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  36 + validate:
  37 + - eq:
  38 + - content.data.taskMsg.iPublishedWaitPublish
  39 + - ${add($iPublishedWaitPublish,1)}
  40 + - eq:
  41 + - content.data.taskMsg.iPublishedToReceive
  42 + - ${add($iPublishedToReceive,0)}
  43 + - eq:
  44 + - content.data.taskMsg.iPublishedWaitVerify
  45 + - ${add($iPublishedWaitVerify,0)}
  46 + - eq:
  47 + - content.data.taskMsg.iPublishedInProgress
  48 + - ${add($iPublishedInProgress,0)}
  49 + - eq:
  50 + - content.data.taskMsg.iPublishedWaitAcceptance
  51 + - ${add($iPublishedWaitAcceptance,0)}
  52 + - eq:
  53 + - content.data.taskMsg.iPublishedCompleted
  54 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME004-发布抢单任务-任务数量统计待领取+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的-待发布
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 发布抢单任务
  23 + variables:
  24 + action: 1
  25 + type: 0
  26 + title: '抢单任务标题${get_nowtime()}'
  27 + content: '抢单任务内容${get_nowtime()}'
  28 + acceptability: '抢单任务验收标准${get_nowtime()}'
  29 + api: api/app_api/task_api/taskPublish_api.yml
  30 +
  31 +- name: 第二次查看我发布的-待发布
  32 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  33 + validate:
  34 + - eq:
  35 + - content.data.taskMsg.iPublishedWaitPublish
  36 + - ${add($iPublishedWaitPublish,0)}
  37 + - eq:
  38 + - content.data.taskMsg.iPublishedToReceive
  39 + - ${add($iPublishedToReceive,1)}
  40 + - eq:
  41 + - content.data.taskMsg.iPublishedWaitVerify
  42 + - ${add($iPublishedWaitVerify,0)}
  43 + - eq:
  44 + - content.data.taskMsg.iPublishedInProgress
  45 + - ${add($iPublishedInProgress,0)}
  46 + - eq:
  47 + - content.data.taskMsg.iPublishedWaitAcceptance
  48 + - ${add($iPublishedWaitAcceptance,0)}
  49 + - eq:
  50 + - content.data.taskMsg.iPublishedCompleted
  51 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME005-发布竞标任务-任务数量统计待领取+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 发布竞标任务
  23 + variables:
  24 + action: 1
  25 + type: 1
  26 + bidStartTime: ${get_starttime()}
  27 + bidEndTime: ${get_endtime()}
  28 + title: '竞标任务标题${get_nowtime()}'
  29 + content: '竞标任务内容${get_nowtime()}'
  30 + acceptability: '竞标任务验收标准${get_nowtime()}'
  31 + api: api/app_api/task_api/taskPublish_api.yml
  32 +
  33 +- name: 第二次查看我发布的-待发布
  34 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  35 + validate:
  36 + - eq:
  37 + - content.data.taskMsg.iPublishedWaitPublish
  38 + - ${add($iPublishedWaitPublish,0)}
  39 + - eq:
  40 + - content.data.taskMsg.iPublishedToReceive
  41 + - ${add($iPublishedToReceive,1)}
  42 + - eq:
  43 + - content.data.taskMsg.iPublishedWaitVerify
  44 + - ${add($iPublishedWaitVerify,0)}
  45 + - eq:
  46 + - content.data.taskMsg.iPublishedInProgress
  47 + - ${add($iPublishedInProgress,0)}
  48 + - eq:
  49 + - content.data.taskMsg.iPublishedWaitAcceptance
  50 + - ${add($iPublishedWaitAcceptance,0)}
  51 + - eq:
  52 + - content.data.taskMsg.iPublishedCompleted
  53 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME006-发布指派任务-任务数量统计进行中+1
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +
  9 +- name: $phone 登录系统
  10 + testcase: testcases/common/COM001_task_login_testcases.yml
  11 +
  12 +- name: 第一次查看我发布的
  13 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  14 + extract:
  15 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  16 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  17 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  18 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  19 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  20 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  21 +
  22 +- name: 发布指派任务
  23 + variables:
  24 + action: 1
  25 + type: 2
  26 + plannedFinishDate: ${get_endtime()}
  27 + uid: 3284714710070272
  28 + uname: '价值系统账号1'
  29 + title: '指派任务标题${get_nowtime()}'
  30 + content: '指派任务内容${get_nowtime()}'
  31 + acceptability: '指派任务验收标准${get_nowtime()}'
  32 + api: api/app_api/task_api/taskPublish_api.yml
  33 +
  34 +- name: 第二次查看我发布的
  35 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  36 + validate:
  37 + - eq:
  38 + - content.data.taskMsg.iPublishedWaitPublish
  39 + - ${add($iPublishedWaitPublish,0)}
  40 + - eq:
  41 + - content.data.taskMsg.iPublishedToReceive
  42 + - ${add($iPublishedToReceive,0)}
  43 + - eq:
  44 + - content.data.taskMsg.iPublishedWaitVerify
  45 + - ${add($iPublishedWaitVerify,0)}
  46 + - eq:
  47 + - content.data.taskMsg.iPublishedInProgress
  48 + - ${add($iPublishedInProgress,1)}
  49 + - eq:
  50 + - content.data.taskMsg.iPublishedWaitAcceptance
  51 + - ${add($iPublishedWaitAcceptance,0)}
  52 + - eq:
  53 + - content.data.taskMsg.iPublishedCompleted
  54 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME007-抢单任务被领取-任务数量统计待领取-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 +- name: 第一次查看我发布的
  23 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  24 + extract:
  25 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  26 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  27 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  28 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  29 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  30 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  31 +
  32 +- name: $phone 登录系统
  33 + variables:
  34 + phone: ${ENV(phone1)}
  35 + testcase: testcases/common/COM001_task_login_testcases.yml
  36 +
  37 +- name: 查看抢单任务列表
  38 + variables:
  39 + action: 0
  40 + newest: 1
  41 + api: api/app_api/task_api/contendTasks_api.yml
  42 + extract:
  43 + - tasks_id: content.data.tasks.0.id
  44 + validate:
  45 + - eq:
  46 + - content.data.tasks.0.title
  47 + - $title
  48 +
  49 +- name: 领取任务
  50 + variables:
  51 + action: 0
  52 + id: $tasks_id
  53 + api: api/app_api/task_api/submitCompete_api.yml
  54 +
  55 +
  56 +- name: $phone 登录系统
  57 + variables:
  58 + phone: ${ENV(phone2)}
  59 + testcase: testcases/common/COM001_task_login_testcases.yml
  60 +
  61 +- name: 第二次查看我发布的
  62 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  63 + validate:
  64 + - eq:
  65 + - content.data.taskMsg.iPublishedWaitPublish
  66 + - ${add($iPublishedWaitPublish,0)}
  67 + - eq:
  68 + - content.data.taskMsg.iPublishedToReceive
  69 + - ${add($iPublishedToReceive,-1)}
  70 + - eq:
  71 + - content.data.taskMsg.iPublishedWaitVerify
  72 + - ${add($iPublishedWaitVerify,1)}
  73 + - eq:
  74 + - content.data.taskMsg.iPublishedInProgress
  75 + - ${add($iPublishedInProgress,0)}
  76 + - eq:
  77 + - content.data.taskMsg.iPublishedWaitAcceptance
  78 + - ${add($iPublishedWaitAcceptance,0)}
  79 + - eq:
  80 + - content.data.taskMsg.iPublishedCompleted
  81 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME008-竞标任务被领取-任务数量统计不变,还是待领取状态
  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 +- name: 第一次查看我发布的
  26 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  27 + extract:
  28 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  29 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  30 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  31 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  32 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  33 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  34 +
  35 +- name: $phone 登录系统
  36 + variables:
  37 + phone: ${ENV(phone1)}
  38 + testcase: testcases/common/COM001_task_login_testcases.yml
  39 +
  40 +- name: 查看竞标任务列表
  41 + variables:
  42 + action: 1
  43 + newest: 1
  44 + api: api/app_api/task_api/contendTasks_api.yml
  45 + extract:
  46 + - tasks_id: content.data.tasks.0.id
  47 + validate:
  48 + - eq:
  49 + - content.data.tasks.0.title
  50 + - $title
  51 +
  52 +- name: 领取竞标任务
  53 + variables:
  54 + action: 1
  55 + id: $tasks_id
  56 + api: api/app_api/task_api/submitCompete_api.yml
  57 +
  58 +
  59 +- name: $phone 登录系统
  60 + variables:
  61 + phone: ${ENV(phone2)}
  62 + testcase: testcases/common/COM001_task_login_testcases.yml
  63 +
  64 +- name: 第二次查看我发布的
  65 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  66 + validate:
  67 + - eq:
  68 + - content.data.taskMsg.iPublishedWaitPublish
  69 + - ${add($iPublishedWaitPublish,0)}
  70 + - eq:
  71 + - content.data.taskMsg.iPublishedToReceive
  72 + - ${add($iPublishedToReceive,0)}
  73 + - eq:
  74 + - content.data.taskMsg.iPublishedWaitVerify
  75 + - ${add($iPublishedWaitVerify,0)}
  76 + - eq:
  77 + - content.data.taskMsg.iPublishedInProgress
  78 + - ${add($iPublishedInProgress,0)}
  79 + - eq:
  80 + - content.data.taskMsg.iPublishedWaitAcceptance
  81 + - ${add($iPublishedWaitAcceptance,0)}
  82 + - eq:
  83 + - content.data.taskMsg.iPublishedCompleted
  84 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME009-抢单任务被确认-任务数量统计待确认-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 +
  47 +- name: $phone 登录系统
  48 + variables:
  49 + phone: ${ENV(phone2)}
  50 + testcase: testcases/common/COM001_task_login_testcases.yml
  51 +
  52 +- name: 第一次查看我发布的
  53 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  54 + extract:
  55 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  56 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  57 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  58 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  59 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  60 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  61 +
  62 +- name: 查看我发布的-待确认
  63 + variables:
  64 + action: 5
  65 + api: api/app_api/task_api/iPublishedTasks_api.yml
  66 + validate:
  67 + - eq:
  68 + - content.data.tasks.0.title
  69 + - $title
  70 + - eq:
  71 + - content.data.tasks.0.id
  72 + - $tasks_id
  73 +
  74 +- name: 确认领取人
  75 + variables:
  76 + taskId: $tasks_id
  77 + planDate: ${get_endtime()}
  78 + api: api/app_api/task_api/verifyReceiver_api.yml
  79 + validate:
  80 + - eq:
  81 + - content.msg
  82 + - 确认成功
  83 +
  84 +- name: 第二次查看我发布的
  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,0)}
  93 + - eq:
  94 + - content.data.taskMsg.iPublishedWaitVerify
  95 + - ${add($iPublishedWaitVerify,-1)}
  96 + - eq:
  97 + - content.data.taskMsg.iPublishedInProgress
  98 + - ${add($iPublishedInProgress,1)}
  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: ME010-竞标人确认-任务数量统计待领取-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 + 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 +- name: 第一次查看我发布的
  56 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  57 + extract:
  58 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  59 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  60 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  61 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  62 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  63 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  64 +
  65 +- name: 查看我发布的-待领取
  66 + variables:
  67 + action: 1
  68 + api: api/app_api/task_api/iPublishedTasks_api.yml
  69 + validate:
  70 + - eq:
  71 + - content.data.tasks.0.title
  72 + - $title
  73 + - eq:
  74 + - content.data.tasks.0.id
  75 + - $tasks_id
  76 +
  77 +- name: 查看任务详情
  78 + variables:
  79 + id: $tasks_id
  80 + api: api/app_api/task_api/taskDetails_api.yml
  81 + extract:
  82 + - bidders: content.data.task.bidders.0.uid
  83 + validate:
  84 + - eq:
  85 + - content.msg
  86 + - 获取详情成功
  87 + - eq:
  88 + - content.data.task.title
  89 + - $title
  90 +
  91 +- name: 竞标人中标确认
  92 + variables:
  93 + id: $tasks_id
  94 + uid: $bidders
  95 + planFinishDate: ${get_endtime()}
  96 + api: api/app_api/task_api/bidTask_api.yml
  97 + validate:
  98 + - eq:
  99 + - content.msg
  100 + - 中标成功
  101 +
  102 +- name: 第二次查看我发布的
  103 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  104 + validate:
  105 + - eq:
  106 + - content.data.taskMsg.iPublishedWaitPublish
  107 + - ${add($iPublishedWaitPublish,0)}
  108 + - eq:
  109 + - content.data.taskMsg.iPublishedToReceive
  110 + - ${add($iPublishedToReceive,-1)}
  111 + - eq:
  112 + - content.data.taskMsg.iPublishedWaitVerify
  113 + - ${add($iPublishedWaitVerify,0)}
  114 + - eq:
  115 + - content.data.taskMsg.iPublishedInProgress
  116 + - ${add($iPublishedInProgress,1)}
  117 + - eq:
  118 + - content.data.taskMsg.iPublishedWaitAcceptance
  119 + - ${add($iPublishedWaitAcceptance,0)}
  120 + - eq:
  121 + - content.data.taskMsg.iPublishedCompleted
  122 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME011-抢单任务已完成待验收-任务数量统计进行中-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 +
  47 +- name: $phone 登录系统
  48 + variables:
  49 + phone: ${ENV(phone2)}
  50 + testcase: testcases/common/COM001_task_login_testcases.yml
  51 +
  52 +- name: 查看我发布的-待确认
  53 + variables:
  54 + action: 5
  55 + api: api/app_api/task_api/iPublishedTasks_api.yml
  56 + validate:
  57 + - eq:
  58 + - content.data.tasks.0.title
  59 + - $title
  60 + - eq:
  61 + - content.data.tasks.0.id
  62 + - $tasks_id
  63 +
  64 +- name: 确认领取人
  65 + variables:
  66 + taskId: $tasks_id
  67 + planDate: ${get_endtime()}
  68 + api: api/app_api/task_api/verifyReceiver_api.yml
  69 + validate:
  70 + - eq:
  71 + - content.msg
  72 + - 确认成功
  73 +
  74 +- name: 第一次查看我发布的
  75 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  76 + extract:
  77 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  78 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  79 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  80 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  81 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  82 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  83 +
  84 +- name: $phone 登录系统
  85 + variables:
  86 + phone: ${ENV(phone1)}
  87 + testcase: testcases/common/COM001_task_login_testcases.yml
  88 +
  89 +- name: 完成任务
  90 + variables:
  91 + id: $tasks_id
  92 + api: api/app_api/task_api/finishTask_api.yml
  93 + validate:
  94 + - eq:
  95 + - content.msg
  96 + - 完成成功
  97 +
  98 +- name: $phone 登录系统
  99 + variables:
  100 + phone: ${ENV(phone2)}
  101 + testcase: testcases/common/COM001_task_login_testcases.yml
  102 +
  103 +- name: 第二次查看我发布的
  104 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  105 + validate:
  106 + - eq:
  107 + - content.data.taskMsg.iPublishedWaitPublish
  108 + - ${add($iPublishedWaitPublish,0)}
  109 + - eq:
  110 + - content.data.taskMsg.iPublishedToReceive
  111 + - ${add($iPublishedToReceive,0)}
  112 + - eq:
  113 + - content.data.taskMsg.iPublishedWaitVerify
  114 + - ${add($iPublishedWaitVerify,0)}
  115 + - eq:
  116 + - content.data.taskMsg.iPublishedInProgress
  117 + - ${add($iPublishedInProgress,-1)}
  118 + - eq:
  119 + - content.data.taskMsg.iPublishedWaitAcceptance
  120 + - ${add($iPublishedWaitAcceptance,1)}
  121 + - eq:
  122 + - content.data.taskMsg.iPublishedCompleted
  123 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME012-竞标人完成任务-任务数量统计进行中-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 + 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: $phone 登录系统
  104 + variables:
  105 + phone: ${ENV(phone1)}
  106 + testcase: testcases/common/COM001_task_login_testcases.yml
  107 +
  108 +- name: 完成任务
  109 + variables:
  110 + id: $tasks_id
  111 + api: api/app_api/task_api/finishTask_api.yml
  112 + validate:
  113 + - eq:
  114 + - content.msg
  115 + - 完成成功
  116 +
  117 +- name: $phone 登录系统
  118 + variables:
  119 + phone: ${ENV(phone2)}
  120 + testcase: testcases/common/COM001_task_login_testcases.yml
  121 +
  122 +- name: 第二次查看我发布的
  123 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  124 + validate:
  125 + - eq:
  126 + - content.data.taskMsg.iPublishedWaitPublish
  127 + - ${add($iPublishedWaitPublish,0)}
  128 + - eq:
  129 + - content.data.taskMsg.iPublishedToReceive
  130 + - ${add($iPublishedToReceive,0)}
  131 + - eq:
  132 + - content.data.taskMsg.iPublishedWaitVerify
  133 + - ${add($iPublishedWaitVerify,0)}
  134 + - eq:
  135 + - content.data.taskMsg.iPublishedInProgress
  136 + - ${add($iPublishedInProgress,-1)}
  137 + - eq:
  138 + - content.data.taskMsg.iPublishedWaitAcceptance
  139 + - ${add($iPublishedWaitAcceptance,1)}
  140 + - eq:
  141 + - content.data.taskMsg.iPublishedCompleted
  142 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME013-发布指派任务-任务数量统计进行中-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 + type: 2
  21 + plannedFinishDate: ${get_endtime()}
  22 + uid: 3284714710070272
  23 + uname: '价值系统账号1'
  24 + api: api/app_api/task_api/taskPublish_api.yml
  25 +
  26 +- name: 第一次查看我发布的
  27 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  28 + extract:
  29 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  30 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  31 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  32 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  33 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  34 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  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: 0
  44 + api: api/app_api/task_api/AssignMeTasks_api.yml
  45 + extract:
  46 + - tasks_id: content.data.tasks.0.id
  47 + validate:
  48 + - eq:
  49 + - content.data.tasks.0.title
  50 + - $title
  51 +
  52 +- name: 完成任务
  53 + variables:
  54 + id: $tasks_id
  55 + api: api/app_api/task_api/finishTask_api.yml
  56 + validate:
  57 + - eq:
  58 + - content.msg
  59 + - 完成成功
  60 +
  61 +
  62 +- name: $phone 登录系统
  63 + variables:
  64 + phone: ${ENV(phone2)}
  65 + testcase: testcases/common/COM001_task_login_testcases.yml
  66 +
  67 +- name: 第二次查看我发布的
  68 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  69 + validate:
  70 + - eq:
  71 + - content.data.taskMsg.iPublishedWaitPublish
  72 + - ${add($iPublishedWaitPublish,0)}
  73 + - eq:
  74 + - content.data.taskMsg.iPublishedToReceive
  75 + - ${add($iPublishedToReceive,0)}
  76 + - eq:
  77 + - content.data.taskMsg.iPublishedWaitVerify
  78 + - ${add($iPublishedWaitVerify,0)}
  79 + - eq:
  80 + - content.data.taskMsg.iPublishedInProgress
  81 + - ${add($iPublishedInProgress,-1)}
  82 + - eq:
  83 + - content.data.taskMsg.iPublishedWaitAcceptance
  84 + - ${add($iPublishedWaitAcceptance,1)}
  85 + - eq:
  86 + - content.data.taskMsg.iPublishedCompleted
  87 + - ${add($iPublishedCompleted,0)}
  1 +config:
  2 + name: ME014-抢单任务验收成功-任务数量统计待验收-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 +
  47 +- name: $phone 登录系统
  48 + variables:
  49 + phone: ${ENV(phone2)}
  50 + testcase: testcases/common/COM001_task_login_testcases.yml
  51 +
  52 +- name: 查看我发布的-待确认
  53 + variables:
  54 + action: 5
  55 + api: api/app_api/task_api/iPublishedTasks_api.yml
  56 + validate:
  57 + - eq:
  58 + - content.data.tasks.0.title
  59 + - $title
  60 + - eq:
  61 + - content.data.tasks.0.id
  62 + - $tasks_id
  63 +
  64 +- name: 确认领取人
  65 + variables:
  66 + taskId: $tasks_id
  67 + planDate: ${get_endtime()}
  68 + api: api/app_api/task_api/verifyReceiver_api.yml
  69 + validate:
  70 + - eq:
  71 + - content.msg
  72 + - 确认成功
  73 +
  74 +- name: $phone 登录系统
  75 + variables:
  76 + phone: ${ENV(phone1)}
  77 + testcase: testcases/common/COM001_task_login_testcases.yml
  78 +
  79 +- name: 完成任务
  80 + variables:
  81 + id: $tasks_id
  82 + api: api/app_api/task_api/finishTask_api.yml
  83 + validate:
  84 + - eq:
  85 + - content.msg
  86 + - 完成成功
  87 +
  88 +- name: $phone 登录系统
  89 + variables:
  90 + phone: ${ENV(phone2)}
  91 + testcase: testcases/common/COM001_task_login_testcases.yml
  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 +
  104 +- name: 验收任务
  105 + variables:
  106 + id: $tasks_id
  107 + actualFinishDate: ${get_endtime()}
  108 + api: api/app_api/task_api/checkAccept_api.yml
  109 + validate:
  110 + - eq:
  111 + - content.msg
  112 + - 验收成功
  113 +
  114 +
  115 +- name: 第二次查看我发布的
  116 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  117 + validate:
  118 + - eq:
  119 + - content.data.taskMsg.iPublishedWaitPublish
  120 + - ${add($iPublishedWaitPublish,0)}
  121 + - eq:
  122 + - content.data.taskMsg.iPublishedToReceive
  123 + - ${add($iPublishedToReceive,0)}
  124 + - eq:
  125 + - content.data.taskMsg.iPublishedWaitVerify
  126 + - ${add($iPublishedWaitVerify,0)}
  127 + - eq:
  128 + - content.data.taskMsg.iPublishedInProgress
  129 + - ${add($iPublishedInProgress,0)}
  130 + - eq:
  131 + - content.data.taskMsg.iPublishedWaitAcceptance
  132 + - ${add($iPublishedWaitAcceptance,-1)}
  133 + - eq:
  134 + - content.data.taskMsg.iPublishedCompleted
  135 + - ${add($iPublishedCompleted,1)}
  1 +config:
  2 + name: ME015-竞标任务验收成功-任务数量统计待验收-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 + 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 +
  94 +- name: $phone 登录系统
  95 + variables:
  96 + phone: ${ENV(phone1)}
  97 + testcase: testcases/common/COM001_task_login_testcases.yml
  98 +
  99 +- name: 完成任务
  100 + variables:
  101 + id: $tasks_id
  102 + api: api/app_api/task_api/finishTask_api.yml
  103 + validate:
  104 + - eq:
  105 + - content.msg
  106 + - 完成成功
  107 +
  108 +- name: $phone 登录系统
  109 + variables:
  110 + phone: ${ENV(phone2)}
  111 + testcase: testcases/common/COM001_task_login_testcases.yml
  112 +
  113 +- name: 第一次查看我发布的
  114 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  115 + extract:
  116 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  117 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  118 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  119 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  120 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  121 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  122 +
  123 +- name: 验收任务
  124 + variables:
  125 + id: $tasks_id
  126 + actualFinishDate: ${get_endtime()}
  127 + api: api/app_api/task_api/checkAccept_api.yml
  128 + validate:
  129 + - eq:
  130 + - content.msg
  131 + - 验收成功
  132 +
  133 +- name: 第二次查看我发布的
  134 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  135 + validate:
  136 + - eq:
  137 + - content.data.taskMsg.iPublishedWaitPublish
  138 + - ${add($iPublishedWaitPublish,0)}
  139 + - eq:
  140 + - content.data.taskMsg.iPublishedToReceive
  141 + - ${add($iPublishedToReceive,0)}
  142 + - eq:
  143 + - content.data.taskMsg.iPublishedWaitVerify
  144 + - ${add($iPublishedWaitVerify,0)}
  145 + - eq:
  146 + - content.data.taskMsg.iPublishedInProgress
  147 + - ${add($iPublishedInProgress,0)}
  148 + - eq:
  149 + - content.data.taskMsg.iPublishedWaitAcceptance
  150 + - ${add($iPublishedWaitAcceptance,-1)}
  151 + - eq:
  152 + - content.data.taskMsg.iPublishedCompleted
  153 + - ${add($iPublishedCompleted,1)}
  1 +config:
  2 + name: ME016-指派任务验收完成-任务数量统计待验收-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 + type: 2
  21 + plannedFinishDate: ${get_endtime()}
  22 + uid: 3284714710070272
  23 + uname: '价值系统账号1'
  24 + api: api/app_api/task_api/taskPublish_api.yml
  25 +
  26 +
  27 +- name: $phone 登录系统
  28 + variables:
  29 + phone: ${ENV(phone1)}
  30 + testcase: testcases/common/COM001_task_login_testcases.yml
  31 +
  32 +- name: 查看指派我的-进行中
  33 + variables:
  34 + action: 0
  35 + api: api/app_api/task_api/AssignMeTasks_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 + id: $tasks_id
  46 + api: api/app_api/task_api/finishTask_api.yml
  47 + validate:
  48 + - eq:
  49 + - content.msg
  50 + - 完成成功
  51 +
  52 +
  53 +- name: $phone 登录系统
  54 + variables:
  55 + phone: ${ENV(phone2)}
  56 + testcase: testcases/common/COM001_task_login_testcases.yml
  57 +
  58 +- name: 第一次查看我发布的
  59 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  60 + extract:
  61 + - iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
  62 + - iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
  63 + - iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
  64 + - iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
  65 + - iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
  66 + - iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
  67 +
  68 +- name: 验收任务
  69 + variables:
  70 + id: $tasks_id
  71 + actualFinishDate: ${get_endtime()}
  72 + api: api/app_api/task_api/checkAccept_api.yml
  73 + validate:
  74 + - eq:
  75 + - content.msg
  76 + - 验收成功
  77 +
  78 +- name: 第二次查看我发布的
  79 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  80 + validate:
  81 + - eq:
  82 + - content.data.taskMsg.iPublishedWaitPublish
  83 + - ${add($iPublishedWaitPublish,0)}
  84 + - eq:
  85 + - content.data.taskMsg.iPublishedToReceive
  86 + - ${add($iPublishedToReceive,0)}
  87 + - eq:
  88 + - content.data.taskMsg.iPublishedWaitVerify
  89 + - ${add($iPublishedWaitVerify,0)}
  90 + - eq:
  91 + - content.data.taskMsg.iPublishedInProgress
  92 + - ${add($iPublishedInProgress,0)}
  93 + - eq:
  94 + - content.data.taskMsg.iPublishedWaitAcceptance
  95 + - ${add($iPublishedWaitAcceptance,-1)}
  96 + - eq:
  97 + - content.data.taskMsg.iPublishedCompleted
  98 + - ${add($iPublishedCompleted,1)}
  1 +config:
  2 + name: ME017-领取抢单任务-我领取的数量正确
  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 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  30 + extract:
  31 + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
  32 + - iGetInProgress: content.data.taskMsg.iGetInProgress
  33 + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
  34 + - iGetCompleted: content.data.taskMsg.iGetCompleted
  35 +
  36 +- name: 查看抢单任务列表
  37 + variables:
  38 + action: 0
  39 + newest: 1
  40 + api: api/app_api/task_api/contendTasks_api.yml
  41 + extract:
  42 + - tasks_id: content.data.tasks.0.id
  43 + validate:
  44 + - eq:
  45 + - content.data.tasks.0.title
  46 + - $title
  47 +
  48 +- name: 领取任务
  49 + variables:
  50 + action: 0
  51 + id: $tasks_id
  52 + api: api/app_api/task_api/submitCompete_api.yml
  53 +
  54 +
  55 +- name: 第二次查看我领取的-待确认+1
  56 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  57 + validate:
  58 + - eq:
  59 + - content.data.taskMsg.iGetWaitVerify
  60 + - ${add($iGetWaitVerify,1)}
  61 + - eq:
  62 + - content.data.taskMsg.iGetInProgress
  63 + - ${add($iGetInProgress,0)}
  64 + - eq:
  65 + - content.data.taskMsg.iGetWaitAcceptance
  66 + - ${add($iGetWaitAcceptance,0)}
  67 + - eq:
  68 + - content.data.taskMsg.iGetCompleted
  69 + - ${add($iGetCompleted,0)}
  70 +
  71 +- name: $phone 登录系统
  72 + variables:
  73 + phone: ${ENV(phone2)}
  74 + testcase: testcases/common/COM001_task_login_testcases.yml
  75 +
  76 +- name: 查看我发布的-待确认
  77 + variables:
  78 + action: 5
  79 + api: api/app_api/task_api/iPublishedTasks_api.yml
  80 + validate:
  81 + - eq:
  82 + - content.data.tasks.0.title
  83 + - $title
  84 + - eq:
  85 + - content.data.tasks.0.id
  86 + - $tasks_id
  87 +
  88 +- name: 确认领取人
  89 + variables:
  90 + taskId: $tasks_id
  91 + planDate: ${get_endtime()}
  92 + api: api/app_api/task_api/verifyReceiver_api.yml
  93 + validate:
  94 + - eq:
  95 + - content.msg
  96 + - 确认成功
  97 +
  98 +- name: $phone 登录系统
  99 + variables:
  100 + phone: ${ENV(phone1)}
  101 + testcase: testcases/common/COM001_task_login_testcases.yml
  102 +
  103 +- name: 查看我领取的-进行中+1
  104 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  105 + validate:
  106 + - eq:
  107 + - content.data.taskMsg.iGetWaitVerify
  108 + - ${add($iGetWaitVerify,0)}
  109 + - eq:
  110 + - content.data.taskMsg.iGetInProgress
  111 + - ${add($iGetInProgress,1)}
  112 + - eq:
  113 + - content.data.taskMsg.iGetWaitAcceptance
  114 + - ${add($iGetWaitAcceptance,0)}
  115 + - eq:
  116 + - content.data.taskMsg.iGetCompleted
  117 + - ${add($iGetCompleted,0)}
  118 +
  119 +- name: 完成任务
  120 + variables:
  121 + id: $tasks_id
  122 + api: api/app_api/task_api/finishTask_api.yml
  123 + validate:
  124 + - eq:
  125 + - content.msg
  126 + - 完成成功
  127 +
  128 +- name: 查看我领取的-待验收+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,0)}
  137 + - eq:
  138 + - content.data.taskMsg.iGetWaitAcceptance
  139 + - ${add($iGetWaitAcceptance,1)}
  140 + - eq:
  141 + - content.data.taskMsg.iGetCompleted
  142 + - ${add($iGetCompleted,0)}
  143 +
  144 +- name: $phone 登录系统
  145 + variables:
  146 + phone: ${ENV(phone2)}
  147 + testcase: testcases/common/COM001_task_login_testcases.yml
  148 +
  149 +
  150 +- name: 验收任务
  151 + variables:
  152 + id: $tasks_id
  153 + actualFinishDate: ${get_endtime()}
  154 + api: api/app_api/task_api/checkAccept_api.yml
  155 + validate:
  156 + - eq:
  157 + - content.msg
  158 + - 验收成功
  159 +
  160 +- name: $phone 登录系统
  161 + variables:
  162 + phone: ${ENV(phone1)}
  163 + testcase: testcases/common/COM001_task_login_testcases.yml
  164 +
  165 +- name: 查看我领取的-已完成+1
  166 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  167 + validate:
  168 + - eq:
  169 + - content.data.taskMsg.iGetWaitVerify
  170 + - ${add($iGetWaitVerify,0)}
  171 + - eq:
  172 + - content.data.taskMsg.iGetInProgress
  173 + - ${add($iGetInProgress,0)}
  174 + - eq:
  175 + - content.data.taskMsg.iGetWaitAcceptance
  176 + - ${add($iGetWaitAcceptance,0)}
  177 + - eq:
  178 + - content.data.taskMsg.iGetCompleted
  179 + - ${add($iGetCompleted,1)}
  1 +config:
  2 + name: ME018-领取竞标任务-我领取的、我参与的数量正确
  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 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  33 + extract:
  34 + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
  35 + - iGetInProgress: content.data.taskMsg.iGetInProgress
  36 + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
  37 + - iGetCompleted: content.data.taskMsg.iGetCompleted
  38 + - iParticipationBid: content.data.taskMsg.iParticipationBid
  39 + - iParticipationCompleted: content.data.taskMsg.iParticipationCompleted
  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: 第二次查看我领取的、我参与的-竞标中+1
  60 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  61 + validate:
  62 + - eq:
  63 + - content.data.taskMsg.iGetWaitVerify
  64 + - ${add($iGetWaitVerify,0)}
  65 + - eq:
  66 + - content.data.taskMsg.iGetInProgress
  67 + - ${add($iGetInProgress,0)}
  68 + - eq:
  69 + - content.data.taskMsg.iGetWaitAcceptance
  70 + - ${add($iGetWaitAcceptance,0)}
  71 + - eq:
  72 + - content.data.taskMsg.iGetCompleted
  73 + - ${add($iGetCompleted,0)}
  74 + - eq:
  75 + - content.data.taskMsg.iParticipationBid
  76 + - ${add($iParticipationBid,1)}
  77 + - eq:
  78 + - content.data.taskMsg.iParticipationCompleted
  79 + - ${add($iParticipationCompleted,0)}
  80 +
  81 +- name: $phone 登录系统
  82 + variables:
  83 + phone: ${ENV(phone2)}
  84 + testcase: testcases/common/COM001_task_login_testcases.yml
  85 +
  86 +
  87 +- name: 查看我发布的-待领取
  88 + variables:
  89 + action: 1
  90 + api: api/app_api/task_api/iPublishedTasks_api.yml
  91 + validate:
  92 + - eq:
  93 + - content.data.tasks.0.title
  94 + - $title
  95 + - eq:
  96 + - content.data.tasks.0.id
  97 + - $tasks_id
  98 +
  99 +- name: 查看任务详情
  100 + variables:
  101 + id: $tasks_id
  102 + api: api/app_api/task_api/taskDetails_api.yml
  103 + extract:
  104 + - bidders: content.data.task.bidders.0.uid
  105 + validate:
  106 + - eq:
  107 + - content.msg
  108 + - 获取详情成功
  109 + - eq:
  110 + - content.data.task.title
  111 + - $title
  112 +
  113 +- name: 竞标人中标确认
  114 + variables:
  115 + id: $tasks_id
  116 + uid: $bidders
  117 + planFinishDate: ${get_endtime()}
  118 + api: api/app_api/task_api/bidTask_api.yml
  119 + validate:
  120 + - eq:
  121 + - content.msg
  122 + - 中标成功
  123 +
  124 +
  125 +- name: $phone 登录系统
  126 + variables:
  127 + phone: ${ENV(phone1)}
  128 + testcase: testcases/common/COM001_task_login_testcases.yml
  129 +
  130 +- name: 查看我领取的-进行中+1、我参与的-竞标中回到初始状态
  131 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  132 + validate:
  133 + - eq:
  134 + - content.data.taskMsg.iGetWaitVerify
  135 + - ${add($iGetWaitVerify,0)}
  136 + - eq:
  137 + - content.data.taskMsg.iGetInProgress
  138 + - ${add($iGetInProgress,1)}
  139 + - eq:
  140 + - content.data.taskMsg.iGetWaitAcceptance
  141 + - ${add($iGetWaitAcceptance,0)}
  142 + - eq:
  143 + - content.data.taskMsg.iGetCompleted
  144 + - ${add($iGetCompleted,0)}
  145 + - eq:
  146 + - content.data.taskMsg.iParticipationBid
  147 + - ${add($iParticipationBid,0)}
  148 + - eq:
  149 + - content.data.taskMsg.iParticipationCompleted
  150 + - ${add($iParticipationCompleted,0)}
  151 +
  152 +- name: 完成任务
  153 + variables:
  154 + id: $tasks_id
  155 + api: api/app_api/task_api/finishTask_api.yml
  156 + validate:
  157 + - eq:
  158 + - content.msg
  159 + - 完成成功
  160 +
  161 +- name: 查看我领取的-进行中回到初始状态,待验收+1
  162 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  163 + validate:
  164 + - eq:
  165 + - content.data.taskMsg.iGetWaitVerify
  166 + - ${add($iGetWaitVerify,0)}
  167 + - eq:
  168 + - content.data.taskMsg.iGetInProgress
  169 + - ${add($iGetInProgress,0)}
  170 + - eq:
  171 + - content.data.taskMsg.iGetWaitAcceptance
  172 + - ${add($iGetWaitAcceptance,1)}
  173 + - eq:
  174 + - content.data.taskMsg.iGetCompleted
  175 + - ${add($iGetCompleted,0)}
  176 + - eq:
  177 + - content.data.taskMsg.iParticipationBid
  178 + - ${add($iParticipationBid,0)}
  179 + - eq:
  180 + - content.data.taskMsg.iParticipationCompleted
  181 + - ${add($iParticipationCompleted,0)}
  182 +
  183 +
  184 +
  185 +- name: $phone 登录系统
  186 + variables:
  187 + phone: ${ENV(phone2)}
  188 + testcase: testcases/common/COM001_task_login_testcases.yml
  189 +
  190 +- name: 验收任务
  191 + variables:
  192 + id: $tasks_id
  193 + actualFinishDate: ${get_endtime()}
  194 + api: api/app_api/task_api/checkAccept_api.yml
  195 + validate:
  196 + - eq:
  197 + - content.msg
  198 + - 验收成功
  199 +
  200 +- name: $phone 登录系统
  201 + variables:
  202 + phone: ${ENV(phone1)}
  203 + testcase: testcases/common/COM001_task_login_testcases.yml
  204 +
  205 +- name: 查看我领取的-待验收回到初始状态,已完成+1
  206 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  207 + validate:
  208 + - eq:
  209 + - content.data.taskMsg.iGetWaitVerify
  210 + - ${add($iGetWaitVerify,0)}
  211 + - eq:
  212 + - content.data.taskMsg.iGetInProgress
  213 + - ${add($iGetInProgress,0)}
  214 + - eq:
  215 + - content.data.taskMsg.iGetWaitAcceptance
  216 + - ${add($iGetWaitAcceptance,0)}
  217 + - eq:
  218 + - content.data.taskMsg.iGetCompleted
  219 + - ${add($iGetCompleted,1)}
  220 + - eq:
  221 + - content.data.taskMsg.iParticipationBid
  222 + - ${add($iParticipationBid,0)}
  223 + - eq:
  224 + - content.data.taskMsg.iParticipationCompleted
  225 + - ${add($iParticipationCompleted,0)}
  1 +config:
  2 + name: ME019-竞标任务-参与人的“我参与的-已完成”数量校验
  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 +
  94 +- name: $phone 登录系统
  95 + variables:
  96 + phone: ${ENV(phone1)}
  97 + testcase: testcases/common/COM001_task_login_testcases.yml
  98 +
  99 +
  100 +- name: 完成任务
  101 + variables:
  102 + id: $tasks_id
  103 + api: api/app_api/task_api/finishTask_api.yml
  104 + validate:
  105 + - eq:
  106 + - content.msg
  107 + - 完成成功
  108 +
  109 +- name: $phone 登录系统
  110 + variables:
  111 + phone: ${ENV(phone3)}
  112 + testcase: testcases/common/COM001_task_login_testcases.yml
  113 +
  114 +- name: 第一次查看我领取的、我参与的
  115 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  116 + extract:
  117 + - iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
  118 + - iGetInProgress: content.data.taskMsg.iGetInProgress
  119 + - iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
  120 + - iGetCompleted: content.data.taskMsg.iGetCompleted
  121 + - iParticipationBid: content.data.taskMsg.iParticipationBid
  122 + - iParticipationCompleted: content.data.taskMsg.iParticipationCompleted
  123 +
  124 +- name: $phone 登录系统
  125 + variables:
  126 + phone: ${ENV(phone2)}
  127 + testcase: testcases/common/COM001_task_login_testcases.yml
  128 +
  129 +- name: 验收任务
  130 + variables:
  131 + id: $tasks_id
  132 + actualFinishDate: ${get_endtime()}
  133 + api: api/app_api/task_api/checkAccept_api.yml
  134 + validate:
  135 + - eq:
  136 + - content.msg
  137 + - 验收成功
  138 +
  139 +- name: $phone 登录系统
  140 + variables:
  141 + phone: ${ENV(phone3)}
  142 + testcase: testcases/common/COM001_task_login_testcases.yml
  143 +
  144 +- name: 查看我领取的、我参与的-已完成+1
  145 + api: api/app_api/taskStatistics_api/taskStatistics_api.yml
  146 + validate:
  147 + - eq:
  148 + - content.data.taskMsg.iGetWaitVerify
  149 + - ${add($iGetWaitVerify,0)}
  150 + - eq:
  151 + - content.data.taskMsg.iGetInProgress
  152 + - ${add($iGetInProgress,0)}
  153 + - eq:
  154 + - content.data.taskMsg.iGetWaitAcceptance
  155 + - ${add($iGetWaitAcceptance,0)}
  156 + - eq:
  157 + - content.data.taskMsg.iGetCompleted
  158 + - ${add($iGetCompleted,0)}
  159 + - eq:
  160 + - content.data.taskMsg.iParticipationBid
  161 + - ${add($iParticipationBid,0)}
  162 + - eq:
  163 + - content.data.taskMsg.iParticipationCompleted
  164 + - ${add($iParticipationCompleted,1)}
1 config: 1 config:
2 - name: PF001价值系统-拥有发布任务权限登录价值系统 2 + name: PF001价值系统-主管理员拥有发布任务权限
3 base_url: ${ENV(base_url)} 3 base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(adminphone)}
4 6
5 teststeps: 7 teststeps:
6 8
@@ -8,14 +10,11 @@ teststeps: @@ -8,14 +10,11 @@ teststeps:
8 testcase: testcases/common/COM001_task_login_testcases.yml 10 testcase: testcases/common/COM001_task_login_testcases.yml
9 11
10 - name: 获取用户信息 12 - name: 获取用户信息
11 - api: api/app_api/user_api/userInfo_api.yml  
12 - variables:  
13 - permissionTaskPublish: 1  
14 - varidate: 13 + api: api/app_api/login_api/userinfo_api.yml
15 validate: 14 validate:
16 - eq: 15 - eq:
17 - content.data.user.permissionTaskPublish 16 - content.data.user.permissionTaskPublish
18 - - $permissionTaskPublish 17 + - 1
19 - eq: 18 - eq:
20 - content.data.msg 19 - content.data.msg
21 - 获取用户信息 20 - 获取用户信息
1 config: 1 config:
2 - name: PF002价值系统-无任务管理权限的人员登录系统 2 + name: PF002价值系统-无任务管理权限的人员登录系统,无发布按钮
3 base_url: ${ENV(base_url)} 3 base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone1)}
4 6
5 teststeps: 7 teststeps:
6 -- name: 价值系统-无任务管理权限的人员登录系统  
7 - variables:  
8 - phone: ${ENV(wtaskphone)}  
9 - testcase: testcases/common/login_testcases.yml 8 +- name: $phone 登陆系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
10 10
11 - name: 获取用户信息 11 - name: 获取用户信息
12 - api: api/app_api/user_api/userInfo_api.yml  
13 - variables:  
14 - permissionTaskPublish: 0  
15 - varidate: 12 + api: api/app_api/login_api/userinfo_api.yml
16 validate: 13 validate:
17 - eq: 14 - eq:
18 - content.data.user.permissionTaskPublish 15 - content.data.user.permissionTaskPublish
19 - - $permissionTaskPublish 16 + - 0
20 - eq: 17 - eq:
21 - content.data.msg 18 - content.data.msg
22 - 获取用户信息 19 - 获取用户信息
  1 +config:
  2 + name: PF003价值系统-无任务管理权限的人员登录系统,无发布按钮
  3 + base_url: ${ENV(base_url)}
  4 + variables:
  5 + phone: ${ENV(phone2)}
  6 +
  7 +teststeps:
  8 +- name: $phone 登陆系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
  10 +
  11 +- name: 获取用户信息
  12 + api: api/app_api/login_api/userinfo_api.yml
  13 + validate:
  14 + - eq:
  15 + - content.data.user.permissionTaskPublish
  16 + - 1
  17 + - eq:
  18 + - content.data.msg
  19 + - 获取用户信息
1 config: 1 config:
2 name: 用户登录APP 2 name: 用户登录APP
3 base_url: ${ENV(base_url)} 3 base_url: ${ENV(base_url)}
  4 +variables:
  5 + phone: ${ENV(adminphone)}
4 6
5 teststeps: 7 teststeps:
  8 +
  9 +- name: $phone 登陆统一用户中心
  10 + api: api/app_api/login_api/ucenter_login_api.yml
  11 + extract:
  12 + cuid: content.data.cuid
  13 + credentials: content.data.credentials
  14 + muid: content.data.companys.0.muid
  15 + varidate:
  16 + validate:
  17 + - eq:
  18 + - content.msg
  19 + - ok
  20 +
6 - name: 价值系统登录 21 - name: 价值系统登录
7 - api: api/app_api/login_api/task/authorize_api.yml 22 + variables:
  23 + credentials: $credentials
  24 + cuid: $cuid
  25 + muid: $muid
  26 + cid: ${ENV(companyid)}
  27 + api: api/app_api/login_api/authorize_api.yml
8 teardown_hooks: 28 teardown_hooks:
9 - - ${teardown_hook_get_task_authcode($response)} 29 + - ${teardown_hook_get_authcode($response)}
10 varidate: 30 varidate:
11 validate: 31 validate:
12 - eq: 32 - eq:
13 - content.msg 33 - content.msg
14 - - 登录成功accessToken 34 + - 登录成功
  35 +
15 - name: 获取accessToken 36 - name: 获取accessToken
16 - api: api/app_api/login_api/task/accessToken_api.yml 37 + api: api/app_api/login_api/accessToken_api.yml
17 teardown_hooks: 38 teardown_hooks:
18 - ${teardown_hook_get_task_accesstoken($response)} 39 - ${teardown_hook_get_task_accesstoken($response)}
19 - varidate:  
20 validate: 40 validate:
21 - eq: 41 - eq:
22 - content.msg 42 - content.msg
1 config: 1 config:
2 name: 用户登录管理后台 2 name: 用户登录管理后台
3 - base_url: ${ENV(base_business_url)}  
4 3
5 teststeps: 4 teststeps:
6 - name: 登录企业平台 5 - name: 登录企业平台
7 - api: api/m_api/login_api/auth/pwdLogin_api.yml  
8 -# variables:  
9 -# username: ${ENV(wpftwphone)}  
10 - teardown_hooks:  
11 - - ${teardown_hook_get_Authorization($response)} 6 + api: api/m_api/login_api/pwdLogin_api.yml
  7 + extract:
  8 + pwdLogintoken: content.data.access.token
12 varidate: 9 varidate:
13 - validate:  
14 - eq: 10 - eq:
15 - content.msg 11 - content.msg
16 - ok 12 - ok
17 -- name: 用户的公司列表  
18 - output:  
19 - - companyId  
20 - api: api/m_api/login_api/auth/userCompamies_api.yml 13 +
  14 +- name: 选择公司登陆
  15 + variables:
  16 + companyId: ${ENV(companyId)}
  17 + api: api/m_api/login_api/anonymousLogin_api.yml
21 extract: 18 extract:
22 - companyId: content.data.company.0.id  
23 - validate:  
24 - - eq:  
25 - - content.msg  
26 - - ok  
27 - - eq:  
28 - - content.data.company.0.id  
29 - - $companyId  
30 -- name: 登录公司  
31 - api: api/m_api/login_api/auth/anonymousLogin_api.yml  
32 - teardown_hooks:  
33 - - ${teardown_hook_get_access_token($response)} 19 + anonymousLogintoken: content.data.access.token
34 varidate: 20 varidate:
35 - validate:  
36 - eq: 21 - eq:
37 - content.msg 22 - content.msg
38 - ok 23 - ok
39 -#  
40 -- name: 登录列表  
41 - api: api/m_api/login_api/auth/getSingleLoginMenus_api.yml  
42 - teardown_hooks:  
43 - - ${teardown_hook_get_login_code($response)} 24 +
  25 +- name: 单点登录,获取secret用于登录子系统
  26 + api: api/m_api/login_api/getSingleLoginMenus_api.yml
  27 + extract:
  28 + url: content.data.list.0.url
44 varidate: 29 varidate:
45 - validate:  
46 - eq: 30 - eq:
47 - content.msg 31 - content.msg
48 - ok 32 - ok
49 -# 33 +
50 - name: 登录价值系统 34 - name: 登录价值系统
51 - api: api/m_api/login_api/auth/login_api.yml 35 + api: api/m_api/login_api/login_api.yml
52 teardown_hooks: 36 teardown_hooks:
53 - - ${teardown_hook_get_task_Authorization($response)}  
54 - varidate: 37 + - ${teardown_hook_get_task_manager_accesstoken($response)}
55 validate: 38 validate:
56 - eq: 39 - eq:
57 - content.msg 40 - content.msg
  1 +config:
  2 + name: 用户新增抢单任务
  3 + variables:
  4 + phone: ${ENV(adminphone)}
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
  10 +
  11 +
  12 +- name: 新增抢单任务
  13 + api: api/app_api/task_api/taskPublish_api.yml
  14 + validate:
  15 + - eq:
  16 + - content.msg
  17 + - ok
  1 +config:
  2 + name: 用户新增竞标任务
  3 + variables:
  4 + phone: ${ENV(adminphone)}
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
  10 +
  11 +
  12 +- name: 新增竞标任务
  13 + variables:
  14 + action: 0
  15 + type: 1
  16 + bidStartTime: ${get_starttime()}
  17 + bidEndTime: ${get_endtime()}
  18 + api: api/app_api/task_api/taskPublish_api.yml
  19 + validate:
  20 + - eq:
  21 + - content.msg
  22 + - ok
  1 +config:
  2 + name: 用户新增指派任务
  3 + variables:
  4 + phone: ${ENV(adminphone)}
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
  10 +
  11 +
  12 +- name: 新增指派任务
  13 + variables:
  14 + action: 0
  15 + type: 2
  16 + plannedFinishDate: ${get_endtime()}
  17 + uid: 3284714710070272
  18 + uname: '价值系统账号1'
  19 + api: api/app_api/task_api/taskPublish_api.yml
  20 + validate:
  21 + - eq:
  22 + - content.msg
  23 + - ok
1 -config:  
2 - name: 账号登录测试  
3 - base_url: ${ENV(base_url)}  
4 -  
5 -teststeps:  
6 -- name: 登录统一用户中心  
7 - api: api/app_api/login_api/auth/ucenter_login_api.yml  
8 - teardown_hooks:  
9 - - ${teardown_hook_get_cuid($response)}  
10 - - ${teardown_hook_get_credentials($response)}  
11 - - ${teardown_hook_get_muid($response)}  
12 - - ${teardown_hook_get_cid($response)}  
13 - variables:  
14 - phone: ${ENV(appphone)}  
15 - varidate:  
16 - validate:  
17 - - eq:  
18 - - content.msg  
19 - - ok  
20 -- name: 登录app系统  
21 - api: api/app_api/login_api/auth/authorize_api.yml  
22 - teardown_hooks:  
23 - - ${teardown_hook_get_authcode($response)}  
24 - varidate:  
25 - validate:  
26 - - eq:  
27 - - content.msg  
28 - - 登录成功accessToken  
29 -- name: 获取accessToken  
30 - api: api/app_api/login_api/auth/accessToken_api.yml  
31 - teardown_hooks:  
32 - - ${teardown_hook_get_accesstoken($response)}  
33 - varidate:  
34 - validate:  
35 - - eq:  
36 - - content.msg  
37 - - 获取成功  
38 -  
39 -  
  1 +config:
  2 + name: 用户新增抢单任务
  3 + variables:
  4 + phone: ${ENV(adminphone)}
  5 +
  6 +teststeps:
  7 +
  8 +- name: $phone 登录系统
  9 + testcase: testcases/common/COM001_task_login_testcases.yml
  10 +
  11 +
  12 +- name: 新增抢单任务
  13 + api: api/app_api/task_api/taskPublish_api.yml
  14 + varidate:
  15 + - eq:
  16 + - content.msg
  17 + - ok