API testing

Assert a nested field

Medium70 pts~25 min
  • Nested JSON
  • JSON path
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-assert-a-nested-field

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

Objective

Reach into a nested object and array in the user payload.

Your task

  1. 1GET BASE_URL + "/users/1".
  2. 2Assert address.city === "London" and address.country === "UK".
  3. 3Assert tags contains "founder".

Acceptance criteria

  • GET /users/1 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