惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
小众软件
小众软件
S
Schneier on Security
S
Securelist
P
Proofpoint News Feed
D
DataBreaches.Net
博客园_首页
S
Security Affairs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - Franky
C
Check Point Blog
GbyAI
GbyAI
H
Help Net Security
The Register - Security
The Register - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
雷峰网
雷峰网
博客园 - 叶小钗
WordPress大学
WordPress大学
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
The Exploit Database - CXSecurity.com
L
LINUX DO - 热门话题
C
Cybersecurity and Infrastructure Security Agency CISA
SecWiki News
SecWiki News
T
Threatpost
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tenable Blog
H
Hacker News: Front Page
宝玉的分享
宝玉的分享
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
Google Online Security Blog
Google Online Security Blog
P
Privacy & Cybersecurity Law Blog
N
News | PayPal Newsroom
M
MIT News - Artificial intelligence
P
Privacy International News Feed
博客园 - 三生石上(FineUI控件)
美团技术团队
S
SegmentFault 最新的问题
Forbes - Security
Forbes - Security
Last Week in AI
Last Week in AI
Spread Privacy
Spread Privacy
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
Cyberwarzone
Cyberwarzone
博客园 - 聂微东
Hugging Face - Blog
Hugging Face - Blog
Engineering at Meta
Engineering at Meta

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
How API Testing Levelled Up My QA Career (And Why Most Engineers Skip It)
Faizal · 2026-06-14 · via DEV Community

The Moment I Realised UI Testing Wasn't Enough

Three years into my QA career, I thought I was doing well.

I had a solid Selenium suite running. Regression coverage was green. Stakeholders were happy.

Then a production incident happened.

A payment API was returning incorrect amounts under a specific condition. The UI looked perfect — amounts displayed correctly after rounding. But the raw API response? Off by a significant margin.

My entire test suite missed it. Every single test.

Because I was only testing what users saw. Not what the system was actually doing.

That incident changed how I approached QA forever. 👇


Why API Testing Is the Most Underrated Skill in QA

Let me be direct about something.

Most QA engineers treat API testing as a secondary skill. Something you do with Postman when a developer asks you to verify an endpoint. A quick sanity check before moving on.

That's the wrong mental model entirely.

Here's the truth after 7.5 years:

The API layer is where your product actually lives.

The UI is a presentation layer. It shows users a version of the truth. But the API? That's the truth itself. Data contracts, business logic, validation rules, error handling — all of it lives at the API layer.

If you're only testing the UI, you're testing the packaging. Not the product.


My API Testing Journey — Tool by Tool

Let me walk you through exactly how my API testing practice evolved, and what each tool actually taught me.


Stage 1 — Postman: Learning to Think in Requests

Postman was my entry point. And it's still the tool I reach for first when exploring a new API.

But most people use Postman wrong.

They treat it like a manual testing tool — fire a request, check the response, move on. That's wasting 80% of what Postman can do.

Here's how I actually use it:

Collections + Environments = your real power combo

// Environment variables — not hardcoded values
{{base_url}}/api/v1/users/{{user_id}}

// Switch between dev/staging/prod by changing one environment
// Not by editing every single request

Pre-request scripts for dynamic data:

// Generate a unique email for every test run
const timestamp = Date.now();
pm.environment.set("test_email", `testuser_${timestamp}@example.com`);

Test scripts for automated assertions:

pm.test("Status code is 200", () => {
    pm.response.to.have.status(200);
});

pm.test("User ID matches", () => {
    const response = pm.response.json();
    pm.expect(response.data.id).to.eql(pm.environment.get("user_id"));
});

pm.test("Response time under 500ms", () => {
    pm.expect(pm.response.responseTime).to.be.below(500);
});

What Postman taught me:
Thinking in terms of contracts. Every API has an implied contract — here's what you send, here's what you get back. My job as a tester is to verify that contract holds under every condition.


Stage 2 — Charles Proxy: Seeing What the System Hides

