COM019_bid_open_status_5_testcase.yml 1.2 KB
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