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

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ม.ค. 2023
  • #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
    ► 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

ความคิดเห็น • 46

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 ปีที่แล้ว +8

    @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

  • @Wisdomizer
    @Wisdomizer ปีที่แล้ว +5

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

  • @English_raj2020
    @English_raj2020 ปีที่แล้ว +2

    Thank you sir your teaching is very nice...

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      You are most welcome

  • @xXMrThomasXx
    @xXMrThomasXx หลายเดือนก่อน +1

    Great tutorial :) Thx for this lesson :)

    • @sdetpavan
      @sdetpavan  หลายเดือนก่อน

      My pleasure!

  • @rsrsn8810
    @rsrsn8810 ปีที่แล้ว +2

    Happy to watch from you 😘😘😘

  • @ChessKnightHunter
    @ChessKnightHunter 20 วันที่ผ่านมา

    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.

  • @sumitkumardash8657
    @sumitkumardash8657 ปีที่แล้ว +1

    Thank you sir 🙏🏻..

  • @onkarkounsalye9287
    @onkarkounsalye9287 ปีที่แล้ว

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

  • @srinivasle7674
    @srinivasle7674 ปีที่แล้ว +1

    useful sir

  • @venkysaikumar1752
    @venkysaikumar1752 ปีที่แล้ว

    hi sir, May i know graph ql is inluded in this? if not could you please do on that as well

  • @raviteja-qk3br
    @raviteja-qk3br 10 หลายเดือนก่อน +1

    Thank you

    • @sdetpavan
      @sdetpavan  10 หลายเดือนก่อน

      Welcome

  • @sujitblues
    @sujitblues ปีที่แล้ว +1

    Thank you so much sir

    • @sdetpavan
      @sdetpavan  ปีที่แล้ว

      Welcome

    • @gayatridas4962
      @gayatridas4962 ปีที่แล้ว

      Sir after API please 🙏 start dB testing..now a day's every company need

  • @Rvhouseofjewels7292
    @Rvhouseofjewels7292 ปีที่แล้ว

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

  • @Tayyglo
    @Tayyglo 8 หลายเดือนก่อน

    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.

  • @atulbhaigandhi6540
    @atulbhaigandhi6540 ปีที่แล้ว

    Hi sir do we have episode for tiny validator.?

  • @sahilraj2228
    @sahilraj2228 ปีที่แล้ว

    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

  • @dhananjaypoul3105
    @dhananjaypoul3105 6 หลายเดือนก่อน

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

  • @sonyjoseph1498
    @sonyjoseph1498 3 หลายเดือนก่อน

    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????

  • @rahulgoyal3287
    @rahulgoyal3287 ปีที่แล้ว

    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 🙏

  • @yaseensyed5593
    @yaseensyed5593 ปีที่แล้ว +2

    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.

  • @user-hs3zf7ep6s
    @user-hs3zf7ep6s 3 หลายเดือนก่อน

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

  • @swapnilpotdar9979
    @swapnilpotdar9979 ปีที่แล้ว

    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?

    • @ksdnsdkumar1375
      @ksdnsdkumar1375 ปีที่แล้ว

      basePath() is used to set the base path for a request or a group of requests. pathParam() is used to set the value of a path parameter in a request.

  • @aiyanik12
    @aiyanik12 ปีที่แล้ว +2

    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?

    • @Wisdomizer
      @Wisdomizer ปีที่แล้ว

      Did you also tried contacting Udemy customer support?

    • @sdetadda
      @sdetadda ปีที่แล้ว +2

      Selenium 4 and Test NG including Framework design : th-cam.com/play/PLxD77px6418VRTs383F_sjOy9PdkD-7Sb.html

  • @gopikrishnangovindaraj5345
    @gopikrishnangovindaraj5345 10 หลายเดือนก่อน

    Hi sir,
    Can you define the difference between cache and cookies?

    • @RajibLama
      @RajibLama 6 หลายเดือนก่อน

      Cache stores Javascript, CSS, HTML pages, media (images and videos), etc. Cookies store temporary data for tracking, such as browsing sessions, history of using websites and apps, etc. Caches are comparatively less memory efficient. They occupy a lot of space on any device.

  • @Leonardo-gd2iz
    @Leonardo-gd2iz 3 หลายเดือนก่อน

    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 )

  • @dhonimahesh1103
    @dhonimahesh1103 10 หลายเดือนก่อน

    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" ?

  • @SaiRam05032
    @SaiRam05032 ปีที่แล้ว +1

    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 .

    • @gaddipatiprabhakar2889
      @gaddipatiprabhakar2889 ปีที่แล้ว +2

      So many Advanced technologies are there in.... Please look into it, don't blindly go ... Testing, now a days testing jobs are less and more fake profiles there... Just request... Learn more advanced technologies... You have good carrier

    • @sangameshhamje8389
      @sangameshhamje8389 ปีที่แล้ว

      Go for the development side, there are a lot of technologies avaialble

    • @bbkrishnareddy8886
      @bbkrishnareddy8886 ปีที่แล้ว

      Hey I can say one thing for u now a days test Also required little bit coding don't really on manuval testing practice automation testing and one programing language ( basics) API Testing and some frame Works
      Work out those tecnologys and keep on applying in Naukri u may get call 😍 my dear friend

    • @agturk
      @agturk ปีที่แล้ว

      @@gaddipatiprabhakar2889 What kind of technologies do you recommend to learn? Thanks in advance

  • @uvcreatives5484
    @uvcreatives5484 ปีที่แล้ว

    Hi Sir