作者 bianxinhua

add README

正在显示 71 个修改的文件 包含 1174 行增加751 行删除
1 wpftwphone=19990000008 1 wpftwphone=19990000008
2 pfphone=19990000011 2 pfphone=19990000011
3 pfphone1=19990000015 3 pfphone1=19990000015
4 -ckotherdeptphone=19990000012 4 +wtaskphone=19990000012
5 pfphone2=18100000005 5 pfphone2=18100000005
6 appphone=19990000015 6 appphone=19990000015
7 password=123456 7 password=123456
1 -name: 获取用户信息:/v2/user/userInfo 1 +name: 获取用户信息
2 base_url: ${ENV(base_url)} 2 base_url: ${ENV(base_url)}
3 variables: 3 variables:
4 currtime: ${make_time()} 4 currtime: ${make_time()}
@@ -19,7 +19,7 @@ request: @@ -19,7 +19,7 @@ request:
19 X-MMM-Version: 0.12.0 19 X-MMM-Version: 0.12.0
20 json: {} 20 json: {}
21 method: POST 21 method: POST
22 - url: /v2/user/userInfo 22 + url: v2/user/userInfo
23 validate: 23 validate:
24 - eq: 24 - eq:
25 - content.code 25 - content.code
@@ -27,3 +27,6 @@ validate: @@ -27,3 +27,6 @@ validate:
27 - eq: 27 - eq:
28 - content.msg 28 - content.msg
29 - 获取用户信息 29 - 获取用户信息
  30 + - eq:
  31 + - content.data.user.permissionTaskPublish
  32 + - 1
  1 +name: 公司任务(进行中)
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +request:
  10 + headers:
  11 + Content-Type: application/json;charset=utf-8
  12 + User-Agent: okhttp/3.12.3
  13 + X-MMM-AccessToken: $access_token
  14 + X-MMM-AppName: com.mmm.ability
  15 + X-MMM-AppProject: ability
  16 + X-MMM-DeviceType: '0'
  17 + X-MMM-Sign: $sign
  18 + X-MMM-Timestamp: $currtime
  19 + X-MMM-Uuid: $uuid
  20 + X-MMM-Version: 1.0.0
  21 + json:
  22 + action: 0
  23 + newest: 1
  24 + pageIndex: 0
  25 + pageSize: 20
  26 + method: POST
  27 + url: v1/task/currentTasks
  28 +validate:
  29 + - eq:
  30 + - content.code
  31 + - 0
  32 + - eq:
  33 + - content.msg
  34 + - 获取成功
  35 +# - $msg
  1 +name: 任务详情
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_appoint_task_id()}
  6 + msg: ok
  7 +request:
  8 + headers:
  9 + Content-Type: application/json; charset=UTF-8
  10 + Authorization: Bearer ${get_task_Authorization()}
  11 + Origin: https://value-test.fjmaimaimai.com
  12 + Referer: https://value-test.fjmaimaimai.com/
  13 + User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
  14 + X-Requested-With: XMLHttpRequest
  15 + json:
  16 + id: $id
  17 + method: POST
  18 + url: task/appoint/detail
  19 +validate:
  20 + - eq:
  21 + - content.code
  22 + - 0
  23 + - eq:
  24 + - content.msg
  25 + - $msg
  26 + - eq:
  27 + - content.data.status
  28 + - $status
  1 +name: 任务详情
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_appoint_task_id()}
  6 + currtime: ${make_time()}
  7 + uuid: ${make_uuid()}
  8 + access_token: ${get_task_accesstoken()}
  9 + sign: ${make_sign($currtime, $uuid, $access_token)}
  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: 1.0.0
  22 + json:
  23 + id: $id
  24 + method: POST
  25 + url: v1/task/taskDetails
  26 +validate:
  27 + - eq:
  28 + - content.code
  29 + - 0
  30 + - eq:
  31 + - content.msg
  32 + - 获取详情成功
  33 +# - $msg
  1 +name: 指派任务验收
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + taskId: ${get_appoint_task_id()}
  6 + remark: 上传报告${get_nowtime()}
  7 + realityTime: ${get_today1()}
  8 + uid0: ${get_uid0()}
  9 + uid1: ${get_uid1()}
  10 + uid2: ${get_uid2()}
  11 + uid15: ${get_uid15()}
  12 + msg: ok
  13 +request:
  14 + headers:
  15 + Content-Type: application/json; charset=UTF-8
  16 + Authorization: Bearer ${get_task_Authorization()}
  17 + Origin: https://value-test.fjmaimaimai.com
  18 + Host: suplus-worth-web-gateway-test.fjmaimaimai.com
  19 + Referer: https://value-test.fjmaimaimai.com/
  20 + 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
  21 + X-Requested-With: XMLHttpRequest
  22 + json:
  23 + receiver:
  24 + uid: $uid0
  25 + name: $name0
  26 + percent: 25
  27 + reward: 500
  28 + participant:
  29 + - uid: $uid15
  30 + name: $name15
  31 + percent: ${convert_to_number(25)}
  32 + reward: ${convert_to_number(500)}
  33 + - uid: $uid1
  34 + name: $name1
  35 + percent: ${convert_to_number(25)}
  36 + reward: ${convert_to_number(500)}
  37 + - uid: $uid2
  38 + name: $name2
  39 + percent: ${convert_to_number(25)}
  40 + reward: ${convert_to_number(500)}
  41 + resourceType: 1
  42 + resourceList:
  43 + - id: ${get_resource_id()}
  44 + solution:
  45 + total: ${convert_to_number(20)}
  46 + receiver:
  47 + uid: $uid0
  48 + name: $name0
  49 + percent: ${convert_to_number(25)}
  50 + score: ${convert_to_number(5)}
  51 + participant:
  52 + - uid: $uid15
  53 + name: $name15
  54 + percent: ${convert_to_number(25)}
  55 + score: ${convert_to_number(5)}
  56 + - uid: $uid1
  57 + name: $name1
  58 + percent: ${convert_to_number(25)}
  59 + score: ${convert_to_number(5)}
  60 + - uid: $uid2
  61 + name: $name2
  62 + percent: ${convert_to_number(25)}
  63 + score: ${convert_to_number(5)}
  64 + remark: $remark
  65 + pictures:
  66 + realityTime: $realityTime
  67 + taskId: $taskId
  68 + method: POST
  69 + url: task/appoint/accept
  70 +validate:
  71 + - eq:
  72 + - content.code
  73 + - 0
  74 + - eq:
  75 + - content.msg
  76 + - $msg
  1 +name: 关闭任务
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_appoint_task_id()}
  6 + reason: 测试关闭任务${get_nowtime()}
  7 + msg: ok
  8 +request:
  9 + headers:
  10 + Content-Type: application/json; charset=UTF-8
  11 + Authorization: Bearer ${get_task_Authorization()}
  12 + Origin: https://value-test.fjmaimaimai.com
  13 + Referer: https://value-test.fjmaimaimai.com/
  14 + 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
  15 + X-Requested-With: XMLHttpRequest
  16 + json:
  17 + id: $id
  18 + reason: $reason
  19 + method: POST
  20 + url: task/close
  21 +validate:
  22 + - eq:
  23 + - content.code
  24 + - 0
  25 + - eq:
  26 + - content.msg
  27 + - $msg
  1 +name: 完成任务
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_appoint_task_id()}
  6 + currtime: ${make_time()}
  7 + uuid: ${make_uuid()}
  8 + access_token: ${get_task_accesstoken()}
  9 + sign: ${make_sign($currtime, $uuid, $access_token)}
  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: 1.0.0
  22 + json:
  23 + id: $id
  24 + method: POST
  25 + url: v1/task/finishTask
  26 +validate:
  27 + - eq:
  28 + - content.code
  29 + - 0
  30 + - eq:
  31 + - content.msg
  32 + - 完成成功
