Рет қаралды 75,232
#apitesting #restassured #framework
@0:55 Continuing from part I
READING CREATED USER
@1:24 Create test method in "UserTests" class.
@2:37 Call a method from "UserEndPoints" class and pass other method in parameter in it using "This" keyword to use same username
@4:08 Store response in variable and log response in console
@4:38 Validate status code using assertions (correction @5:55)
@6:52 Execute the test
UPDATE USER
@9:15 Create test method.
@9:46 Copy the code from postUser test method into this method.
@10:35 Whichever the data to update we need to copy those Userpayload code.
@11:15 Rename the method to update the data and pass parameters in it using "This" keyword to use same username
@15:15 Log body in console
@15:54 Storing after update response in variable and validate status code using assertions (correction @19:16)
DELETE USER
@16:54 Create test method.
@17:35 Call a method from "UserEndPoints" class for same username using "This" keyword and store response in variable
@18:15 Validate status code using assertions
@23:14 Execute the test
DATA DRIVEN TEST
@24:32 Introduction
@26:19 Create a folder under same project and paste the excel sheet
@26:39 Opening excel sheet
@27:42 Update pom.xml with APACHE POI dependencies
@28:16 Paste the Excel utility file inside Utlities package
@35:25 Paste the Dataprovider file inside Utlities package
CREATE USER
@43:22 Create a class under "Test" package
@47:27 Create test method
@48:11 In test annotation, add priority, refer particular data provider and refer its class.
@50:45 Pass all variables related to user in parameters of test method
@53:36 Create object for POJO class
@54:09 Call all setter methods from POJO class and pass all variables related to user in parameters
@55:00 Call "Create user" method from "UserEndPoints" class, pass object for POJO class in parameter, store response in variable
and validate status code using assertion.
DELETE USER
@56:49 Create test method, in test annotation, add priority, refer particular data provider and refer its class.
@58:29 Pass username variable in parameter of test method
@58:51 Call "deleteuser" method from "UserEndPoints" class and pass username variable in parameter and store response in variable.
@59:24 Validate status code using assertions
@1:00:51 Execute the test
EXTENT REPORTS
@1:04:15 Update pom.xml with extent reports dependency
@1:04:29 Paste the extent reports utility file inside Utlities package
@1:11:52 Create testng.xml from Test package
@1:12:40 Disable data driven testcase in testng.xml
@1:13:20 Add extent reports tag inside testng.xml
@1:14:52 Execute testng.xml
@1:15:19 View reports
LOGGERS
@1:20:23 Add Apache log4j dependencies in pom.xml and update the project
@1:22:20 paste "log4j2.xml" in src/test/resources
@1:24:49 Create variable for logger class in test case class
@1:25:27 Initiate that variable in Beforeclass method for same class
@1:26:29 Adding logging messages in create user method and repeat for remaining methods.
@1:28:59 Execute the test
NOT WORKING WELL
@1:29:57 Change log levels in "log4j2.xml" for debug logs
@1:32:13 Call debug method in Beforeclass method
@1:32:32 Execute the test
Udemy Courses:
Manual Testing+Agile with Jira Tool
► shorturl.at/xNXZ4
Selenium with Java+Cucumber
► shorturl.at/aIKMW
Selenium with Python & PyTest
► shorturl.at/ELW09
Selenium with python using Robot framework
► shorturl.at/bcDPZ
API Testing(Postman, RestAssured & SoapUI)
► shorturl.at/uAWY7
Web & API Automation using Cypress with Javascript
► rb.gy/4uum2n
Playwright with Javascript
► rb.gy/4uum2n
Jmeter-Performance Testing
► rb.gy/ocj7r2
SDET Essencials(Full Stack QA)
► rb.gy/hlnf2v
Appium-Mobile Automation Testing
► rb.gy/wmzv64
Java Collections
► bit.ly/3S66ezE
Python Programming
► urlis.net/gdsfpb0s
Cucumber BDD Framework
► bit.ly/3F7d69r
Protractor with Javascript
► urlis.net/4uddm1qb
KZbin 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
GraphQL
► rb.gy/sj3gys