API testing

Assert every item in an array

Medium70 pts~25 min
  • Collection assertions
  • Filtering
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/sdet-assert-every-item-in-an-array

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

Objective

Filter orders by status and prove that every returned item satisfies the filter.

Your task

  1. 1GET BASE_URL + "/orders?status=shipped".
  2. 2Assert items is non-empty.
  3. 3For every order assert status === "shipped" and total > 0.

Acceptance criteria

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