jxz_wc.yml 3.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_1_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 已成功参与竞标,等待中标!!

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

-   name: 19990000008查看公司悬赏任务
    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: 19990000008任务详情
    output:
      - uid
    api: api/task_api/task/taskDetails_api.yml
    extract:
        uid: content.data.tasks.bidders.0.uid
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取详情成功

-   name: 19990000008中标
    api: api/task_api/task/bidTask_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 中标成功

-   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/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
              - 获取详情成功

-   name: 19990000011完成任务
    api: api/task_api/task/taskfinishTask_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 完成成功