PARTNERS004_list_partner_batchDisabled_testcases.yml 1.4 KB
config:
    name: PARTNERS004-合伙人批量启用
    base_url: ${ENV(base_manager_url)}

teststeps:
-   name: $phone 登录系统
    variables:
      phone: ${ENV(adminphone)}
    testcase: testcases/common/m_login_testcases.yml

-   name: 查看合伙列表,获取合伙人id
    variables:
        partnerType:
        partnerName: ''
    api:  api/m_api/partners/m_partner_list_api.yml
    extract:
        - totalRow: content.data.gridResult.totalRow
        - partner_id1: content.data.gridResult.lists.0.id
        - partner_id2: content.data.gridResult.lists.1.id
    validate:
        - length_equals:
            - content.data.gridResult.lists
            - $totalRow

-   name: 合伙人批量禁用
    variables:
        id:
            - $partner_id1
            - $partner_id2
        status: 1
    api:  api/m_api/partners/m_partner_batchDisabled_api.yml
    validate:
        - equals:
            - content.code
            - 0


-   name: 查看合伙人 $partner_id1 详情,状态为禁用
    variables:
        id: $partner_id1
    api:  api/m_api/partners/m_partner_detail_api.yml
    validate:
        - eq:
            - content.data.state
            - 1

-   name: 查看合伙人 $partner_id2 详情,状态为禁用
    variables:
        id: $partner_id2
    api:  api/m_api/partners/m_partner_detail_api.yml
    validate:
        - eq:
            - content.data.state
            - 1