QDRW005.yml 3.0 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.code
              - 0
        - eq:
              - content.msg
              - 获取成功

-   name: 19990000008任务详情
    output:
        - rType
        - refResources_id
        - serialNo
        - title
    api: api/task_api/task/taskDetails_api.yml
    extract:
        rType: content.data.task.refResources.0.rType
        refResources_id: content.data.task.refResources.0.id
        serialNo: content.data.task.refResources.0.serialNo
        title: content.data.task.refResources.0.title
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取详情成功

-   name: 19990000008查找企业所有员工
    output:
        - uid0
        - uname0
        - uid1
        - uname1
        - uid8
        - uname8
        - uid11
        - uname11
    api: api/task_api/task/employee/allEmployees_api.yml
    extract:
        uid0: content.data.employees.0.uid
        uname0: content.data.employees.0.uname
        uid1: content.data.employees.1.uid
        uname1: content.data.employees.1.uname
        uid8: content.data.employees.8.uid
        uname8: content.data.employees.8.uname
        uid11: content.data.employees.11.uid
        uname11: content.data.employees.11.uname
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 查找成功

#-   name: 19990000008我要验收
#    api: api/task_api/task/taskcheckAccept_api.yml
#    validate:
#        - eq:
#              - content.code
#              - 0
#        - eq:
#              - content.msg
#              - 验收成功
#
#-   name: 19990000008查看已完成的任务
#    output:
#        - id
#    api: api/task_api/task/rewards/currentTasks_1_api.yml
#    extract:
#        id: content.data.tasks.0.id
#    validate:
#        - eq:
#              - content.code
#              - 0
#        - eq:
#              - content.msg
#              - 获取成功
#
#-   name: 19990000008查看已完成的任务详情
#    api: api/task_api/task/taskDetails_api.yml
#    validate:
#        - eq:
#              - content.data.task.status
#              - 5
#        - eq:
#              - content.code
#              - 0
#        - eq:
#              - content.msg
#              - 获取详情成功