|
|
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 |