COM013_loot_open_status_6_testcase.yml 718 字节
config:
    name: 抢单任务状态验证-已验收,已完成

teststeps:

-   name: 抢单任务状态验证-已发布,待领取
    testcase: testcases/common/COM008_loot_open_status_2_testcase.yml


-   name: 关闭任务
    api: api/m_api/loot/loot_task_close_api.yml
    validate:
      - eq:
          - content.code
          - 0
      - eq:
          - content.msg
          - ok

-   name: 查看详情中的状态
    api: api/m_api/loot/loot_detail_api.yml
    variables:
      status: ${get_task_status_6_from_database()}
      msg: ok
    varidate:
        validate:
          - eq:
            - content.msg
            - $msg
          - eq:
            - content.data.status
            - $status