Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mfaisalkhatri/okhttprestassuredexamples

API Testing using Rest-Assured and OkHttp.
https://github.com/mfaisalkhatri/okhttprestassuredexamples

api-automation api-testing automation-test automation-testing hacktoberfest java learning okhttp rest-api-test rest-assured test-automation testing tutorial

Last synced: 11 days ago
JSON representation

API Testing using Rest-Assured and OkHttp.

Awesome Lists containing this project

README

        

![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=103)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Github Actions Workflow](https://github.com/mfaisalkhatri/OkHttpRestAssuredExamples/actions/workflows/maven.yml/badge.svg)](https://github.com/mfaisalkhatri/OkHttpRestAssuredExamples/actions/workflows/maven.yml)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=mfaisalkhatri_OkHttpRestAssuredExamples&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=mfaisalkhatri_OkHttpRestAssuredExamples)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=mfaisalkhatri_OkHttpRestAssuredExamples&metric=coverage)](https://sonarcloud.io/summary/new_code?id=mfaisalkhatri_OkHttpRestAssuredExamples)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=mfaisalkhatri_OkHttpRestAssuredExamples&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=mfaisalkhatri_OkHttpRestAssuredExamples)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=mfaisalkhatri_OkHttpRestAssuredExamples&metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=mfaisalkhatri_OkHttpRestAssuredExamples)

## Don't forget to give a :star: to make the project popular.

## :question: What is this Repository about?

This project is the outcome of my self-learning the API Testing Automation frameworks - Rest-assured and OkHttp.
I heard a lot about Rest-Assured and OkHttp 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 these frameworks and have documented all my learnings in this repository.

Checkout my blog [API Testing using RestAssured and OkHttp][blog] where I talk about these frameworks in details
and which one to choose for testing your APIs.

To get a better understanding on API Testing, check [What is API Testing?][blog_apitesting]

## Details about this Project:

- This repo contains example codes of API Tests using Rest-Assured and OkHttp.
- Hamcrest Matchers and TestNG asserts are used for assertions.
- TestNG Listeners are used to capture the events in log.
- Log4j is used to capture logs.
- Lombok has been used to generate Getter and Setters automatically for post body requests.
- Rest APIs on https://reqres.in/ have been used for testing.

## :question: Need Assistance?

- Discuss your queries by writing to me at [[email protected]][mail] or you can ping me on the following social media sites:
- Twitter: [mfaisal_khatri][twitter]
- LinkedIn: [Mohammad Faisal Khatri][linkedin]
- Contact me for 1:1 trainings related to Test Automation.

## :thought_balloon: Checkout the blogs related to Testing on my [website][]

[mail]: [email protected]
[linkedin]: https://www.linkedin.com/in/faisalkhatri/
[twitter]: https://twitter.com/mfaisal_khatri
[website]: https://mfaisalkhatri.github.io
[blog]: https://mfaisalkhatri.github.io/2020/05/29/restassuredokhttp/
[blog_apitesting]: https://mfaisalkhatri.github.io/2020/08/08/apitesting/