Script Valley
Postman API Testing: Complete Course
Collections and Environments/Assessment

Practice & Assessment

Test your understanding of Collections and Environments

Multiple Choice Questions

6
1

What is the correct order of variable scope priority in Postman (highest to lowest)?

2

You want to test the same collection against three different server URLs without changing individual requests. The best approach is:

3

Where should you store sensitive API credentials like passwords and tokens in Postman environments?

4

What does {{$randomEmail}} do in a Postman request body?

5

What is the correct way to save a response value to an environment variable from a Tests script?

6

Which file format is used to export a Postman collection for sharing or version control?

Mini Project

1

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.

Medium