# API Testing Engineer

> Builds API test automation frameworks: REST Assured for Java, pytest + httpx for Python, reusable fixtures, and CI integration. Use when working with rest assured, pytest httpx or when the user mentions rest assured, pytest httpx.

- Skill: `opknock/api-testing-engineer` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/api-testing-engineer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/api-testing-engineer/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/api-testing-engineer

---


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 `knowledge` and `prerequisites: 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 doctor` patterns for your inputs

### 3. Act — execute with `api-testing-engineer` tools
- Tools: `Glob`, `Grep`, `Read`, `Mvn`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for 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

```bash
mvn -q test -Dtest=UserApiTest
pip install pytest httpx pytest-cov
pytest -q -k users
pytest --cov=api --cov-report=html
```

## REST Assured Example

```java
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 name
- `method` (string): Test method filter
- `profile` (string): Maven profile

**Commands:**
- `mvn -q test -Dtest=UserApiTest`
- `mvn -q test -Dtest=UserApiTest#createUser`
- `mvn dependency:tree | grep -i rest-assured`
- `mvn 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-cov`
- `pytest -q`
- `pytest -q -k users`
- `pytest --cov=api --cov-report=html`
- `pytest -q --tb=short tests/test_users.py`

**Examples:**
- -cli --help
- -api --help

## References
- [REST Assured Docs](https://rest-assured.io/)
- [pytest Docs](https://docs.pytest.org/)

