POSTMAN BEGINNER TUTORIAL 10 💡 How to create First TEST

  Рет қаралды 176,379

Automation Step by Step

Automation Step by Step

Күн бұрын

Today we will learn:
1. What are Tests in POSTMAN
2. How to create tests at REQUEST level
3. How to create tests at FOLDER level
4. How to create tests at COLLECTION level
Postman tests are javascript code that is executed after receiving the response
________________________________________________________________
POSTMAN Beginner Tutorials - • POSTMAN BEGINNER TUTOR...
Playlists - / @raghavpal
________________________________________________________________
Do like, share and subscribe
Keep Learning,
Raghav
_______ ONLINE COURSES TO LEARN _______
automationstepbystep.com/
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework - bit.ly/2Px6Ue9
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
----------- MOBILE TESTING -----------
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
----------- PERFORMANCE TESTING -----------
JMeter Beginner - bit.ly/2oBbtIU
JMeter Intermediate - bit.ly/2oziNVB
JMeter Advanced - bit.ly/2Q22Y6a
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- JAVA -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
Keep Learning,
Raghav
Website - automationstepbystep.com/
LifeCharger - lifecharger.org/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
Facebook - / automationstepbystep
Twitter - / automationsbs
KZfaq - / automationstepbystep

Пікірлер: 79
@justalazyseo8285
@justalazyseo8285 4 жыл бұрын
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 4 жыл бұрын
I am so happy to see your message Arto, keep watching and do share your knowledge with others.
@ankitjain7048
@ankitjain7048 4 жыл бұрын
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 жыл бұрын
So happy to know it helped Ankit, you can also see Postman Crash Course here - automationstepbystep.com/
@lupul666
@lupul666 6 жыл бұрын
Hello, your videos are very educational please DO NOT STOP :D .
@RaghavPal
@RaghavPal 6 жыл бұрын
Thanks for your message, I will keep creating these videos.
@michaelbuono9826
@michaelbuono9826 2 жыл бұрын
I like that these are short and detailed on one aspect or topic
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Michael
@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
@riteshkumar6403
@riteshkumar6403 5 жыл бұрын
Excellent. Very informative video.
@RaghavPal
@RaghavPal 5 жыл бұрын
Happy to know it helped
@pratibhasingh3432
@pratibhasingh3432 4 жыл бұрын
i hv gone through with some videos, all are magnificent. Really thnkuu!!
@RaghavPal
@RaghavPal 4 жыл бұрын
Most welcome 😊Pratibha
@johng5295
@johng5295 4 жыл бұрын
Thanks in a million.
@RaghavPal
@RaghavPal 4 жыл бұрын
You're welcome John.
@Aayatq
@Aayatq Жыл бұрын
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 Жыл бұрын
Most welcome Bismah
@qR7pK9sJ2t
@qR7pK9sJ2t 3 жыл бұрын
This is pure gold ..
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks Siddharth
@md.mahfuzulhuqtalukder6644
@md.mahfuzulhuqtalukder6644 4 жыл бұрын
You are the best and excellent
@RaghavPal
@RaghavPal 4 жыл бұрын
So happy and humbled to see your message Md.Mahfuzul
@ShaileshKumar-sm1ns
@ShaileshKumar-sm1ns 6 жыл бұрын
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
@syedshahulhameedmustaffa3762
@syedshahulhameedmustaffa3762 4 жыл бұрын
Hello Raghav, Thank u so much for these informative and well organized videos. Do you give courses anywhere online?
@RaghavPal
@RaghavPal 4 жыл бұрын
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
@lts8683
@lts8683 2 жыл бұрын
very usefull
@RaghavPal
@RaghavPal 2 жыл бұрын
Glad to hear that
@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 5 жыл бұрын
Can I store extracted response body parameters in the collection variable? Is it mandatory to use Environment or global variable for that?
@RaghavPal
@RaghavPal 5 жыл бұрын
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
@tulasibakkireddy7137
@tulasibakkireddy7137 4 жыл бұрын
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 4 жыл бұрын
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
@Akumnm
@Akumnm 4 жыл бұрын
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 4 жыл бұрын
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/
@ashutoshpratapsingh6872
@ashutoshpratapsingh6872 4 жыл бұрын
Please create one video for JS Es6 and Chai Assertion Library, thanks in Advance
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Ashutosh, I will plan
@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.
@user-lz8mi4dd2p
@user-lz8mi4dd2p 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.
@Finahas
@Finahas 4 жыл бұрын
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 - kzfaq.info/get/bejne/fq5xhseeqLiVknk.html
@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/
@TheMadhiarasan
@TheMadhiarasan 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@RaghavPalThank you sir.. Thanks for immediate response. 🙏🙏
@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 жыл бұрын
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 жыл бұрын
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
@carlosguevara257
@carlosguevara257 5 жыл бұрын
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 5 жыл бұрын
Hi Carlos, pls check if you added the tests in the test section and saved before running the collection.
@carlosguevara257
@carlosguevara257 5 жыл бұрын
@@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 5 жыл бұрын
Sorry Raghav, was my fault, I had several versions of request and I overwrote and lost test cases. Thanks
@RaghavPal
@RaghavPal 5 жыл бұрын
Glad to know you found out Carlos. Keep learning.
@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
@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.
@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 kzfaq.info/sun/PLhW3qG5bs-L9i-Zfy_I5OyPRxm2au_Ll1
@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
@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
@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/
POSTMAN BEGINNER TUTORIAL 11 💡 How to DEBUG
6:45
Automation Step by Step
Рет қаралды 163 М.
Postman Beginner Tutorial 11 | How to create First Test
4:39
Automation Step by Step
Рет қаралды 36 М.
لااا! هذه البرتقالة مزعجة جدًا #قصير
00:15
One More Arabic
Рет қаралды 14 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 4,9 МЛН
Why Is He Unhappy…?
00:26
Alan Chikin Chow
Рет қаралды 68 МЛН
Postman Api Testing Tutorial for beginners
16:45
Codemify
Рет қаралды 24 М.
Postman Beginner's Course - API Testing
2:09:38
freeCodeCamp.org
Рет қаралды 2,4 МЛН
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 242 М.
10 Udemy Courses Every Developer SHOULD Own (NOT just coding)
19:53
Travis Media
Рет қаралды 879 М.
I learned to code from scratch in 1 year. Here's how.
41:55
Thomas Frank
Рет қаралды 388 М.
Postman Tutorial #7 - HTTP Methods GET and POST in Postman
13:18
Software Testing Mentor
Рет қаралды 44 М.