jxz_gb.yml 1.6 KB
config:
    name: jxz:登录系统-查看公司悬赏任务-点击抢单

teststeps:

-   name: 19990000011登录系统
    variables:
        phone: ${ENV(pfphone)}
    testcase: testcases/login_testcases.yml

-   name: 19990000011查看公司悬赏任务
    output:
        - id
    api: api/task_api/task/rewards/rewards_api.yml
    extract:
        id: content.data.tasks.0.id
    validate:
        - eq:
              - content.data.tasks.0.id
              - $id
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取成功

-   name: 19990000011任务详情
    api: api/task_api/task/taskDetails_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取详情成功

-   name: 19990000011点击抢单
    api: api/task_api/task/rewards/submitCompete_0_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 抢单成功!

-   name: 19990000011查看进行中的任务
    api: api/task_api/task/rewards/currentTasks_0_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取成功

-   name: 19990000011任务详情
    api: api/task_api/task/taskDetails_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.data.task.status
              - 3
        - eq:
              - content.msg
              - 获取详情成功