m_partner_add_api.yml
955 字节
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:
- code: '${get_stringcode(5)}'
id: 1
- code: '${get_stringcode(5)}'
id: 2
- code: '${get_stringcode(5)}'
id: 3
- code: '${get_stringcode(5)}'
id: 4
area: '合伙人所属区域${get_stringcode(5)}'
account: 199${get_randint(10000000,99999999)}
state: 1
cooperationTime: ${get_today()}
salesmanName:
phone:
remark: '${get_stringcode(50)}'
method: POST
url: /v1/partners/add
validate:
- eq:
- content.msg
- ok