API testing

Add a lightweight load check

Hard120 pts~45 min
  • Performance smoke tests
  • Percentiles
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-add-a-lightweight-load-check

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

Objective

Send a small burst of requests and assert success rate and a latency percentile.

Your task

  1. 1Send 20 GET BASE_URL + "/users/1" requests (sequentially or a few in parallel) and record each duration.
  2. 2Assert every response was 200.
  3. 3Compute p95 of the durations and assert it is under 1000 ms.

Acceptance criteria

  • GET /users/1 returns 200
  • Requests are sent in a loop
  • At least 2 assertions pass

Fixtures

apiKey
tqa_live_key_123
basicUser
admin
basicPassword
secret
username
qa@target.dev
password
Test@123

API testing · API Testing · Integration, performance & CI