Learn JavaScript for Postman API testing - Full Course for Beginners

  Рет қаралды 112,219

Valentin Despa

Valentin Despa

Күн бұрын

This complete JavaScript tutorial for beginners learning API testing with Postman will teach you everything you need to know to get started with writing JavaScript code in Postman.
--
Mock responses used in the video:
0117e4d9f2914b64a07e82b33ce8d...
12b0290eedb0477bad85caa751964...
--
If this was helpful and you want to support me create more videos like this one, please consider subscribing.
👉 / @vdespa
--
⭐️ Video contents ⭐️
⌨️ 0:00:00 - Introduction
⌨️ 0:00:38 - Where to write scripts
⌨️ 0:01:49 - JavaScript variables
⌨️ 0:06:13 - let vs const
⌨️ 0:07:57 - Data types in JavaScript
⌨️ 0:09:07 - Concatenating strings
⌨️ 0:11:17 - Conditional IF
⌨️ 0:16:52 - Functions
⌨️ 0:26:25 - Objects
⌨️ 0:39:25 - JSON vs JavaScript
⌨️ 0:43:15 - Copying an object
⌨️ 0:45:26 - Arrays
⌨️ 0:56:26 - Iterating over arrays (loops)
⌨️ 1:05:45 - Send HTTP request from scripts
⌨️ 1:10:49 - Parsing JSON response
⌨️ 1:27:25 - Conclusion and next steps
--
⭐️ 🎓 The complete guide to Postman (online course) ⭐️
Want to learn more about Postman? Check my Postman online course.
Get it at a special price and help support this KZfaq channel:
vdespa.com/courses/
--
⭐️ 💬 I have a question. ⭐️
I do my best to answer all comments here on KZfaq but I cannot make any guarantees.
If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).
If you are asking a question, make sure to include as many details as possible, including screenshots.
If you have purchased the Postman online course, please use the Q&A section or send me a message directly.
Please do not email me or contact me on other channels as I might not be able to answer. Sorry!
--
⭐️ 💡 I have a video idea ⭐️
Do you want me to create a video on a specific topic? Just fill out the form below:
forms.gle/uWEzXFQ2viJtZtvZ7
--
⭐️ 📺 Learn Postman on KZfaq ⭐️
Collection of video tutorials:
▸ Learn Postman | bit.ly/2CFaf70
▸ Postman Crash Course | bit.ly/2YwEBBT
▸ Postman Tips & Tricks | bit.ly/2JLkXyU
___
⭐️ 📕 Free resources ⭐️
📌 DOWNLOAD the FREE Postman Quick Reference Guide
bit.ly/postman-quick-reference-yt
📌 Ask a question on Discord (unofficial)
/ discord
📌 Join the Postman User Group on Facebook (unofficial)
bit.ly/2OutAMZ
📌 Postman community forum (official)
community.getpostman.com/
--
⭐️ 📩 Contact & Imprint ⭐️
👉 Follow me on Twitter:
/ vdespa
👉 Follow me on Medium:
/ vdespa
👉 Follow me on Facebook:
/ valentin-despa-1130381...
👉 Let's connect on LinkedIn:
/ vdespa
vdespa.com/imprint

