Session 4: API Testing | Postman | API Response Validations | Different types of Assertions

Поділитися
Вставка
  • Опубліковано 24 лис 2024

КОМЕНТАРІ • 380

  • @motivationRoll
    @motivationRoll Рік тому +76

    I am from Kazakhstan. Kazakhs are love Indian chai(tea). Nowadays I work in USA. learning API and drinking chai(tea) . Thanks for teaching us! Big respect.

  • @krushnasohaniiiiii
    @krushnasohaniiiiii 2 роки тому +36

    Hello sir I have really enjoyed ur teaching style.i have never seen such a best teacher.i have completed my full course with your videos.i am praying to God for giving us such wonderful teacher.

    • @sdetpavan
      @sdetpavan  2 роки тому +1

      My pleasure

    • @dhananjay9538
      @dhananjay9538 9 місяців тому +2

      Unable to find the documents, Might be removed. Can you reshare atleast single link for all documents

  • @sudeeppandey5826
    @sudeeppandey5826 Рік тому +10

    You are an amazing teacher. I have similar course that I paid and downloaded from Udemy but nothing compares to this course. I have stopped watching it after I found this one. I cant thank you enough for the time that you have put into this course to teach knowledge seekers like me. God Bless you Sir!!.

  • @ksdnsdkumar1375
    @ksdnsdkumar1375 Рік тому +18

    @5:58 Assertion library
    @9:16 Testing status codes
    @11:37 assertion Syntax for single status
    @13:07 assertion Syntax for multiple status
    @15:33 assertion Syntax for status code text
    @17:12 Using assertions in POSTMAN for status code
    @18:27 Using multiple assertions in POSTMAN for status code
    @19:28 Seeing test results in POSTMAN
    @26:33 Using assertions in POSTMAN for header and its value
    @26:46 Seeing test results in POSTMAN
    @30:58 Using assertions in POSTMAN for cookies
    @31:20 Seeing test results in POSTMAN
    @32:08 Using assertions in POSTMAN for response time
    @34:24 Seeing test results in POSTMAN
    @38:51 assertion Syntax for type of data
    @44:07 Verifying value type in POSTMAN for type of data & seeing test results
    @47:59 assertion Syntax for validating JSON array contents
    @50:21 Verifying value type in POSTMAN for JSON array contents & seeing test results
    @52:13 assertion Syntax for validating JSON fields
    @55:45 Verifying JSON array contents in POSTMAN & seeing test results
    @01:01:17 JSON Schema
    @01:03:23 Generating JSON Schema
    @01:07:14 assertion Syntax for validating JSON Schema
    @01:09:14 Verifying JSON schema in POSTMAN & seeing test results
    @01:15:03 Run as collections

  • @soniabajaj9615
    @soniabajaj9615 2 роки тому +18

    You are the most amazing faculty one can have ❤ undoubtedly you must be receiving alot of blessings and especially from those who can't afford but really want to learn. You are blessing for all !! Cant thank enough for your efforts and knowledge you are sharing.

  • @robertjames2247
    @robertjames2247 2 роки тому +6

    I never knew APIs but after watching this series, I have learned so much I can now start doing tests for APIs

  • @srinivasmotapuram4297
    @srinivasmotapuram4297 2 роки тому +1

    The flow from start to end describes how much you are expert on Testing

  • @diandiallo7209
    @diandiallo7209 Рік тому +3

    So far you are the best teacher for all different technology on You Tube that I found. Thank you so much for what you do.

  • @anilthakur5106
    @anilthakur5106 Місяць тому +1

    i have no word to express you thanks. You are my everything in my professional life. Till now i am learning everything from you for testing. Lots of thanks from Nepal❤

  • @joanalay349
    @joanalay349 2 місяці тому +1

    voy recien 3 videos y es el mejor curso que pude haber visto de postman. La verdad te felicito por hacerlo tan completo y con tanta dedicación. Es una pena que no hayan así en español.

  • @krishnanaik5018
    @krishnanaik5018 10 місяців тому

    I don't exact about the testing and postman after watching your videos, now am sure don't want another Channel for same course. This is enough for everything , Thank you so much , uploaded great videos ❤

  • @JalalKhan-q1j
    @JalalKhan-q1j 11 місяців тому

    I wanted to take a moment to express my heartfelt gratitude for the incredible tutorial you provided on API testing. Your clear explanations and detailed examples have helped me gain a deeper understanding of this important aspect of software testing.
    I truly appreciate the effort you put into creating such informative and engaging content. Your teaching style is exceptional, making complex concepts easy to comprehend. The way you broke down the client-server architecture and explained the role of APIs as mediators between front-end and back-end applications was particularly enlightening.
    Thanks to your tutorial, I have learned so much and feel more confident in my ability to perform API testing. Your dedication to sharing knowledge and helping others is truly inspiring.
    Best regards,
    jalal Khan

  • @ifyeze2758
    @ifyeze2758 Рік тому +4

    All your lectures are highly informative. Great job.

  • @dulanjalijayasekara2656
    @dulanjalijayasekara2656 Рік тому +1

    Thank you sir, I watched several videos about Postman, but this one is the best. Clear and very informative.

  • @rinal4531
    @rinal4531 Рік тому +2

    You're a saviour honestly. Thankyou so much for explaining everything so clearly😇

  • @sdetbyraviteja568
    @sdetbyraviteja568 Рік тому +1

    Hi sir currently I am working candidate in it this video's are very helpful to me. I pray to god to give much more healthy life for long time. thank you so much for giving this wonderful teaching stuff.

  • @MsCutegirl000
    @MsCutegirl000 8 місяців тому +1

    sir your videos are so detailed and you make things so simple to understand. thank you so much for all the efforts you put in. God bless you.

    • @sdetpavan
      @sdetpavan  8 місяців тому

      You are most welcome

  • @AdarshPatro-s6f
    @AdarshPatro-s6f Рік тому +3

    Thank you sir from bottom of my heart you and your videos help me to get job on testing 😢
    Every points and details are so precise thank you sir ❤❤❤❤

  • @dibassahoo928
    @dibassahoo928 Рік тому +4

    👍 thank you again to teach us validation section in very easy way..we ll oblised to you always.🙏

  • @naveengottapu4123
    @naveengottapu4123 Рік тому +2

    you teaching skills are exlent sir....the way of explanation is very good..

  • @jakkulajagan7671
    @jakkulajagan7671 Рік тому +1

    Thank you so much sir, for teaching valuable topics to every test engineer in the world

  • @Rana-Farhan
    @Rana-Farhan Рік тому +1

    One of the best tutorial available so far.

  • @Dz-sab
    @Dz-sab 9 місяців тому

    vous expliquez tellement bien , merci pour vos videos

  • @赌骰子
    @赌骰子 Рік тому

    一天听一节课,每天感激您一些😀

  • @Imana23
    @Imana23 Рік тому +1

    I learned so much. Thank you from Russia!

  • @AdarshPatro-s6f
    @AdarshPatro-s6f Рік тому +1

    Thank you sir from bottom of my heart you and your videos help me to get job on testing 😢
    Every points and details are so precise thank you sir

  • @bhushanprakash8584
    @bhushanprakash8584 Рік тому +6

    where do i find the document shown in this video, checked on site didnt find it

  • @Testing_QualityAnalyst_Channel

    Hats off Sir! You have Simple and Great teaching method .

  • @imanekhatim9543
    @imanekhatim9543 2 місяці тому

    Thank you so much for the lessons; they are incredibly detailed and engaging. I really appreciate how clearly you explain each concept, making everything easier to understand. I do have one small question though: could you kindly point me to where I can find the relevant documentation? That would be very helpful.

  • @vaishnavikhardekar4816
    @vaishnavikhardekar4816 2 роки тому +2

    Thank you so much sir... I was learning by my own.. But you cleard my concepts... 😊

  • @itsme-vc8fs
    @itsme-vc8fs Рік тому +1

    Sir, lots and lots and lots of thanks to you sir, what a wonderful explanation. Love u sir.

  • @andiselvam8407
    @andiselvam8407 2 роки тому +2

    💖😍Thankyou so much for teaching❤i love your way of teaching and your step by step explanation everything is Excellent sir😍😍💖

  • @mithunsharma6939
    @mithunsharma6939 Рік тому +1

    Great Teaching. Really Unforgettable. Thanks a lot.

  • @Moviesmatter92
    @Moviesmatter92 Рік тому +1

    Thanku so much sir for providing commendable lectures ..easy to understand 🙏🙏

  • @saivyshnavi5853
    @saivyshnavi5853 8 місяців тому +1

    Hi sir your teaching is marvelous. Explained every topic very clearly. Can you tell us how to get the pdf it will be more helpful. Thank you🥰🙂

  • @mohammedimdaad270
    @mohammedimdaad270 Рік тому +1

    Hands off sir 🙌
    I haven't seen this kind of teaching in my career so far. Thanks a lot for the free knowledge-sharing ❤
    Sir, can you please provide us material or documents PDFs it helps a lot in practicing
    Share us drive link or telegram in any of your convenient ways

  • @vishwanathyamakanamardi8630
    @vishwanathyamakanamardi8630 Рік тому +1

    Thank you so much sir It's Amazing teaching Style ❤🙏🏽💐💐

  • @Rajeshn-n7h
    @Rajeshn-n7h 9 місяців тому +2

    Big Salute to you sir 🙏

  • @SB-ft3yg
    @SB-ft3yg Рік тому +1

    Really very useful tutorials and explained neatly.

  • @amember1014
    @amember1014 Рік тому +1

    Thank you Sir, God bless you and your family!!!

  • @jeevanani8537
    @jeevanani8537 Рік тому +1

    Hi sir. Your explanation is very easy to understand.

  • @flirtuall78
    @flirtuall78 6 місяців тому +1

    Thanks so much for another amazing session.

  • @高鹏华
    @高鹏华 Рік тому +1

    Your class is great!thank you sir!

  • @ayushsharma6747
    @ayushsharma6747 10 місяців тому

    Very grateful to have Teacher like you have, I get so much knowledge from your videos. just asked one thing from where i can get those JSON File and dummy API drive folder because in description i'm not able to find and in previous videos also not able to found, please guide me on this sir

  • @RehabMostafa-ph5tn
    @RehabMostafa-ph5tn Рік тому +2

    Firstly I'm so grateful to you.... Secondly, How can I get the materials which you are explaining from it?

  • @rushikeshingle3654
    @rushikeshingle3654 8 місяців тому

    00:00 Validating API responses using assertions
    03:23 Postman Library provides functions for API response validations
    09:31 Using Postman for API testing and writing validation functions
    12:31 API response validations using different types of assertions in Postman
    18:25 API Testing in Postman - Validating API Response
    21:19 Headers in API Testing
    26:45 Validating headers and cookies in API testing with Postman
    29:35 Verification of cookie presence and value
    35:37 Validate the response body by asserting value types
    38:47 Capturing the response and performing validations on data types
    44:39 Validate the type of data received in the API response
    47:52 Validating if an array contains specific values
    53:57 Validating data in the response using postman
    57:26 Json path is important for verifying data fields
    1:03:17 Generating Json Schema using online tools
    1:06:39 API responses can be verified against a JSON schema
    1:12:52 Json schema validation and Json path are important for validating API responses
    1:15:52 Validations in API testing
    Crafted by Merlin AI.

  • @muhammedshafik317
    @muhammedshafik317 11 місяців тому +1

    Learned some thing new . Thanks Sir

    • @sdetpavan
      @sdetpavan  11 місяців тому

      Glad to hear that

  • @SineQuaNon1
    @SineQuaNon1 11 місяців тому +1

    Can JSON Schema validation be explained better? A big no! Thanks for this clear explanation.

  • @SanjayYadav-ci9uv
    @SanjayYadav-ci9uv 24 дні тому

    🎯 Key points for quick navigation:
    01:13:46 *Validate HTTP requests*
    01:14:12 *Enhanced GET validations*
    01:14:41 *Status code checks*
    01:15:09 *Run entire collection*
    Made with HARPA AI

  • @v.jashvanth8732
    @v.jashvanth8732 4 місяці тому +1

    good explanation sir it is very helpful for me

  • @RastsisaluRudziankou
    @RastsisaluRudziankou 11 місяців тому

    I'm so glad I found your UA-cam channel. You are amazing teacher. Thank you very much for your work🙂

    • @sdetpavan
      @sdetpavan  10 місяців тому +2

      You're very welcome!

  • @reaperxvi967
    @reaperxvi967 4 місяці тому +1

    Hate to say in this way, but most of these things will be covered during unit testing...If you guys are going to do full QA testing then mostly you will be doing manual testing because normally QA testing will not consider the verification of status code or header, you need to go fetch some data from some shitty database and manual check it against the API response...So buckle up, if you are in API testing then you need to test mostly manually, hardly there is any automation.

  • @rahulghuge9547
    @rahulghuge9547 Рік тому +1

    thank you sir for such amazing lecture on postman , may lord bless you with abundance of health and wealth
    sir one question why i didn't get ant cookies in my postman tool for testing them, please tell us as some of the students are not getting cookies.
    Thank you Sir☺🙏

  • @chiranjeevishankarn7904
    @chiranjeevishankarn7904 Рік тому +1

    Sir the documents have been removed. Can you please upload it somewhere again and thank you for all the awesome videos ❤

  • @saisanthoshnaidu
    @saisanthoshnaidu Рік тому +2

    Thank you so much.. Can you please provide us the document on chai assertion library.

  • @ghaithalali8372
    @ghaithalali8372 7 місяців тому

    Hello sir I extend my sincere thanks for your wonderful efforts on this great explanation You are truly a wonderful person. I rewrote the document you explain from, and I was wondering if you would allow me to share it with my fellow learners?

  • @fayazbaig2490
    @fayazbaig2490 2 роки тому

    Nice Explanation 🙏
    One request please cover the concept of mocking the api’s using mock server with as much as negative status codes.
    Thanks in advance

  • @SwapnilKurade
    @SwapnilKurade 9 місяців тому

    Respected sir, Thank you for your entire series.. It really helps alot.... Request you to please provide download link for the file.

  • @nemanjadjoric8765
    @nemanjadjoric8765 11 місяців тому +1

    Amazing!!! Thank you❤

  • @gangabhahirathi1477
    @gangabhahirathi1477 2 роки тому

    Thanks for all your effort in training on testing field. Could you please provide video to clear ISTQB exam

  • @Endrju91
    @Endrju91 6 місяців тому +1

    About the topic of asserting the data types. I have following issue. I have even literally rewrritten test API from last episode. No matter what I do, the assertions do not work, as my response is not treated as an object but as an array.
    I get the response embedded in the [ ] additionally and postman says that test is failed because i expect the array to be an object. As I say, I have even rewritten 1:1 whole json file and still get this error.
    For me to work, I must use the allocation of the array element to have assertions working >>> pm.expect(jsonData[0]).to.be.an('object').
    Also, despite defining the ID and number as the numbers, they are converted by postman to strings.
    As a result, the schema test fails once i generate the schema where it says - response type = object and id type = integer. I have 1:1 same json file as you have... If i change obviously first one to array and id type to string - works perfectly then

  • @ramanjiupputuri1362
    @ramanjiupputuri1362 2 роки тому +1

    Thanks for your time sir❤❤❤❤

  • @vijayaraguraman
    @vijayaraguraman Рік тому +1

    Great explanation sir

  • @azizasuganthi3893
    @azizasuganthi3893 Рік тому

    Pls share the ppt, for future reference. Thanks a lot, you are an amazing teacher.

  • @adeebatariq6200
    @adeebatariq6200 Рік тому +1

    Thanks for detailed descriptions of postman tests .

  • @AparnaLakshmiNedunooru
    @AparnaLakshmiNedunooru 2 роки тому

    awesom teaching sir waiting for other courses . Please do many videos on python frmae works and AWS as well sir.

  • @archanamekala5440
    @archanamekala5440 Рік тому

    You did it very well and its a best tutorial which I have ever come across so far, thank you so much and keep motivating us pls. I have one clarification pls, can we skip data type validation of the values in the response if we do schema validation? I believe this would do all the field type validation. Please confirm

  • @ImCravenMore
    @ImCravenMore 5 місяців тому +5

    I DONT HAVE ANY DATA IN MY COOKIES TAP ?

  • @Shubhangi-xg7uk
    @Shubhangi-xg7uk 5 місяців тому

    @sdetpavan sir I am facing similar errors for other validations as well. Even if the syntax is correctly given and Json file also correct.
    Array contains the value test | AssertionError: the given combination of arguments (undefined and string) is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a string
    Value of the fields test | AssertionError: expected undefined to deeply equal 1
    Schema Valiation Test | AssertionError: expected false to be true

  • @mujeebuddinsarfaraz
    @mujeebuddinsarfaraz 2 місяці тому

    I have been working as ba for last 2 days and check api request response but today I got to know how want is the exact meaning of postman api testing

  • @mayurikhatu7005
    @mayurikhatu7005 5 місяців тому

    Hi Sir, Thanks for providing so much detailed understanding of API testing . Please can you share the link from where we can get all the documentation from POSTMAN

    • @jugalraut
      @jugalraut 3 місяці тому

      i am also looking a link for download document

  • @kishanpanchal5726
    @kishanpanchal5726 2 роки тому

    I want to know how I will validate my response value which is changed on every api call. Like how can I write a test case for that? It will be really helpful if you try to explain it in your next video.

  • @harishreddy3195
    @harishreddy3195 2 роки тому +1

    Nice explanation sir.
    👌👌

  • @ShaikRehman-f9m
    @ShaikRehman-f9m 3 місяці тому +1

    thank you sir

  • @ashishpatil8092
    @ashishpatil8092 Рік тому +1

    Hat's off sir.
    thank you

  • @ashikaroji5569
    @ashikaroji5569 Рік тому +2

    Hi, thank you so much sharing these valuable videos.
    i have a question, i tried validating the cookies but I don't see any cookies being generated and because of that my test failed. may i know why cookies are not getting populated in the field?

    • @ankitkeshri7089
      @ankitkeshri7089 Рік тому +1

      For me also , Cookies are not getting generated in the Response after hitting the API ..

    • @karthika8610
      @karthika8610 Рік тому

      Did you find an answer to it?

  • @deepakkamble2395
    @deepakkamble2395 2 роки тому

    Thank you so much sir for API serias.
    I have to add some API points in my resume which API points should I mention in my resume .

  • @v2factsand327
    @v2factsand327 2 роки тому +1

    Awesome videos

  • @s.mnayem2089
    @s.mnayem2089 Рік тому +1

    love you sir... :)

  • @songslibrary8891
    @songslibrary8891 2 роки тому

    Please make a Video of RestAPI with Python, I watched your Python with selenium series It's really beneficial for me, Thanks...

  • @Bashashaik-gb5lq
    @Bashashaik-gb5lq 5 місяців тому

    Sir, you provide excellent content for free on UA-cam. However, when I start watching, I often feel irritated and find it challenging to learn new things, even though my intentions are to learn. How can I stay motivated and remain focused while using my laptop?

  • @pradeepb4625
    @pradeepb4625 2 роки тому +1

    I want to do complete ecommerce domain project with end to end testing practically...can you tell how much fess is there for that

  • @princip533
    @princip533 Рік тому

    Sir..nice teaching..
    But please add documents in description page 😭

  • @nikolettaptr3441
    @nikolettaptr3441 5 місяців тому

    Hello sir! Thanks for the course! I would like to ask you, how will we know which one to use?? (pm.response or pm.expect)

  • @real_strugler.-fighter
    @real_strugler.-fighter 2 роки тому +1

    Thank you sir 🙏

  • @gugapriyasethupathi5159
    @gugapriyasethupathi5159 Рік тому +1

    Your Videos are really helpful. I have a doubt... When testing cookies, I didn't get any cookies value under Cookies . Please clarify why? and when the cookies value are empty, then what kind of validations should we need to do Sir.. thank you so much

  • @kiranpawar3909
    @kiranpawar3909 2 роки тому +2

    Sir hello. Can you send that document involved in 3rd class

  • @GiridharReddy-j2l
    @GiridharReddy-j2l 8 місяців тому

    Pls share the document sir whatever you shown in the session, it would be very helpful to learn .

  • @TheAmachal
    @TheAmachal 10 місяців тому

    Thank you so much ! you are amazing.
    I'd like to ask a question concerning Json schema please. Since, do we have to use data type validation and Json schema validation assertions in postman or only Json schema will be sufficient, since the latter is also validating the data type. Thank you

  • @sravanimusunuri8238
    @sravanimusunuri8238 6 місяців тому

    Hi, sir thank you so much for your videos. I am following your API Testing videos. If possible, could you share materials for this?

  • @RedaFatima-m5f
    @RedaFatima-m5f 7 годин тому

    If someone struggles with finding test tab, it has been changed to post-response under scripts tab

  • @siddheshwarmhetre386
    @siddheshwarmhetre386 2 роки тому

    Hello Sir,
    Great work sirji by yoy
    Your teaching technique is truly awesome, I am actually from a non-technical background but after watching your video I feel I am a full technical and knowledgeable person now
    I am trying to learn the Postman tool for the last few days, I have created the API database on my local machine, and I used all assertions but I have a problem with the cookies assertion coz I did not get any cookies on my postman tool, then how can I verify or test the cookies?

  • @Soumya-i6s
    @Soumya-i6s 11 місяців тому +1

    hello sir,where are you uploading the document and how to access it can you please tell? i have attained your java -selenium batch and going through the Api series now.

    • @snehalraut821
      @snehalraut821 9 місяців тому

      ya I have same query , did u find those ppts which he is explaining in the lecture ?

    • @praveenshankargouda
      @praveenshankargouda 8 місяців тому

      No​@@snehalraut821

  • @dslmusic
    @dslmusic 6 місяців тому

    Guys, where can i find the pdf file in the video?

  • @TarunSingh-o5e5b
    @TarunSingh-o5e5b 9 місяців тому

    Hello Sir, Where can we have the documentation used in the API videos ? Can you make videos on C# and Selenium C# using Visual Studio ? I really like your videos.

  • @pakijabansal6595
    @pakijabansal6595 Рік тому

    Thank you so much for your time and efforts sir.
    But for this API series I am not able to find the documents can you please share it ?

  • @rshankar4u
    @rshankar4u Рік тому

    Hi Pavan, Thanks for excellent tutorial. Can you please share the document used in the video

  • @VishalLodhiya-c8c
    @VishalLodhiya-c8c 2 місяці тому +1

    FYI : The test tab is now Scripts > Post response

  • @andyselvam9809
    @andyselvam9809 2 роки тому

    Please take a session5, I didn't see any live video link for Session5

  • @ayushranjan3472
    @ayushranjan3472 Рік тому +1

    Sir, do we have to do any changes under students.json file for Cookies? As i am unable to get options under Cookies.

    • @aliebadi6965
      @aliebadi6965 11 місяців тому +1

      add your own
      1.- below the send button click on cookies
      2.-add your domain (URL) to the add domain field and click Add domain
      3.-change the name and value to what you want