Building an API automation testing framework in Rest Assured from scratch | PUT PATCH DELETE

Building an API automation testing framework in Rest Assured from scratch | PUT PATCH DELETE

HomeSDET Adda For QA AutomationBuilding an API automation testing framework in Rest Assured from scratch | PUT PATCH DELETE
Building an API automation testing framework in Rest Assured from scratch | PUT PATCH DELETE
ChannelPublish DateThumbnail & View CountDownload Video
Channel Avatar SDET Adda For QA Automation2024-08-04 10:14:53 Thumbnail
721 Views
Building an #APIAutomation test #framework in #Restasured from scratch | #PUT #PATCH #DELETE

In this video, we explore REST Assured, a powerful tool for automating API testing in Java. We cover the basics, setup, and practical examples to get you started. This will help you answer REST Assured questions in interviews. We learn how to use TestNG-Assertion to validate different parts of the API response like the status code.

Today we dive into a hands-on guide to testing REST API PUT, patc, h and delete requests with Rest Assured.
In this channel I cover everything from setting up your environment to writing and running test cases with confidence.
So let's get started!/"

What is PUT, PATCH, Delete?
PUT, PATCH and DELETE are all HTTP methods that represent different actions when working with data:
PUT: Replaces an existing resource with an updated version. PUT is used to combine multiple identical requests
have the same effect as a single request.
PATCH/": Updates an existing resource, but does not require sending the entire text with the request.
Consecutive identical PATCH requests may have different effects.
DELETE: Removes data from a database. The server response to a DELETE request may vary depending on
Implementation of the server.

REST Assured is a powerful Java library that simplifies API testing, especially for RESTful WebServices/APIs. It provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful services. Testing and validating REST services in Java can be more difficult than in dynamic languages like Ruby and Groovy. REST Assured brings the simplicity of using these languages to the Java domain.

Now let’s look at the requirements for REST Assured:

#json-simple https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple/1.1.1
#MavenDependencies: Make sure you have configured the required dependencies in your Maven pom.xml file.
#RestPOSTrequest: https://reqres.in/api/users
#HTTP #Protocol: Understanding HTTP methods (GET, POST, PUT, DELETE) and status codes.
#HTTResponseCodes: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#successful_responses
#RESTAssured: The core library for API testing. https://mvnrepository.com/artifact/io.rest-assured/rest-assured/5.5.0
#TestNG: A testing framework for Java, although JUnit can also be used. https://mvnrepository.com/artifact/org.testng/testng/7.10.2
#Maven: A build automation tool for managing dependencies and running tests.
#Java #jdk17: Make sure you have the JDK installed.
#IDE: Like Eclipse or IntelliJ IDEA to write and run your tests.
#APIConcepts: Basic understanding of what an API is and how it works.
Once these prerequisites are met, you are ready to start testing APIs using REST Assured.

The playlists in this channel are:
************************************************************************************************************

Rest assured, Developing an API Automation Framework from Zero to Hero | 2024: https://www.youtube.com/playlist?list=PLxD77px6418VREqLaPIkeJbnOX2OhhFIN

Selenium Cucumber BDD Framework Development with Java and TestNG | Latest Features (2023-2024) Series

https://youtube.com/playlist?list=PLxD77px6418Xjdme8VHlxy15qc038DQmt&si=lJrd-siYZZGKp7sm

Playwright with Java Script [latest 2024] – End-to-End – By SDET Adda for QA Automation:
https://youtube.com/playlist?list=PLxD77px6418Xam0MXkYxT9fbfnZzT0zfQ&si=Fty5byUvjVI4GBrN

TestNG + Selenium 4 Tutorial -2024 updated
https://youtube.com/playlist?list=PLxD77px6418VRTs383F_sjOy9PdkD-7Sb&si=9MSHjj4xBUkcwBsz

Linux and Bash Scripting Tutorial [Updated 2024]

https://youtube.com/playlist?list=PLxD77px6418XEm23EQd_DGKxYy5x_Pw8T&si=mNaPmm01kfaD7ED_

VirtualBox and Virtual Machine Setup for Selenium Automation: https://youtube.com/playlist?list=PLxD77px6418VDuAeaSZ5ZnTruhwChuLWD&si=79ox57oUcRdnUTAU

Selenium Grid Tutorial for Beginners [2024 Latest] – End-to-End – By SDET Adda for QA Automation: https://youtube.com/playlist?list=PLxD77px6418W1TC7rGX3NSp_nNjwpMFjz&si=9fhj9zIjiEPnN2LT

Git and GitHub Tutorial for Beginners [Updated 2024]: https://youtube.com/playlist?list=PLxD77px6418XK_DwqhhynloXWGcfOAEwO&si=lSj-Zxoh2HeiyJqG

Apache Maven Tutorial for Beginners | SDET ADDA: https://youtube.com/playlist?list=PLxD77px6418VduwPHIvVNpoTymCG_B9sh&si=MONeNhixeC-kkGJy

Jenkins 2024 Tutorial for Beginners | DevOps CI/CD | SDET ADDA: https://youtube.com/playlist?list=PLxD77px6418WfJMMS3yNo09QzJoeCdQ6N&si=3MiOxC8MUUpL09UJ

Karate Framework Tutorial:
https://youtube.com/playlist?list=PLxD77px6418X0B2NLLKBFkWXE3bbzYmW-&si=1gtdrPH8gwASwtqi

Top 100 Java Programs for Programming/Coding and QA Interviews
https://youtube.com/playlist?list=PLxD77px6418VxsaDvJ6q8CmGtN3JUy-ub&si=OxdIHVeO2Jce3Lb1

Facebook group: https://www.facebook.com/share/F7DewpbiLw7SDWd5/?mibextid=A7sQZp
Telegram channels:
https://t.me/sdetadda
https://t.me/+71BQkERkJJJiM2Q1

Please take the opportunity to connect with your friends and family and share this video with them if you find it useful.