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.
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!
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
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
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
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.
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
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.
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?
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
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??
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/
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.
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
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
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/
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
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
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 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.
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 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 ?
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
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 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
Hello, your videos are very educational please DO NOT STOP :D .
Thanks for your message, I will keep creating these videos.
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.
So happy to know it helped Ankit, you can also see Postman Crash Course here - automationstepbystep.com/
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!
I am so happy to see your message Arto, keep watching and do share your knowledge with others.
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.
Most welcome Bismah
I like that these are short and detailed on one aspect or topic
Thanks Michael
i hv gone through with some videos, all are magnificent. Really thnkuu!!
Most welcome 😊Pratibha
This is pure gold ..
Thanks Siddharth
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
Sure Shailesh, i will do sessions with different CI tools
Actually very clearly explained the content quickly, very interesting thanks pls keep doing this
Thanks, will do! Guna
You are the best and excellent
So happy and humbled to see your message Md.Mahfuzul
Hello Raghav.. is there any possibility to extract the url of the response body through the test script?
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
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
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.
Can I store extracted response body parameters in the collection variable? Is it mandatory to use Environment or global variable for that?
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
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.
Hi Ankit, snippets should be shown by default. Also check this - learning.postman.com/docs/postman/sending-api-requests/generate-code-snippets/
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?
Yes Bharat, that should work for all requests under the collection.
Please create one video for JS Es6 and Chai Assertion Library, thanks in Advance
Sure Ashutosh, I will plan
Hello Raghav, Thank u so much for these informative and well organized videos. Do you give courses anywhere online?
Hi Syed, I do online coaching mostly for corporates and groups. You can check all details on my website - automationstepbystep.com/
thank you
You're welcome Saranya
Excellent.
Very informative video.
Happy to know it helped
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
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
very usefull
Glad to hear that
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??
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/
Thanks in a million.
You're welcome John.
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.
Hi Alok, i will check on this
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.. ??
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
@@RaghavPalThank you sir.. Thanks for immediate response. 🙏🙏
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
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/
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
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
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?
Hi, you can add test scripts for that
@@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.
I will need to plan a session
@@RaghavPal ok thanks.
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
Thanks for the message Ahmed, I did not exactly get your scenario. How is this related to this video. Pls send details
@@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 ?
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
Hi, While following this video, I see that there are no pre-request scripts available in my postman? What am I missing?
Hi Shruthi, it must be on the side, See if it is collapsed, you will see an arrow to expand and view snippets
Hi, I am new to postman can you pls help me how to write a http request to deactivate and delete a user
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
hello , may i ask why my collection runner not have result pass or fail after running. The status is 0 pass 0 fail
Hi That's because your collection does not have any test cases.
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
Hi Carlos, pls check if you added the tests in the test section and saved before running the collection.
@@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
Sorry Raghav, was my fault, I had several versions of request and I overwrote and lost test cases. Thanks
Glad to know you found out Carlos. Keep learning.
what if someone doesnt know the Javascript language?
You can learn. It's Easy. Can check my tutorials here - automationstepbystep.com/