Postman is great when you know what API you're testing.

But what about the APIs you don't know about?

Charles Proxy changed my debugging game completely. I started opening it before I even wrote my first test on any new feature.

Here's my actual workflow:

  1. Open Charles, start capturing
  2. Perform the user action in the app (or mobile device via proxy)
  3. See every network call — including the ones nobody told me about
  4. Build my test suite from what I actually observe, not just what's in the Swagger docs

The Swagger docs lie. Or they're outdated. Or they're incomplete. Charles never lies.

Where Charles became indispensable:

Scenario: Mobile checkout flow
What Swagger documented: 3 API calls
What Charles actually showed: 7 API calls

The undocumented calls included:
- A fraud scoring API call
- An inventory reservation call  
- A session refresh call

All three were failure points nobody had tested.

Breakpoints for on-the-fly request modification:

Set a breakpoint on any request. Intercept it before it hits the server. Modify the payload. Fire it. See what happens.

This is how I test edge cases that would take hours to set up in a test environment — in minutes.


Stage 3 — Playwright for API Testing: Automation That Actually Scales

Manual Postman and Charles get you far. But they don't scale.

When I needed repeatable, CI-friendly API tests, I moved to Playwright's API testing capabilities. Most people don't know Playwright does this — they think of it as a browser tool only.

import { test, expect } from '@playwright/test';

test.describe('User API', () => {

    let authToken;

    test.beforeAll(async ({ request }) => {
        // Authenticate once, reuse token across all tests
        const response = await request.post('/api/auth/login', {
            data: {
                email: 'test@example.com',
                password: 'testpassword'
            }
        });
        const body = await response.json();
        authToken = body.token;
    });

    test('GET user profile returns correct schema', async ({ request }) => {
        const response = await request.get('/api/v1/users/profile', {
            headers: {
                'Authorization': `Bearer ${authToken}`
            }
        });

        expect(response.status()).toBe(200);

        const body = await response.json();

        // Schema validation
        expect(body).toHaveProperty('id');
        expect(body).toHaveProperty('email');
        expect(body).toHaveProperty('role');
        expect(typeof body.id).toBe('number');
        expect(typeof body.email).toBe('string');
    });

    test('POST create user — validates required fields', async ({ request }) => {
        const response = await request.post('/api/v1/users', {
            headers: { 'Authorization': `Bearer ${authToken}` },
            data: {
                // Missing required 'email' field intentionally
                name: 'Test User'
            }
        });

        expect(response.status()).toBe(400);

        const body = await response.json();
        expect(body.error).toContain('email');
    });

    test('Response time SLA — under 800ms', async ({ request }) => {
        const start = Date.now();

        await request.get('/api/v1/users/profile', {
            headers: { 'Authorization': `Bearer ${authToken}` }
        });

        const duration = Date.now() - start;
        expect(duration).toBeLessThan(800);
    });
});

What makes Playwright API testing powerful:

  • Runs in the same framework as your UI tests — one suite, one report
  • Built-in request context — no extra HTTP client libraries
  • Parallel execution out of the box
  • Integrates cleanly with CI/CD

Stage 4 — DB Validation: The Layer Nobody Tests

This is the one most automation engineers completely skip.

Here's the problem with testing only at the API layer:

POST /api/v1/orders
Response: { "status": "success", "order_id": "ORD-123" }
Test result: ✅ PASS

But did the order actually get written to the database correctly?
Did all the fields persist as expected?
Did the foreign key relationships hold?
Did any triggers fire that modified related records?

Your API test doesn't know. Your DB test does.

import { test, expect } from '@playwright/test';
import { Client } from 'pg'; // PostgreSQL client

