作者 dengyuting

add

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)}
taskId: 123456
reason: 666777
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:
taskId: $taskId
reason: $reason
method: POST
url: /v1/task/rejectReceiver
validate:
- eq:
- content.code
- 0
\ No newline at end of file
... ...
rCGkdEk6mjkyz7jkwjezjxsZ5Z5ASjAd
\ No newline at end of file
m2y2tyYFddb3bkT4dQ5NGPEQ3xHTwa8y
\ No newline at end of file
... ...
... ... @@ -56,7 +56,7 @@ def sendinfo():
# '\n 执行时间:' + str(r[4]) + \
# 's\n TOTAL:' + str(r[1]) + '\n SUCCESS:' + str(r[2]) + '\n FAIL:' + str(r[3])
url = 'https://oapi.dingtalk.com/robot/send?access_token=9a52a7e69fd1bd7cb01e86bf0577af4d74dc15a50f1b17234c50ec2df856021e'
url = 'https://oapi.dingtalk.com/robot/send?access_token=fe977b6b42e09ed386cfa312117505939c80faae50f046b3563050bede02ac8f'
headers = {'Content-Type': 'application/json'}
requests.post(url, json=data, headers=headers)
... ...
config:
name: ME020-指派我的-任务数量统计校验
base_url: ${ENV(base_url)}
variables:
title: '指派任务标题${get_nowtime()}'
content: '指派任务内容${get_nowtime()}'
acceptability: '指派任务验收标准${get_nowtime()}'
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第一次查看我领取的、指派我的
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
- iGetInProgress: content.data.taskMsg.iGetInProgress
- iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
- iGetCompleted: content.data.taskMsg.iGetCompleted
- assignMeInProgress: content.data.taskMsg.assignMeInProgress
- assignMeWaitAcceptance: content.data.taskMsg.assignMeWaitAcceptance
- assignMeCompleted: content.data.taskMsg.assignMeCompleted
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布指派任务
variables:
action: 1
type: 2
plannedFinishDate: ${get_endtime()}
uid: 3284714710070272
uname: '价值系统账号1'
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第二次查看我领取的、指派我的-进行中+1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iGetWaitVerify
- ${add($iGetWaitVerify,0)}
- eq:
- content.data.taskMsg.iGetInProgress
- ${add($iGetInProgress,0)}
- eq:
- content.data.taskMsg.iGetWaitAcceptance
- ${add($iGetWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iGetCompleted
- ${add($iGetCompleted,0)}
- eq:
- content.data.taskMsg.assignMeInProgress
- ${add($assignMeInProgress,1)}
- eq:
- content.data.taskMsg.assignMeWaitAcceptance
- ${add($assignMeWaitAcceptance,0)}
- eq:
- content.data.taskMsg.assignMeCompleted
- ${add($assignMeCompleted,0)}
- name: 查看指派我的-进行中
variables:
action: 0
api: api/app_api/task_api/AssignMeTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- name: 完成任务
variables:
id: $tasks_id
api: api/app_api/task_api/finishTask_api.yml
validate:
- eq:
- content.msg
- 完成成功
- name: 查看我领取的、指派我的-进行中恢复初始状态,待验收+1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iGetWaitVerify
- ${add($iGetWaitVerify,0)}
- eq:
- content.data.taskMsg.iGetInProgress
- ${add($iGetInProgress,0)}
- eq:
- content.data.taskMsg.iGetWaitAcceptance
- ${add($iGetWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iGetCompleted
- ${add($iGetCompleted,0)}
- eq:
- content.data.taskMsg.assignMeInProgress
- ${add($assignMeInProgress,0)}
- eq:
- content.data.taskMsg.assignMeWaitAcceptance
- ${add($assignMeWaitAcceptance,1)}
- eq:
- content.data.taskMsg.assignMeCompleted
- ${add($assignMeCompleted,0)}
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 验收任务
variables:
id: $tasks_id
actualFinishDate: ${get_endtime()}
api: api/app_api/task_api/checkAccept_api.yml
validate:
- eq:
- content.msg
- 验收成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我领取的、指派我的-待验收恢复初始状态,已完成+1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iGetWaitVerify
- ${add($iGetWaitVerify,0)}
- eq:
- content.data.taskMsg.iGetInProgress
- ${add($iGetInProgress,0)}
- eq:
- content.data.taskMsg.iGetWaitAcceptance
- ${add($iGetWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iGetCompleted
- ${add($iGetCompleted,0)}
- eq:
- content.data.taskMsg.assignMeInProgress
- ${add($assignMeInProgress,0)}
- eq:
- content.data.taskMsg.assignMeWaitAcceptance
- ${add($assignMeWaitAcceptance,0)}
- eq:
- content.data.taskMsg.assignMeCompleted
- ${add($assignMeCompleted,1)}
\ No newline at end of file
... ...
config:
name: ME021-抢单任务驳回后-我领取的-待确认-1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布抢单任务
variables:
action: 1
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看抢单任务列表
variables:
action: 0
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- name: 领取任务
variables:
action: 0
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: 第一次查看我领取的
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
- iGetInProgress: content.data.taskMsg.iGetInProgress
- iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
- iGetCompleted: content.data.taskMsg.iGetCompleted
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我发布的-待确认
variables:
action: 5
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 驳回领取人
variables:
taskId: $tasks_id
reason: "抢单任务驳回理由${get_endtime()}"
api: api/app_api/task_api/rejectReceiver_api.yml
validate:
- eq:
- content.msg
- 驳回成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第二次查看我领取的-待确认-1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iGetWaitVerify
- ${add($iGetWaitVerify,-1)}
- eq:
- content.data.taskMsg.iGetInProgress
- ${add($iGetInProgress,0)}
- eq:
- content.data.taskMsg.iGetWaitAcceptance
- ${add($iGetWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iGetCompleted
- ${add($iGetCompleted,0)}
... ...
config:
name: ME022-抢单任务驳回后-我发布的-待确认-1,待领取+1
base_url: ${ENV(base_url)}
variables:
title: '抢单任务标题${get_nowtime()}'
content: '抢单任务内容${get_nowtime()}'
acceptability: '抢单任务验收标准${get_nowtime()}'
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布抢单任务
variables:
action: 1
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看抢单任务列表
variables:
action: 0
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- name: 领取任务
variables:
action: 0
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第一次查看我发布的
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
- iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
- iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
- iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
- iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
- iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
- name: 查看我发布的-待确认
variables:
action: 5
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 驳回领取人
variables:
taskId: $tasks_id
reason: "抢单任务驳回理由${get_endtime()}"
api: api/app_api/task_api/rejectReceiver_api.yml
validate:
- eq:
- content.msg
- 驳回成功
- name: 第二次查看我发布的-待确认-1,待领取+1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iPublishedWaitPublish
- ${add($iPublishedWaitPublish,0)}
- eq:
- content.data.taskMsg.iPublishedToReceive
- ${add($iPublishedToReceive,1)}
- eq:
- content.data.taskMsg.iPublishedWaitVerify
- ${add($iPublishedWaitVerify,-1)}
- eq:
- content.data.taskMsg.iPublishedInProgress
- ${add($iPublishedInProgress,0)}
- eq:
- content.data.taskMsg.iPublishedWaitAcceptance
- ${add($iPublishedWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iPublishedCompleted
- ${add($iPublishedCompleted,0)}
... ...
config:
name: ME023-竞标任务驳回后-我发布的统计校验
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布竞标任务
variables:
action: 1
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看竞标任务列表
variables:
action: 1
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- name: 领取竞标任务
variables:
action: 1
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我发布的-待领取
variables:
action: 1
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 查看任务详情
variables:
id: $tasks_id
api: api/app_api/task_api/taskDetails_api.yml
extract:
- bidders: content.data.task.bidders.0.uid
validate:
- eq:
- content.msg
- 获取详情成功
- eq:
- content.data.task.title
- $title
- name: 竞标人中标确认
variables:
id: $tasks_id
uid: $bidders
planFinishDate: ${get_endtime()}
api: api/app_api/task_api/bidTask_api.yml
validate:
- eq:
- content.msg
- 中标成功
- name: 第一次查看我发布的
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- iPublishedWaitPublish: content.data.taskMsg.iPublishedWaitPublish
- iPublishedToReceive: content.data.taskMsg.iPublishedToReceive
- iPublishedWaitVerify: content.data.taskMsg.iPublishedWaitVerify
- iPublishedInProgress: content.data.taskMsg.iPublishedInProgress
- iPublishedWaitAcceptance: content.data.taskMsg.iPublishedWaitAcceptance
- iPublishedCompleted: content.data.taskMsg.iPublishedCompleted
- name: 驳回领取人
variables:
taskId: $tasks_id
reason: "竞标任务驳回理由${get_endtime()}"
api: api/app_api/task_api/rejectReceiver_api.yml
validate:
- eq:
- content.msg
- 驳回成功
- name: 第二次查看我发布的,待领取+1,进行中-1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iPublishedWaitPublish
- ${add($iPublishedWaitPublish,0)}
- eq:
- content.data.taskMsg.iPublishedToReceive
- ${add($iPublishedToReceive,1)}
- eq:
- content.data.taskMsg.iPublishedWaitVerify
- ${add($iPublishedWaitVerify,0)}
- eq:
- content.data.taskMsg.iPublishedInProgress
- ${add($iPublishedInProgress,-1)}
- eq:
- content.data.taskMsg.iPublishedWaitAcceptance
- ${add($iPublishedWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iPublishedCompleted
- ${add($iPublishedCompleted,0)}
\ No newline at end of file
... ...
config:
name: ME024-竞标任务被驳回-我领取的、我参与的统计校验
base_url: ${ENV(base_url)}
variables:
title: '竞标任务标题${get_nowtime()}'
content: '竞标任务内容${get_nowtime()}'
acceptability: '竞标任务验收标准${get_nowtime()}'
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 发布竞标任务
variables:
action: 1
type: 1
bidStartTime: ${get_starttime()}
bidEndTime: ${get_endtime()}
api: api/app_api/task_api/taskPublish_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看竞标任务列表
variables:
action: 1
newest: 1
api: api/app_api/task_api/contendTasks_api.yml
extract:
- tasks_id: content.data.tasks.0.id
validate:
- eq:
- content.data.tasks.0.title
- $title
- name: 领取竞标任务
variables:
action: 1
id: $tasks_id
api: api/app_api/task_api/submitCompete_api.yml
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 查看我发布的-待领取
variables:
action: 1
api: api/app_api/task_api/iPublishedTasks_api.yml
validate:
- eq:
- content.data.tasks.0.title
- $title
- eq:
- content.data.tasks.0.id
- $tasks_id
- name: 查看任务详情
variables:
id: $tasks_id
api: api/app_api/task_api/taskDetails_api.yml
extract:
- bidders: content.data.task.bidders.0.uid
validate:
- eq:
- content.msg
- 获取详情成功
- eq:
- content.data.task.title
- $title
- name: 竞标人中标确认
variables:
id: $tasks_id
uid: $bidders
planFinishDate: ${get_endtime()}
api: api/app_api/task_api/bidTask_api.yml
validate:
- eq:
- content.msg
- 中标成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第一次查看我领取的、我参与的
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
extract:
- iGetWaitVerify: content.data.taskMsg.iGetWaitVerify
- iGetInProgress: content.data.taskMsg.iGetInProgress
- iGetWaitAcceptance: content.data.taskMsg.iGetWaitAcceptance
- iGetCompleted: content.data.taskMsg.iGetCompleted
- iParticipationBid: content.data.taskMsg.iParticipationBid
- iParticipationCompleted: content.data.taskMsg.iParticipationCompleted
- name: $phone 登录系统
variables:
phone: ${ENV(phone2)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 驳回领取人
variables:
taskId: $tasks_id
reason: "竞标任务驳回理由${get_endtime()}"
api: api/app_api/task_api/rejectReceiver_api.yml
validate:
- eq:
- content.msg
- 驳回成功
- name: $phone 登录系统
variables:
phone: ${ENV(phone1)}
testcase: testcases/common/COM001_task_login_testcases.yml
- name: 第二次查看我领取的-进行中-1,我参与的-竞标中+1
api: api/app_api/taskStatistics_api/taskStatistics_api.yml
validate:
- eq:
- content.data.taskMsg.iGetWaitVerify
- ${add($iGetWaitVerify,0)}
- eq:
- content.data.taskMsg.iGetInProgress
- ${add($iGetInProgress,-1)}
- eq:
- content.data.taskMsg.iGetWaitAcceptance
- ${add($iGetWaitAcceptance,0)}
- eq:
- content.data.taskMsg.iGetCompleted
- ${add($iGetCompleted,0)}
- eq:
- content.data.taskMsg.iParticipationBid
- ${add($iParticipationBid,1)}
- eq:
- content.data.taskMsg.iParticipationCompleted
- ${add($iParticipationCompleted,0)}
\ No newline at end of file
... ...
... ... @@ -73,4 +73,19 @@ testcases:
testcase: testcases/app/taskStatistics/ME018-taskStatistics-iParticipation-bid.yml
- name: ME019-竞标任务-参与人的“我参与的-已完成”数量校验
testcase: testcases/app/taskStatistics/ME019-taskStatistics-iParticipation-bidPart.yml
\ No newline at end of file
testcase: testcases/app/taskStatistics/ME019-taskStatistics-iParticipation-bidPart.yml
- name: ME020-指派我的-任务数量统计校验
testcase: testcases/app/taskStatistics/ME020-taskStatistics-assignMe.yml
- name: ME021-抢单任务驳回后-我领取的-待确认-1
testcase: testcases/app/taskStatistics/ME021-taskStatistics-rejectReceiver-iget-loot.yml
- name: ME022-抢单任务驳回后-我发布的-待确认-1,待领取+1
testcase: testcases/app/taskStatistics/ME022-taskStatistics-rejectReceiver-ipublish-loot.yml
- name: ME023-竞标任务驳回后-我发布的统计校验
testcase: testcases/app/taskStatistics/ME023-taskStatistics-rejectReceiver-iget-bid.yml
- name: ME024-竞标任务被驳回-我领取的、我参与的统计校验
testcase: testcases/app/taskStatistics/ME024-taskStatistics-rejectReceiver-iParticipation-iGet-bid.yml
\ No newline at end of file
... ...