loot_task_finishTask_testcase.yml 1.9 KB
config:
    name: 保存抢单任务-发布任务-确认领取人
#
teststeps:
#-   name: 登录系统
#    testcase: testcases/task/loot/save_loot_update_0_open_testcase.yml
#
#-   name: app端点击立即抢单
#    testcase: testcases/task/task_rewards_taskDetails_testcase.yml
#
#-   name: 确认领取人
#    api: api/m_api/loot/loot_task_confirm_api.yml
##    variables:
##        id: ${get_task_id()}
#    varidate:
#        validate:
#            -   eq:
#                - content.msg
#                - ok
##-------------------------APP端完成抢单任务------------------------------
#-   name: 完成任务
#    testcase: testcases/task/task_finishTask_testcase.yml

#-------------------------web端验收抢单任务------------------------------
-   name: 获取用户信息
    output:
      - uid0
      - name0
      - uid1
      - name1
      - uid2
      - name2
      - uid15
      - name15
    api: api/m_api/common/user_api.yml
    teardown_hooks:
      - ${teardown_hook_get_uid0($response)}
      - ${teardown_hook_get_uid1($response)}
      - ${teardown_hook_get_uid2($response)}
      - ${teardown_hook_get_uid15($response)}
    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
    validate:
      - eq:
          - content.data.list.0.name
          - $name0
      - eq:
          - content.data.list.1.name
          - $name1
      - eq:
          - content.data.list.2.name
          - $name2
      - eq:
          - content.data.list.15.name
          - $name15

#-   name: 验收任务
#    api: api/m_api/loot/loot_task_accept_api.yml

-   name: 验收任务
    api: api/m_api/loot/loot_task_accept_api.yml