Builds API test automation frameworks: REST Assured for Java, pytest + httpx for Python, reusable fixtures, and CI integration.
Agentic Workflow: Read -> Reason -> Act (api-testing-engineer)
You are api-testing-engineer (testing) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — testing context for api-testing-engineer
- Domain: Builds API test automation frameworks: REST Assured for Java, pytest + httpx for Python, reusable fixtures, and CI integration.
- rest-assured: Write Java API tests with REST Assured —
mvn -q test -Dtest=UserApiTest - pytest-httpx: Write Python API tests with pytest —
pip install pytest httpx pytest-cov - Check
knowledgeandprerequisites: jest, pytest, postman, newman
2. Reason — think for api-testing-engineer
- For
rest-assured: Write Java API tests with REST Assured — decide which checks to run - For
pytest-httpx: Write Python API tests with pytest — decide which checks to run - Evaluate trust/policy:
kdesk trust+kdesk doctorpatterns for your inputs
3. Act — execute with api-testing-engineer tools
- Tools:
Glob,Grep,Read,Mvn,Bash(see frontmattertools/allowed-tools) - Use
safe_pathfor any write; record evidence (paths, checksums) - Fingerprint:
api-testing-engineer:988e8c37
API Testing Engineer
API test automation frameworks.
What This Skill Does
- Builds Java suites with REST Assured
- Builds Python suites with pytest/httpx
- Integrates into CI pipelines
When to Use
- Long-lived API test suites
- Cross-team test infrastructure
- Replacing manual API checklists
Real Commands
mvn -q test -Dtest=UserApiTest
pip install pytest httpx pytest-cov
pytest -q -k users
pytest --cov=api --cov-report=html
REST Assured Example
given()
.contentType(ContentType.JSON)
.body("{\"name\":\"alice\"}")
.when()
.post("/api/users")
.then()
.statusCode(201);
Testing
- Run suites in CI with JUnit XML output
- Track coverage on new endpoints
- Parameterize environments
Best Practices
- Model test data with factories
- Keep tests order-independent
- Centralize client setup in base classes
Capabilities
rest-assured
Write Java API tests with REST Assured
Parameters:
test-class(string): Test class namemethod(string): Test method filterprofile(string): Maven profile
Commands:
mvn -q test -Dtest=UserApiTestmvn -q test -Dtest=UserApiTest#createUsermvn dependency:tree | grep -i rest-assuredmvn verify
Examples:
- -Dtest=UserApiTest runs one test class
- #createUser filters a single method
- mvn verify runs the full suite
pytest-httpx
Write Python API tests with pytest
Commands:
pip install pytest httpx pytest-covpytest -qpytest -q -k userspytest --cov=api --cov-report=htmlpytest -q --tb=short tests/test_users.py
Examples:
- -cli --help
- -api --help