COM001-1_app_actual_add_testcases.yml 1.2 KB
config:
    name: COM001-新增明日实际订单
    base_url: ${ENV(base_manager_url)}
    variables:
      partnerID: ${ENV(partnerId_app)}
      commissionProportion: 0
      orderNum1: 100
      univalence: 15
      partnerRatio: 10
      orderNum2: 200
      partnerCategory: ${get_partnerCategory(1)}
      partnerCategoryId: 1
    output:
      - actual_saleDate
      - actual_id
      - product_id_1
      - product_id_2


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

-   name: 新增明日实发订单
    variables:
      saleDate: ${tomorrow_time_str()}
    api: api/m_api/actual/m_add_app_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
      - actual_saleDate: content.data.gridResult.lists.0
    output:
      - actual_saleDate
    validate:
        - eq:
          - content.data.gridResult.lists.0.id
          - ${convert_to_string($orderid)}
        - eq:
            - content.msg
            - ok