11_提交订单-商品详情_json.yaml 789 B

123456789101112131415161718192021222324252627282930313233
  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: "goods"
  16. goods_id: 11
  17. stock: 2
  18. spec:
  19. - type: 尺寸
  20. value: M
  21. address_id: "{{add_id}}"
  22. payment_id: 4
  23. user_note: 通过商品详情进行下单
  24. - 通过JSONPATH提取数据-MSG:
  25. 关键字: ex_jsonData
  26. EXVALUE: $..msg
  27. INDEX: 0
  28. VARNAME: msg_success
  29. - 断言-文本断言-等于:
  30. 关键字: assert_text_comparators
  31. VALUE: "{{msg_success}}"
  32. EXPECTED: 提交成功
  33. OP_STR: ==