Session 3: API Testing | RestAssured | Cookies & Headers | Query & Path Parameters | Logging

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

Topics Covered:
1) Cookies and Headers validation
2) Query & Path parameters
3) Logging

@0:20 What is Path & Query parameters?
@3:25 Create a package and class in Eclipse
@3:54 create a test method and import static packages
@5:35 Declaring path parameter in Given()
@6:45 Declaring query parameter in Given()
@8:03 Declaring URL in GET request in When()
@8:22 Calling path parameter
@10:26 Validate status code in Then() and log response
@10:53 Why aren’t query parameters considered variables?
@13:48 Execute the test
@17:34 What are Cookies & Headers?
@18:06 Create class
@20:24 Create a test method and import static packages
@21:26 Declaring URL in GET request in When()
@21:58 Log response in Then()
@22:07 Execute the test
@23:36 Validate cookie in Then()
@25:14 Execute the test
@26:45 Create a another test method in same class and add priority
@27:35 Storing response into variable
@28:53 Print single cookie info based on particular key from that variable
@33:36 Print only cookie names from the variable Using Map class
@36:24 Execute the test
@38:16 Using for loop to print all cookies info into key-value pair
@40:08 Execute the test
@42:19 Create class, test method and import static packages
@43:21 Gather Header details for URL in POSTMAN using GET request
@44:46 Validate Key and its value from Header response in Then()
@46:42 Using `and()` to chain multiple validations together. (Optional Step)
@47:34 Execute the test
@48:30 Create a test method in same class and add priority
@48:59 Store Header response into variable
@49:44 Print single Header info based on particular key from that variable
@52:56 Using for loop to print all Headers info into key-value pair
@57:09 Execute the test
@58:14 Log only Headers info in Then()
@59:07 What is log() method?
@59:26 Create class, test method and import static packages
@1:00:48, @01:04:00 Print all parts of the request or response, including the headers, cookies, body, and status line in console window
@01:01:54 Print response body in console window
@01:02:40 Print only cookies in console window
@01:03:21 Print only Headers in console window

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
Рекомендации по теме
Комментарии
Автор

@0:20 What is Path & Query parameters?
@3:25 Create a package and class in Eclipse
@3:54 create a test method and import static packages

@5:35 Declaring path parameter in Given()
@6:45 Declaring query parameter in Given()
@8:03 Declaring URL in GET request in When()
@8:22 Calling path parameter
@10:26 Validate status code in Then() and log response
@10:53 Why aren’t query parameters considered variables?
@13:48 Execute the test

@17:34 What are Cookies & Headers?
@18:06 Create class
@20:24 Create a test method and import static packages
@21:26 Declaring URL in GET request in When()
@21:58 Log response in Then()
@22:07 Execute the test
@23:36 Validate cookie in Then()
@25:14 Execute the test

@26:45 Create a another test method in same class and add priority
@27:35 Storing response into variable
@28:53 Print single cookie info based on particular key from that variable


@33:36 Print only cookie names from the variable Using Map class
@36:24 Execute the test

@38:16 Using for loop to print all cookies info into key-value pair
@40:08 Execute the test

@42:19 Create class, test method and import static packages
@43:21 Gather Header details for URL in POSTMAN using GET request
@44:46 Validate Key and its value from Header response in Then()
@46:42 Using `and()` to chain multiple validations together. (Optional Step)
@47:34 Execute the test

@48:30 Create a test method in same class and add priority
@48:59 Store Header response into variable
@49:44 Print single Header info based on particular key from that variable

@52:56 Using for loop to print all Headers info into key-value pair
@57:09 Execute the test
@58:14 Log only Headers info in Then()

@59:07 What is log() method?
@59:26 Create class, test method and import static packages
@1:00:48, @01:04:00 Print all parts of the request or response, including the headers, cookies, body, and status line in console window
@01:01:54 Print response body in console window
@01:02:40 Print only cookies in console window
@01:03:21 Print only Headers in console window

ksdnsdkumar
Автор

He has explained in the simplest way - Parameters.. Nice explanation sir...

Wisdomizer
Автор

Thank you sir your teaching is very nice...

English_raj
Автор

Great tutorial :) Thx for this lesson :)

xXMrThomasXx
Автор

Hello Pavan, Really enjoyed your classes and can say by far the best classes I have come across. Just wanted to say my explanation on the question about Query Parameter vs Path Parameter- Path Parameter is used to define the api endpoints and Query Parameters are defined for the dataset thats sitting on the end point. Like in above example, users is end point and then the page and id is from the data thats coming from that end point. Correct me if I am wrong.

ChessKnightHunter
Автор

After this series please upload totally series about Data analyst ...please sir

onkarkounsalye
Автор

I was able to print key value pairs without looping through each of the cookiesValues 40:30. Im not sure why MAP<> allows for dynamic printing but it does not share qualities with an array that requires looping to reach each individual index.

Tayyglo
Автор

Sir I have completed my graduation in 2020 i don't have any work experience i am interested in IT field particularly in testing domain is it possible to get a job as a fresher or not.please reply to this i also tried to register in the Pavan online classes website really you explained well sir .

SaiRam
Автор

Sir, there are 2 videos which are included in the playlist which are not related to Restassured in between the sessions 3 and 4. Please remove them.

yaseensyed
Автор

for(entry e : cookie_values.EntrySet())
System.out.println(e.key + " " + e.value)

jaideepbhatia
Автор

I am doing appium testing.
And i want to do api testing and selenium.
So i want to know if i setup new environment will it conflict my existing environment. if yes then is their any precautions i have to take. Is their any video you will make.
Because it's very painful if something happen to my existing environment 😅😅😅. Please guide me 🙏

rahulgoyal
Автор

Hi sir, watched your vedios related to selenium its very helpful for beginners. To learn the selenium completely I tried to enroll udemy course - selenium with java, cucumber + live project but getting error as that you have stopped taking payments. Can you please tell me when that course will be available for enrollment?

aiyanik
Автор

Hi sir,
I'm facing one challenge.
The challenge is " Copy the session ID value from cookies field in the the first user and paste the same session ID value in the second user and now send the request in postman expected response "401 unauthorized" how to automate this question on rest assured" ?

dhonimahesh
Автор

Sir is this also in BDD also?? Saw your another set of playlistf rest asssured with bdd style.. What is the difference between these two playlists????

sonyjoseph
Автор

Hello sir after completing this whole playlist can I add rest assured api automation in my resume????

dhananjaypoul
Автор

Hello sir,

what is the difference between basePath() and pathParam() ?


What is the difference between URI and Path parameter in URL? How to identify them?

swapnilpotdar
Автор

hi Sir, How to mask header information in API testing using Rest Assured?

hszfeps
Автор

Hello sir I have completed software testing manual course in your channel.but i don't know how to make a resume for freshers.plz guide some keywords

sahilraj
Автор

When i Hit my API in postman it retrieves me 3 cookies.
But when the same is executed through rest assured I don't see the cookies. Help me )

Leonardo-gdiz
Автор

Sir plz tell about regression suit in manual and automation....

Rvhouseofjewels