🧪 Test Hub
testing: Demo target v3.0.0 · built-in demo site

DEMO-007 Load subject: form round trip

Edit Load test Duplicate

A short pass designed to be repeated under load. Each phase is timed separately, so a load run can show which step degrades.

demoload version: 1.0 DEMO-007__load_subject.py

Runs
3
Pass rate
100%
3 passed / 0 failed
Avg duration
1s
p95 1s
Estimate
1s
avg of last 10 judged runs
Flakiness
0.00
0 stable · 1 alternates
Current streak
3
passed

Last 3 results newest on the right — click a square to open that run

Duration per run point color = outcome; dashed = 7-run average; click a point to open the run

Step timing trends the same step compared across the last 3 runs — slowest steps first, one line each

How long it takes distribution of 3 runs — two humps mean two different behaviours hiding behind one average

fastest 1s · slowest 1s

Why this test failed grouped by message, last 90 days

No failures recorded. 👍

Outcomes by target version

What this test does plain language, derived from the code

  1. ⏱ Timed phase: open the page
  2. Open the app's page
  3. ⏱ Timed phase: fill the form
  4. Type “Load Test User” into #name
  5. Type “load@example.gov” into #email
  6. Choose “high” in #priority
  7. ⏱ Timed phase: submit and wait for the result
  8. Click #submit-btn
  9. Wait until #result appears
  10. ⏱ Timed phase: check the result
  11. Check #result contains “Load Test User”
Show the code
"""A short, realistic pass — the kind of test you put UNDER load.

A load test repeats one test many times, so the test itself wants to be
short and to exercise something worth measuring. This one does what a user
does: fill a form, submit it, wait for the answer, check the answer is right.

Each `ctx.timed()` block below becomes its own row on the load run's "which
step got slow" table, which is the point: under load you usually find that
one step degrades and the rest are fine.
"""


def run(page, ctx):
    with ctx.timed("open the page"):
        page.goto(ctx.base_url)

    with ctx.timed("fill the form"):
        page.fill("#name", "Load Test User")
        page.fill("#email", "load@example.gov")
        page.select_option("#priority", "high")

    with ctx.timed("submit and wait for the result"):
        page.click("#submit-btn")
        page.wait_for_selector("#result")

    with ctx.timed("check the result"):
        assert "Load Test User" in page.inner_text("#result")

All runs

RunStatusQueuedDuration VersionTriggerBatch
#456 passed 2026-09-25 00:25:05 1s 3.0.0 cli-adopted 8 tests (terminal)
#448 passed 2026-09-25 00:24:35 1s 3.0.0 cli-adopted 8 tests (terminal)
#440 passed 2026-09-25 00:24:06 1s 3.0.0 cli-adopted 8 tests (terminal)