DIV001_app_dividendslist_testcases.yml 1.0 KB
config:
    name: DIV001-分红列表-数据源来自于实发订单
    base_url: ${ENV(base_manager_url)}
    variables:
        orderType: null
        partnerCategoryId: 2
        searchText: ''
        createTime: []

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

-   name: 查看业务分红列表

    api: api/m_api/dividends/m_dividends_list_api.yml
    extract:
      - num1: content.data.gridResult.totalRow

-   name: 新增实发订单(业务订单)
    variables:
      partnerCategory: ${get_partnerCategory(2)}
      partnerCategoryId: 2
      saleDate: ${today_time_str()}
    api: api/m_api/actual/m_add_app_order_actual_api.yml
    validate:
        - eq:
          - content.msg
          - ok
#
-   name: 查看业务分红列表
    api: api/m_api/dividends/m_dividends_list_api.yml
    validate:
        - eq:
          - content.msg
          - ok
        - eq:
          - content.data.gridResult.totalRow
          - ${add($num1,1)}