20_用户注册驱动.yaml 846 B

1234567891011121314151617181920212223242526272829303132
  1. #process: G1--P
  2. #desc: 用户注册用例
  3. #featureName: 注册模块
  4. #storyName: 用户模块
  5. #remark: 注册模块备注
  6. #steps:
  7. # - 生成注册的用户名:
  8. # 关键字: generate_name
  9. # VARNAME: username
  10. # - 发送Post请求:
  11. # 关键字: request_post_form_urlencoded
  12. # URL: "{{URL}}"
  13. # PARAMS:
  14. # s: api/user/reg
  15. # DATA:
  16. # accounts: "{{username}}"
  17. # pwd: "{{password}}"
  18. # type: username
  19. # - 通过JSONPATH提取数据-MSG:
  20. # 关键字: ex_jsonData
  21. # EXVALUE: $..msg
  22. # INDEX: 0
  23. # VARNAME: msg_success
  24. # - 断言-文本断言-等于:
  25. # 关键字: assert_text_comparators
  26. # VALUE: "{{msg_success}}"
  27. # EXPECTED: "{{expected}}"
  28. # OP_STR: ==
  29. #ddts:
  30. # - password: '123456'
  31. # expected: '注册成功'
  32. # desc: "生成用户名能生成成功"