DIV010_dividends_payDividends_batch_testcases.yml 2.0 KB
config:
    name: DIV010-分红管理-批量支付分红成功,数据正确
    base_url: ${ENV(base_manager_url)}
    variables:
        partnerID: 1047
        commissionProportion: 5
        orderNum1: 100
        univalence: 15
        partnerRatio: 10
        orderNum2: 200
#        partnerRatio2: 20
#    output:
#      - actual_id
#      - product_id_1
#      - product_id_2


teststeps:
-   name: $phone 登录系统
    variables:
      phone: ${ENV(adminphone)}
    testcase: testcases/common/m_login_testcases.yml

-   name: 新增实发订单
    times: 5
    api: api/m_api/actual/m_add_order_actual_api.yml
    teardown_hooks:
      - ${teardown_hook_get_orderid($response)}
    validate:
        - eq:
          - content.msg
          - ok

-   name: 查看分红列表
    api: api/m_api/dividends/m_dividends_list_api.yml
    validate:
      #####已支付状态=2
      - eq:
          - content.data.gridResult.lists.0.stateOfPayment
          - 1
      - eq:
          - content.data.gridResult.lists.1.stateOfPayment
          - 1
      - eq:
          - content.data.gridResult.lists.2.stateOfPayment
          - 1
      - eq:
          - content.data.gridResult.lists.3.stateOfPayment
          - 1
      - eq:
          - content.data.gridResult.lists.4.stateOfPayment
          - 1

-   name: 批量支付分红
    api: api/m_api/dividends/m_dividends_payDividends_batch_api.yml
    validate:
        - eq:
          - content.msg
          - ok

-   name: 查看分红列表
    api: api/m_api/dividends/m_dividends_list_api.yml
    validate:
      #####已支付状态=2
      - eq:
          - content.data.gridResult.lists.0.stateOfPayment
          - 2
      - eq:
          - content.data.gridResult.lists.1.stateOfPayment
          - 2
      - eq:
          - content.data.gridResult.lists.2.stateOfPayment
          - 2
      - eq:
          - content.data.gridResult.lists.3.stateOfPayment
          - 2
      - eq:
          - content.data.gridResult.lists.4.stateOfPayment
          - 2