test('Order creation — validates DB persistence', async ({ request }) => {

    // Step 1: Create order via API
    const response = await request.post('/api/v1/orders', {
        headers: { 'Authorization': `Bearer ${authToken}` },
        data: {
            product_id: 42,
            quantity: 2,
            user_id: 101
        }
    });

    expect(response.status()).toBe(201);
    const { order_id } = await response.json();

    // Step 2: Validate at DB layer
    const db = new Client({ connectionString: process.env.DB_URL });
    await db.connect();

    const result = await db.query(
        'SELECT * FROM orders WHERE order_id = $1',
        [order_id]
    );

    expect(result.rows.length).toBe(1);

    const order = result.rows[0];
    expect(order.product_id).toBe(42);
    expect(order.quantity).toBe(2);
    expect(order.user_id).toBe(101);
    expect(order.status).toBe('pending'); // Business logic check

    await db.end();
});

This two-layer approach has caught bugs that API testing alone never would:

  • Records created with wrong foreign keys
  • Decimal precision lost during persistence
  • Audit log entries missing
  • Cache not invalidated after write

Stage 5 — JMeter: When "Does It Work?" Isn't Enough

All the tests above answer one question: does it work?

JMeter answers a different question: does it work under load?

I've been using JMeter for performance testing for years. And the pattern I see constantly is this — APIs that pass every functional test absolutely fall apart at scale.

My standard performance test structure for any API:

Thread Group: 100 concurrent users
Ramp-up: 60 seconds
Duration: 5 minutes

HTTP Request: POST /api/v1/orders
  → CSV Data Set Config (unique test data per user)
  → HTTP Header Manager (auth tokens)

Listeners:
  → Summary Report (throughput, error rate)
  → Response Time Graph
  → View Results Tree (for debugging failures)

Assertions:
  → Response time < 1000ms (95th percentile)
  → Error rate < 1%

The bugs JMeter found that nothing else did:

  • A search API that handled 10 concurrent users fine — degraded to 30-second responses at 50 users (missing database index)
  • A session API with a race condition that only appeared when 20+ users hit it simultaneously
  • A payment API that started returning 500s after sustained load for 10 minutes (connection pool exhaustion)

None of these would've been caught by functional tests alone.


The Career Impact — What API Testing Actually Changed

Here's what shifting my focus to API testing actually did for my career:

I became the person who caught things before production.

Not because I'm smarter than anyone else. Because I was looking at a layer most testers weren't looking at.

I got closer to developers.

API testing made me fluent in the language developers speak. Endpoints, payloads, status codes, contracts, performance SLAs. When you speak that language, developers start treating you as a peer — not a gatekeeper.

I became harder to replace.

A tester who only does UI automation is replaceable. A tester who understands the full stack — UI, API, performance, database — is a different kind of engineer entirely.

It prepared me for AI testing.

Everything I'm doing now with RAG-based testing and LLM validation is built on top of API testing fundamentals. AI systems are, at their core, APIs. The mental model transfers directly.


Where to Start If You're Behind on API Testing

If you're reading this and realising your API testing practice needs work — here's the honest starting point:

Week 1: Learn Postman properly. Collections, environments, test scripts. Newman for CLI runs.

Week 2: Set up Charles Proxy. Intercept a real app's traffic. Map every API call for one feature.

Week 3: Write your first Playwright API test suite for a real endpoint in your project.

Week 4: Add DB validation for your most critical write operations.

Month 2: Set up a JMeter test for your highest-traffic endpoint. Run it. See what breaks.

You don't need to do all of this overnight. But you need to start. Because the gap between teams that do this and teams that don't is enormous — and it shows up directly in production.


Final Thought

The best QA engineers I've ever worked with share one trait.

They're deeply curious about how things work — not just whether things work.

API testing is what happens when that curiosity meets a systematic approach.

It's not glamorous. There's no visual feedback, no screenshots, no UI to look at. Just raw data flowing between systems — and your job to make sure every byte of it is exactly right.

That's the work. And in my experience, it's the most valuable work in QA.


Faizal Shaikh | Senior Automation Engineer | AI & RAG-Based Testing
Connect with me on LinkedIn

Building a complete RAG Testing Series on Dev.to — follow along if you're curious about testing AI systems.