Skip to content

This repo contains example code that was demonstrated in the LIVE Session on API Testing using Rest-Assured

Notifications You must be signed in to change notification settings

mfaisalkhatri/api-testing-rest-assured

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Don't forget to give a ⭐ to make the project popular.

❓ What is this Repository about?

  • This repository contains the code that was demonstrated on the YouTube LIVE Session on API Testing using REST-Assured

💼 What does this repo contain?

  • This repo contains example codes of API Tests using Rest-Assured
  • Hamcrest Matchers are used for assertions
  • Datafaker for test data generation
  • Tests are written using the Restful Booker APIs

🛠️ Talking more about the Scenarios Covered in this project:

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 Get requests?
  • How to write tests for POST requests?
  • How to write tests for PUT requests?
  • How to write tests for PATCH requests?
  • How to write tests for DELETE requests?
  • How to handle the authentication requests?
  • 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

💻 Blog and Video Links

🎥 Tutorial Video

Watch the video Watch the video

❓ Need Assistance?

  • Discuss your queries by writing to me @ mohammadfaisalkhatri@gmail.com OR ping me on any of the social media sites using the below link:

💭 Checkout the blogs related to Testing written by me on the following links:

Subscribe to my YouTube Channel

About

This repo contains example code that was demonstrated in the LIVE Session on API Testing using Rest-Assured

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages