#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
##########################################
Playwright with TypeScript
https://www.udemy.com/course/learn-playwright-web-api-testing-with-typescript/
Playwright with JavaScript
https://www.udemy.com/course/learn-playwright-with-javascript
Generative AI for Software Testing
https://shorturl.at/Uk2eM
Manual Testing + Agile with Jira Tool
https://www.udemy.com/course/learn-manual-software-testing-with-live-project-jira-tool
Selenium with Java + Cucumber
https://www.udemy.com/course/learn-selenium-with-java-live-project
Selenium with Python & PyTest
https://www.udemy.com/course/learn-selenium-with-python-d/
Selenium with Python using Robot Framework
https://www.udemy.com/course/learn-selenium-with-python-using-robot-framework
API Testing (Postman, RestAssured & SoapUI)
https://www.udemy.com/course/learn-selenium-with-python-using-robot-framework/
Web & API Automation using Cypress with JavaScript
https://www.udemy.com/course/learn-cypress-with-typescript/
JMeter - Performance Testing
https://www.udemy.com/course/learn-jmeter-m/learn/
SDET Essentials (Full Stack QA)
https://www.udemy.com/course/learn-sdet-essentials/
Appium - Mobile Automation Testing
https://www.udemy.com/course/learn-appium-latest-1110-mobile-automation-testing/
Java Collections
https://www.udemy.com/course/learn-java-collections/
Cucumber BDD Framework
https://www.udemy.com/course/learn-cucumber-bdd-framework
Protractor with JavaScript
https://www.udemy.com/course/learn-protractorangular-testing-with-javascript/