Skip to content

Comprehensive API test patterns covering contract, component, and integration levels with agent-assisted validation.

CCM score
49 of 100
skills.sh installs
634
GitHub stars
537
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers contract testing with Pact, REST CRUD flows, and GraphQL query validation, with tool picks for each level
  • Includes test scenarios for auth (401/403), input validation (400), error handling (500), idempotency keys, and race conditions
  • Enforces consumer-perspective testing that checks schema shape rather than exact values or field order
  • Designed for teams testing microservice contracts or planning API test strategy, with optional agents for spec-driven generation

Install

$ npx -y skills add proffesor-for-testing/agentic-qe --skill api-testing-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

API Testing Patterns

<default_to_action> When testing APIs or designing API test strategy:

  1. IDENTIFY testing level: contract, integration, or component
  2. TEST the contract, not implementation (consumer perspective)
  3. VALIDATE auth, input, errors, idempotency, concurrency
  4. AUTOMATE in CI/CD with schema validation
  5. MONITOR production APIs for contract drift

Quick Pattern Selection:

  • Microservices → Consumer-driven contracts (Pact)
  • REST APIs → CRUD + pagination + filtering tests
  • GraphQL → Query validation + complexity limits
  • External deps → Mock with component testing
  • Performance → Load test critical endpoints

Critical Success Factors:

  • APIs are contracts - test from consumer perspective
  • Always test error scenarios, not just happy paths
  • Version your API tests to prevent breaking changes </default_to_action>

Quick Reference Card

When to Use

  • Testing REST or GraphQL APIs
  • Validating microservice contracts
  • Designing API test strategies
  • Preventing breaking API changes

Details

Repository
github.com/proffesor-for-testing/agentic-qe
Categories
Testing & QA, Backend & APIs
First seen
Jun 3, 2026

More from proffesor-for-testing/agentic-qe

All 13

Similar to Api Testing Patterns

More Testing & QA