JBRW004.yml 1.3 KB
config:
    name: RW003:登录系统-发布任务

teststeps:

-   name: 19990000008发布任务
    testcase: testcases/task/taskPublish_0_1_api.yml
#

-   name: 19990000011登录系统-查看公司悬赏任务-点击抢单
    variables:
        phone: ${ENV(pfphone)}
    testcase: testcases/task/jxz/jxz_wc.yml


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

-   name: 19990000008查看任务-我发布的-待验收
    output:
        - id
    api: api/task_api/task/iPublishedTasks_3_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任务详情
    api: api/task_api/task/taskDetails_api.yml
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取详情成功

#-   name: 19990000008任务关闭
#    api: api/task_api/task/taskcloseTask_api.yml
#    validate:
#        - eq:
#              - content.code
#              - 0
#        - eq:
#              - content.msg
#              - 关闭成功