Code Monkey home page Code Monkey logo

rest-assured-examples's Introduction

Java CI with Maven Open Source Love License

Don't forget to give a โญ to make the project popular.

โ“ What is this Repository about?

This project is the outcome of my self-learning about the API Testing Automation framework - Rest-assured. I heard a lot about Rest-Assured and how it made the QA's life easier by helping them to run all the tedious API tests in an efficient way. Hence, I started learning about the framework and have documented all my learnings in this repository with all example code from writing basic tests to running end to end API automation tests.

๐Ÿ’ผ What does this repo contain?

  • This repo contains example codes of API Tests using Rest-Assured.
  • Hamcrest Matchers are used for assertions.
  • TestNG Listeners are used to capture the events in logs.
  • Log4j is used to capture logs.
  • Lombok is used to generate Getter and Setters automatically for post body requests.
  • FAKE Rest APIs on Reqres.in is used for testing.
  • End to End scenarios have been added for 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 write tests for SOAP API requests?
  • How to verify the Response Body?
  • How to verify the Response Status Code?
  • How to verify the Response headers?
  • How to extract value from Response Body?
  • How to perform assertions using Hamcrest Matchers?
  • How to create POJO for passing values to request body?
  • How to use Lombok to generate Getters and Setters?
  • How to use Lombok for writing the builder pattern code?
  • How to use Builder Pattern for test data generation using Data Faker?
  • How to write end-to-end api tests?
  • How to perform JSON Schema Validation?

โœ๏ธ Blog Links

๐ŸŽฅ Tutorial Video

Watch the video Watch the video

โ“ Need Assistance?

  • Discuss your queries by writing to me @ [email protected] OR ping me on any of the social media sites using the below link:

๐Ÿ’ป Paid Trainings

  • Contact me for Paid trainings related to Test Automation and Software Testing, mail me @ [email protected] or ping me on LinkedIn

๐Ÿ’ญ Checkout the blogs related to Testing written by me on the following links:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.