Chain a multi-step integration flow
Hard120 pts
- Integration testing
- Workflows
Practice app · Acme REST API
A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.
Your starter code already declares BASE_URL — call the API relative to it.
Objective
Automate a full admin workflow: authenticate, create, read, update and delete a user.
Your Task
- 1POST BASE_URL + "/auth/token" with admin credentials { "username": "qa@target.dev", "password": "Test@123" }, extract access_token, and verify GET BASE_URL + "/auth/me" with Authorization: Bearer <access_token> returns 200.
- 2POST BASE_URL + "/users" with a unique email { "name": "Test User", "email": "qa.<timestamp>@example.test", "role": "viewer" } → assert 201 and capture integer id.
- 3PATCH BASE_URL + "/users/" + id with { "role": "editor" } → assert 200; GET BASE_URL + "/users/" + id → assert role "editor".
- 4DELETE BASE_URL + "/users/" + id → assert 204.
Validation Checks
- POST /auth/token and GET /auth/me return 200
- POST /users returns 201
- PATCH /users/{id} returns 200
- DELETE /users/{id} returns 204
- At least 4 assertions pass
Constraints
- Use a unique email per run, e.g. qa.<timestamp>@example.test — emails must not already exist (409 EMAIL_TAKEN).
Fixtures
- apiKey
- tqa_live_key_123
- basicUser
- admin
- basicPassword
- secret
- username
- qa@target.dev
- password
- Test@123
API testing · API Testing Practice Track · Integration, performance & CI