DIV003_dividends_cal_testcases.yml 2.1 KB
config:
    name: DIV003-事业分红详情-初始状态-各个值计算正确
    base_url: ${ENV(base_manager_url)}

teststeps:
-   name: 新增实际订单
    testcase: testcases/common/COM001_actual_add_testcases.yml
    output:
      - actual_id

-   name: 查看该订单的事业分红详情
    variables:
      id: ${convert_to_string($actual_id)}
    api: api/m_api/dividends/m_dividends_detail_api.yml
    validate:
        - eq:
          - content.data.order.id
          - $actual_id
        #####总数量
        - eq:
            - content.data.dividendCount.orderNum
            - 300
        #####总金额
        - eq:
            - content.data.dividendCount.orderAmountAdjustment
            - 4500
        ####业务员抽成
        - eq:
            - content.data.dividendCount.expectedCommission
            - 225
        #####合伙人应收分红总额
        - eq:
              - content.data.dividendCount.partnerDividends
              - 750
        #####合伙人未收分红总额
        - eq:
            - content.data.dividendCount.notReceivedDividend
            - 750
        #####产品1总金额
        - eq:
            - content.data.product.0.detail.orderPrice
            - 1500
        #####产品1应收分红
        - eq:
              - content.data.product.0.detail.partnerDividendsReceivable
              - 150
        #####产品1未收分红
        - eq:
              - content.data.product.0.notReceivedDividend
              - 150
        #####产品1分红状态
        - eq:
            - content.data.product.0.stateOfPayment
            - 1
        #####产品2总金额
        - eq:
            - content.data.product.1.detail.orderPrice
            - 3000
        #####产品2应收分红
        - eq:
              - content.data.product.1.detail.partnerDividendsReceivable
              - 600
        #####产品2未收分红
        - eq:
              - content.data.product.1.notReceivedDividend
              - 600
        #####产品2分红状态
        - eq:
            - content.data.product.1.stateOfPayment
            - 1