Part-接口测试2

1.JsonPath:像xpath一样,提取json数值

2.json schema:github -> jsonschema

from jsonshema import validate
schema = {
   "type":"object",
  "properties":{
  "price":{"type":"number"},
  "name":{"type":"string"}
}   
}
validate(instance={"name":"Eggs", "price":34.99}, schema=schema)

3.restful,同一个api,通过get,post,put,delete,来区别方法

4.自动化测试框架

扫描二维码关注公众号,回复: 8929458 查看本文章

33

猜你喜欢

转载自www.cnblogs.com/n-n5980/p/12241118.html