QDRW002.yml 1.6 KB
config:
    name: RW002:登录系统-保存任务-编辑保存-发布任务

teststeps:

-   name: 19990000008保存抢单任务
    testcase: testcases/task/save_taskPublish_0_0_api.yml

-   name: 19990000008查看待发布列表
    output:
        - id
    api: api/task_api/task/dfb_task/iPublishedTasks_0_api.yml
    extract:
        id: content.data.tasks.0.id
    validate:
        - eq:
              - content.data.tasks.0.id
              - $id
-   name: 19990000008编辑任务
    api: api/task_api/task/qd_fb_task/update_taskPublish_api.yml

-   name: 19990000008搜索引用资源
    output:
        - refResources_id
        - rType
        - serialNo
        - title
    api: api/task_api/task/qd_fb_task/tasksearchResources_api.yml
    extract:
        refResources_id: content.data.refResources.0.id
        rType: content.data.refResources.0.rType
        serialNo: content.data.refResources.0.serialNo
        title: content.data.refResources.0.title
    validate:
        - eq:
              - content.code
              - 0
        - eq:
              - content.msg
              - 获取成功

-   name: 19990000008发布任务
    api: api/task_api/task/qd_fb_task/taskPublish_0_1_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
#              - 关闭成功