Пікірлер: 92
@trevorribbans2256
@trevorribbans2256 2 жыл бұрын
you're legitimately the only guy with postman tutorials haha thank god for you. Everyone I click on is you 😂
@vdespa
@vdespa 2 жыл бұрын
Thanks, Trevor!
@paulc8308
@paulc8308 3 жыл бұрын
Hi Valentin, Great video. For people getting started with json data, there is a great extension for VS code called JSON Path. If you copy the json response data into VS Code, it allows to you click on the property you want to get and it will give you the path to it. You can also copy the path to the clipboard so you can paste it back into postman. Keep up the great work.
@vdespa
@vdespa 3 жыл бұрын
Thank you for your insightful comment, Paul. Tools such as JSON path are very cool. It would be great for Postman to do this natively. However, I recommend such an approach only AFTER fully understanding how to do this "manually".
@akshitsharma9488
@akshitsharma9488 2 жыл бұрын
Thanks a lot for this tutorial I was looking for just enough concepts to get started with writing test scripts in Postman. This video is exactly what I need short and precise
@vdespa
@vdespa 2 жыл бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@Christmastwenty
@Christmastwenty 9 ай бұрын
Hi Valentin, I have watched many tutorials about JavaScript and not even its utilisation with postman. But yours is the first one that I trully, fully and completely understand ! Thank you so much for posting !!
@vdespa
@vdespa 9 ай бұрын
Glad it helped! You are welcome. Thank you for leaving a comment.
@arijitdutta1250
@arijitdutta1250 2 жыл бұрын
Finally, I am now able to write test scripts in Postman. Thanks a lot Valentina for this tutorial which you made it quite easy to understand. I would like to recommend every beginner to watch this video.
@vdespa
@vdespa 2 жыл бұрын
Glad it was helpful!
@LuisReyes-th6fg
@LuisReyes-th6fg 2 жыл бұрын
Another Great Video Valentin!!! Thank you so much for this video and for explaining this in such simple language for beginners to understand.
@vdespa
@vdespa 2 жыл бұрын
My pleasure! Thank you
@annietran8200
@annietran8200 Жыл бұрын
I had no knowledge of programming languages when i tried to learn postman the first time. But after watching your videos, i can write some Test scripts with postman. Thank you. Everything is still difficult but i believe I can make it better everyday
@vdespa
@vdespa Жыл бұрын
Glad to hear that! You are welcome. Thank you for leaving a comment.
@mstanford3
@mstanford3 Жыл бұрын
Hello Valentin, you have a great talent for simplifying concepts that others tend to complicate. Thank you for sharing your knowledge!
@vdespa
@vdespa Жыл бұрын
You are welcome. Thank you for leaving a comment.
@catangle87
@catangle87 Жыл бұрын
I really love the way you explain everything so basically and easily to understand for beginners like me. I found many suitable videos for me to learn api and Postman here. Nobody knows this is my first comment on KZfaq and it's just for you.😁
@vdespa
@vdespa Жыл бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@prashanthipurnimasriram4183
@prashanthipurnimasriram4183 2 жыл бұрын
Hi Valentin. Thank you so much for the detailed explanation video. This is so helpful.
@vdespa
@vdespa 2 жыл бұрын
I am glad it was helpful!
@deepalways1
@deepalways1 26 күн бұрын
just too good ..thanks for the detailed intro :)
@vdespa
@vdespa 26 күн бұрын
Glad you liked it! You are welcome. Thank you for leaving a comment.
@jessiewarain2796
@jessiewarain2796 3 жыл бұрын
awesome tutorial thanks valentin very informative!
@vdespa
@vdespa 3 жыл бұрын
You're welcome, Jessie!
@kianaahmadi193
@kianaahmadi193 Жыл бұрын
Thanks a lot for this tutorial. It was great!
@vdespa
@vdespa Жыл бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@initialb811
@initialb811 3 жыл бұрын
Excellent content as always!
@vdespa
@vdespa 3 жыл бұрын
Glad you think so!
@jawaharm3817
@jawaharm3817 3 жыл бұрын
Actually looking for this course. Thank you
@vdespa
@vdespa 3 жыл бұрын
Perfect timing. Enjoy.
@Vow4ikV
@Vow4ikV 2 жыл бұрын
Great explanation. Thx for the guide.
@vdespa
@vdespa 2 жыл бұрын
Glad it was helpful!
@akashrodge5431
@akashrodge5431 Жыл бұрын
That is a such great boost to my knowledge
@vdespa
@vdespa Жыл бұрын
You are welcome. Thank you for leaving a comment.
@juannah-dt5ru
@juannah-dt5ru Жыл бұрын
idolaaaaa
@SiThu-wy4dx
@SiThu-wy4dx 2 жыл бұрын
Hello Valentin, Great Video tutorial. At the same time I got the knowledge and experience that API hit using postman, JavaScript language sentence, json fetch data knowledge and more and more. Thank you so much for this video tutorial. And then your teaching style is excellent and awesome!. May I request video tutorial for Kubernetes zero to hero course.
@vdespa
@vdespa 2 жыл бұрын
You are welcome. Thank you for leaving a comment.
@tigeressxxx
@tigeressxxx 5 ай бұрын
Thank you so much Valentin for such a nice video! Really helped me. God bless you. Looking to learn more in Postman API automation - JS
@vdespa
@vdespa 5 ай бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@tigeressxxx
@tigeressxxx 5 ай бұрын
Are there more stuff coming for postman api automation? Please upload more stuff based on end to end flow with real time examples l. I already completed your beginner full course. Thank you so much!!
@conangoinham
@conangoinham 2 жыл бұрын
Hi valentin! Thanks for sharing this video. It's definitely an improvement over the JS fundamentals video in your Udemy course on Postman. Maybe you consider replacing that section in Udemy with this updated version? The only part that I wish you'd spent more time on was the "loop" section. At 57:15 you introduced loop concepts with the structure of for (let i=0) etc but then quickly abandoned this structure by saying there's an easier way of doing it. Conceptually I understand that you're telling us this way gives you more control over how you iterate over the data structure, while "forEach" accomplishes the same thing. I still would have liked to see an example given for 3-4 minutes before moving on. Otherwise wonderful video and I really appreciate you sharing with us!
@vdespa
@vdespa 2 жыл бұрын
Thank you for your feedback, Chris. I was under the impression that I showed how to use this, by printing something with console.log. I don't know if you expected something else. Let me know. I am happy to clarify it.
@conangoinham
@conangoinham 2 жыл бұрын
@@vdespa yes, I was hoping you would run with the example and show at least one practical use case of how the full equation grants you more flexibility to iterate over a data set. What if I'm just looking for the 1st item that meets the search criteria? What if I want to find ALL items that meet the search criteria? That sort of explanation will help users understand the potential of the entire for loop, when "forEach" can't solve the problem. Otherwise very helpful video and this is much much better than the one I watched previously on udemy. Thanks!
@vdespa
@vdespa 2 жыл бұрын
@@conangoinham Got it. Thanks for your input.
@trojanhorse4ever
@trojanhorse4ever Жыл бұрын
@valentin Hi there! I am facing an issue with passing date value as an --global-var argument to new man CLI. Within my collection I am referring to this date value as let dateVal = new date(applicationDate) but everytime I execute from newman CLI I am getting Invalid Date. I have exported the environment file also where the value is stored as "2023-03-09"
@LuvxJacqu4li8e
@LuvxJacqu4li8e 2 жыл бұрын
Nice... again
@vdespa
@vdespa 2 жыл бұрын
Thanks... Again!
@niveditamirjikar409
@niveditamirjikar409 2 жыл бұрын
Another amazing content of yours👏🏻👏🏻👏🏻 Can you please also do a video on API automation using Mocha, Chai and Supertest using javascript
@vdespa
@vdespa 2 жыл бұрын
Great suggestion! Thanks.
@ravibabuch2750
@ravibabuch2750 2 жыл бұрын
excellent Tq sooooo much
@vdespa
@vdespa 2 жыл бұрын
You are welcome. Thank you for leaving a comment.
@jayteecollins1279
@jayteecollins1279 3 ай бұрын
Hi Valentin, thanks so much for making this video. You explained the javascript in very simple ways and easy to understand. If you are offering javascript for beginner course, I'm willing to enroll myself.
@vdespa
@vdespa 3 ай бұрын
Thanks, much appreciated. I don't have a JavaScript course but consider taking my Postman course.
@jayteecollins1279
@jayteecollins1279 3 ай бұрын
@@vdespa so far I've watched your Postman API course (2hrs) from freecodecamp.May I know if this is the one you are referring to? I'm gonna watch your other tutorial in your channel. its really interesting 😃
@vdespa
@vdespa 2 жыл бұрын
Download the FREE Postman Quick Reference Guide 👉 www.subscribepage.com/postman
@abhay6276
@abhay6276 2 жыл бұрын
what if the more than 1 Active Address are true or false. How to fetch it? can anyone answer please?
@mihaidanlazar8299
@mihaidanlazar8299 2 жыл бұрын
Hi Valentin, Thanks for the video, I am actually looking to switch roles inside the current company I'm working for, and the new role is a QA API Automation role. I've barely done any automation prior to this, but I am currently using Postman for different tasks, so I am used to this tool. I am also following a JS course on udemy, to get used to the syntax etc. My question is, would this video be enough to get my foot into the door and be able to write simple automation scripts in a few weeks, so that it would help me for my new role? (of course the learning path will allow me to develop in the next few months, but I just need the basics for now).
@KanuKing20
@KanuKing20 2 жыл бұрын
Well see the course for yourself and figure out right?
@vdespa
@vdespa 2 жыл бұрын
Mihai, this course covers the absolute basics. Learning never stops. So continue learning Postman and JavaScript and you will do just fine.
@alexfuentes2243
@alexfuentes2243 Жыл бұрын
Hello Valentine, nice video. I want you to help me please: how can I validate if all tests pm.test in test request passed ok, to report the result to an api jira with an if at the end. It is not enough for me that only the code is 200 Thank you very much Alexis 😊
@githinjibonface8486
@githinjibonface8486 2 жыл бұрын
Great tutorial. I like your teaching speed. Should i learn automation testing using postman to get a job or i can get a job with manual testing using postman?
@vdespa
@vdespa 2 жыл бұрын
The tendency goes toward automation.
@githinjibonface8486
@githinjibonface8486 2 жыл бұрын
@@vdespa thanks alot... Keep giving us other tutorials
@nikolaurevac7175
@nikolaurevac7175 Жыл бұрын
Hello, is there any way to run a cmd command or powershell command from Postman? I need it to start a required service, have a kubernetes command for that purpose. If you know how, please share it. Thanks!
@vdespa
@vdespa Жыл бұрын
No, you can't interact with the underlying system from Postman. Consider using a script for that.
@ganeshteradata976
@ganeshteradata976 3 жыл бұрын
Hi, I am student of you in Udemy. Thanks for the Javascript tutorial.
@vdespa
@vdespa 3 жыл бұрын
You are welcome!
@ZoniedLearning
@ZoniedLearning 5 ай бұрын
I’m stuck in learning postman ,, would I get to continue if I learn JavaScript,, please reply
@monica3953
@monica3953 9 ай бұрын
Thanks a lot I learned many things new, useful for my job! Thank you for your dedication and excellent explanation
@vdespa
@vdespa 9 ай бұрын
Glad it was helpful! You are welcome. Thank you for leaving a comment.
@chalaniperera9733
@chalaniperera9733 2 жыл бұрын
Hi valentin.i have used the exact response from the body. but i still occured AssertionError: expected undefined to deeply equal 'ProductCode' can u help me out to sort out this issue?
@vdespa
@vdespa Жыл бұрын
It is hard to answer this with the given information. Consider posting your question in the Postman community (community.postman.com/) and share what you have tried so far and where did you get stuck. Include screenshots and as many details as possible. Feel free to tag me with @vdespa. Thanks!
@lakshmiprasannapidugu2621
@lakshmiprasannapidugu2621 Жыл бұрын
How to write json can you let me know sir
@hutchkishore
@hutchkishore 2 жыл бұрын
Nice Video Valentin. Just curious to know whether becoming strong in Javasript is good engough to write postman assertions or should we learn any other tools and languages like chaijs etc.. Appreciate your thoughts on this.
@vdespa
@vdespa 2 жыл бұрын
There is not much to Chai.js to learn. So I would focus on understanding the JavaScript basics.
@preethaarun9697
@preethaarun9697 2 жыл бұрын
is this tutorial enough to work with postman ?
@vdespa
@vdespa 2 жыл бұрын
This is an Introduction to JavaScript, not a Postman course. You need to continue learning after this.
@preethaarun9697
@preethaarun9697 2 жыл бұрын
@@vdespa I have been learning postman but for Javascript is this enough to work with postman? Or i need to learn complete javascript in depth? thank you for this great tutorial.helping me a lot!
@vdespa
@vdespa 2 жыл бұрын
@@preethaarun9697 this is enough for most use-cases.
@preethaarun9697
@preethaarun9697 2 жыл бұрын
@@vdespa thank u so much
@thilinawilliams3703
@thilinawilliams3703 2 жыл бұрын
can you give me the postman collection
@vdespa
@vdespa 2 жыл бұрын
Which one?
@satyajitligade2840
@satyajitligade2840 2 жыл бұрын
let FirstName = 'John'; let LastName = 'doe'; const age=30; if(FirstName==='Mary');{ console.log('This is Mary'); } I am getting Answer 'This is Mary' It shouldn't give answer as it is not true why my js runner giving this answer. Or I missed anything?
@vdespa
@vdespa 2 жыл бұрын
Check again your syntax.
@divitisaitezaa2599
@divitisaitezaa2599 Жыл бұрын
Remove semicolon after if statement dude
@mhalton
@mhalton 2 жыл бұрын
This was very little related to Postman.
@MaheshBabu1989
@MaheshBabu1989 2 жыл бұрын
how to access a variable in a function which was declared outside a function when same variable name is defined inside a function Ex :: let name='John'; function names() { let name='Smith'; console.log(name); } names(); I want output as 'John' Is it possible?
@vdespa
@vdespa 2 жыл бұрын
You should make your function self contained and provide any needed data as arguments to the function.
@MaheshBabu1989
@MaheshBabu1989 2 жыл бұрын
@@vdespa I did not understand what you said.. can you elaborate with sample snippet code please
@psycode5569
@psycode5569 3 жыл бұрын
Hi, I sent you an email. I hope you can help me with something. I really need help. PD I realized there are other programers in Free code camp jeje
@javieromarchavarriahumared3314
@javieromarchavarriahumared3314 2 жыл бұрын
Wtf
@UzDevWave
@UzDevWave 13 күн бұрын
very slow
Postman Api Testing Tutorial for beginners
16:45
Codemify
Рет қаралды 24 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Secret Experiment Toothpaste Pt.4 😱 #shorts
00:35
Mr DegrEE
Рет қаралды 38 МЛН
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 25 МЛН
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 185 М.
JavaScript Tutorial for Beginners: Learn JavaScript in 1 Hour
48:17
Programming with Mosh
Рет қаралды 12 МЛН
Difference between cookies, session and tokens
11:53
Valentin Despa
Рет қаралды 610 М.
Writing Tests in Postman - with Examples | The Exploratory
12:53
Avoid these 10 Beginner Mistakes in Postman
9:10
Valentin Despa
Рет қаралды 9 М.
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 238 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,1 МЛН
Postman Beginner's Course - API Testing
2:09:38
freeCodeCamp.org
Рет қаралды 2,4 МЛН
Cookies: The Hidden Tech That Keeps the Internet Running
17:28
Valentin Despa
Рет қаралды 4,8 М.
Tips and Tricks for Debugging JavaScript
13:03
James Q Quick
Рет қаралды 408 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН