API testing

Find an item matching a condition

Medium70 pts~25 min
  • Searching JSON
  • Predicates
Practice app · Acme REST API

A live REST + GraphQL API with auth, validation, pagination, rate limiting and an interactive request console.

BASE_URL
/api/practice
Console app
/lab/api-testing-find-an-item-matching-a-condition

Your starter code already declares BASE_URL — call the API relative to it.

Objective

Search a list client-side for the item that matches a condition and assert its details.

Your task

  1. 1GET BASE_URL + "/users?limit=100".
  2. 2Find the user whose email is "grace@acme.test".
  3. 3Assert it exists, its name is "Grace Hopper" and its role is "editor".

Acceptance criteria

  • GET /users 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 · Working with JSON