Rest Assured Tutorial for REST API Automation Testing
This is a series of Rest Assured Tutorial which is one of the most used library for REST API Automation Testing. Rest-Assured is a Java-based library that is used to test RESTful Web Services. This library behaves like a headless Client to access REST web services. We can create highly customize-able HTTP Requests to send to the Restful server. This enables us to test a wide variety of Request combinations and in turn test different combinations of core business logic.
Rest-Assured library also provides the ability to validate the HTTP Responses received from the server. For e.g. we can verify the Status code, Status message, Headers and even the Body of the response. This makes Rest-Assured a very flexible library that can be used for testing.
This is a complete series of Rest Assured Tutorial for REST API Automation Testing where the following topics will be covered:
Client Server Basics
RESTful Basics
REST API Testing – Basics
- Configure Eclipse with Rest-Assured
- REST API Test using Rest Assured
- Validate Response Status using Rest Assured
- Validate Response Header using Rest Assured
- Read JSON Response Body using Rest Assured
REST API Testing – Advance
- POST Request using Rest Assured
- Serialization and Deserialization in Java
- Deserialize Json Response
- Authentication and Authorization in REST WebServices
- PUT Request using Rest Assured
- DELETE Request using Rest Assured
JSON Manipulations
- What is JSON?
- JSONPath and Query JSON using JSONPath
- Expressions in JSONPath
- Deserialize JSON Array to List
- Deserialize JSON Response to an Array
RESTAPI Testing Framework
- What is API Documentation?
- REST API Automation Framework
- REST API Test in Cucumber
- Convert JSON Request Body to POJO
- Convert JSON Response Body to POJO
- Separation of Test Layer with API Services
- Implementation of REST Routes
- Implementation of Generics in API Framework
- Refactoring for Request Headers
- Share Test Context
- Share Scenario Context
- Implement Configuration Reader