10_提交订单-购物车_json.yaml 721 B

1234567891011121314151617181920212223242526272829
  1. process: G0--P
  2. desc: 提交订单-购物车
  3. featureName: 提交订单模块
  4. storyName: 订单模块
  5. remark: 提交订单模块备注
  6. steps:
  7. - 发送Post请求:
  8. 关键字: request_post_row_json
  9. URL: "{{URL}}"
  10. PARAMS:
  11. s: /api/buy/add
  12. application: app
  13. token: "{{msg_token}}"
  14. DATA:
  15. buy_type: "cart"
  16. address_id: "{{add_id}}"
  17. ids: "{{card_id_2}}"
  18. payment_id: 4
  19. user_note: 通过购物车进行下单
  20. - 通过JSONPATH提取数据-MSG:
  21. 关键字: ex_jsonData
  22. EXVALUE: $..msg
  23. INDEX: 0
  24. VARNAME: msg_success
  25. - 断言-文本断言-等于:
  26. 关键字: assert_text_comparators
  27. VALUE: "{{msg_success}}"
  28. EXPECTED: 提交成功
  29. OP_STR: ==