POSTMAN BEGINNER TUTORIAL 11 💡 How to DEBUG

POSTMAN BEGINNER TUTORIAL 11 💡 How to DEBUG


POSTMAN BEGINNER TUTORIAL 11 💡 How to DEBUG

Today we will learn:
1. How to debug with Postman Console
2. How to open Postman Console window
3. Information shown on Postman Console window
4. Clear logs
5. console.log()
console.info()
console.warn()
console.error()
6. App Debug Logs : Developer - DevTools



POSTMAN Beginner Tutorials -    • POSTMAN BEGINNER TUTORIAL 1 - Introdu…  

Playlists -    / @raghavpal  



Do like, share and subscribe

Keep Learning,
Raghav

_______ ONLINE COURSES TO LEARN _______

https://automationstepbystep.com/

----------- UI TESTING -----------
Selenium Beginners - https://bit.ly/2MGRS8K
Selenium Java Framework from Scratch - https://bit.ly/2N9xvR6
Selenium Python - https://bit.ly/2oyMp5x
Selenium Tips - https://bit.ly/2owxc50
Selenium Builder - https://bit.ly/2MKNtlq
Katalon Studio - https://bit.ly/2wARFdi
Robot Framework - https://bit.ly/2Px6Ue9

----------- API TESTING -----------
Web Services (API) - https://bit.ly/2MGafL7
SoapUI - https://bit.ly/2MGahmd
Postman - https://bit.ly/2wz8LrW
General - https://bit.ly/2PYdwmV

----------- MOBILE TESTING -----------
Mobile Playlist - https://bit.ly/2PxpeUv

----------- CI | CD | DEVOPS -----------
Jenkins Beginner - https://bit.ly/2MIn8EC
Jenkins Tips \u0026 Trick - https://bit.ly/2LRt6xC
Docker - https://bit.ly/2MInnzx

----------- VERSION CONTROL SYSTEM -----------
Git \u0026 GitHub - https://bit.ly/2Q1pagY

----------- PERFORMANCE TESTING -----------
JMeter Beginner - https://bit.ly/2oBbtIU
JMeter Intermediate - https://bit.ly/2oziNVB
JMeter Advanced - https://bit.ly/2Q22Y6a
JMeter Tips \u0026 Tricks - https://bit.ly/2NOfWD2
Performance Testing - https://bit.ly/2wEXbLS

----------- JAVA -----------
Java Beginners - https://bit.ly/2PVUcXs
Java Tips \u0026 Tricks - https://bit.ly/2CdcDnJ

----------- MAVEN -----------
Maven - https://bit.ly/2NJdDRS

----------- OTHERS -----------
Redis- https://bit.ly/2N9jyCG
Misc - https://bit.ly/2Q2q5xQ
Tools \u0026 Tips - https://bit.ly/2oBfwoR
QnA Friday- https://bit.ly/2NgwGpw
Sunday Special - https://bit.ly/2wB23BO

Ask Raghav - https://bit.ly/2CoJGWf
Interviews - https://bit.ly/2NIPPxk
All Playlists - https://bit.ly/2LSiezA

Keep Learning,
Raghav

Website - https://automationstepbystep.com/
LifeCharger - http://lifecharger.org/
Udemy Courses - https://www.udemy.com/user/raghav-pal-3/
Facebook - https://www.facebook.com/automationst
Twitter - https://twitter.com/automationsbs
Youtube -    / automationstepbystep  


Content

1.319 -> Hello and welcome to this session on Postman beginner tutorial And today we are going to
6.34 -> see how can we do debugging in Postman and we will go very basic step-by-step and we
12.829 -> will learn how do we debug with Postman console?
15.759 -> How do we open the postman console window?
18.24 -> And then we will discuss about all the information that we can see on the postman console window
23.74 -> How do we clear the logs and then some statements of logging and we will also see the app debug
29.96 -> logs so let's get started and let me switch to my Postman and here before I begin Let
36.36 -> me tell you I am using a dark theme so you can go to your settings And if you go to settings
42.85 -> we have the themes here so you can select the lighter theme or the Dark theme So I'm
46.31 -> using the Dark theme of Postman here and here let So I'm using the Dark theme of Postman
50.51 -> here and here let me go to any of the requests so This is a get user request that we have
56.5 -> created in our last session now while working with Postman they will be a need that you
62.179 -> want to debug your request or your scripts or you want to see what exactly is happening
66.99 -> so that you can troubleshoot and find the issues So for that one of the very useful
72.77 -> tool in Postman is the postman console and you can go to your view And here you can see
81.811 -> how show Postman console you can also use the keyboard shortcut, alt + Ctrl + C In case
88.83 -> you are on Mac You can press alt + command + C combination And also if you go to the
94.25 -> bottom of the postman you have this icon here and again, you can click this to open the
101.46 -> postman console So I will click here and it will open the postman console window and let
107.33 -> me split my screen so that you can See the postman console and the postman Windows side-by-side
113.75 -> And yes this is my Postman console window on the right and on the left I have my Postman
119.67 -> now, whatever I will run will be logged in the postman console So let me go to the get
129.57 -> user request and let me just hit send And yes you can see everything is now logged onto
140.56 -> Postman console and here you will find that all the scripts output are logged on the postman
147.33 -> console And then the actual request and response is also logged and then in case you have any
152.67 -> variables they are also being referred and the actual value is shown now here these are
159.02 -> some of the scripts that I had written earlier so you can see that and then if you go here,
165.47 -> this is the actual And you can expand this and you have the request header the response
172.42 -> header and then if you go down you have here the response body So if I expand this one
180.87 -> you can see the data as well from the response Now, you can also see the raw format and the
188.62 -> pretty format If you go to the raw format, this is the actual request that was sent to
194.08 -> the server and this is the actual request which was received back from the server before
200.77 -> Postman could apply its formatting So if you want to see the actual response that was received
205.99 -> before Postman applied some of it it's formatting and beautification This is what you can see
210.99 -> on the console window Also, you can see here in case you have any variables in your request
218.06 -> So for example, if I see my request there was a variable URL and this is the actual
224.58 -> value if you if I hover you can see the actual You and in the postman console window, it
230.16 -> actually refers the variable and shows the actual value So sometimes you will also need
235.31 -> to check whether your variable is being referred properly or the value is being referred properly
239.84 -> from the variable This is again, you can find in the postman console window So here you
245.04 -> can find all the script output all the error logs and everything One thing to note here
249.29 -> is in the postman console window The locks are preserved for the session of the postman
254.41 -> console window is open for example, if If I close this Postman console and try to start
260.16 -> it again, you will find no earlier logs So the locks are preserved only for the session
266.34 -> when the window is open So I will have to run it again to see the logs and you can also
272.49 -> clear the logs from this button We have a clear button here So you can clear the logs
278.21 -> Now The other useful thing is you can also use
309.36 -> these
346.94 -> The next important thing is you can also see the app debug locks so you can go to your
354.71 -> Postman and go to view and here you have developer option and here you can see show devtools
362.6 -> If you click here you will have a new window where you can see the elements console sources
370.13 -> on the console You can see all the app locks and this will be very useful while troubleshooting
375.63 -> you can also see the sources so you can see all the files and folders being referred to
379.83 -> in my case You can see the folder being referred is the postman folder And then you can also
385.87 -> expand and see everything but is being used So this is some deep level of troubleshooting
390.84 -> and Analysis If you really want to do this you can go to this console window and then
395.9 -> check for all these logs and parameters and do your troubleshooting
399.92 -> So this is how you can do a very quick debugging in Postman.

Source: https://www.youtube.com/watch?v=ne1RsYcgkSY