Part 1: Building API Automation Testing Framework in Rest Assured from from Scratch
ฝัง
- เผยแพร่เมื่อ 15 มี.ค. 2023
- #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
@28:55 Update pom.xml with required dependencies and update project
@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
@55:35 Create a method with single parameter (@1:01:15 Adding Public static to this method)
@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
► lnkd.in/gNqhEq9K
Selenium with Java+Cucumber
► lnkd.in/g5YcAQyR
Selenium with Python & PyTest
► lnkd.in/gvrpyYan
Selenium with python using Robot framework
► lnkd.in/gxsDf8zR
API Testing(Postman, RestAssured & SoapUI)
► lnkd.in/gHKQ2v2e
Web & API Automation using Cypress with Javascript
► lnkd.in/gcZz5Psx
Playwright with Javascript
► lnkd.in/g-ePPav6
Jmeter-Performance Testing
► lnkd.in/gA3eiZPY
SDET Essencials(Full Stack QA)
► lnkd.in/gmBc4-wD
Appium-Mobile Automation Testing
► lnkd.in/gi_UiRTA
Java Collections
► lnkd.in/gZftiiEn
Python Programming
► lnkd.in/ghP6WHQz
Cucumber BDD Framework
► bit.ly/3F7d69r
Protractor with Javascript
► lnkd.in/gZnJ2qsS
TH-cam Playlists:
Manual Testing & Agile
► bit.ly/3ujvaYa
► bit.ly/3OYzxQj
SQL
► bit.ly/3R6XjeG
► bit.ly/3nE0a1s
► bit.ly/3IeKuuJ
linux & Shell Scripting
► bit.ly/3up1Z6a
► bit.ly/3nzvGxx
Java
► bit.ly/3R9QfOs
► bit.ly/3AoRMKM
► bit.ly/3IbTTDn
► bit.ly/3ybXInv
► bit.ly/3yCoHdw
Selenium With Java+Cucumber
► bit.ly/3P2FMm4
► bit.ly/3yhiIt4
► bit.ly/3uokzet
► bit.ly/3a7XIND
► bit.ly/3umN2S9
► bit.ly/3aar7GW
► bit.ly/3y9kD2S
► bit.ly/3uhLskn
Python
► bit.ly/3agNgU0
► bit.ly/3NJNnoy
► bit.ly/2CTQ4mR
► bit.ly/3OIYWh1
Selenium With Python,Pytest&Behave
► bit.ly/3OHHoC9
► bit.ly/3IeNLdv
► bit.ly/2J4tPeT
► bit.ly/3ydSkAq
Selenium With Python Using Robert Framework
(Web&API Testing)
► bit.ly/3nUvlpr
► bit.ly/3nUvE3z
API Testing (Postman,SoapUi,&Rest Assured)
bit.ly/3OXacWY
bit.ly/3yh0UhE
bit.ly/3nC9DWQ
bit.ly/3yGfhNS
bit.ly/3OJa11H
bit.ly/3P2slCC
Mobile App Testing Appium
bit.ly/3Al49HG
Performance Testing Jmeter
bit.ly/3nz4fE7
Maven,Jenkins,Git,Github,CI/CD
bit.ly/3P16HPj
bit.ly/3yhlUVA
bit.ly/3afYfwT
bit.ly/3yGzweG
bit.ly/3yF73Ws
bit.ly/3NCOmH7
Playwright with Javascipt
lnkd.in/gQZwaaVD
You are the hidden mentor of my testing from 2019. No one knows how special you are sir. Thanks for the video.😊
My Pleasure
much awaited session... got some confidence now after seeing this video
Most Awaited Video. Thank you.
Most welcome
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.
Where can I find the dependencies document shared by you for pom.xml. Please help me with that. 🙏🙏
You can't get .. I have tried to find but didn't find anywhere...better to see the video and add dependecies in your POM.xml parallely.
I am waiting for this framework so long. Thank you so much sir
Welcome
Thank you much sir wonderful teacher stay lifelong happily & healthy you have wonderful knowledge way of expaination very clear .🎉
God for QA... Thank You So Much sir... Sharing Knowledge is a Great Service to Society
Thank you so much for your clear session the way of explanation is so clean and Easily understandable
Welcome
Pawan sir you are best in the world 🤝💐
Awesome tutorial. Thank you
You are welcome!
Sir Pavan, thank you very much for this topic! It is very useful!
Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏
Thank You so much Pavan for creating such a great content.
My pleasure
Great tutorial. Step by step. Thanks for that.
Glad it was helpful!
thank you so much sir for brief and clear quick session, helps for interview
Welcome
Honestly, your efforts are just priceless. This channel is like a ref to many testers around the globe including me.
greetings from Egypt
Thank you very much!
Great video ...waiting for long times
Thanks
finally waited so long for this
Most awaited video
Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏
Awesome tutorial
Thanks
Was waiting for this session..Thank you so much sir 😊
Always welcome
Thank you pavan sir, along with java api automation , please do some sessions on api automation with python.
Thanks for this! Really useful.
Welcome
Thank you so much for this, excellent explanation!
You're very welcome!
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.
Thanks a lot sir!!
Most welcome!
good session
Thanks
Thank you for creating this Video ! Can you please let me know from where I can access the POM.xml that you have used in the project?
Sir please attach notes in "Selenium with python(2022 new series)". Please sir it is much needed and most people has asked the same question. It will be very helpful for us. Thank you for all your efforts.🙏
Thank you so much sir
Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏
Thank you, is there a Git repo where you keep the resources mentioned in your video?
After a long ❤❤❤❤
Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏
Sir please do framework development and end to end project for Mobile Automation as well
Please do videos on api automation with python .. it will be more useful to us
Sir please plan to do series on api python automation as well we are waiting for longtime
Hi Pavan,
Could you please start automation sessions with respective API Python
That would be very helpful 😊
Thank you so much
Is that framework is sufficient to take automation qa job......?
Sir I am very much interested to learn Linux course from u...please let me know if u r planning to conduct any classes on Linux
Please sir make videos I already watched Linux for testers I understand completely that's y I am asking for full course
Can we run UI automation test using 6x/4x slowdown and check for the performance of test with low end config?
Urgent & Impt: Please share dependencies.
@04.38 ,We need only swagger ,? Cant we use postman ?
Could you please enlighten regarding API automation testing templates?
Hi Sir,
Thanks for sharing this detailed video.
I had one query, I was just replicating the same things whichyou taught in this lecture but facin issue while creatingData method in USerTest.java.
while setting up the data usinf Faker its throwing error as:
user.setId(faker.idNumber().hashCode());
errror: the method setId is undefined for the PojoUser.java class.
Can you please help why is it happening?
Sir..do we need to set query parameters in user class?
Hello sir how you are assigning user as Datatype for payload?
sir, can you please provide tosca automation classes
Thank you so much for providing detailed information. I am trying to implement part 1, but it is not taking any dependencies. Can you please do let me know how to prepare environment setup.
I am using IntelliJ IDEA CE tool.
I bought the course on Udemy.
I guess you have to click on Load Maven Changes, that work for me@@parulgarg8592
Hello sir, where is the dependencies doc which you will provide?
Where can I find the dependencies document shared by sir for pom.xml. Please help me with that. 🙏🙏
I am also looking for POM.xml file, could you please share if you got by chance !!
Hello sir,
Can you please share the dependencies document. I'm not able to find it out.
Thanks.
Hi sir, ..Is this available in your udemy api testing course
Being in a IT company,if i want to submit API testing certification which one i can go for? Any suggestions please?
Great video. I've learned a lot from it
However the dependencies for the pom.xml file is not attached to this video.
yes I am looking for the same
Pls help me someone... I'm using eclipse latest version and java 17 ... I'm not able to get the response....their is no mistake in code I'm following as it is pavan sir... So kindly suggest me the supported software versions
Sir pls reply me. I hv a career gap of yr. Im completed my B. E in ECE. After that i worked as a guest lecturer in polytechnic because of my family prblm i couldn't go out of home. Now i want to start my career in IT. What to do sir. Pls reply for me. Thank u sir
Sir may I use some other code editor like vscode to setup? .
I think it's your choice, I use both, most Vscode, but if I can't do something in Vscode switch to eclipse and do that, then, switch again.
from where can i get the xml file.I need to add dependencies
Everything is perfect sir but this is not the main concern..The main concern these days is Not getting interview calls please let us know what to do for this concern?
Hi sir please make framework development videos using RestAssured +Cucumber BDD from Scratch
Hi Sir, Where can I find the dependencies document shared by you for pom.xml. Please someone help me with that. 🙏🙏
+1
sir i need to know how to build pipeline for this using rest assured framework for api automation
Can you please share po.xml?I am facing some issues while adding depedencies
Hi sir, could you please share dependency document
how to pass nested json objects with this
method?
Plesae ,I want to ask for API test case template. Thank you!
Graphql automation framework please 🙏
Maven dependencies folder not showing
Hi sir can please provide pom.xml file of above framework please
can you please share the docs of this framework?
Where can I find the code ?
Sir can you send us dependencies and this project
need the links of All Required repository please
sir how to download notes
GET API is not working for User Module…please provide solution
Hi Sir,
Can you please share POM.xml file which includes the dependencies
4.0.0
PetStoreAutomation
PetStoreAutomation
0.0.1-SNAPSHOT
io.rest-assured
rest-assured
5.1.1
test
io.rest-assured
json-path
5.1.1
test
org.json
json
20220320
org.testng
testng
7.7.1
test
com.github.scribejava
scribejava-apis
8.3.1
test
io.rest-assured
json-schema-validator
5.1.1
test
com.github.javafaker
javafaker
1.0.2
com.aventstack
extentreports
5.0.9
org.apache.poi
poi
5.2.2
org.apache.poi
poi-ooxml
5.2.2
Java script object notation
Sir please link for POM.xml
Plain old jav object
Hi pavan sir i recently got laidoff i have 1 year of experience and recession is running what should I do no project experience I'm poor people my father is a daily wage labour now I'm doing part time in supermarket in charge could you please give suggestion nd guide me what should I do now very critical situation happened please sir 🙏🙏
Please reply or respond
You Can learn automation testing and apply for automation testing role
@@TestAutomationByJohn okay bro how many topics are there in that how many tools are there at least how many i need to learn tell please because I don't know so
@@hackorg6828 there are morethan 100 topics i
if you combine java ,selenium.testng,apache poi,log4j.
I am not sure that guy who uses Windows Notepad is good source of technical information LOL
I am getting below error when i run the "userTests"
----------------------------------------------------------------------------------
404 Not Found
404 Not Found
nginx
FAILED: api.tests.userTests.testPostUser
Please suggest if you have any soln for same..thanks
same here
btw did you find the solution?
Hello sir,
Can you please share the dependencies document. I'm not able to find it out.
Thanks.
Hi sir, could you please share git hub link of this project