COM001_actual_add_testcases.yml 960 字节
config:
    name: COM001-新增实际订单
    base_url: ${ENV(base_manager_url)}
    variables:
        shipmentsId: '实发订单发货单号${get_nowtime()}'
        partnerID: 1047
        commissionProportion: 5
        orderNum1: 100
        univalence1: 15
        partnerRatio1: 10
        orderNum2: 200
        univalence2: 15
        partnerRatio2: 20
    export:
      - actual_id


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
    validate:
        - eq:
          - content.msg
          - ok

-   name: 查看实际订单列表
    api: api/m_api/actual/m_order_actual_partner_list_api.yml
    extract:
      - actual_id: content.data.gridResult.lists.0.id
    validate:
        - eq:
          - content.data.gridResult.lists.0.shipmentsId
          - $shipmentsId