ai-ad-api-automation-test (SKILL)

Generate and execute pytest and Newman API contract tests aligned with SoT documents.

Updated Nov 8, 2025
One-click install
npx skills add https://github.com/wade56754/AI_ad_spend02 --skill ai-ad-api-automation-test-skill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai-ad-api-automation-test (SKILL)
Source: https://github.com/wade56754/AI_ad_spend02/tree/main/.claude/skills/ai-ad-api-automation-test
Command: npx skills add https://github.com/wade56754/AI_ad_spend02 --skill ai-ad-api-automation-test-skill

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes templates (resource) and references (resource) components.

What problem does it solve?

This Skill orchestrates API automation tests, generates pytest tests under AUTOMATION_TEST_SPEC_v1.4, and supports Newman for contract testing aligned with SoT.

Core Features & Use Cases

  • pytest + Newman integration: Comprehensive API contract tests.
  • SoT alignment: Tests map to STATE_MACHINE.md and API_SOT.md.

Quick Start

Use mode GENERATE to create tests, then RUN or NEWMAN to execute. Output includes reports and coverage data.

Frequently Asked Questions about ai-ad-api-automation-test (SKILL)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate pytest tests for API automation?

API automation test generation creates pytest code following AUTOMATION_TEST_SPEC_v1.4 for your endpoints. Use mode GENERATE to produce test files across modules like auth, ad_accounts, and settlements, then execute with RUN or verify contracts with Newman for L0–L3 coverage.

Can I use Newman for API contract testing alongside pytest?

Yes. This Skill integrates Newman and Postman contract testing with pytest, enabling comprehensive API validation. Both frameworks run against the same endpoints and align results with your SoT documentation for unified coverage reporting.

What does SoT alignment mean for API tests?

SoT alignment maps your generated tests to STATE_MACHINE.md and API_SOT.md, ensuring test coverage reflects documented API behavior and state transitions. This validates that your automation tests stay synchronized with source-of-truth specifications.

How do I run API tests across multiple modules and environments?

Specify modules (daily_report, topup_request, reconciliation, ledger, ad_accounts, suppliers, settlements, projects, auth) and use environment management to execute tests at L0–L3 levels. Mode RUN executes pytest; mode NEWMAN runs Postman contract tests with path-based output organization and coverage reports.

What output does API test execution produce?

Test execution generates pytest results, Newman contract test reports, coverage data, and SoT-aligned documentation. Output is organized by path and environment, enabling traceability between test runs and API specification requirements.

Do I need existing API documentation to use API automation testing?

Yes. SoT documents (STATE_MACHINE.md and API_SOT.md) and AUTOMATION_TEST_SPEC_v1.4 compliance requirements are prerequisites. These define test scope, expected behavior, and module coverage before generation and execution begins.