m_partner_add_api.yml 1.1 KB
name: 合伙人添加
base_url: ${ENV(base_manager_url)}
#times: 50
teardown_hooks:
        - ${sleep(1)}
request:
    headers:
        Content-Type: application/json;charset=utf-8
        User-Agent: okhttp/3.12.3
        Authorization: Bearer ${get_m_accesstoken()}
    json:
        partnerName: '合伙人姓名${get_stringcode(5)}'
        partnerType:
            - id: 1
              code: 事业合伙人编号${get_stringcode(8)}
            - id: 2
              code: 业务合伙人编号${get_stringcode(8)}
            - id: 3
              code: 研发合伙人编号${get_stringcode(8)}
            - id: 4
              code: 业务产品应用合伙人编号${get_stringcode(8)}
        area: '合伙人所属区域${get_stringcode(5)}'
        account: 155${get_randint(10000000,99999999)}
        state: 1
        cooperationTime: ${get_now()}
        salesmanName: '业务员姓名${get_stringcode(5)}'
        phone: 155${get_randint(10000000,99999999)}
        remark: '系统自动添加'
    method: POST
    url: /v1/partners/add
validate:
    -   eq:
        - content.msg
        - ok