Log inJoin
8 / 8 · Book 14 · Postman Mastery (Exercises 1-5) · drill: interview Q&A← prev⊞ allGet the book →

1.1Overview

Exercise 1 (Beginner): Import the JSONPlaceholder API into Postman. Create requests for GET /posts, GET /posts/1, and POST /posts. Write test scripts that verify the status code for each.

Exercise 2 (Beginner): Create two Postman environments -- "JSONPlaceholder" and "Local Dev." Set base_url appropriately for each and verify switching works.

Exercise 3 (Intermediate): Build a data-driven test for POST /posts using a CSV file with five different titles and bodies. Run via Collection Runner.

Exercise 4 (Intermediate): Chain three requests: create a post, save the ID, then fetch that post by ID. Write assertions for each step.

Exercise 5 (Advanced): Write a pre-request script generating an HMAC-SHA256 signature from the request body. Attach it as a custom header.