m_partner_add_api.yml
747 字节
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: [1,2,3,4]
area: '合伙人所属区域${get_stringcode(5)}'
account: 155${get_randint(10000000,99999999)}
state: 1
cooperationTime: ${get_today()}
salesmanName: '业务员姓名${get_stringcode(5)}'
phone: 155${get_randint(10000000,99999999)}
method: POST
url: /v1/partners/add
validate:
- eq:
- content.msg
- ok