This set builds vocabulary for organizing, reusing, and automating API request testing.
0 / 5 completed
1 / 5
At standup, a dev proposes grouping a set of related API requests together with shared variables for testing an endpoint suite. What is this grouping called?
A collection in Postman groups related API requests together, often sharing variables and configuration, making it easier to organize, run, and share a suite of endpoint tests as a unit. This organization supports both manual exploration and automated test runs. Collections are the core organizational structure around which most Postman workflows are built.
2 / 5
During a design review, the team wants requests within a collection to reuse a base URL and auth token without hardcoding them into every request. Which feature supports this?
Environment variables let values like a base URL or auth token be defined once and referenced across every request in a collection, so switching between staging and production only requires swapping the active environment rather than editing each request individually. This avoids duplicated, error-prone hardcoded values. It is a standard practice for maintainable API testing setups.
3 / 5
In a code review, a dev sets up automated assertions that run after each request in a collection to verify the response status and body. What are these called?
Postman tests are scripts that run after a request completes, asserting conditions like expected status codes or response body values, turning manual exploration into repeatable automated verification. This lets a collection double as a lightweight API test suite. Automating these checks catches regressions without manual re-verification each time.
4 / 5
An incident report shows a collection accidentally sent requests to the production environment during testing due to a misconfigured active environment. What practice reduces this risk?
Clearly distinguishing environments, through naming conventions or visual cues, and double-checking which one is active before running a collection reduces the risk of accidentally hitting production during testing. Environment mix-ups are a common source of unintended API test side effects. This discipline generalizes to any tool that switches between multiple target environments.
5 / 5
During a PR review, a teammate asks how a Postman collection differs from writing raw curl commands for each API call. What is the advantage?
While individual curl commands work for one-off calls, a collection organizes related requests together with shared environment variables, reusable auth, and automated assertions, supporting a more maintainable and repeatable testing workflow. This structure scales better as the number of endpoints grows. Collections also make it easier to share a consistent testing setup across a team.