COM025_appoint_open_status_6_testcase.yml 728 字节
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