In Postman, when you receive a response, you can view it in different tabs: Pretty, Raw, and Preview. Which statement correctly describes the Pretty view?
Think about which view helps you read JSON or XML responses clearly.
The Pretty view formats the response body with colors and indentation, making it easier to read structured data like JSON or XML. The Raw view shows the exact response text, and Preview renders HTML content.
You send a GET request that returns this JSON response body:
{"name":"Alice","age":30,"city":"Paris"}What will the Raw view display?
The Raw view shows the exact response text without formatting.
The Raw view displays the response exactly as received, so the JSON string is shown without added spaces or line breaks.
You receive an HTTP response with Content-Type text/html containing a simple webpage. Which assertion correctly verifies that the Preview tab in Postman will render the page?
Preview renders HTML content visually.
The Preview tab renders HTML content as a webpage. To verify this, the response body must contain valid HTML tags. JSON or empty bodies won't render as a webpage.
You notice that in Postman, the Raw view of a response shows garbled characters instead of readable text. What is the most likely cause?
Think about how servers send compressed data and how clients handle it.
If the server sends compressed data but Postman does not decompress it, the Raw view will show unreadable characters. This is a common issue with compressed responses.
You want to write a Postman test script that automatically checks if the response body is valid JSON and thus will display correctly in the Pretty view. Which script snippet correctly performs this check?
pm.test('Response is valid JSON', () => {
// Your code here
});Try parsing the response text and check if it throws an error.
Option A tries to parse the response text as JSON and asserts that no error is thrown. This confirms valid JSON. Option A uses a non-existent assertion, A wrongly expects JSON to be a string, and D only checks status code.