|
|
name: 实际订单新增
|
|
|
base_url: ${ENV(base_manager_url)}
|
|
|
variables:
|
|
|
shipmentsId: '实发订单发货单号${get_nowtime()}'
|
|
|
partnerID: 1047
|
|
|
commissionProportion: 5
|
|
|
orderNum1: 100
|
|
|
univalence1: 15
|
|
|
partnerRatio1: 10
|
|
|
orderNum2: 200
|
|
|
univalence2: 15
|
|
|
partnerRatio2: 20
|
|
|
teardown_hooks:
|
|
|
- ${sleep(5)}
|
|
|
- ${sleep(2)}
|
|
|
request:
|
|
|
headers:
|
|
|
Content-Type: application/json;charset=utf-8
|
|
|
User-Agent: okhttp/3.12.3
|
|
|
Authorization: Bearer ${get_m_accesstoken()}
|
|
|
json:
|
|
|
orderId: ${get_nowtime()}
|
|
|
orderAmountAdjustmentCount: 13
|
|
|
orderNumCount: 29
|
|
|
shipmentsId: ${get_nowtime()}
|
|
|
buyer: 我是客户${get_second()}
|
|
|
orderDist: '福建一区'
|
|
|
partnerID: ${get_partner_id_from_database()}
|
|
|
partner: ${get_partner_name_from_database()}
|
|
|
commissionProportion: 10.1
|
|
|
orderId: '实发订单号${get_nowtime()}'
|
|
|
shipmentsId: $shipmentsId
|
|
|
partnerID: $partnerID
|
|
|
buyer: '客户名称${get_stringcode(5)}'
|
|
|
orderDist: '订单区域${get_stringcode(5)}'
|
|
|
commissionProportion: $commissionProportion
|
|
|
product:
|
|
|
- productName: 产品名称${get_second()}
|
|
|
orderNum: 18
|
|
|
univalence: 0.19
|
|
|
partnerRatio: 5.2
|
|
|
- productName: 产品名称${get_second()}
|
|
|
orderNum: 29
|
|
|
univalence: 0.19
|
|
|
partnerRatio: 5.2
|
|
|
- productName: 产品名称${get_stringcode(5)}
|
|
|
orderNum: $orderNum1
|
|
|
univalence: $univalence1
|
|
|
partnerRatio: $partnerRatio1
|
|
|
- productName: 产品名称${get_stringcode(5)}
|
|
|
orderNum: $orderNum2
|
|
|
univalence: $univalence2
|
|
|
partnerRatio: $partnerRatio2
|
|
|
method: POST
|
|
|
url: v1/order/actual/update
|
|
|
url: /v1/order/actual/update
|
|
|
validate:
|
|
|
- eq:
|
|
|
- content.msg
|
...
|
...
|
|