Session 2: API Testing | RestAssured | Creating Post Request Payloads in Multiple Ways

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

Topics Covered:
How many ways we can create request body
1) using HashMap
3) using POJO (Plain Old Java Object)
4) using external json file

@0:46 Ways to create request body
@3:20 Start local API
@5:24 Create package and class in Eclipse
@6:09 Increase font size in Eclipse
@7:20 Import static packages
@8:23 Creating a test
DECLARE REQUEST BODY USING HASHMAP
@9:13 Declaring input data in Hashmap
@12:11 Declaring input data in Array
@13:02 Combining Hashmap and Array
@14:14 Declaring input type and referring input data in Given()
@14:48 Create POST request with url in When()
@15:21 Validate status code and JSON response in Then()
@17:37 Validate array in JSON response in Then() (correction @21:10)
@19:18 Validate header in JSON response in Then()
@20:29 Print JSON response in console
@22:43 Create a method
@23:34 Create DELETE request for specific ID (here student)
@24:49 Validate status code in Then()
@25:40 Execute the test case according to priority
DECLARE REQUEST BODY USING ORG.JSON
@28:35 Declaring input data in JSONObject class
@36:50 Converting input data in JSONObject into String format in Given()
@37:47 Execute the test case according to priority
DECLARE REQUEST BODY USING POJO (PLAIN OLD JAVA OBJECT)
@40:00 Create a another class for getter and setter methods
@42:48 In actual class, call setter methods from another class to declare input data
@44:40 Using setter methods from another class, declaring input data in Array
@46:23 Referring input data in Given()
@47:05 Execute the test case according to priority
DECLARE REQUEST BODY USING EXTERNAL JSON FILE
@48:21 Create a JSON file under project to store input data
@50:18 Referring the JSON file into actual class as input data and declare it as JSONObject
@56:00 Converting input data in JSONObject into String format in Given()
@56:57 Execute the test case according to priority
@57:29 Final note

########################
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
***

SQL,DB Testing&ETL,Bigdata
***

JavaScript Based Automation Tools
***

Selector Hub Tools
***

GraphQL
***

Cypress API Testing
***

Cypress Web Testing
***

Playwright with Javascipt
***
Рекомендации по теме
Комментарии
Автор

sir, you are best teacher.Thanks a lot for giving so much knowledge on you tube for free.This is worth gold.

pepsi
Автор

I cannt explain how much thankful I am. This course is curated so nicely. I am going one by one from your playlist along with parallel practice. Thank you sir

riteshmansukhani
Автор

Excellent teaching. Very useful videos for the entire testers community.

ndcxsye
Автор

By far the best explanation on handling JSON payloads for POST requests. Thanks a lot for the effort.

iteeyadav
Автор

Sir, wish you all the best! Please keep up!!! We are benefiting from your beautiful tutorials immensely.

aminjonhasanov
Автор

sir thanks for describing and sharing your valuable knowledge through this step-by-step process-oriented videos. Really appreciate your effort

tulidutta
Автор

I am from Vietnam, and thank you so much from bottom of my heart, sir!

cannot
Автор

Thank you so much for your service to the nation building..

ankushnagpure
Автор

body.json could be rightly kept under resources folder which was told to delete in Session 1.

kshipra
Автор

Best in the industry, thank you for all of your videos

it.garage
Автор

Most clear explanation. Hat off for effort to create this.

kumarraj
Автор

Greater clarity of thoughts, well explained Pavan. Easy to understand, replicate and practice. Thankyou

TheComradez
Автор

Thanks alot sir, indetailed explanation and easy to understand

prasadchavakula
Автор

I just discovered this channel and I loved it, I will do all the courses

tomidor
Автор

Thx for session 2. It was very helpful :)

xXMrThomasXx
Автор

😊Thanks a lot for Taking the Session Pavan Sir, Thank you so much.😍Waiting for the Next session✌✌

andyselvam
Автор

Thank you so much! I was struggling to get the correct method to create body for POST

Annapoorna-ck
Автор

Thank you :) Appreciate all the efforts you are putting in. I am a great admirer of you. :)

garima
Автор

Excellent teaching. Very useful videos for the entire testers community. and i want documents for Practice pls send upload that documents also

maheshbaburampatruni
Автор

My json file does not create the id in order. It creates the id with letters and number . why?

sbsafi