
Let’s add some code in “Pre-request Script” and “Tests” tabs:– I will hit auth API of Restful-booker, You can refer my old posts to see about auth API.

Let’s hit an API and see what are things are logged in to console:.

If you follow any step above, you will see below screen:. You can also launch console using top menu:- “ View- > Show Postman Console“. You can click on Console icon at bottom corner of left hand side.ģ.You can use key combinations as “ctrl+alt+c”.Using () or console.warn() at appropriate locations in the scripts will help extract the exact line of code that is acting up. If you know your way around console.log() in JavaScript, this is similar. Error logs from test or pre-request scripts.The proxy configuration and certificates used for the request.The exact response sent by the server before it is processed by Postman.The actual request that was sent, including all underlying request headers and variable values, etc.The Postman Console logs the following information: As long as the console window is open, all your API activities will be logged here to see what’s going on under the hood. ” If an API or API test is not behaving as you expect, this would be the place where you will go to deep dive while debugging.

Postman also provides a console which is similar to browser’s developer console but Postman console is exclusively for API development. You must have heard of browser’s developer console or web console.
#Postman console tracing software#
During development or Testing of any software or API, you may need to debug or log what is happening in between if actual behaviour is not as per expected behaviour. Debugging and logging are very important when you are trying to develop/test something.