@@ -18,7 +18,7 @@ request: @@ -18,7 +18,7 @@ request:
18 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 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
19 X-Requested-With: XMLHttpRequest 19 X-Requested-With: XMLHttpRequest
20 json: 20 json:
21 - appointTo: 3245096039079680 21 + appointTo: 3248817613892608
22 planTime: $planTime 22 planTime: $planTime
23 name: $name 23 name: $name
24 resourceType: 1 24 resourceType: 1
  1 +name: 公司任务(竞标任务)
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +request:
  10 + headers:
  11 + Content-Type: application/json;charset=utf-8
  12 + User-Agent: okhttp/3.12.3
  13 + X-MMM-AccessToken: $access_token
  14 + X-MMM-AppName: com.mmm.ability
  15 + X-MMM-AppProject: ability
  16 + X-MMM-DeviceType: '0'
  17 + X-MMM-Sign: $sign
  18 + X-MMM-Timestamp: $currtime
  19 + X-MMM-Uuid: $uuid
  20 + X-MMM-Version: 1.0.0
  21 + json:
  22 + action: 1
  23 + newest: 1
  24 + pageIndex: 0
  25 + pageSize: 20
  26 + method: POST
  27 + url: v1/task/contendTasks
  28 +validate:
  29 + - eq:
  30 + - content.code
  31 + - 0
  32 + - eq:
  33 + - content.msg
  34 + - 获取成功
  35 +# - $msg
  1 +name: 公司任务(进行中)
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + currtime: ${make_time()}
  6 + uuid: ${make_uuid()}
  7 + access_token: ${get_task_accesstoken()}
  8 + sign: ${make_sign($currtime, $uuid, $access_token)}
  9 +request:
  10 + headers:
  11 + Content-Type: application/json;charset=utf-8
  12 + User-Agent: okhttp/3.12.3
  13 + X-MMM-AccessToken: $access_token
  14 + X-MMM-AppName: com.mmm.ability
  15 + X-MMM-AppProject: ability
  16 + X-MMM-DeviceType: '0'
  17 + X-MMM-Sign: $sign
  18 + X-MMM-Timestamp: $currtime
  19 + X-MMM-Uuid: $uuid
  20 + X-MMM-Version: 1.0.0
  21 + json:
  22 + action: 0
  23 + newest: 1
  24 + pageIndex: 0
  25 + pageSize: 20
  26 + method: POST
  27 + url: v1/task/currentTasks
  28 +validate:
  29 + - eq:
  30 + - content.code
  31 + - 0
  32 + - eq:
  33 + - content.msg
  34 + - 获取成功
  35 +# - $msg
  1 +name: 任务详情
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_bid_task_id()}
  6 + msg: ok
  7 +request:
  8 + headers:
  9 + Content-Type: application/json; charset=UTF-8
  10 + Authorization: Bearer ${get_task_Authorization()}
  11 + Origin: https://value-test.fjmaimaimai.com
  12 + Referer: https://value-test.fjmaimaimai.com/
  13 + User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
  14 + X-Requested-With: XMLHttpRequest
  15 + json:
  16 + id: $id
  17 + method: POST
  18 + url: task/bid/detail
  19 +validate:
  20 + - eq:
  21 + - content.code
  22 + - 0
  23 + - eq:
  24 + - content.msg
  25 + - $msg
  26 + - eq:
  27 + - content.data.status
  28 + - $status
  1 +name: 竞标任务-中标
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + taskId: ${get_bid_task_id()}
  6 + planTime: ${get_today1()}
  7 + msg: ok
  8 +request:
  9 + headers:
  10 + Content-Type: application/json; charset=UTF-8
  11 + Authorization: Bearer ${get_task_Authorization()}
  12 + Origin: https://value-test.fjmaimaimai.com
  13 + Referer: https://value-test.fjmaimaimai.com/
  14 + 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
  15 + X-Requested-With: XMLHttpRequest
  16 + json:
  17 + taskId: $taskId
  18 + uid: ${convert_to_number(3248817613892608)}
  19 + planTime: $planTime
  20 + method: POST
  21 + url: task/bid/outbid
  22 +validate:
  23 + - eq:
  24 + - content.code
  25 + - 0
  26 + - eq:
  27 + - content.msg
  28 + - $msg
  1 +name: 任务详情
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_bid_task_id()}
  6 + currtime: ${make_time()}
  7 + uuid: ${make_uuid()}
  8 + access_token: ${get_task_accesstoken()}
  9 + sign: ${make_sign($currtime, $uuid, $access_token)}
  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: 1.0.0
  22 + json:
  23 + id: $id
  24 + method: POST
  25 + url: v1/task/taskDetails
  26 +validate:
  27 + - eq:
  28 + - content.code
  29 + - 0
  30 + - eq:
  31 + - content.msg
  32 + - 获取详情成功
  33 +# - $msg
  1 +name: 竞标任务验收
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + taskId: ${get_bid_task_id()}
  6 + remark: 上传报告${get_nowtime()}
  7 + realityTime: ${get_today1()}
  8 + uid0: ${get_uid0()}
  9 + uid1: ${get_uid1()}
  10 + uid2: ${get_uid2()}
  11 + uid15: ${get_uid15()}
  12 + msg: ok
  13 +request:
  14 + headers:
  15 + Content-Type: application/json; charset=UTF-8
  16 + Authorization: Bearer ${get_task_Authorization()}
  17 + Origin: https://value-test.fjmaimaimai.com
  18 + Host: suplus-worth-web-gateway-test.fjmaimaimai.com
  19 + Referer: https://value-test.fjmaimaimai.com/
  20 + 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
  21 + X-Requested-With: XMLHttpRequest
  22 + json:
  23 + receiver:
  24 + uid: $uid0
  25 + name: $name0
  26 + percent: 25
  27 + reward: 500
  28 + participant:
  29 + - uid: $uid15
  30 + name: $name15
  31 + percent: ${convert_to_number(25)}
  32 + reward: ${convert_to_number(500)}
  33 + - uid: $uid1
  34 + name: $name1
  35 + percent: ${convert_to_number(25)}
  36 + reward: ${convert_to_number(500)}
  37 + - uid: $uid2
  38 + name: $name2
  39 + percent: ${convert_to_number(25)}
  40 + reward: ${convert_to_number(500)}
  41 + resourceType: 1
  42 + resourceList:
  43 + - id: ${get_resource_id()}
  44 + solution:
  45 + total: ${convert_to_number(20)}
  46 + receiver:
  47 + uid: $uid0
  48 + name: $name0
  49 + percent: ${convert_to_number(25)}
  50 + score: ${convert_to_number(5)}
  51 + participant:
  52 + - uid: $uid15
  53 + name: $name15
  54 + percent: ${convert_to_number(25)}
  55 + score: ${convert_to_number(5)}
  56 + - uid: $uid1
  57 + name: $name1
  58 + percent: ${convert_to_number(25)}
  59 + score: ${convert_to_number(5)}
  60 + - uid: $uid2
  61 + name: $name2
  62 + percent: ${convert_to_number(25)}
  63 + score: ${convert_to_number(5)}
  64 + remark: $remark
  65 + pictures:
  66 + realityTime: $realityTime
  67 + taskId: $taskId
  68 + method: POST
  69 + url: task/bid/accept
  70 +validate:
  71 + - eq:
  72 + - content.code
  73 + - 0
  74 + - eq:
  75 + - content.msg
  76 + - $msg
  1 +name: 关闭任务
  2 +base_url: ${ENV(base_worth_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_bid_task_id()}
  6 + reason: 测试关闭任务${get_nowtime()}
  7 + msg: ok
  8 +request:
  9 + headers:
  10 + Content-Type: application/json; charset=UTF-8
  11 + Authorization: Bearer ${get_task_Authorization()}
  12 + Origin: https://value-test.fjmaimaimai.com
  13 + Referer: https://value-test.fjmaimaimai.com/
  14 + 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
  15 + X-Requested-With: XMLHttpRequest
  16 + json:
  17 + id: $id
  18 + reason: $reason
  19 + method: POST
  20 + url: task/close
  21 +validate:
  22 + - eq:
  23 + - content.code
  24 + - 0
  25 + - eq:
  26 + - content.msg
  27 + - $msg
  1 +name: 完成任务
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 + id: ${get_bid_task_id()}
  6 + currtime: ${make_time()}
  7 + uuid: ${make_uuid()}
  8 + access_token: ${get_task_accesstoken()}
  9 + sign: ${make_sign($currtime, $uuid, $access_token)}
  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: 1.0.0
  22 + json:
  23 + id: $id
  24 + method: POST
  25 + url: v1/task/finishTask
  26 +validate:
  27 + - eq:
  28 + - content.code
  29 + - 0
  30 + - eq:
  31 + - content.msg
  32 + - 完成成功
  1 +name: 竞标
  2 +base_url: ${ENV(base_url)}
  3 +verify: False
  4 +variables:
  5 +# id: ${get_bid_task_id()}
  6 + currtime: ${make_time()}
  7 + uuid: ${make_uuid()}
  8 + access_token: ${get_task_accesstoken()}
  9 + sign: ${make_sign($currtime, $uuid, $access_token)}
  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: 1.0.0
  22 + json:
  23 + id: $id
  24 + action: 1
  25 + method: POST
  26 + url: v1/task/submitCompete
  27 +validate:
  28 + - eq:
  29 + - content.code
  30 + - 0
  31 + - eq:
  32 + - content.msg
  33 + - 已成功参与竞标,等待中标!
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTkyMzU3NjAsImV4cCI6MTU5OTI0NjU2MCwibmJmIjoxNTk5MjM1NzYwLCJqdGkiOiJaZHQwbDg1cW92YVFVUzB4Iiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU4Yzc5XHU1YjUwXHU1OTM0IiwicGhvbmUiOiIxOTk5MDAwMDAwOCIsImlkIjozMjQ4ODE3NjEzNjgxNjY0LCJhZG1pblR5cGUiOjF9.7v8LblyAi2iynP4FscB6g0lI6qUfnja8rDTpAmNrX0I  
  1 +eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvcHdkTG9naW4iLCJpYXQiOjE1OTk0Njc0NDgsImV4cCI6MTU5OTQ3ODI0OCwibmJmIjoxNTk5NDY3NDQ4LCJqdGkiOiJIa2dqNFZ3V21TbEc3MEljIiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU4Yzc5XHU1YjUwXHU1OTM0IiwicGhvbmUiOiIxOTk5MDAwMDAwOCIsImlkIjozMjQ4ODE3NjEzNjgxNjY0LCJhZG1pblR5cGUiOjF9.bkQ1FDnWpdPudqTPT8MsHhFFmI2HAw7Xe1ky00w2C3M
1 -4EQRksNcQrr7jD4RKDQeQcSehbskxWbe  
  1 +nHpf8B272adZfGFN6zSQfWb45ScbKGNM
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvYW5vbnltb3VzTG9naW4iLCJpYXQiOjE1OTkyMzU3NjEsImV4cCI6MTU5OTI0NjU2MSwibmJmIjoxNTk5MjM1NzYxLCJqdGkiOiJHOXB5UW9WOXB5UlZ3anRYIiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU4Yzc5XHU1YjUwXHU1OTM0IiwicGhvbmUiOiIxOTk5MDAwMDAwOCIsImlkIjozMjQ4ODE3NjEzNjgxNjY0LCJhZG1pblR5cGUiOjF9.JZyzltMQWNLWObfdrE2HzAo_0HPn9c_ZmWtbVyM_48s  
  1 +eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtYnVzaW5lc3MtYWRtaW4tZ2F0ZXdheS10ZXN0LmZqbWFpbWFpbWFpLmNvbVwvYXV0aFwvYW5vbnltb3VzTG9naW4iLCJpYXQiOjE1OTk0Njc0NDksImV4cCI6MTU5OTQ3ODI0OSwibmJmIjoxNTk5NDY3NDQ5LCJqdGkiOiJXbU9aNGhTblVwRTBnV0xwIiwic3ViIjozMjQ4ODE3NjEzNjgxNjY0LCJwcnYiOiI4N2UwYWYxZWY5ZmQxNTgxMmZkZWM5NzE1M2ExNGUwYjA0NzU0NmFhIiwiY29tcGFueUlkIjozNjYsIm5pY2tuYW1lIjoiXHU4Yzc5XHU1YjUwXHU1OTM0IiwicGhvbmUiOiIxOTk5MDAwMDAwOCIsImlkIjozMjQ4ODE3NjEzNjgxNjY0LCJhZG1pblR5cGUiOjF9.INs2lASgMd3bjSV-MKpyXUFvFInDBmy1zbtDhmhFz9I
  1 +3045563818861659136
1 -m3sr3hxwlkn  
  1 +vvbrpohynp
1 -3041676743955448832  
  1 +3045233353575367680
1 -65d8a312aa904690f1485c475da3def2f225a4c2362d303b21c09ee07e46748bcf9648a2  
  1 +32cd0b3cfed084c5c03f6aafa0bb8d139a9f9afbc9c5c2f6797070996fec5261676d9ae2
1 -3679205371953152  
  1 +3679205383782400
1 -IN4bWAJAI2RERL3FgFxWwhRuSDVdefyUwKKBqZ8DoqmrUXV/P0fqAY8QliDl4B8XvWFGJgy7GdvBpIVKToNPD8pV4oaO6r4pELpxvd84awJEQbJvbU0jx+Tzo5vhC5ys9spO+YZIrR6Fu6RvMxY8wlEbEXZRYSMd7QEp4Gw9kJQ=  
  1 +l/IZP20/bKBXz7raHnr8qrzxrZ51EujRxYtcliJMjktjDihUrsg/9yYanpmKnShHfVTU/Y3Hf2+MmnGK3yTz+jHU9BstE9DVdtl5D6gxlIanNzD9NMvXQfAdKcVT/uHSP3X4OldWrpAa7lhkgx6h5SNqmZvHk56Jjeh+7kSNr2I=
1 -3248817613779968  
  1 +3248817613892608
1 -3275234834850048  
  1 +3275709332285696
1 -eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5MjM1NzYxLCJleHAiOjE1OTkyNDY1NjEsIm5iZiI6MTU5OTIzNTc2MSwianRpIjoiSXBGQzJ0THlwdHQzSUhSMiIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.CcUAcnQcG193_6UIVknngrTGqC4aG6ADorsSfgg4eNQ  
  1 +eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9zdXBsdXMtd29ydGgtd2ViLWdhdGV3YXktdGVzdC5mam1haW1haW1haS5jb21cL2F1dGhcL2xvZ2luIiwiaWF0IjoxNTk5NDY3NDQ5LCJleHAiOjE1OTk0NzgyNDksIm5iZiI6MTU5OTQ2NzQ0OSwianRpIjoiR3ZNcExYaFFtenhXMkhVYSIsInN1YiI6MzI0ODgxNzYxMzY4MTY2NCwicHJ2IjoiODdlMGFmMWVmOWZkMTU4MTJmZGVjOTcxNTNhMTRlMGIwNDc1NDZhYSIsImNvbXBhbnlJZCI6MzY2LCJuaWNrbmFtZSI6Ilx1OGM3OVx1NWI1MFx1NTkzNCIsInBob25lIjoiMTk5OTAwMDAwMDgiLCJ1aWQiOjMyNDg4MTc2MTM2ODE2NjQsImFkbWluVHlwZSI6Mn0.HEtAZ9Yr8r9ky7ZrnUcfZLCtATJdcLzlgL5Ywi_TRP0
1 -NGQDN5sFaCTCK3y5xmhFBJWpiQxD8pKJ  
  1 +Smsdz8c7shbF5rPkMXG5CFzcSfNeSE4z
1 -tovgw90nveo  
  1 +km8vot90cs9
@@ -6,6 +6,7 @@ from helpfunc.login_func import * @@ -6,6 +6,7 @@ from helpfunc.login_func import *
6 from helpfunc.m_func import * 6 from helpfunc.m_func import *
7 from helpfunc.pg_db_loot_func import * 7 from helpfunc.pg_db_loot_func import *
8 from helpfunc.pg_db_bid_func import * 8 from helpfunc.pg_db_bid_func import *
  9 +from helpfunc.pg_db_appoint_func import *
9 # from helpfunc.time_func import * 10 # from helpfunc.time_func import *
10 11
11 import time,datetime,re 12 import time,datetime,re
@@ -5,8 +5,8 @@ @@ -5,8 +5,8 @@
5 # @file: login_func.py 5 # @file: login_func.py
6 import json 6 import json
7 import time,datetime 7 import time,datetime
8 -# path = 'E:/task_api/'  
9 -path = 'E:/mmm_auto/task_api/' 8 +path = 'E:/task_api/'
  9 +# path = 'E:/mmm_auto/task_api/'
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:
@@ -7,8 +7,8 @@ @@ -7,8 +7,8 @@
7 import json 7 import json
8 from urllib.parse import * 8 from urllib.parse import *
9 9
10 -# path = 'E:/task_api/'  
11 -path = 'E:/mmm_auto/task_api/' 10 +path = 'E:/task_api/'
  11 +# path = 'E:/mmm_auto/task_api/'
12 def teardown_hook_get_Authorization(response): 12 def teardown_hook_get_Authorization(response):
13 if response.status_code == 200: 13 if response.status_code == 200:
14 jsondata = json.loads(response.text) 14 jsondata = json.loads(response.text)
  1 +#! /usr/bin/env python
  2 +# -*- coding: utf-8 -*-
  3 +# Date: 2020/7/12 16:27
  4 +# @Author:bxh
  5 +# @file: pg_db_func.py
  6 +from helpfunc.m_func import *
  7 +import psycopg2
  8 +from datetime import *
  9 +
  10 +# 获得连接
  11 +def GetConnect():
  12 + conn = False
  13 + try:
  14 + conn = psycopg2.connect(database="mmmworthtest",
  15 + user="bianxinhua",
  16 + password="bianxinhua_123",
  17 + host="114.55.200.59",
  18 + port="31543")
  19 + except Exception as err:
  20 + print("连接数据库失败,%s" % err)
  21 + return conn
  22 +
  23 +#获取指派任务单的状态:待发布
  24 +def get_appoint_task_status_1_from_database():
  25 + db = GetConnect()
  26 + cursor = db.cursor()
  27 + sql = '''select task_status from tasks where company_id = 366 and task_type = 3 and task_status = 1 and id = {} '''.format(get_appoint_task_id())
  28 + # print(sql)
  29 + try:
  30 + cursor.execute(sql)
  31 + result = cursor.fetchone()
  32 + return result[0]
  33 + except Exception as err:
  34 + # 发生错误时回滚
  35 + print(err)
  36 + db.rollback()
  37 + db.close()
  38 +
  39 +#获取指派任务单的状态:进行中
  40 +def get_appoint_task_status_3_from_database():
  41 + db = GetConnect()
  42 + cursor = db.cursor()
  43 + sql = '''select task_status from tasks where company_id = 366 and task_type = 3 and task_status = 3 and id = {} '''.format(get_appoint_task_id())
  44 + # print(sql)
  45 + try:
  46 + cursor.execute(sql)
  47 + result = cursor.fetchone()
  48 + return result[0]
  49 + except Exception as err:
  50 + # 发生错误时回滚
  51 + print(err)
  52 + db.rollback()
  53 + db.close()
  54 +#获取指派任务单的状态:待验收
  55 +def get_appoint_task_status_4_from_database():
  56 + db = GetConnect()
  57 + cursor = db.cursor()
  58 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 4 and id = {}'''.format(get_appoint_task_id())
  59 + # print(sql)
  60 + try:
  61 + cursor.execute(sql)
  62 + result = cursor.fetchone()
  63 + return result[0]
  64 + except Exception as err:
  65 + # 发生错误时回滚
  66 + print(err)
  67 + db.rollback()
  68 + db.close()
  69 +#获取指派任务单的状态:已完成
  70 +def get_appoint_task_status_5_from_database():
  71 + db = GetConnect()
  72 + cursor = db.cursor()
  73 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 5 and id = {}'''.format(get_appoint_task_id())
  74 + # print(sql)
  75 + try:
  76 + cursor.execute(sql)
  77 + result = cursor.fetchone()
  78 + return result[0]
  79 + except Exception as err:
  80 + # 发生错误时回滚
  81 + print(err)
  82 + db.rollback()
  83 + db.close()
  84 +
  85 +#获取任务单的状态:已关闭
  86 +def get_appoint_task_status_6_from_database():
  87 + db = GetConnect()
  88 + cursor = db.cursor()
  89 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 3 and t.task_status = 6 and id = {}'''.format(get_appoint_task_id())
  90 + # print(sql)
  91 + try:
  92 + cursor.execute(sql)
  93 + result = cursor.fetchone()
  94 + return result[0]
  95 + except Exception as err:
  96 + # 发生错误时回滚
  97 + print(err)
  98 + db.rollback()
  99 + db.close()
@@ -20,11 +20,10 @@ def GetConnect(): @@ -20,11 +20,10 @@ def GetConnect():
20 print("连接数据库失败,%s" % err) 20 print("连接数据库失败,%s" % err)
21 return conn 21 return conn
22 22
23 -#获取抢单任务单的状态:待发布 23 +#获取竞标任务单的状态:待发布
24 def get_bid_task_status_1_from_database(): 24 def get_bid_task_status_1_from_database():
25 db = GetConnect() 25 db = GetConnect()
26 cursor = db.cursor() 26 cursor = db.cursor()
27 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
28 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 1 and id = {} '''.format(get_bid_task_id()) 27 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 1 and id = {} '''.format(get_bid_task_id())
29 # print(sql) 28 # print(sql)
30 try: 29 try:
@@ -37,11 +36,10 @@ def get_bid_task_status_1_from_database(): @@ -37,11 +36,10 @@ def get_bid_task_status_1_from_database():
37 db.rollback() 36 db.rollback()
38 db.close() 37 db.close()
39 38
40 -#获取抢单任务单的状态:待领取  
41 -def get_task_status_2_from_database(): 39 +#获取竞标任务单的状态:待领取
  40 +def get_bid_task_status_2_from_database():
42 db = GetConnect() 41 db = GetConnect()
43 cursor = db.cursor() 42 cursor = db.cursor()
44 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
45 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 2 and id = {} '''.format(get_bid_task_id()) 43 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 2 and id = {} '''.format(get_bid_task_id())
46 print(sql) 44 print(sql)
47 try: 45 try:
@@ -53,11 +51,10 @@ def get_task_status_2_from_database(): @@ -53,11 +51,10 @@ def get_task_status_2_from_database():
53 print(err) 51 print(err)
54 db.rollback() 52 db.rollback()
55 db.close() 53 db.close()
56 -#获取抢单任务单的状态:进行中  
57 -def get_task_status_3_from_database(): 54 +#获取竞标任务单的状态:进行中
  55 +def get_bid_task_status_3_from_database():
58 db = GetConnect() 56 db = GetConnect()
59 cursor = db.cursor() 57 cursor = db.cursor()
60 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
61 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 3 and id = {} '''.format(get_bid_task_id()) 58 sql = '''select task_status from tasks where company_id = 366 and task_type = 2 and task_status = 3 and id = {} '''.format(get_bid_task_id())
62 # print(sql) 59 # print(sql)
63 try: 60 try:
@@ -69,29 +66,11 @@ def get_task_status_3_from_database(): @@ -69,29 +66,11 @@ def get_task_status_3_from_database():
69 print(err) 66 print(err)
70 db.rollback() 67 db.rollback()
71 db.close() 68 db.close()
72 -# #获取抢单任务单的状态:待确认  
73 -def get_task_status_7_from_database(): 69 +#获取竞标任务单的状态:待验收
  70 +def get_bid_task_status_4_from_database():
74 db = GetConnect() 71 db = GetConnect()
75 cursor = db.cursor() 72 cursor = db.cursor()
76 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
77 - sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_bid_task_id())  
78 - print(sql)  
79 - try:  
80 - cursor.execute(sql)  
81 - result = cursor.fetchone()  
82 - return result[0]  
83 - except Exception as err:  
84 - # 发生错误时回滚  
85 - print(err)  
86 - db.rollback()  
87 - db.close()  
88 -  
89 -#获取任务单的状态:待验收  
90 -def get_task_status_4_from_database():  
91 - db = GetConnect()  
92 - cursor = db.cursor()  
93 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
94 - sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_bid_task_id()) 73 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_bid_task_id())
95 # print(sql) 74 # print(sql)
96 try: 75 try:
97 cursor.execute(sql) 76 cursor.execute(sql)
@@ -102,13 +81,12 @@ def get_task_status_4_from_database(): @@ -102,13 +81,12 @@ def get_task_status_4_from_database():
102 print(err) 81 print(err)
103 db.rollback() 82 db.rollback()
104 db.close() 83 db.close()
105 -  
106 -#获取任务单的状态:已完成  
107 -def get_task_status_5_from_database(): 84 +# print(get_bid_task_status_4_from_database())
  85 +#获取竞标任务单的状态:已完成
  86 +def get_bid_task_status_5_from_database():
