作者 bianxinhua

add README

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