一次偶然的机会,看到Learn Rest Assured系列文章,觉得里面的文章写得非常好,对Rest Assured的基础知识介绍的通俗易懂,所以决定参考里面的内容,加上自己的一些理解,就 拷贝+翻译+加工 地搬过来了。我曾发过邮件给原作者,但是一直没得到回复,希望原作者如果看到我这些文章,请原谅我的盗版:), 我是觉得好东西大家分享,互相学习。
这个系列会每周更新,对自己来说是对Rest Assured基础理论加实践的梳理,受益匪浅,也希望这些文章能够对从事软件测试的同行们有些帮助,更希望能得到同行的指正和交流。
建议API测试初学者在阅读此系列之前可以先看看《API Testing 入门基础系列》对API Testing有个最基础的了解。
REST Assured 1 - REST Assured 介绍
REST Assured 2 - 用IDEA创建一个基本的REST Assured Maven项目
REST Assured 3 - Static Import In Java
REST Assured 4 - 第一个GET Request
REST Assured 5 - Abstraction抽象,隐藏实现
REST Assured 6 - Interface接口,实现你所想
REST Assured 7 - 链式调用方法
REST Assured 8 - BDD Style
REST Assured 9 - 第一个POST Request
REST Assured 10 - 第一个PUT Request
REST Assured 11 - 第一个PATCH Request
REST Assured 12 - 第一个DELETE Request
REST Assured 13 - API Response写入JSON文件
REST Assured 14 - RequestSpecification
REST Assured 15 - RequestSpecification Call Http方法
REST Assured 16 - RequestSpecBuild
REST Assured 17 - 设置默认的RequestSpecification
REST Assured 18 - Querying RequestSpecification
REST Assured 19 - Default Host And Port
REST Assured 20 - JSON/XML File As Payload
REST Assured 21 - Response Time
REST Assured 22 - JSON
REST Assured 23 - 用Java Map创建JSON Object Request Body
REST Assured 24 - 用List创建JSON Array Request Body
REST Assured 25 - 用Jackson API的ObjectMapper类创建JSON Object
REST Assured 26 - ObjectNode作为request的payload
REST Assured 27 - 用Jackson API的ObjectMapper类创建JSON Array
REST Assured 28 - 什么是Plain Old Java Object (POJO) ?
REST Assured 29 - 创建POJO 作为一个JSON Object Payload
REST Assured 30 - 创建 POJO 作为一个JSON Array Payload
REST Assured 31 - 创建POJO作为A Nested JSON Payload
REST Assured 32 - 利用Jackson API将Java Object Serialization序列化成 JSON Object
REST Assured 33 - 利用Jackson API 将JSON Object De-Serialization反序列成 Java Object
REST Assured 34 - 利用Gson API将Java Object Serialization系列化成 JSON Object
REST Assured 35 - 利用Gson API 将JSON Object De-Serialization反序列化成 Java Object
REST Assured 36 - @JsonInclude Annotation - Payload中忽略默认值字段
REST Assured 37 - @JsonInclude Annotation – Payload 中忽略值为Null & Empty Values的字段
REST Assured 38 - POJO 的 Getter & Setter 方法如何影响 Serialization 系列化 & Deserialization 反序列化
REST Assured 39 - @JsonIgnore Annotation – Serialization 和 Deserialization 移除某些字段
REST Assured 40 - @JsonIgnoreProperties Annotation – Serialization Or Deserialization Or Both 移除字段
REST Assured 41 - @JsonIgnoreProperties Annotation - Deserialization 忽略 Unknown Properties
REST Assured 42 - 利用Jackson API ObjectMapper – Deserialization 忽略 Unknown Properties
REST Assured 43 - Get All Keys From A Nested JSON Object
REST Assured 44 - Fetch Value From JSON Object Using JsonNode – Jackson – Get() & Path() Methods
REST Assured 45 - Fetch Value From Nested JSON Object Using JsonNode – Jackson – At() Method
REST Assured 46 - Fetch Value From JSON Array Using JsonNode – Jackson – Get() & Path() Methods
REST Assured 47 - Fetch Value From Nested JSON Array Using JsonNode – Jackson – At() Method
REST Assured 48 - How To Pass Headers In Rest Assured Requests
REST Assured 49 - How To Retrieve Single And MultiValue Headers From Response Using Rest Assure
REST Assured 50 - How To Set Content-Type For Request In Rest Assured
REST Assured 51 - How To Retrieve And Assert Content-Type Of Response In Rest Assured
REST Assured 52 - ResponseSpecification – Specify How The Expected Response Must Look Like
REST Assured 53 - How To Create ResponseSpecification Using ResponseSpecBuilder
REST Assured 54 - What Is JSON Schema?
REST Assured 55 - JSON Schema Validation In Rest Assured
REST Assured 56 - JSON Schema Validation Without Rest Assured
REST Assured 57 - Editing Existing JSON Object On The Fly Using JsonNode – Jackson
REST Assured 58 - What Is JsonPath And How To Create It For Simple And Nested JSON Object?
REST Assured 59 - How To Create JsonPath For Simple And Nested JSON Array?
REST Assured 60 - Learn To Write JsonPath Expressions Or JsonPath Syntax
REST Assured 61 - Deserialize Using JsonPath
REST Assured 62 - How To Use Path Or URL Parameters In Rest Assured
REST Assured 63 - How To Create JSON With Date Fields Using POJO
REST Assured 64 - How To Pass Value From One API To Another API Using TestNG – ITestContext
REST Assured 65 - How To Parse A JSON Object Response To A Java Map In Rest Assured?
REST Assured 66 - How To Parse A JSON Array Response To A Java List In Rest Assured?
REST Assured 67 - How To Assert Full Response JSON Body In Rest Assured?
REST Assured 68 - Compare Two JSON Using Jackson – Java Library
REST Assured 69 - Introduction To JsonAssert Library
REST Assured 70 - Compare JSON Objects Using JSONassert Library
REST Assured 71 - Compare JSON Arrays Using JSONassert Library
REST Assured 72 - How To Compare Part Of JSON Objects And Arrays Using JSONassert Library
REST Assured 73 - How To Ignore Node/S For JSON Comparison In JSONassert
REST Assured 74 - Problem With JSONassert While Ignoring Fields From JSON Documents