Practice & Assessment
Test your understanding of Collections and Environments
Multiple Choice Questions
6What is the correct order of variable scope priority in Postman (highest to lowest)?
You want to test the same collection against three different server URLs without changing individual requests. The best approach is:
Where should you store sensitive API credentials like passwords and tokens in Postman environments?
What does {{$randomEmail}} do in a Postman request body?
What is the correct way to save a response value to an environment variable from a Tests script?
Which file format is used to export a Postman collection for sharing or version control?
Mini Project
Multi-Environment API Test Suite for a Blog API
Build a complete multi-environment API test suite for the JSONPlaceholder blog API. Create a collection 'Blog API Test Suite' with four folders: Posts (GET all, GET by ID, POST, PUT, DELETE), Comments (GET for a post, POST), Users (GET all, GET by ID), Todos (GET with filter). Create Development and Staging environments. At the collection level, add pre-request scripts to log the active environment name and test scripts to verify response time under 2 seconds. Chain the POST /posts request to save the created post ID, then use it in GET, PUT, and DELETE. Run the full suite with the Collection Runner and document the pass/fail results.
