Exercises
1.1BeginnerExercise 1: Import the JSONPlaceholder API (https://jsonplaceholder.typicode.com) into Postman. Create requests for GET /posts, GET…1.2IntermediateExercise 3: Build a data-driven test for the JSONPlaceholder POST /posts endpoint. Create a CSV file with five different post titles and…1.3AdvancedExercise 5: Write a pre-request script that generates an HMAC-SHA256 signature from the request body using a secret stored in an…1.4Q&AResume phrasing- Designed and maintained Postman collections covering 100% of API endpoints, reducing manual regression testing time by 60% during sprint…1.5Q&ACover letter framingAPI testing begins with understanding the system under test, and Postman is where that understanding starts. I use Postman not as a crutch…1.6Q&AInterview framing"I treat Postman as my API reconnaissance tool. Before I write a single line of automated code, I import the OpenAPI spec, set up…1.7Q&AWhat not to say- "I just click Send and check the response." -- Shows no systematic approach; interviewers want to see structured thinking. - "I use…1.8Q&AQuestion 1Prompt: You inherit a Postman collection with 200+ requests, no environment variables, hardcoded tokens everywhere, and no folder…1.9Q&AQuestion 2Prompt: A developer tells you their API does not need an OpenAPI spec because "the code is the documentation." How do you push back, and…1.10Q&AQuestion 3Prompt: You are building a data-driven test in Postman with a CSV file containing 500 rows of test data. The collection run takes 45…1.11Basic Usage1.12Newman in GitHub ActionsPRO TIP: Always use if: always() on the artifact upload step. This ensures test reports are saved even when tests fail -- which is exactly…1.13Project Structure1.14Shared Fixtures (conftest.py)The conftest.py file is the heart of your pytest API test suite. It contains fixtures that provide authenticated sessions, base URLs, and…1.15Writing CRUD TestsCOMMON MISTAKE: Writing tests that depend on data created by other tests. Each test should create its own data and clean up after itself…1.16The Hybrid ApproachMany teams use both tools effectively:1.17pytest Configuration