COM004_loot_update_testcase.yml 1.1 KB
config:
    name: 用户新增抢单任务-公司重要悬赏

teststeps:

-   name: 提问问题-审核问题-获取资源
    testcase: testcases/permission/ques_pf_permission/QX001_pf_permission.yml

-   name: 登录系统
    variables:
        phone: ${ENV(wpftwphone)}
    testcase: testcases/common/COM002_m_login_testcases.yml
#
-   name: 引用资源
    api: api/m_api/task_resource_api.yml
    teardown_hooks:
        - ${teardown_hook_get_resource_id($response)}
        - ${teardown_hook_get_resource_title($response)}
        - ${teardown_hook_get_resource_content($response)}
    varidate:
        validate:
          - eq:
            - content.msg
            - ok
#
-   name: 保存任务
    api: api/m_api/loot/loot_update_true_api.yml
    teardown_hooks:
        - ${teardown_hook_get_loot_task_id($response)}
    varidate:
        validate:
          - eq:
            - content.msg
            - ok
-   name: 发布任务
    api: api/m_api/loot/loot_open_api.yml
    varidate:
        validate:
          - eq:
            - content.msg
            - ok