Skip to content

Make Selenium Easy

And Keep It That Way

  • Home
  • Share
  • Toggle search form

Postman Tutorial Part 22 – Postman Console – Debugging And Logging

Posted on 02/19/2025 By admin

Debugging and logging are very important when you are trying to develop/test something. 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. You must have heard of browser’s developer console or web console.

Postman also provides a console which is similar to browser’s developer console but Postman console is exclusively for API development. Official document of Postman says:-

” 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. 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.  “

The Postman Console logs the following information:

  • The actual request that was sent, including all underlying request headers and variable values, etc.
  • The exact response sent by the server before it is processed by Postman
  • The proxy configuration and certificates used for the request.
  • Error logs from test or pre-request scripts
  • console.log() from inside scripts.

Using console.info() 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.

How to launch Postman Console?

  1. You can use key combinations as “ctrl+alt+c”.
  2. You can click on Console icon at bottom corner of left hand side.

3. You can also launch console using top menu:- “View- > Show Postman Console“.

If you follow any step above, you will see below screen:-

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

I will hit auth API of Restful-booker, You can refer my old posts to see about auth API.

Go to already opened Postman console. You will see an entry as below:-

Expand it by clicking on arrow:-

Let’s add some code in “Pre-request Script” and “Tests” tabs:–

Hit the request again.

We know already little about Pre-request and Test scripts execution sequence from this post. Above console shows the same thing.

You can clear the console using “Clear” button given at top side of right hand side.

More about API Testing in upcoming posts. Stay tuned.

If you have any doubt, feel free to comment below.If you like my posts, please like, comment, share and subscribe.#ThanksForReading

#HappyApiTesting

Uncategorized

Post navigation

Previous Post: Git Tutorial 24 – Ignore Files Using .gitignore
Next Post: Introduction To Karate – A Unified Framework for API test-automation, mocks, performance-testing, and UI automation

Related Posts

threadlocal in selenium webdriver Uncategorized
Part 3: Usages Of Javascripts In Selenium: Problem You Might Face While Executing Javascript Commands In Selenium Uncategorized
image – Make Selenium Easy Uncategorized
image – Make Selenium Easy Uncategorized
Test Automation Is Needed But Not As Magic Uncategorized
REST Assured Tutorial 53 – How to create ResponseSpecification using ResponseSpecBuilder Uncategorized

Recent Posts

  • Getting Started with Selenium 4: What Is New and How to Upgrade from Selenium 3
  • Manual Testing
  • Baby Steps To Become Efficient Selenium-Java Automation Tester
  • Features of Selenium 4.0.0 Release – Java Binding
  • Part 1: Handling Drop-down Created Using SELECT Tag In Selenium

Recent Comments

No comments to show.

Archives

  • April 2026
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • April 2024
  • March 2024
  • February 2024
  • December 2023
  • October 2023
  • August 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • May 2022
  • March 2022
  • October 2021
  • April 2021
  • March 2021
  • January 2021
  • December 2020
  • October 2020
  • September 2020
  • August 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • May 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • January 2018

Categories

  • Getting Started
  • Uncategorized

Copyright © 2026 Make Selenium Easy.

Powered by PressBook Masonry Dark