|
|
config:
|
|
|
name: DIV004_1-分红管理-调整数量由100改为50-各个值计算正确
|
|
|
base_url: ${ENV(base_manager_url)}
|
|
|
variables:
|
|
|
goodNumber: 50
|
|
|
partnerCategory: ${get_partnerCategory(1)}
|
|
|
partnerCategoryId: 1
|
|
|
saleDate: ${today_time_str()}
|
|
|
orderType: 1
|
|
|
createTime: []
|
|
|
|
|
|
|
|
|
teststeps:
|
|
|
- name: 新增实际订单
|
|
|
testcase: testcases/common/COM001_app_actual_add_testcases.yml
|
|
|
output:
|
|
|
- actual_id
|
|
|
- product_id_1
|
|
|
- product_id_2
|
|
|
|
|
|
- name: 编辑分红-数量由100调整为50
|
|
|
variables:
|
|
|
orderId: ${convert_to_string($actual_id)}
|
|
|
state: 1
|
|
|
partnerBonusPercent: 10
|
|
|
reason: '修改原因${get_stringcode(5)}'
|
|
|
productId: ${convert_to_string($product_id_1)}
|
|
|
api: api/m_api/dividends/m_dividends_modify_api.yml
|
|
|
validate:
|
|
|
- eq:
|
|
|
- content.msg
|
|
|
- ok
|
|
|
|
|
|
- name: 查看分红列表
|
|
|
api: api/m_api/dividends/m_dividends_list_api.yml
|
|
|
validate:
|
|
|
#####等待支付状态=1
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.stateOfPayment
|
|
|
- 1
|
|
|
######应收分红
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.dividendsReceivable
|
|
|
- ${convert_to_string(375)}
|
|
|
#####已收分红
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.receiveDividends
|
|
|
- ${convert_to_string(0)}
|
|
|
#####未收分红
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.uncollectedDividends
|
|
|
- ${convert_to_string(375)}
|
|
|
#####分红支出
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.dividendSpending
|
|
|
- ${convert_to_string(0)}
|
|
|
|
|
|
|
|
|
- name: 查看该订单的分红详情
|
|
|
variables:
|
|
|
id: ${convert_to_string($actual_id)}
|
|
|
api: api/m_api/dividends/m_dividends_detail_api.yml
|
|
|
validate:
|
|
|
- eq:
|
|
|
- content.data.order.orderId
|
|
|
- $actual_id
|
|
|
#####合伙人未收分红总额
|
|
|
- eq:
|
|
|
- content.data.order.notReceivedDividend
|
|
|
- ${convert_to_string(375)}
|
|
|
#####合伙人已收分红总额
|
|
|
- eq:
|
|
|
- content.data.order.receivedDividends
|
|
|
- ${convert_to_string(0)}
|
|
|
#####合伙人应收分红总额
|
|
|
- eq:
|
|
|
- content.data.order.partnerDividends
|
|
|
- ${convert_to_string(375)}
|
|
|
#####合伙人分红支出总额
|
|
|
- eq:
|
|
|
- content.data.order.dividendSpending
|
|
|
- ${convert_to_string(0)}
|
|
|
#####初始总数量
|
|
|
- eq:
|
|
|
- content.data.product.orderNumCount
|
|
|
- 250
|
|
|
#####初始总金额
|
|
|
- eq:
|
|
|
- content.data.product.orderAmountAdjustmentCount
|
|
|
- 3750
|
|
|
#####合伙人应收分红总额调整
|
|
|
- eq:
|
|
|
- content.data.product.partnerDividendsCount
|
|
|
- ${convert_to_string(375)}
|
|
|
#####产品1是否正确
|
|
|
- eq:
|
|
|
- content.data.product.detail.0.productId
|
|
|
- ${convert_to_int($product_id_1)}
|
|
|
#####产品1总金额
|
|
|
- eq:
|
|
|
- content.data.product.detail.0.commodityPrice
|
|
|
- 750
|
|
|
#####产品1应收分红
|
|
|
- eq:
|
|
|
- content.data.product.detail.0.partnerDividends
|
|
|
- ${convert_to_string(75)}
|
|
|
#####产品1数量调整
|
|
|
- eq:
|
|
|
- content.data.product.detail.0.orderNum
|
|
|
- $goodNumber
|
|
|
#####产品1分红状态
|
|
|
- eq:
|
|
|
- content.data.product.detail.0.paymentStatus
|
|
|
- 1
|
|
|
#####产品2总金额
|
|
|
- eq:
|
|
|
- content.data.product.detail.1.commodityPrice
|
|
|
- 3000
|
|
|
#####产品2应收分红
|
|
|
- eq:
|
|
|
- content.data.product.detail.1.partnerDividends
|
|
|
- ${convert_to_string(300)}
|
|
|
#####产品2分红状态
|
|
|
- eq:
|
|
|
- content.data.product.detail.1.paymentStatus
|
|
|
- 1
|
|
|
|
|
|
- name: 查看实际订单列表
|
|
|
api: api/m_api/actual/m_order_actual_list_api.yml
|
|
|
validate:
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.id
|
|
|
- $actual_id
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.orderNum
|
|
|
- 300
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.quantityControl
|
|
|
- ${convert_to_string(250)}
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.orderPrice
|
|
|
- 4500
|
|
|
- eq:
|
|
|
- content.data.gridResult.lists.0.priceControl
|
|
|
- ${convert_to_string(3750)}
|
|
|
|
|
|
- name: 查看实际订单详情
|
|
|
variables:
|
|
|
id: ${convert_to_string($actual_id)}
|
|
|
api: api/m_api/actual/m_order_actual_detail_api.yml
|
|
|
validate:
|
|
|
- eq:
|
|
|
- content.data.orderNumCount
|
|
|
- 300
|
|
|
- eq:
|
|
|
- content.data.orderAmountAdjustmentCount
|
|
|
- 4500
|
|
|
- eq:
|
|
|
- content.data.orderNumCountControl
|
|
|
- ${convert_to_string(250)}
|
|
|
- eq:
|
|
|
- content.data.orderAmountAdjustmentCountControl
|
|
|
- ${convert_to_string(3750)}
|
|
|
- eq:
|
|
|
- content.data.product.0.orderPrice
|
|
|
- 1500
|
|
|
- eq:
|
|
|
- content.data.product.0.quantityControl
|
|
|
- ${convert_to_string($goodNumber)}
|
|
|
- eq:
|
|
|
- content.data.product.0.priceControl
|
|
|
- ${convert_to_string(750)}
|
|
|
- eq:
|
|
|
- content.data.product.1.orderPrice
|
|
|
- 3000 |
|
|
\ No newline at end of file |
...
|
...
|
|