- This repository contains the code that was demonstrated on the YouTube LIVE Session on API Testing using REST-Assured
- This repo contains example codes of API Tests using Rest-Assured
Hamcrest Matchersare used for assertions- Datafaker for test data generation
- Tests are written using the Restful Booker APIs
You will get the answers to the following questions and its respective working code example with rest-assured framework in this repository:
- How to write tests for
Getrequests? - How to write tests for
POSTrequests? - How to write tests for
PUTrequests? - How to write tests for
PATCHrequests? - How to write tests for
DELETErequests? - How to handle the
authenticationrequests? - How to use RequestSpecification in Rest-Assured?
- How to use ResponseSpecification in Rest-Assured?
- How to verify the Response Body?
- How to verify the Response Status Code?
- How to verify the Response headers using ResponseSpecification?
- How to perform assertions using
Hamcrest Matchers? - How to use JAVA RECORDS for passing values to POST, PUT and PATCH request body?
- How to use Datafaker for generating random fake test data and use it in automated tests?
- Performing End to End testing of the Restful-booker APIs
- Discuss your queries by writing to me @
mohammadfaisalkhatri@gmail.comOR ping me on any of the social media sites using the below link: