作者 dengyuting

fix 20201215

name: 删除实际订单
base_url: ${ENV(base_manager_url)}
variables:
id: 1021
id: 1586
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id: $id
id: ${convert_to_string($id)}
method: POST
url: /v1/order/actual/del
validate:
... ...
name: 实际订单导出
base_url: ${ENV(base_manager_url)}
variables:
createTime: ['2020-01-01', '2020-12-31']
partnerCategory:
searchText: ""
updateTime: ['2020-01-01', '2020-12-31']
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
createTime: $createTime
partnerCategory: $partnerCategory
searchText: $searchText
updateTime: $updateTime
method: POST
url: /v1/order/actual/list/excel
#validate:
# - eq:
# - content.msg
# - ok
\ No newline at end of file
... ...
name: 分红管理—批量支付分红
base_url: ${ENV(base_manager_url)}
variables:
orderIds:
- '1'
- '2'
- '3'
- '4'
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:
orderIds: $orderIds
method: POST
url: /v1/dividends/payDividends/batch
# extract:
# - num: content.data.gridResult.totalRow
validate:
- eq:
- content.msg
- ok
... ...
... ... @@ -23,6 +23,8 @@ teststeps:
- name: 新增实发订单
api: api/m_api/actual/m_add_order_actual_api.yml
extract:
- orderid: content.data.id
validate:
- eq:
- content.msg
... ... @@ -33,12 +35,12 @@ teststeps:
extract:
- actual_id: content.data.gridResult.lists.0.id
validate:
# - eq:
# - content.data.gridResult.lists.0.shipmentsId
# - $shipmentsId
- eq:
- content.msg
- ok
- eq:
- content.data.gridResult.lists.0.id
- ${convert_to_string($orderid)}
- eq:
- content.msg
- ok
- name: 查看实际订单详情
variables:
... ...
... ... @@ -48,6 +48,10 @@ teststeps:
- eq:
- content.data.product.detail.0.commodityPrice
- 1500
#####产品1总数量
- eq:
- content.data.product.detail.0.orderNum
- $orderNum1
#####产品1应收分红
- eq:
- content.data.product.detail.0.partnerDividends
... ... @@ -60,6 +64,10 @@ teststeps:
- eq:
- content.data.product.detail.1.commodityPrice
- 3000
#####产品2总数量
- eq:
- content.data.product.detail.1.orderNum
- $orderNum2
#####产品2应收分红
- eq:
- content.data.product.detail.1.partnerDividends
... ...
... ... @@ -29,7 +29,7 @@ teststeps:
- name: 查看分红列表
api: api/m_api/dividends/m_dividends_list_api.yml
validate:
#####支付状态=1
#####等待支付状态=1
- eq:
- content.data.gridResult.lists.0.stateOfPayment
- 1
... ... @@ -45,6 +45,10 @@ teststeps:
- eq:
- content.data.gridResult.lists.0.uncollectedDividends
- ${convert_to_string(375)}
#####分红支出
- eq:
- content.data.gridResult.lists.0.dividendSpending
- ${convert_to_string(0)}
- name: 查看该订单的分红详情
... ...
... ... @@ -24,7 +24,7 @@ teststeps:
- name: 查看分红列表
api: api/m_api/dividends/m_dividends_list_api.yml
validate:
#####已支付状态=1
#####已支付状态=2
- eq:
- content.data.gridResult.lists.0.stateOfPayment
- 2
... ... @@ -40,6 +40,10 @@ teststeps:
- eq:
- content.data.gridResult.lists.0.uncollectedDividends
- ${convert_to_string(300)}
#####分红支出
- eq:
- content.data.gridResult.lists.0.dividendSpending
- ${convert_to_string(0)}
- name: 查看该订单的分红详情
... ...
config:
name: DIV009-分红管理-自建订单调整分红比例,系统提示‘操作失败’
base_url: ${ENV(base_manager_url)}
teststeps:
- name: 新增实际订单
testcase: testcases/common/COM001_actual_add_testcases.yml
output:
- actual_id
- product_id_1
- product_id_2
- name: 编辑分红-自建订单,调整分红比例
variables:
goodNumber: 100
orderId: ${convert_to_string($actual_id)}
state: 2
partnerBonusPercent: 20
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
- '操作失败'
\ No newline at end of file
... ...
... ... @@ -19,6 +19,8 @@ teststeps:
- name: 新增实发订单
api: api/m_api/actual/m_add_order_actual_api.yml
extract:
- orderid: content.data.id
validate:
- eq:
- content.msg
... ... @@ -29,16 +31,23 @@ teststeps:
extract:
- actual_id: content.data.gridResult.lists.0.id
validate:
# - eq:
# - content.data.gridResult.lists.0.shipmentsId
# - $shipmentsId
- eq:
- content.data.gridResult.lists.0.id
- ${convert_to_string($orderid)}
- eq:
- content.msg
- ok
- eq:
- content.data.gridResult.lists.0.orderNum
- ${add($orderNum1,$orderNum2)}
- eq:
- content.data.gridResult.lists.0.orderPrice
- 4500
- name: 查看实际订单详情
variables:
id: ${convert_to_string($actual_id)}
id: ${convert_to_string($orderid)}
api: api/m_api/actual/m_order_actual_detail_api.yml
validate:
- eq:
... ...
config:
name: ACT002-删除订单成功
base_url: ${ENV(base_manager_url)}
variables:
partnerID: 1047
commissionProportion: 5
orderNum1: 100
univalence: 15
partnerRatio: 10
orderNum2: 200
# univalence2: 15
# partnerRatio2: 20
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(adminphone)}
testcase: testcases/common/m_login_testcases.yml
- name: 新增实发订单
api: api/m_api/actual/m_add_order_actual_api.yml
extract:
- orderid: content.data.id
validate:
- eq:
- content.msg
- ok
- name: 查看实际订单列表
api: api/m_api/actual/m_order_actual_list_api.yml
extract:
- actual_id: content.data.gridResult.lists.0.id
validate:
- eq:
- content.data.gridResult.lists.0.id
- ${convert_to_string($orderid)}
- eq:
- content.msg
- ok
- name: 删除实发订单
variables:
id: $orderid
api: api/m_api/actual/m_order_actual_del_api.yml
validate:
- eq:
- content.msg
- ok
- name: 查看实际订单列表
api: api/m_api/actual/m_order_actual_list_api.yml
extract:
- actual_id: content.data.gridResult.lists.0.id
validate:
- not_equals:
- content.data.gridResult.lists.0.id
- ${convert_to_string($orderid)}
- eq:
- content.msg
- ok
... ...
config:
name: ACT003-实际订单导出
base_url: ${ENV(base_manager_url)}
variables:
partnerID: 1047
commissionProportion: 5
orderNum1: 100
univalence: 15
partnerRatio: 10
orderNum2: 200
# univalence2: 15
# partnerRatio2: 20
teststeps:
- name: $phone 登录系统
variables:
phone: ${ENV(adminphone)}
testcase: testcases/common/m_login_testcases.yml
- name: 实发订单导出
api: api/m_api/actual/m_order_actual_excel_api.yml
... ...
... ... @@ -35,11 +35,20 @@ testcases:
- name: DIV008-分红管理-产品1支付分红成功后,调整数量由100改为50,数据正确
testcase: testcases/dividends/DIV008_dividends_payDividends_editnum_testcases.yml
- name: DIV009-分红管理-自建订单调整分红比例,系统提示‘操作失败’
testcase: testcases/dividends/DIV009_dividends_editnum_testcases.yml
############################分红管理模块结束##################################
- name: ACT001-实际订单-各个值计算正确
testcase: testcases/order/actual/ACT001_actual_detail_testcases.yml
- name: ACT002-删除订单成功
testcase: testcases/order/actual/ACT002_actual_del_testcases.yml
- name: ACT003-实际订单导出
testcase: testcases/order/actual/ACT003_actual_excel_testcases.yml
#- name: PUR001-意向订单-各个值计算正确(已废弃)
# testcase: testcases/order/purpose/PUR001_pur_detail_testcases.yml
#
... ...