My Journey with Postman Testing: From Manual Hell to Automated Heaven with MS Entra and Python
The Day I Realized Manual Testing Was Killing My Productivity
The Problem: Testing a Python API Protected by MS Entra
Discovery #1: Building the Python Backend That Started It All
Discovery #2: The Postman Collection That Changed Everything
The Complete Testing Flow: From Postman to Newman to CI/CD
Setting Up the Postman Environment
The Authentication Request That Started It All
Discovery #3: Performance Testing - When My API Met Reality
Load Testing: Finding Your API's Sweet Spot
Setting Up Performance Test Data
Load Testing Collection Structure
Load Test: User Creation Under Pressure
Newman CLI for Load Testing
Breakpoint Testing: Finding the Breaking Point
Breakpoint Test Strategy
Breakpoint Test: Progressive User Creation Load
Advanced Newman Script for Breakpoint Testing
Performance Testing in CI/CD Pipeline
Discovery #4: End-to-End Testing Flow That Actually Works
1. User Creation Test
2. Group Creation and Management Test
3. Temporary Access Pass Generation Test
4. Integration Test with Microsoft Graph API Direct Call
The Complete Testing Strategy: From Performance to Function
Discovery #5: Newman CLI - Taking Tests from GUI to Command Line
Installing Newman: The 5-Minute Setup
My First Newman Run: The "Aha!" Moment
The Newman Test Execution Flow
Newman Command Options That Saved My Life
The Test Report That Makes You Look Professional
Discovery #6: GitHub Actions CI/CD - The Final Boss Level
The Complete CI/CD Pipeline Architecture
My GitHub Actions Workflow File
Setting Up GitHub Secrets
The Multi-Environment Testing Strategy
The Local Development Script
My Pre-request Scripts That Made Everything Smooth
Collection-Level Test Scripts for Comprehensive Validation
My Newman CLI Scripts for CI/CD Integration
What I Learned: The Hard-Won Lessons
1. Performance Testing Changed Everything
2. Breakpoint Testing Revealed Hidden Limits
3. Token Management Is Everything (Even More Under Load)
4. Load Testing Environments Need Special Care
5. Performance Monitoring Integration Is Critical
6. Team Performance Culture Matters
The Results: From 45 Minutes to 5 Minutes (Plus Performance Confidence)
Before Comprehensive Testing:
After Comprehensive Automated Testing:
The Numbers That Matter:
Performance-Specific Improvements:
My Advice for Your Comprehensive Testing Journey
Start Simple:
Add Performance Gradually:
Build Incrementally:
Scale Thoughtfully:
Performance-Specific Advice:
The Ultimate Performance Testing Checklist
Pre-Test Setup:
Load Testing:
Breakpoint Testing:
Token Performance Testing:
Error Scenario Testing:
Reporting and Analysis:
The End of Manual Testing Hell and Performance Surprises
The Three Pillars of My Testing Philosophy:
Quick Reference: Complete Testing Pipeline Summary
1. Development Phase (Postman GUI)
2. Local Automation (Newman CLI)
3. CI/CD Integration (GitHub Actions)
4. Continuous Monitoring (Scheduled Tests)
Resources and Tools
Essential Links
Postman Collections
Complete Postman Collection Files
1. Full Test Suite Collection
2. Smoke Tests Collection
3. Environment Files
4. Performance Test Collection
How to Use These Collections
Step 1: Import into Postman
Step 2: Setup Environment
Step 3: Run with Newman
About This Guide
Key Takeaways
PreviousTesting Pyramid for Microservices: My Journey from Testing Chaos to Structured ConfidenceNextChaos Engineering: My Journey from Fear of Failures to Embracing Chaos
Last updated