108 db = GetConnect() 87 db = GetConnect()
109 cursor = db.cursor() 88 cursor = db.cursor()
110 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
111 - sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 5 and id = {}'''.format(get_bid_task_id()) 89 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 5 and id = {}'''.format(get_bid_task_id())
112 # print(sql) 90 # print(sql)
113 try: 91 try:
114 cursor.execute(sql) 92 cursor.execute(sql)
@@ -121,11 +99,10 @@ def get_task_status_5_from_database(): @@ -121,11 +99,10 @@ def get_task_status_5_from_database():
121 db.close() 99 db.close()
122 100
123 #获取任务单的状态:已关闭 101 #获取任务单的状态:已关闭
124 -def get_task_status_6_from_database(): 102 +def get_bid_task_status_6_from_database():
125 db = GetConnect() 103 db = GetConnect()
126 cursor = db.cursor() 104 cursor = db.cursor()
127 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
128 - sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 6 and id = {}'''.format(get_bid_task_id()) 105 + sql = '''select task_status from tasks t where t.company_id = 366 and task_type = 2 and t.task_status = 6 and id = {}'''.format(get_bid_task_id())
129 # print(sql) 106 # print(sql)
130 try: 107 try:
131 cursor.execute(sql) 108 cursor.execute(sql)
@@ -29,7 +29,6 @@ def GetConnect(): @@ -29,7 +29,6 @@ def GetConnect():
29 def get_employees_name_from_database(): 29 def get_employees_name_from_database():
30 db = GetConnect() 30 db = GetConnect()
31 cursor = db.cursor() 31 cursor = db.cursor()
32 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
33 sql = ''' select employee_name from employees e where e.company_id = 366 order by id desc''' 32 sql = ''' select employee_name from employees e where e.company_id = 366 order by id desc'''
34 # print(sql) 33 # print(sql)
35 try: 34 try:
@@ -46,7 +45,6 @@ def get_employees_name_from_database(): @@ -46,7 +45,6 @@ def get_employees_name_from_database():
46 def get_uid_from_database(): 45 def get_uid_from_database():
47 db = GetConnect() 46 db = GetConnect()
48 cursor = db.cursor() 47 cursor = db.cursor()
49 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
50 sql = ''' select uid from employees e where e.company_id = 366 order by id desc''' 48 sql = ''' select uid from employees e where e.company_id = 366 order by id desc'''
51 # print(sql) 49 # print(sql)
52 try: 50 try:
@@ -62,7 +60,6 @@ def get_uid_from_database(): @@ -62,7 +60,6 @@ def get_uid_from_database():
62 def get_employee_account_from_database(): 60 def get_employee_account_from_database():
63 db = GetConnect() 61 db = GetConnect()
64 cursor = db.cursor() 62 cursor = db.cursor()
65 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
66 sql = '''select employee_account from employees where company_id = 366 order by id desc ''' 63 sql = '''select employee_account from employees where company_id = 366 order by id desc '''
67 # print(sql) 64 # print(sql)
68 try: 65 try:
@@ -79,7 +76,6 @@ def get_employee_account_from_database(): @@ -79,7 +76,6 @@ def get_employee_account_from_database():
79 def get_task_status_1_from_database(): 76 def get_task_status_1_from_database():
80 db = GetConnect() 77 db = GetConnect()
81 cursor = db.cursor() 78 cursor = db.cursor()
82 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
83 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 1 and id = {} '''.format(get_loot_task_id()) 79 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 1 and id = {} '''.format(get_loot_task_id())
84 # print(sql) 80 # print(sql)
85 try: 81 try:
@@ -96,7 +92,6 @@ def get_task_status_1_from_database(): @@ -96,7 +92,6 @@ def get_task_status_1_from_database():
96 def get_task_status_2_from_database(): 92 def get_task_status_2_from_database():
97 db = GetConnect() 93 db = GetConnect()
98 cursor = db.cursor() 94 cursor = db.cursor()
99 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
100 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 2 and id = {} '''.format(get_loot_task_id()) 95 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 2 and id = {} '''.format(get_loot_task_id())
101 print(sql) 96 print(sql)
102 try: 97 try:
@@ -112,7 +107,6 @@ def get_task_status_2_from_database(): @@ -112,7 +107,6 @@ def get_task_status_2_from_database():
112 def get_task_status_3_from_database(): 107 def get_task_status_3_from_database():
113 db = GetConnect() 108 db = GetConnect()
114 cursor = db.cursor() 109 cursor = db.cursor()
115 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
116 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 3 and id = {} '''.format(get_loot_task_id()) 110 sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 3 and id = {} '''.format(get_loot_task_id())
117 # print(sql) 111 # print(sql)
118 try: 112 try:
@@ -128,7 +122,6 @@ def get_task_status_3_from_database(): @@ -128,7 +122,6 @@ def get_task_status_3_from_database():
128 def get_task_status_7_from_database(): 122 def get_task_status_7_from_database():
129 db = GetConnect() 123 db = GetConnect()
130 cursor = db.cursor() 124 cursor = db.cursor()
131 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
132 sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_loot_task_id()) 125 sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_loot_task_id())
133 print(sql) 126 print(sql)
134 try: 127 try:
@@ -145,7 +138,6 @@ def get_task_status_7_from_database(): @@ -145,7 +138,6 @@ def get_task_status_7_from_database():
145 def get_task_status_4_from_database(): 138 def get_task_status_4_from_database():
146 db = GetConnect() 139 db = GetConnect()
147 cursor = db.cursor() 140 cursor = db.cursor()
148 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
149 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_loot_task_id()) 141 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_loot_task_id())
150 # print(sql) 142 # print(sql)
151 try: 143 try:
@@ -162,7 +154,6 @@ def get_task_status_4_from_database(): @@ -162,7 +154,6 @@ def get_task_status_4_from_database():
162 def get_task_status_5_from_database(): 154 def get_task_status_5_from_database():
163 db = GetConnect() 155 db = GetConnect()
164 cursor = db.cursor() 156 cursor = db.cursor()
165 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
166 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 5 and id = {}'''.format(get_loot_task_id()) 157 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 5 and id = {}'''.format(get_loot_task_id())
167 # print(sql) 158 # print(sql)
168 try: 159 try:
@@ -179,7 +170,6 @@ def get_task_status_5_from_database(): @@ -179,7 +170,6 @@ def get_task_status_5_from_database():
179 def get_task_status_6_from_database(): 170 def get_task_status_6_from_database():
180 db = GetConnect() 171 db = GetConnect()
181 cursor = db.cursor() 172 cursor = db.cursor()
182 - # sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '  
183 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 6 and id = {}'''.format(get_loot_task_id()) 173 sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 6 and id = {}'''.format(get_loot_task_id())
184 # print(sql) 174 # print(sql)
185 try: 175 try:
@@ -32,10 +32,3 @@ teststeps: @@ -32,10 +32,3 @@ teststeps:
32 - eq: 32 - eq:
33 - content.msg 33 - content.msg
34 - ok 34 - ok
35 -#- name: 发布任务  
36 -# api: api/m_api/loot/loot_open_api.yml  
37 -# varidate:  
38 -# validate:  
39 -# - eq:  
40 -# - content.msg  
41 -# - ok  
@@ -32,10 +32,3 @@ teststeps: @@ -32,10 +32,3 @@ teststeps:
32 - eq: 32 - eq:
33 - content.msg 33 - content.msg
34 - ok 34 - ok
35 -- name: 发布任务  
36 - api: api/m_api/appoint/appoint_open_api.yml  
37 - varidate:  
38 - validate:  
39 - - eq:  
40 - - content.msg  
41 - - ok  
@@ -3,35 +3,9 @@ config: @@ -3,35 +3,9 @@ config:
3 3
4 teststeps: 4 teststeps:
5 5
6 -- name: 提问问题-审核问题-获取资源  
7 - testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml 6 +- name: 抢单任务状态验证-待发布
  7 + testcase: testcases/common/COM007_loot_update_status_1_testcase.yml
8 8
9 -- name: 登录系统  
10 - variables:  
11 - phone: ${ENV(wpftwphone)}  
12 - testcase: testcases/common/COM002_m_login_testcases.yml  
13 -  
14 -- name: 引用资源  
15 - api: api/m_api/task_resource_api.yml  
16 - teardown_hooks:  
17 - - ${teardown_hook_get_resource_id($response)}  
18 - - ${teardown_hook_get_resource_title($response)}  
19 - - ${teardown_hook_get_resource_content($response)}  
20 - varidate:  
21 - validate:  
22 - - eq:  
23 - - content.msg  
24 - - ok  
25 -#  
26 -- name: 保存任务  
27 - api: api/m_api/loot/loot_update_false_api.yml  
28 - teardown_hooks:  
29 - - ${teardown_hook_get_loot_task_id($response)}  
30 - varidate:  
31 - validate:  
32 - - eq:  
33 - - content.msg  
34 - - ok  
35 - name: 发布任务 9 - name: 发布任务
36 api: api/m_api/loot/loot_open_api.yml 10 api: api/m_api/loot/loot_open_api.yml
37 varidate: 11 varidate:
@@ -33,16 +33,16 @@ teststeps: @@ -33,16 +33,16 @@ teststeps:
33 - content.msg 33 - content.msg
34 - ok 34 - ok
35 35
36 -#- name: 查看详情  
37 -# api: api/m_api/loot/loot_detail_api.yml  
38 -# variables:  
39 -# status: ${get_bid_task_status_1_from_database()}  
40 -# msg: ok  
41 -# varidate:  
42 -# validate:  
43 -# - eq:  
44 -# - content.msg  
45 -# - $msg  
46 -# - eq:  
47 -# - content.data.status  
48 -# - $status  
  36 +- name: 查看详情
  37 + api: api/m_api/bid/bid_detail_api.yml
  38 + variables:
  39 + status: ${get_bid_task_status_1_from_database()}
  40 + msg: ok
  41 + varidate:
  42 + validate:
  43 + - eq:
  44 + - content.msg
  45 + - $msg
  46 + - eq:
  47 + - content.data.status
  48 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已发布,待领取
  3 +
  4 +teststeps:
  5 +
  6 +- name: 竞标任务状态验证-待发布
  7 + testcase: testcases/common/COM014_bid_update_status_1_testcase.yml
  8 +
  9 +- name: 发布任务
  10 + api: api/m_api/bid/bid_open_api.yml
  11 + varidate:
  12 + validate:
  13 + - eq:
  14 + - content.msg
  15 + - ok
  16 +
  17 +- name: 查看详情
  18 + api: api/m_api/bid/bid_detail_api.yml
  19 + variables:
  20 + status: ${get_bid_task_status_2_from_database()}
  21 + msg: ok
  22 + varidate:
  23 + validate:
  24 + - eq:
  25 + - content.msg
  26 + - $msg
  27 + - eq:
  28 + - content.data.status
  29 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已领取,待中标
  3 +
  4 +teststeps:
  5 +
  6 +- name: 竞标任务状态验证-已发布,待领取
  7 + testcase: testcases/common/COM015_bid_open_status_2_testcase.yml
  8 +
  9 +- name: app端点击立即竞标
  10 + testcase: testcases/task/bid/bid_contendTasks_taskDetails_testcase.yml
  11 +
  12 +- name: 查看详情
  13 + api: api/m_api/bid/bid_detail_api.yml
  14 + variables:
  15 + status: ${get_bid_task_status_2_from_database()}
  16 + msg: ok
  17 + varidate:
  18 + validate:
  19 + - eq:
  20 + - content.msg
  21 + - $msg
  22 + - eq:
  23 + - content.data.status
  24 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已领取,进行中
  3 +
  4 +teststeps:
  5 +
  6 +- name: 竞标任务状态验证-已领取,待中标
  7 + testcase: testcases/common/COM016_bid_open_status_2_testcase.yml
  8 +
  9 +- name: 竞标任务-中标
  10 + api: api/m_api/bid/bid_outbid_api.yml
  11 +
  12 +- name: 查看详情
  13 + api: api/m_api/bid/bid_detail_api.yml
  14 + variables:
  15 + status: ${get_bid_task_status_3_from_database()}
  16 + msg: ok
  17 + varidate:
  18 + validate:
  19 + - eq:
  20 + - content.msg
  21 + - $msg
  22 + - eq:
  23 + - content.data.status
  24 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已完成,待验收
  3 +
  4 +teststeps:
  5 +
  6 +- name: 竞标任务状态验证-待领取,进行中
  7 + testcase: testcases/common/COM017_bid_open_status_3_testcase.yml
  8 +
  9 +##-------------------------APP端完成竞标任务------------------------------
  10 +- name: 完成任务
  11 + testcase: testcases/task/bid/bid_task_finishTask_testcase.yml
  12 +
  13 +- name: 查看详情
  14 + api: api/m_api/bid/bid_detail_api.yml
  15 + variables:
  16 + status: ${get_bid_task_status_4_from_database()}
  17 + msg: ok
  18 + varidate:
  19 + validate:
  20 + - eq:
  21 + - content.msg
  22 + - $msg
  23 + - eq:
  24 + - content.data.status
  25 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已验收,已完成
  3 +
  4 +teststeps:
  5 +- name: 竞标任务状态验证-已完成,待验收
  6 + testcase: testcases/common/COM018_bid_open_status_4_testcase.yml
  7 +
  8 +- name: 用户列表
  9 + output:
  10 + - uid0
  11 + - name0
  12 + - uid1
  13 + - name1
  14 + - uid2
  15 + - name2
  16 + - uid15
  17 + - name15
  18 + api: api/m_api/common/user_api.yml
  19 + extract:
  20 + uid0: content.data.list.0.uid
  21 + name0: content.data.list.0.name
  22 + uid1: content.data.list.1.uid
  23 + name1: content.data.list.1.name
  24 + uid2: content.data.list.2.uid
  25 + name2: content.data.list.2.name
  26 + uid15: content.data.list.15.uid
  27 + name15: content.data.list.15.name
  28 +
  29 +- name: 竞标任务验收
  30 + api: api/m_api/bid/bid_task_accept_api.yml
  31 + validate:
  32 + - eq:
  33 + - content.code
  34 + - 0
  35 + - eq:
  36 + - content.msg
  37 + - ok
  38 +
  39 +- name: 查看详情中的状态
  40 + api: api/m_api/bid/bid_detail_api.yml
  41 + variables:
  42 + status: ${get_bid_task_status_5_from_database()}
  43 + msg: ok
  44 + varidate:
  45 + validate:
  46 + - eq:
  47 + - content.msg
  48 + - $msg
  49 + - eq:
  50 + - content.data.status
  51 + - $status
  1 +config:
  2 + name: 竞标任务状态验证-已关闭
  3 +
  4 +teststeps:
  5 +- name: 竞标任务状态验证-已发布,待领取
  6 + testcase: testcases/common/COM015_bid_open_status_2_testcase.yml
  7 +
  8 +- name: 关闭任务
  9 + api: api/m_api/bid/bid_task_close_api.yml
  10 + validate:
  11 + - eq:
  12 + - content.code
  13 + - 0
  14 + - eq:
  15 + - content.msg
  16 + - ok
  17 +
  18 +- name: 查看详情中的状态
  19 + api: api/m_api/bid/bid_detail_api.yml
  20 + variables:
  21 + status: ${get_bid_task_status_6_from_database()}
  22 + msg: ok
  23 + varidate:
  24 + validate:
  25 + - eq:
  26 + - content.msg
  27 + - $msg
  28 + - eq:
  29 + - content.data.status
  30 + - $status
  1 +config:
  2 + name: 指派任务状态验证-待发布
  3 +
  4 +teststeps:
  5 +
  6 +- name: 提问问题-审核问题-获取资源
  7 + testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml
  8 +
  9 +- name: 登录系统
  10 + variables:
  11 + phone: ${ENV(wpftwphone)}
  12 + testcase: testcases/common/COM002_m_login_testcases.yml
  13 +
  14 +- name: 引用资源
  15 + api: api/m_api/task_resource_api.yml
  16 + teardown_hooks:
  17 + - ${teardown_hook_get_resource_id($response)}
  18 + - ${teardown_hook_get_resource_title($response)}
  19 + - ${teardown_hook_get_resource_content($response)}
  20 + varidate:
  21 + validate:
  22 + - eq:
  23 + - content.msg
  24 + - ok
  25 +
  26 +- name: 保存任务
  27 + api: api/m_api/appoint/appoint_update_api.yml
  28 + teardown_hooks:
  29 + - ${teardown_hook_get_appoint_task_id($response)}
  30 + varidate:
  31 + validate:
  32 + - eq:
  33 + - content.msg
  34 + - ok
  35 +
  36 +- name: 查看详情
  37 + api: api/m_api/appoint/appoint_detail_api.yml
  38 + variables:
  39 + status: ${get_appoint_task_status_1_from_database()}
  40 + msg: ok
  41 + varidate:
  42 + validate:
  43 + - eq:
  44 + - content.msg
  45 + - $msg
  46 + - eq:
  47 + - content.data.status
  48 + - $status
  1 +config:
  2 + name: 指派任务状态验证-已发布,进行中
  3 +
  4 +teststeps:
  5 +
  6 +- name: 指派任务状态验证-待发布
  7 + testcase: testcases/common/COM021_appoint_update_status_1_testcase.yml
  8 +
  9 +- name: 发布任务
  10 + api: api/m_api/appoint/appoint_open_api.yml
  11 + varidate:
  12 + validate:
  13 + - eq:
  14 + - content.msg
  15 + - ok
  16 +
  17 +- name: 查看详情
  18 + api: api/m_api/appoint/appoint_detail_api.yml
  19 + variables:
  20 + status: ${get_appoint_task_status_3_from_database()}
  21 + msg: ok
  22 + varidate:
  23 + validate:
  24 + - eq:
  25 + - content.msg
  26 + - $msg
  27 + - eq:
  28 + - content.data.status
  29 + - $status
  1 +config:
  2 + name: 指派任务状态验证-进行中,待验收
  3 +
  4 +teststeps:
  5 +
  6 +- name: 指派任务状态验证-已发布,进行中
  7 + testcase: testcases/common/COM022_appoint_open_status_3_testcase.yml
  8 +
  9 +##-------------------------APP端完成指派任务------------------------------
  10 +- name: 完成任务
  11 + testcase: testcases/task/appoint/appoint_task_finishTask_testcase.yml
  12 +
  13 +- name: 查看详情
  14 + api: api/m_api/appoint/appoint_detail_api.yml
  15 + variables:
  16 + status: ${get_appoint_task_status_4_from_database()}
  17 + msg: ok
  18 + varidate:
  19 + validate:
  20 + - eq:
  21 + - content.msg
  22 + - $msg
  23 + - eq:
  24 + - content.data.status
  25 + - $status
  1 +config:
  2 + name: 指派任务状态验证-已验收,已完成
  3 +
  4 +teststeps:
  5 +
  6 +- name: 指派任务状态验证-进行中,待验收
  7 + testcase: testcases/common/COM023_appoint_open_status_4_testcase.yml
  8 +
  9 +- name: 用户列表
  10 + output:
  11 + - uid0
  12 + - name0
  13 + - uid1
  14 + - name1
  15 + - uid2
  16 + - name2
  17 + - uid15
  18 + - name15
  19 + api: api/m_api/common/user_api.yml
  20 + extract:
  21 + uid0: content.data.list.0.uid
  22 + name0: content.data.list.0.name
  23 + uid1: content.data.list.1.uid
  24 + name1: content.data.list.1.name
  25 + uid2: content.data.list.2.uid
  26 + name2: content.data.list.2.name
  27 + uid15: content.data.list.15.uid
  28 + name15: content.data.list.15.name
  29 +
  30 +- name: 指派任务验收
  31 + api: api/m_api/appoint/appoint_task_accept_api.yml
  32 + validate:
  33 + - eq:
  34 + - content.code
  35 + - 0
  36 + - eq:
  37 + - content.msg
  38 + - ok
  39 +- name: 查看详情
  40 + api: api/m_api/appoint/appoint_detail_api.yml
  41 + variables:
  42 + status: ${get_appoint_task_status_5_from_database()}
  43 + msg: ok
  44 + varidate:
  45 + validate:
  46 + - eq:
  47 + - content.msg
  48 + - $msg
  49 + - eq:
  50 + - content.data.status
  51 + - $status
  1 +config:
  2 + name: 指派任务状态验证-已验收,已完成
  3 +
  4 +teststeps:
  5 +
  6 +- name: 指派任务状态验证-已发布,进行中
  7 + testcase: testcases/common/COM022_appoint_open_status_3_testcase.yml
  8 +
  9 +- name: 关闭任务
  10 + api: api/m_api/appoint/appoint_task_close_api.yml
  11 + validate:
  12 + - eq:
  13 + - content.code
  14 + - 0
  15 + - eq:
  16 + - content.msg
  17 + - ok
  18 +
  19 +- name: 查看详情
  20 + api: api/m_api/appoint/appoint_detail_api.yml
  21 + variables:
  22 + status: ${get_appoint_task_status_6_from_database()}
  23 + msg: ok
  24 + varidate:
  25 + validate:
  26 + - eq:
  27 + - content.msg
  28 + - $msg
  29 + - eq:
  30 + - content.data.status
  31 + - $status
  1 +config:
  2 + name: 任务完成
  3 +
  4 +teststeps:
  5 +- name: 登录系统
  6 + variables:
  7 + phone: ${ENV(appphone)}
  8 + testcase: testcases/common/login_testcases.yml
  9 +
  10 +- name: 登录价值系统
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 公司任务(进行中)
  14 +# output:
  15 +# - id
  16 + api: api/m_api/appoint/appoint_currentTasks_api.yml
  17 +# extract:
  18 +# id: content.data.tasks.0.id
  19 +# validate:
  20 +# - eq:
  21 +# - content.data.tasks.0.id
  22 +# - $id
  23 +
  24 +- name: 查看竞标任务详情
  25 + api: api/m_api/appoint/appoint_task_Details_api.yml
  26 +#
  27 +- name: 完成任务
  28 + api: api/m_api/appoint/appoint_task_finishTask_api.yml
1 config: 1 config:
2 - name: RWSC001:登录系统-保存任务-待发布_删除任务 2 + name: 公司任务(竞标任务)
  3 + variables:
  4 + phone: ${ENV(appphone)}
3 5
4 teststeps: 6 teststeps:
5 7
6 -- name: 19990000008保存竞标任务  
7 - testcase: testcases/task/save_taskPublish_0_1_api.yml 8 +- name: 登录系统
  9 + testcase: testcases/common/login_testcases.yml
8 10
9 -- name: 19990000008查看待发布列表 11 +- name: 登录价值系统
  12 + testcase: testcases/common/COM001_task_login_testcases.yml
  13 +
  14 +- name: 公司任务(竞标任务)
10 output: 15 output:
11 - id 16 - id
12 - api: api/task_api/task/dfb_task/iPublishedTasks_0_api.yml 17 + api: api/m_api/bid/bid_contendTasks_api.yml
13 extract: 18 extract:
14 id: content.data.tasks.0.id 19 id: content.data.tasks.0.id
15 validate: 20 validate:
16 - eq: 21 - eq:
17 - - content.data.tasks.0.id  
18 - - $id  
19 -  
20 -- name: 19990000008查看任务详情  
21 - api: api/task_api/task/taskDetails_api.yml  
22 -  
23 -#- name: 19990000008删除任务  
24 -# api: api/task_api/task/dfb_task/taskdeleteTask_api.yml  
25 -  
26 -  
27 - 22 + - content.data.tasks.0.id
  23 + - $id
  24 +- name: 立即竞标
  25 + api: api/m_api/bid/submitCompete_bid_api.yml
  1 +config:
  2 + name: 任务完成
  3 +
  4 +teststeps:
  5 +- name: 登录系统
  6 + variables:
  7 + phone: ${ENV(appphone)}
  8 + testcase: testcases/common/login_testcases.yml
  9 +
  10 +- name: 登录价值系统
  11 + testcase: testcases/common/COM001_task_login_testcases.yml
  12 +
  13 +- name: 公司任务(进行中)
  14 +# output:
  15 +# - id
  16 + api: api/m_api/bid/bid_currentTasks_api.yml
  17 +# extract:
  18 +# id: content.data.tasks.0.id
  19 +# validate:
  20 +# - eq:
  21 +# - content.data.tasks.0.id
  22 +# - $id
  23 +
  24 +- name: 查看竞标任务详情
  25 + api: api/m_api/bid/bid_task_Details_api.yml
  26 +#
  27 +- name: 完成任务
  28 + api: api/m_api/bid/bid_task_finishTask_api.yml
1 -config:  
2 - name: JBRW002:登录系统-保存任务-编辑保存-发布任务-关闭任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008保存竞标任务  
7 - testcase: testcases/task/save_taskPublish_0_1_api.yml  
8 -  
9 -- name: 19990000008查看待发布列表  
10 - output:  
11 - - id  
12 - api: api/task_api/task/dfb_task/iPublishedTasks_0_api.yml  
13 - extract:  
14 - id: content.data.tasks.0.id  
15 - validate:  
16 - - eq:  
17 - - content.data.tasks.0.id  
18 - - $id  
19 -- name: 19990000008编辑任务  
20 - api: api/task_api/task/qd_fb_task/update_taskPublish_api.yml  
21 -  
22 -- name: 19990000008搜索引用资源  
23 - output:  
24 - - refResources_id  
25 - - rType  
26 - - serialNo  
27 - - title  
28 - api: api/task_api/task/qd_fb_task/tasksearchResources_api.yml  
29 - extract:  
30 - refResources_id: content.data.refResources.0.id  
31 - rType: content.data.refResources.0.rType  
32 - serialNo: content.data.refResources.0.serialNo  
33 - title: content.data.refResources.0.title  
34 - validate:  
35 - - eq:  
36 - - content.code  
37 - - 0  
38 - - eq:  
39 - - content.msg  
40 - - 获取成功  
41 -  
42 -- name: 19990000008发布任务  
43 - api: api/task_api/task/jb_fb_task/taskPublish_1_1_api.yml  
44 - validate:  
45 - - eq:  
46 - - content.code  
47 - - 0  
48 - - eq:  
49 - - content.msg  
50 - - 发布成功  
51 -  
52 -#- name: 19990000008任务关闭  
53 -# api: api/task_api/task/taskcloseTask_api.yml  
54 -# validate:  
55 -# - eq:  
56 -# - content.code  
57 -# - 0  
58 -# - eq:  
59 -# - content.msg  
60 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_1_1_api.yml  
8 -#  
9 -  
10 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单-完成任务  
11 - variables:  
12 - phone: ${ENV(pfphone)}  
13 - testcase: testcases/task/jxz/JB/jxz_wc.yml  
14 -  
15 -  
16 -  
17 -- name: 19990000008登录系统  
18 - variables:  
19 - phone: ${ENV(wpftwphone)}  
20 - testcase: testcases/login_testcases.yml  
21 -  
22 -- name: 19990000008查看进行中的任务  
23 - output:  
24 - - id  
25 - api: api/task_api/task/rewards/currentTasks_0_api.yml  
26 - extract:  
27 - id: content.data.tasks.0.id  
28 - validate:  
29 - - eq:  
30 - - content.data.tasks.0.id  
31 - - $id  
32 - - eq:  
33 - - content.code  
34 - - 0  
35 - - eq:  
36 - - content.msg  
37 - - 获取成功  
38 -  
39 -- name: 19990000008任务详情  
40 - api: api/task_api/task/taskDetails_api.yml  
41 - validate:  
42 - - eq:  
43 - - content.code  
44 - - 0  
45 - - eq:  
46 - - content.msg  
47 - - 获取详情成功  
48 -  
49 -#- name: 19990000008任务关闭  
50 -# api: api/task_api/task/taskcloseTask_api.yml  
51 -# validate:  
52 -# - eq:  
53 -# - content.code  
54 -# - 0  
55 -# - eq:  
56 -# - content.msg  
57 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_0_1_api.yml  
8 -#  
9 -  
10 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单  
11 - variables:  
12 - phone: ${ENV(pfphone)}  
13 - testcase: testcases/task/jxz/jxz_wc.yml  
14 -  
15 -  
16 -- name: 19990000008登录系统  
17 - variables:  
18 - phone: ${ENV(wpftwphone)}  
19 - testcase: testcases/login_testcases.yml  
20 -  
21 -- name: 19990000008查看任务-我发布的-待验收  
22 - output:  
23 - - id  
24 - api: api/task_api/task/iPublishedTasks_3_api.yml  
25 - extract:  
26 - id: content.data.tasks.0.id  
27 - validate:  
28 - - eq:  
29 - - content.data.tasks.0.id  
30 - - $id  
31 - - eq:  
32 - - content.code  
33 - - 0  
34 - - eq:  
35 - - content.msg  
36 - - 获取成功  
37 -  
38 -- name: 19990000008任务详情  
39 - api: api/task_api/task/taskDetails_api.yml  
40 - validate:  
41 - - eq:  
42 - - content.code  
43 - - 0  
44 - - eq:  
45 - - content.msg  
46 - - 获取详情成功  
47 -  
48 -#- name: 19990000008任务关闭  
49 -# api: api/task_api/task/taskcloseTask_api.yml  
50 -# validate:  
51 -# - eq:  
52 -# - content.code  
53 -# - 0  
54 -# - eq:  
55 -# - content.msg  
56 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_0_1_api.yml  
8 -  
9 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单  
10 - variables:  
11 - phone: ${ENV(pfphone)}  
12 - testcase: testcases/task/jxz/jxz_wc.yml  
13 -  
14 -  
15 -- name: 19990000008登录系统  
16 - variables:  
17 - phone: ${ENV(wpftwphone)}  
18 - testcase: testcases/login_testcases.yml  
19 -  
20 -- name: 19990000008查看任务-我发布的-待验收  
21 - output:  
22 - - id  
23 - api: api/task_api/task/iPublishedTasks_3_api.yml  
24 - extract:  
25 - id: content.data.tasks.0.id  
26 - validate:  
27 - - eq:  
28 - - content.code  
29 - - 0  
30 - - eq:  
31 - - content.msg  
32 - - 获取成功  
33 -  
34 -- name: 19990000008任务详情  
35 - output:  
36 - - rType  
37 - - refResources_id  
38 - - serialNo  
39 - - title  
40 - api: api/task_api/task/taskDetails_api.yml  
41 - extract:  
42 - rType: content.data.task.refResources.0.rType  
43 - refResources_id: content.data.task.refResources.0.id  
44 - serialNo: content.data.task.refResources.0.serialNo  
45 - title: content.data.task.refResources.0.title  
46 - validate:  
47 - - eq:  
48 - - content.code  
49 - - 0  
50 - - eq:  
51 - - content.msg  
52 - - 获取详情成功  
53 -  
54 -- name: 19990000008查找企业所有员工  
55 - output:  
56 - - uid0  
57 - - uname0  
58 - - uid1  
59 - - uname1  
60 - - uid2  
61 - - uname2  
62 - - uid11  
63 - - uname11  
64 - api: api/task_api/task/employee/allEmployees_api.yml  
65 - extract:  
66 - uid0: content.data.employees.0.uid  
67 - uname0: content.data.employees.0.uname  
68 - uid1: content.data.employees.1.uid  
69 - uname1: content.data.employees.1.uname  
70 - uid2: content.data.employees.2.uid  
71 - uname2: content.data.employees.2.uname  
72 - uid11: content.data.employees.11.uid  
73 - uname11: content.data.employees.11.uname  
74 - validate:  
75 - - eq:  
76 - - content.code  
77 - - 0  
78 - - eq:  
79 - - content.msg  
80 - - 查找成功  
81 -  
82 -#- name: 19990000008我要验收  
83 -# api: api/task_api/task/taskcheckAccept_api.yml  
84 -# validate:  
85 -# - eq:  
86 -# - content.code  
87 -# - 0  
88 -# - eq:  
89 -# - content.msg  
90 -# - 验收成功  
91 -#  
92 -#- name: 19990000008查看已完成的任务  
93 -# output:  
94 -# - id  
95 -# api: api/task_api/task/rewards/currentTasks_1_api.yml  
96 -# extract:  
97 -# id: content.data.tasks.0.id  
98 -# validate:  
99 -# - eq:  
100 -# - content.code  
101 -# - 0  
102 -# - eq:  
103 -# - content.msg  
104 -# - 获取成功  
105 -#  
106 -#- name: 19990000008查看已完成的任务详情  
107 -# api: api/task_api/task/taskDetails_api.yml  
108 -# validate:  
109 -# - eq:  
110 -# - content.data.task.status  
111 -# - 5  
112 -# - eq:  
113 -# - content.code  
114 -# - 0  
115 -# - eq:  
116 -# - content.msg  
117 -# - 获取详情成功  
1 -config:  
2 - name: RWSC001:登录系统-保存任务-待发布_删除任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008保存抢单任务  
7 - testcase: testcases/task/save_taskPublish_0_0_api.yml  
8 -  
9 -- name: 19990000008查看待发布列表  
10 - output:  
11 - - id  
12 - api: api/task_api/task/dfb_task/iPublishedTasks_0_api.yml  
13 - extract:  
14 - id: content.data.tasks.0.id  
15 - validate:  
16 - - eq:  
17 - - content.data.tasks.0.id  
18 - - $id  
19 -  
20 -- name: 19990000008查看任务详情  
21 - api: api/task_api/task/taskDetails_api.yml  
22 -  
23 -#- name: 19990000008删除任务  
24 -# api: api/task_api/task/dfb_task/taskdeleteTask_api.yml  
25 -  
26 -  
27 -  
1 -config:  
2 - name: RW002:登录系统-保存任务-编辑保存-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008保存抢单任务  
7 - testcase: testcases/task/save_taskPublish_0_0_api.yml  
8 -  
9 -- name: 19990000008查看待发布列表  
10 - output:  
11 - - id  
12 - api: api/task_api/task/dfb_task/iPublishedTasks_0_api.yml  
13 - extract:  
14 - id: content.data.tasks.0.id  
15 - validate:  
16 - - eq:  
17 - - content.data.tasks.0.id  
18 - - $id  
19 -- name: 19990000008编辑任务  
20 - api: api/task_api/task/qd_fb_task/update_taskPublish_api.yml  
21 -  
22 -- name: 19990000008搜索引用资源  
23 - output:  
24 - - refResources_id  
25 - - rType  
26 - - serialNo  
27 - - title  
28 - api: api/task_api/task/qd_fb_task/tasksearchResources_api.yml  
29 - extract:  
30 - refResources_id: content.data.refResources.0.id  
31 - rType: content.data.refResources.0.rType  
32 - serialNo: content.data.refResources.0.serialNo  
33 - title: content.data.refResources.0.title  
34 - validate:  
35 - - eq:  
36 - - content.code  
37 - - 0  
38 - - eq:  
39 - - content.msg  
40 - - 获取成功  
41 -  
42 -- name: 19990000008发布任务  
43 - api: api/task_api/task/qd_fb_task/taskPublish_0_1_api.yml  
44 - validate:  
45 - - eq:  
46 - - content.code  
47 - - 0  
48 - - eq:  
49 - - content.msg  
50 - - 发布成功  
51 -  
52 -#- name: 19990000008任务关闭  
53 -# api: api/task_api/task/taskcloseTask_api.yml  
54 -# validate:  
55 -# - eq:  
56 -# - content.code  
57 -# - 0  
58 -# - eq:  
59 -# - content.msg  
60 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_0_1_api.yml  
8 -#  
9 -  
10 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单-完成任务  
11 - variables:  
12 - phone: ${ENV(pfphone)}  
13 - testcase: testcases/task/jxz/QD/jxz_wc.yml  
14 -  
15 -  
16 -  
17 -- name: 19990000008登录系统  
18 - variables:  
19 - phone: ${ENV(wpftwphone)}  
20 - testcase: testcases/login_testcases.yml  
21 -  
22 -- name: 19990000008查看进行中的任务  
23 - output:  
24 - - id  
25 - api: api/task_api/task/rewards/currentTasks_0_api.yml  
26 - extract:  
27 - id: content.data.tasks.0.id  
28 - validate:  
29 - - eq:  
30 - - content.data.tasks.0.id  
31 - - $id  
32 - - eq:  
33 - - content.code  
34 - - 0  
35 - - eq:  
36 - - content.msg  
37 - - 获取成功  
38 -  
39 -- name: 19990000008任务详情  
40 - api: api/task_api/task/taskDetails_api.yml  
41 - validate:  
42 - - eq:  
43 - - content.code  
44 - - 0  
45 - - eq:  
46 - - content.msg  
47 - - 获取详情成功  
48 -  
49 -#- name: 19990000008任务关闭  
50 -# api: api/task_api/task/taskcloseTask_api.yml  
51 -# validate:  
52 -# - eq:  
53 -# - content.code  
54 -# - 0  
55 -# - eq:  
56 -# - content.msg  
57 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_0_1_api.yml  
8 -#  
9 -  
10 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单  
11 - variables:  
12 - phone: ${ENV(pfphone)}  
13 - testcase: testcases/task/jxz/jxz_wc.yml  
14 -  
15 -  
16 -- name: 19990000008登录系统  
17 - variables:  
18 - phone: ${ENV(wpftwphone)}  
19 - testcase: testcases/login_testcases.yml  
20 -  
21 -- name: 19990000008查看任务-我发布的-待验收  
22 - output:  
23 - - id  
24 - api: api/task_api/task/iPublishedTasks_3_api.yml  
25 - extract:  
26 - id: content.data.tasks.0.id  
27 - validate:  
28 - - eq:  
29 - - content.data.tasks.0.id  
30 - - $id  
31 - - eq:  
32 - - content.code  
33 - - 0  
34 - - eq:  
35 - - content.msg  
36 - - 获取成功  
37 -  
38 -- name: 19990000008任务详情  
39 - api: api/task_api/task/taskDetails_api.yml  
40 - validate:  
41 - - eq:  
42 - - content.code  
43 - - 0  
44 - - eq:  
45 - - content.msg  
46 - - 获取详情成功  
47 -  
48 -#- name: 19990000008任务关闭  
49 -# api: api/task_api/task/taskcloseTask_api.yml  
50 -# validate:  
51 -# - eq:  
52 -# - content.code  
53 -# - 0  
54 -# - eq:  
55 -# - content.msg  
56 -# - 关闭成功  
1 -config:  
2 - name: RW003:登录系统-发布任务  
3 -  
4 -teststeps:  
5 -  
6 -- name: 19990000008发布任务  
7 - testcase: testcases/task/taskPublish_0_1_api.yml  
8 -  
9 -- name: 19990000011登录系统-查看公司悬赏任务-点击抢单  
10 - variables:  
11 - phone: ${ENV(pfphone)}  
12 - testcase: testcases/task/jxz/jxz_wc.yml  
13 -  
14 -  
15 -- name: 19990000008登录系统  
16 - variables:  
17 - phone: ${ENV(wpftwphone)}  
18 - testcase: testcases/login_testcases.yml  
19 -  
20 -- name: 19990000008查看任务-我发布的-待验收  
21 - output:  
22 - - id  
23 - api: api/task_api/task/iPublishedTasks_3_api.yml  
24 - extract:  
25 - id: content.data.tasks.0.id  
26 - validate:  
27 - - eq:  
28 - - content.code  
29 - - 0  
30 - - eq:  
31 - - content.msg  
32 - - 获取成功  
33 -  
34 -- name: 19990000008任务详情  
35 - output:  
36 - - rType  
37 - - refResources_id  
38 - - serialNo  
39 - - title  
40 - api: api/task_api/task/taskDetails_api.yml  
41 - extract:  
42 - rType: content.data.task.refResources.0.rType  
43 - refResources_id: content.data.task.refResources.0.id  
44 - serialNo: content.data.task.refResources.0.serialNo  
45 - title: content.data.task.refResources.0.title  
46 - validate:  
47 - - eq:  
48 - - content.code  
49 - - 0  
50 - - eq:  
51 - - content.msg  
52 - - 获取详情成功  
53 -  
54 -- name: 19990000008查找企业所有员工  
55 - output:  
56 - - uid0  
57 - - uname0  
58 - - uid1  
59 - - uname1  
60 - - uid8  
61 - - uname8  
62 - - uid11  
63 - - uname11  
64 - api: api/task_api/task/employee/allEmployees_api.yml  
65 - extract:  
66 - uid0: content.data.employees.0.uid  
67 - uname0: content.data.employees.0.uname  
68 - uid1: content.data.employees.1.uid  
69 - uname1: content.data.employees.1.uname  
70 - uid8: content.data.employees.8.uid  
71 - uname8: content.data.employees.8.uname  
72 - uid11: content.data.employees.11.uid  
73 - uname11: content.data.employees.11.uname  
74 - validate:  
75 - - eq:  
76 - - content.code  
77 - - 0  
78 - - eq:  
79 - - content.msg  
80 - - 查找成功  
81 -  
82 -#- name: 19990000008我要验收  
83 -# api: api/task_api/task/taskcheckAccept_api.yml  
84 -# validate:  
85 -# - eq:  
86 -# - content.code  
87 -# - 0  
88 -# - eq:  
89 -# - content.msg  
90 -# - 验收成功  
91 -#  
92 -#- name: 19990000008查看已完成的任务  
93 -# output:  
94 -# - id  
95 -# api: api/task_api/task/rewards/currentTasks_1_api.yml  
96 -# extract:  
97 -# id: content.data.tasks.0.id  
98 -# validate:  
99 -# - eq:  
100 -# - content.code  
101 -# - 0  
102 -# - eq:  
103 -# - content.msg  
104 -# - 获取成功  
105 -#  
106 -#- name: 19990000008查看已完成的任务详情  
107 -# api: api/task_api/task/taskDetails_api.yml  
108 -# validate:  
109 -# - eq:  
110 -# - content.data.task.status  
111 -# - 5  
112 -# - eq:  
113 -# - content.code  
114 -# - 0  
115 -# - eq:  
116 -# - content.msg  
117 -# - 获取详情成功  
  1 +config:
  2 + name: PF001价值系统-拥有发布任务权限登录价值系统
  3 + base_url: ${ENV(base_url)}
  4 +
  5 +teststeps:
  6 +- name: 价值系统-拥有发布任务权限登录价值系统
  7 + variables:
  8 + phone: ${ENV(appphone)}
  9 + testcase: testcases/common/login_testcases.yml
  10 +
  11 +- name: 获取用户信息
  12 + api: api/app_api/user_api/userInfo_api.yml
  13 + varidate:
  14 + validate:
  15 + - eq:
  16 + - content.data.user.permissionTaskPublish
  17 + - 1
  18 + - eq:
  19 + - content.data.msg
  20 + - 获取用户信息
@@ -13,5 +13,5 @@ testcases: @@ -13,5 +13,5 @@ testcases:
13 #- name: member_set_permission 成员管理设置权限 13 #- name: member_set_permission 成员管理设置权限
14 # testcase: testcases/task/member/member_set_permission_testcases.yml 14 # testcase: testcases/task/member/member_set_permission_testcases.yml
15 15
16 -- name: 任务状态验证-已关闭  
17 - testcase: testcases/common/COM014_bid_update_status_1_testcase.yml  
  16 +- name: 测试流程
  17 + testcase: testcases/userInfo/PF001.yml