Part 1: Building API Automation Testing Framework in Rest Assured from from Scratch

preview_player
Показать описание
#apitesting #restassured #framework

@8:47 Petstore API
@12:10 Choosing one model from Petstore API
@12:37 Preparing test cases in Excel sheet
@16:02 Workflow for REST Assured automation
@24:47 Create Maven project in Eclipse
@35:36 Create packages for endpoints, payload, tests and utilities
@37:47 Delete src/main/java & src/main/resources from project
@39:56 Create a class name "Routes" in endpoints package
@40:22 Gather all required URLS from Petstore API
@42:50 Store base url in variable
@44:53 Store POST url in variable and refer base url variable
@46:07 Follow same method for Get URL, Update URL & Delete URL but with path parameter
CREATE USER
@52:28 Create a class name "UserEndPoints" in same package
@57:48 Declare input type in Given()
@58:25 Gather Header details from Petstore API
@59:11 Declaring Accept header field in Given() & refer parameter in body()
@1:00:22 Refer post URL variable from "Routes" class in POST request in When()
@1:00:56 Storing response in variable and return response
READ USER
@1:03:12 Copy the method #1 and paste in same class and change name of the method
@1:03:40 Pass parameter for the method.
@1:04:08 Remove all declarations in Given(), declare path parameter and pass path parameter value in it.
@1:04:57 Refer get URL variable from "Routes" class in GET request in When()
UPDATE USER
@1:06:37 Copy the method #1 and paste in same class and change name of the method
@1:07:17 Pass two parameters in the method: Username & Payload
@1:08:00 Add path parameter for "Username" in Given()
@1:08:28 Refer update URL variable from "Routes" class in PUT request in When()
DELETE USER
@1:09:24 Copy read user method, paste in same and change name of the method
@1:09:56 Refer delete URL variable from "Routes" class in DELETE request in When()
POJO CLASS
@1:11:06 Create a class name "User" under payload package
@1:12:30 Gather variables from response details in Petstore API
@1:12:54 Create those variables in the class
@1:13:28 Create Getter and Setter methods for this variables
@1:14:45 Import Pojo class package in "UserEndPoints" class
TEST CASE
@1:16:35 Create a class under "Test" package
@1:17:25 Create Beforeclass method in the class
@1:18:13 Create multiple data using Faker class and pass data to the pojo class
@1:21:55 Create test method
@1:22:55 Call "Create user" method from "UserEndPoints" class and store response in variable
@1:23:51 Log response in console
@1:24:20 Validate status code using assertions

Udemy Courses:
Manual Testing+Agile with Jira Tool
Selenium with Java+Cucumber
Selenium with Python & PyTest
Selenium with python using Robot framework
API Testing(Postman, RestAssured & SoapUI)
Web & API Automation using Cypress with Javascript
Playwright with Javascript
Jmeter-Performance Testing
SDET Essencials(Full Stack QA)
Appium-Mobile Automation Testing
Java Collections
Python Programming
Cucumber BDD Framework
Protractor with Javascript

Youtube Playlists:
Manual Testing & Agile
SQL
linux & Shell Scripting
Java
Selenium With Java+Cucumber
Python
Selenium With Python,Pytest&Behave
Selenium With Python Using Robert Framework
(Web&API Testing)
API Testing (Postman,SoapUi,&Rest Assured)
Mobile App Testing Appium
Performance Testing Jmeter
Maven,Jenkins,Git,Github,CI/CD
Playwright with Javascipt
Рекомендации по теме
Комментарии
Автор

You are the hidden mentor of my testing from 2019. No one knows how special you are sir. Thanks for the video.😊

Dance_With_Rishabh.n.Harshita
Автор

Bcg of you sir 3 years I am working with 3 companies having manual to automation using Selenium and rest assured. All credit goes to you sir .❤

sunilpanda
Автор

God for QA... Thank You So Much sir... Sharing Knowledge is a Great Service to Society

Mr_TravelEatWorship_Official
Автор

Thank you for the video, mate. Im from Ukraine and I appreciate your work here!

jeymeaten
Автор

Thank you so much Pavan Sir, your videos are very helpful before interview. 2018 when I went to one of the institute in Canada for some courses, I got to know about you. From then every interview I will prepare watching your video's. After completing this video I am very confident.

rainbowrocks
Автор

Thank you so much sir for this session, much appreciated from United Kingdom . :)

bulletproofguy
Автор

much awaited session... got some confidence now after seeing this video

babyravella
Автор

Honestly, your efforts are just priceless. This channel is like a ref to many testers around the globe including me.
greetings from Egypt <3

hossamahmed
Автор

Thank you so much sir!! This series was much needed. This will clear all doubts, will built in confidence to create framework from scratch and also will be helpful in clearing interviews.

sakshiaggarwal
Автор

I am waiting for this framework so long. Thank you so much sir

Jeyashreesanthosh
Автор

Thank you so much for your clear session the way of explanation is so clean and Easily understandable

devimedisetti
Автор

Thank You so much Pavan for creating such a great content.

dhruba
Автор

Thank you much sir wonderful teacher stay lifelong happily & healthy you have wonderful knowledge way of expaination very clear .🎉

divyadivya-kxrg
Автор

Pawan sir you are best in the world 🤝💐

surajkamble
Автор

thank you so much sir for brief and clear quick session, helps for interview

yuvasrivanth
Автор

Great tutorial. Step by step. Thanks for that.

xXMrThomasXx
Автор

Thank you Sir for the amazing video, really helped me a lot in learning the api framework, Can i please ask where can i get the design slide and the list of maven dependencies please.

rahul
Автор

Sir Pavan, thank you very much for this topic! It is very useful!

calintamas
Автор

Hi Sir, Thank you for your informative session but could you please help me with one small doubt .In the user tests you written set ID and automatically called the other methods from userpayload.Could you please specify the shortcut or how can we get the remaining methods without manually calling them individually.

RAGHU
Автор

Hello Sir, Please also add how we can manage test data from different environments in framework.Also how we can manage test data for different markets in framework.

joshmajohn