Send a basic GraphQL query
Medium70 pts~25 min
- GraphQL
- Queries
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
Query the list of users over GraphQL and assert the returned data.
Your task
- 1POST BASE_URL + "/graphql" with { "query": "{ users { id name email role } }" }.
- 2Assert 200 and that errors is absent.
- 3Assert data.users is non-empty and contains "Ada Lovelace".
Acceptance criteria
- POST /graphql returns 200
- At least 3 assertions pass
Fixtures
- apiKey
- tqa_live_key_123
- basicUser
- admin
- basicPassword
- secret
- username
- qa@target.dev
- password
- Test@123
API testing · API Testing · GraphQL