Session 2: API Testing | RestAssured | Creating Post Request Payloads in Multiple Ways
ฝัง
- เผยแพร่เมื่อ 27 ก.ย. 2024
- #apitesting #restassured #sdet
Topics Covered:
How many ways we can create request body
1) using HashMap
2) using Org.json
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
@27:38 Add org.json dependency in pom.xml
@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
***
► 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
SQL,DB Testing&ETL,Bigdata
***
► bit.ly/3NKOcNY
► bit.ly/3OVpDyI
► bit.ly/3NEvUy0
► bit.ly/3IryxlT
► bit.ly/3RkWBLh
JavaScript Based Automation Tools
***
► bit.ly/3nUx51X
► bit.ly/3AqI6Q0
► bit.ly/3yeurbT
► bit.ly/3ujzpTK
Selector Hub Tools
***
► lnkd.in/gfqbR5TC
GraphQL
***
►
Cypress API Testing
***
►
Cypress Web Testing
***
► lnkd.in/gW8SgMna
Playwright with Javascipt
***
► lnkd.in/gQZwaaVD