Postman Mini-Project | Automating API Test Flow with Postman Collections & Runner
00:00 - Intro 00:25 - Scenario overview 01:30 - Project Deliverables 02:22 - Create new environment and variables 04:57 - Create new Collection 06:14 - Create Login request 09:42 - Extract and store token 15:15 - Refer token in next request 18:12 - Extract and store userid 21:15 - Refer userid in next request 29:00 - Run Collection 31:46 - Tips / Common mistakes TAKE THE QUIZ and let me know your Score - https://forms.gle/XJzL2fmNnL2cgNzd7 In this hands-on Postman tutorial, you’ll learn how to: ✅ Extract values from API responses and store them in variables ✅ Use variables dynamically across multiple API requests ✅ Automate complete API test flows using Postman Collection Runner ✅ Validate responses with assertions and environment variables ✅ Run your entire test suite with a single click 🎯 Ideal for: QA Engineers Automation Testers SDET Aspirants Students learning API Testing This practical mini project is perfect for beginners and QA professionals who want to understand real-world API automation using Postman. Scenario Overview: You have a simple User Management API The test flow involves: Login → extract token Create a user → use token → extract user ID Update user using the extracted ID Delete the user You’ll run all these steps as one automated flow using Postman Runner Deliverables: ✅ Postman Collection with at least 4 requests ✅ Environment file for base URL and dynamic variables ✅ Automated run report (via Collection Runner) End Result: you can run a complete API workflow in one go you can pass variables dynamically and chain requests Builds a foundation for data-driven and CI/CD testing Step 1 - Create new Environment Step 2 - Add a variable: baseUrl → https://reqres.in token → (empty) userId → (empty) Step 3 - Save and select the environment Step 4 - Click “New” → Collection → Name it User Flow Automation Step 5 - Create a new Post request Login (Extract Token) {{baseUrl}}/api/login Step 6 - Add body { "email": "[email protected]", "password": "cityslicka" } Step 7 - In Tests tab add: const response = pm.response.json(); pm.environment.set("token", response.token); pm.test("Token is received", () => { pm.expect(response.token).to.not.be.undefined; }); Step 8 - Create Request 2 — Create User POST {{baseUrl}}/api/users Step 9 - Add body: { "name": "John Doe", "job": "QA Engineer" } Step 10 - Headers: Authorization: Bearer {{token}} Step 11 - Tests tab: const response = pm.response.json(); pm.environment.set("userId", response.id); pm.test("User ID is stored", () => { pm.expect(response.id).to.not.be.undefined; }); Step 12 - Request 3 — Update User UPDATE {{baseUrl}}/api/users/{{userId}} Step 13 - Add body and headers as needed Step 14 - Tests tab: pm.test("User retrieved successfully", () => { pm.response.to.have.status(200); }); Step 15 - Request 4 — Delete User DELETE {{baseUrl}}/api/users/{{userId}} Step 16 - Headers: Authorization: Bearer {{token}} Step 17 - Tests tab: pm.test("User deleted", () => { pm.response.to.have.status(204); }); Step 18 - Add a Pre-request Script in “Login” to print timestamp: (Optional) pm.environment.set("runStartTime", new Date().toISOString()); console.log("Run started at:", pm.environment.get("runStartTime")); Step 19 - Open Collection Runner Use Collection: User Flow Automation Environment: (your environment) Step 20 - Run the Collection and observe Token gets stored User created User fetched User deleted All tests run automatically ✅ Expected Output: All 4 requests executed in sequence Tests show “Passed” Token and userId handled dynamically Tips / Common Mistakes: ✅ Make sure environment is selected before running 🚫 Don’t hardcode token or user ID 🧪 Use console and Test Results panel to debug 💾 Save requests before running the Collection 🧭 Order matters in the Runner — login must run before create user #PostmanTutorial #APITesting #AutomationTesting ▬▬▬▬▬▬▬ Share with all who may need this If my work has helped you, consider helping any animal near you, in any way you can Never Stop Learning Raghav Pal ▬▬▬▬ USEFUL LINKS ▬▬▬▬ ✅ ALL TUTORIALS - https://AutomationStepByStep.com/ 🙌 Connect with Raghav: Ask Raghav: https://bit.ly/2CoJGWf GitHub: https://github.com/Raghav-Pal Udemy: https://www.udemy.com/user/raghav-pal-3/ Shorts Eng - https://bit.ly/3H9bifV Shorts Hindi - https://bit.ly/3XY7XqN ➡️ Subscribe for more videos: / @raghavpal —

Postman Mini-Project: Master Token-based Auth (OAuth 2.0/Bearer) for API Testing 🔥

Postman Mini-Project | Environment Switching & Data-Driven API Testing with Runner

Postman Beginner Tutorial 2026 | Collections with AI (Ask AI) Explained

Postman Mini-Project | Add to Cart API Testing (Real E-Commerce Flow Step-by-Step)

Data Build Tool - DBT Complete Masterclass | Data Engineer | Prem Shende | Data Stack With Prem

Postman Mini-Project | Login API, Token & Auth Testing (Real API Step-by-Step)
![Power Automate Beginner to Pro Tutorial [Full Course]](https://i.ytimg.com/vi/1p5kI7SYz4Q/hqdefault.jpg?sqp=-oaymwEjCNACELwBSFryq4qpAxUIARUAAAAAGAElAADIQj0AgKJDeAE=&rs=AOn4CLDIQUeJjCKSUU_QtkVwDZktEykVCg)
Power Automate Beginner to Pro Tutorial [Full Course]

JMeter Complete Step by Step from scratch | 2025

Postman Beginner's Course - API Testing

Salesforce Tutorial For Beginners | Introduction To Salesforce | Salesforce Training | Simplilearn

System Design Course – APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

System Design Explained: APIs, Databases, Caching, CDNs, Load Balancing & Production Infra

What is SonarQube | Introduction SonarQube | SonarQube Tutorial | SonarQube Basics | Intellipaat

n8n Tutorial – Zero to Hero Course

Learn Postman for API Testing (Step-by-Step Tutorial)

Postman Beginner Tutorial 13 | Data Driven Testing | How to get data from CSV and JSON files

Postman Tutorial #21 - Manual API Testing End to End | Part-1

Playwright TypeScript | Getting Started

Postman API Test Automation for Beginners

