POSTMAN BEGINNER TUTORIAL 10 💡 How to create First TEST

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ต.ค. 2024

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

  • @lupul666
    @lupul666 6 ปีที่แล้ว +23

    Hello, your videos are very educational please DO NOT STOP :D .

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

      Thanks for your message, I will keep creating these videos.

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

    Thanks a lot for posting the tutorial on Postman, I am using postman since last 6 months but after watching this i realised that i was knowing just 5% about the postman. Thanks for teaching from very basics in every session and also covering all the functions in few minutes. Thanks again and all your hard and smart work.

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

      So happy to know it helped Ankit, you can also see Postman Crash Course here - automationstepbystep.com/

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

    Absolutely excellent tutorials, bro! You are definitely an excellent teacher. I specifically like how you tackle a lot of things in your videos before they become question, like in this one what is the difference between pre-request scripts and tests. Thank you so much for being here!

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      I am so happy to see your message Arto, keep watching and do share your knowledge with others.

  • @Aayatq
    @Aayatq 2 ปีที่แล้ว

    Thank you so much. I also bought your course on Udemy. You are a amazing teacher. I love your course. I learned so much from you.

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Most welcome Bismah

  • @michaelbuono9826
    @michaelbuono9826 2 ปีที่แล้ว

    I like that these are short and detailed on one aspect or topic

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Thanks Michael

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

    i hv gone through with some videos, all are magnificent. Really thnkuu!!

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Most welcome 😊Pratibha

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

    This is pure gold ..

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Thanks Siddharth

  • @ShaileshKumar-sm1ns
    @ShaileshKumar-sm1ns 6 ปีที่แล้ว +3

    Would be helpful if you'd use teamcity as the CI tool to integrate postman with. (Jenkins is fine ... but other tutors have done that before) .. Only if you can really unless you think it's too much painful. I'd like to say your videos are very useful and educational to newbies and experienced guys alike. Pls keep doing the good work. Thnx

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Sure Shailesh, i will do sessions with different CI tools

  • @Sweetheart-ov7tv
    @Sweetheart-ov7tv 3 ปีที่แล้ว

    Actually very clearly explained the content quickly, very interesting thanks pls keep doing this

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Thanks, will do! Guna

  • @md.mahfuzulhuqtalukder6644
    @md.mahfuzulhuqtalukder6644 4 ปีที่แล้ว

    You are the best and excellent

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

      So happy and humbled to see your message Md.Mahfuzul

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

    Hello Raghav.. is there any possibility to extract the url of the response body through the test script?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Yes Thomas, you will have to use xpath or json path to extract the text from response For e.g. you can see this video - th-cam.com/video/HHASdmCR1bE/w-d-xo.html

  • @bharatvarshney2666
    @bharatvarshney2666 6 ปีที่แล้ว

    Hi Raghav,
    1>How we verify that our response are correct if we run in collection runner , or i have many api for login to logout , so i will create new folder and add new request and create environment
    2> How we add test cases when we run in collection runner

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Bharat, so you can add Tests at request level, folder level and collection level. Of course Tests at collection level will run for all the requests inside the collection and similarly for folder and request level tests.
      Now after you run your tests either from collection runner or commandline (newman) you get a report of pass and fail test cases.

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

    Can I store extracted response body parameters in the collection variable? Is it mandatory to use Environment or global variable for that?

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

      Hi Bhama, yes you can. It depends on your needs, If you are able to use it the way you want, there is no hard rule on storing. The adv with storing as env variable is if you need diff values for a variable in diff env it will help

  • @AnkitSharma-lm8gl
    @AnkitSharma-lm8gl 4 ปีที่แล้ว

    Hi Raghav, I have a query regarding snippets, how to get more snippets options in our POSTMAN as I have few scripts in snippets and don't have the scripts which you have shown in this tutorial.

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Ankit, snippets should be shown by default. Also check this - learning.postman.com/docs/postman/sending-api-requests/generate-code-snippets/

  • @bharatkumar5277
    @bharatkumar5277 6 ปีที่แล้ว

    Hi Raghav, can you please clarify the query - Does the scripts that are created at collection level are applicable for all the requests?If user wants to verify the common tests for all the requests,then can he create at collection level instead of individual request?

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Yes Bharat, that should work for all requests under the collection.

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

    Please create one video for JS Es6 and Chai Assertion Library, thanks in Advance

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Sure Ashutosh, I will plan

  • @syedshahulhameedmustaffa3762
    @syedshahulhameedmustaffa3762 5 ปีที่แล้ว

    Hello Raghav, Thank u so much for these informative and well organized videos. Do you give courses anywhere online?

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Syed, I do online coaching mostly for corporates and groups. You can check all details on my website - automationstepbystep.com/

  • @saranyachandrabos3541
    @saranyachandrabos3541 3 ปีที่แล้ว

    thank you

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      You're welcome Saranya

  • @riteshkumar6403
    @riteshkumar6403 5 ปีที่แล้ว

    Excellent.
    Very informative video.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Happy to know it helped

  • @tulasibakkireddy7137
    @tulasibakkireddy7137 5 ปีที่แล้ว

    Nice explanation Raghava very helpful for me ,I have doubt in my collection all services (different services having same status code) can it be like.
    For different responses different states code should be there na.. plz tell me, whether I'm correct or not

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Tulasi, yes usually we have a set of status code like
      1xx for information
      2xx for success
      3xx for redirection
      4xx client error
      5xx server error

  • @lts8683
    @lts8683 2 ปีที่แล้ว

    very usefull

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Glad to hear that

  • @Akumnm
    @Akumnm 5 ปีที่แล้ว

    Hello Raghav sir, first of all a big thnx for you for providing us such easy & understandable tutorials. i have a query regarding snippets. can we add our own customized snippets for the requests and reuse it for other requests? if yes, how? can you provide any short tutorial on this??

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Akash, We have the pre-script section in a request, where you can add scripts. Also check this learning.getpostman.com/docs/postman/customizing_postman/

  • @johng5295
    @johng5295 5 ปีที่แล้ว

    Thanks in a million.

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      You're welcome John.

  • @AlokKumar-ot9sx
    @AlokKumar-ot9sx 2 ปีที่แล้ว

    Hello Sir I am having an issue when I run the test at collection level and export the result using "Export Results" option. After this I import it, I am unable to get back the request or response , it just displays pass or fail.

    • @RaghavPal
      @RaghavPal  2 ปีที่แล้ว

      Hi Alok, i will check on this

  • @TheMadhiarasan
    @TheMadhiarasan 5 ปีที่แล้ว

    Nice video🙏🙏.. I have one ques all the codes to test webservice are available in postman tool itself. I mean that I will get from snippets itself.. ??

    • @RaghavPal
      @RaghavPal  5 ปีที่แล้ว

      Hi Mathiarasan, in the snippets we have some most commonly used tests. And this can be used in most of the cases. However for any other or custom need or testing, you can write scripts

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

      @@RaghavPalThank you sir.. Thanks for immediate response. 🙏🙏

  • @vinayakbadgujar5168
    @vinayakbadgujar5168 3 ปีที่แล้ว

    Hello Raghav,
    Q1. If my second request is depends upon first request status code 200? How to add this validation? Means if my first request throws 200 status code then second request should get execute

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi Vinayak, you can use workflows. in the test section of the first request you can check the status code and based on that set the next request - Check learning.postman.com/docs/running-collections/building-workflows/

    • @vinayakbadgujar5168
      @vinayakbadgujar5168 3 ปีที่แล้ว

      I have added status validation in my first request Test but if I want to execute my second request if my first request pass... If it fails then my second request should not get executed

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Yes, so in your first request, in test section, you can put some condition on status code or any response value and based on the condition is true or false you can set the next request in the sequence, So if it passes set the next request as 2nd else set the next request as 3rd

  • @simplearora1223
    @simplearora1223 3 ปีที่แล้ว

    how can i test a request for negative and positive test case?I can only pass data in request and it gives the status code but i want to know if i have to automate the test then how can i test both the positive and negative test for a request?

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      Hi, you can add test scripts for that

    • @simplearora1223
      @simplearora1223 3 ปีที่แล้ว

      @@RaghavPal hey thanks for the quick response , but can you please give one example of how can i write a negative test for a request which expects a name and age. For manual negative test i can pass a null for instance and it will fail but in postman how can i write a test script which passes null values to my this request.

    • @RaghavPal
      @RaghavPal  3 ปีที่แล้ว

      I will need to plan a session

    • @simplearora1223
      @simplearora1223 3 ปีที่แล้ว

      @@RaghavPal ok thanks.

  • @AE-fv3tn
    @AE-fv3tn 4 ปีที่แล้ว

    hi, i would like to inform you that the way you explain it was so excellent so far ..I could not stop seen your videos ...So thank you sir ...but i have a question if you do not mind me asking.. 1-How can i get the https , address from a mobile app ?? Thank you in advance

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

      Thanks for the message Ahmed, I did not exactly get your scenario. How is this related to this video. Pls send details

    • @AE-fv3tn
      @AE-fv3tn 4 ปีที่แล้ว

      @@RaghavPal First of all I would like to thank you for a quick respond, for example , if I want to do a get requests from tiktok Api and I do not know what is the ?? Also, do i need another certificate to get a request answer from their server ?

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

      Hi Ahmed, this depends on the api service or how is the web service implemented. In simple words to test any api or web service you will need to know the endpoint url, parameters to be sent in the request, authentication if application, request headers if applicable. Some applications will not expose all this information to public

  • @shru6rao
    @shru6rao 4 ปีที่แล้ว

    Hi, While following this video, I see that there are no pre-request scripts available in my postman? What am I missing?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Shruthi, it must be on the side, See if it is collapsed, you will see an arrow to expand and view snippets

  • @ramshankarreddy5534
    @ramshankarreddy5534 4 ปีที่แล้ว

    Hi, I am new to postman can you pls help me how to write a http request to deactivate and delete a user

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      Hi Ram, you can use the DELETE method or PUT method. Can check examples on that th-cam.com/play/PLhW3qG5bs-L9i-Zfy_I5OyPRxm2au_Ll1.html

  • @高朗-g7b
    @高朗-g7b 6 ปีที่แล้ว

    hello , may i ask why my collection runner not have result pass or fail after running. The status is 0 pass 0 fail

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi That's because your collection does not have any test cases.

  • @carlosguevara257
    @carlosguevara257 6 ปีที่แล้ว

    Hello, when i ran my test collection the results shows that there are no testcases in all requests but I included the two cases you explained in this tutorial, would you please explain why?. Thanks a lot

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Hi Carlos, pls check if you added the tests in the test section and saved before running the collection.

    • @carlosguevara257
      @carlosguevara257 6 ปีที่แล้ว

      @@RaghavPal Hello Raghav, I verify and the testcases results appear when I click "SEND" request, folder and collection but when I run through RUN collection the results shows that there is not testcases for the collection

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

      Sorry Raghav, was my fault, I had several versions of request and I overwrote and lost test cases. Thanks

    • @RaghavPal
      @RaghavPal  6 ปีที่แล้ว

      Glad to know you found out Carlos. Keep learning.

  • @melikad2768
    @melikad2768 4 ปีที่แล้ว

    what if someone doesnt know the Javascript language?

    • @RaghavPal
      @RaghavPal  4 ปีที่แล้ว

      You can learn. It's Easy. Can check my tutorials here - automationstepbystep.com/