Skip to content

Test Plan Build Quality Trend Modernized

sebiboga edited this page Nov 14, 2026 · 1 revision

Test Plan Build Quality Trend report (modernized)

Tracking issue: #1991 (net-new 2.0.1 report; TestLink 1.9.20 shows a per-build snapshot, 2.0.1 adds a pairwise build comparison, but neither shows the chronological trend).

What it is

The question a test manager asks after every build is "is this plan getting better or worse?". Results by Build shows one build's snapshot and Build Comparison diffs exactly two builds; this read-only report walks every build of the plan in chronological order and reports, per build, the assigned / executed / not-run counts, passed / failed / blocked results, coverage and pass rate, execution and tester counts, linked defects, the last execution timestamp and a verdict computed from the delta against the previous build with activity. A plan-level banner summarizes the overall trend and the plan verdict.

Screen

gui/templates/results/buildTrend.html

  • Dashio teal header with the report title, subtitle and footer locale switcher.
  • Dark toolbar: Refresh, Export CSV, Platform filter, Apply, Close.
  • Plan banner: verdict text, trend pill (improving / declining / stable / not_enough_data) and the total pass-rate delta in percentage points.
  • Report-context panel: test project, test plan, platform.
  • 11 KPI cards: builds, builds with activity, assigned versions, executed, passed, failed, blocked, not run, pass rate, linked defects, trend.
  • Main DataTable (16 columns, searchable, sortable): build, state, assigned, executed, passed, failed, blocked, not run, coverage %, pass rate %, Δ pass rate, executions, testers, defects, last execution, verdict.
  • CSV export (UTF-8 BOM, ; separator, formula-injection guard).
  • Localized state cards for 400 / 401 / 403 / 404.

Semantics

  • The universe is the builds of the owning test project ordered by creation_ts, id.
  • assigned is the plan's assigned-version count; coverage = executed / assigned; pass_rate = passed / executed.
  • The latest execution wins per (tcversion, build, platform) via MAX(executions.id); a platform filter narrows the executions and the universe.
  • Per-build verdict: baseline for the first build with activity, then improved / stable / regressed from the ±1.0 pp delta against the previous active build; na when the build has no activity.
  • Plan trend compares the first and last active build: improving, declining, stable or not_enough_data.
  • Plan verdict: empty, ready (coverage and pass rate ≥ 80%), watch or at_risk.

BFF api/buildtrend/index.php

  • GET|HEAD ?action=init&tplan_id=N[&tproject_id=P] — context + platform filter.
  • GET|HEAD ?action=report&tplan_id=N[&tproject_id=P][&platform_id=PL] — summary
    • chronological rows.
  • Rights: testplan_metrics on the owning project, checked before the plan is resolved (no existence oracle); denials logged at AUDIT.
  • Errors: 400 invalid_request|project_mismatch, 401 not_authenticated, 403 no_right, 404 tplan_not_found, 405 method_not_allowed, plus the same-origin CSRF guard on non-GET verbs.

Wiring

  • cfg/reports.cfg.php: build_trend → gui/templates/results/buildTrend.html.
  • api/aside/index.php: Reports entry link_report_build_trend.
  • api/resultsnav/index.php: build_trend legacy→modern map.
  • lib/functions/common.php: $actions->buildTrend.
  • $TLS_link_report_build_trend in all 19 server locales.

i18n

70 btr.* keys plus footers.buildTrend in all 10 client bundles; ai/verify_i18n_coverage.sh passes 9/9.

Verification

Browser-verified EN/RO on a 4-build fixture: Build 1.0 baseline 75% coverage / 33.3% pass rate, 1.1 improved +33.4 pp, 1.2 improved +8.3 pp, 2.0 improved +25 pp; Windows filter shows at_risk with 25% coverage; the empty plan shows the neutral banner and empty verdict; CSV export, error contract and no console errors; Event Viewer 0 new Error/Warning. Suite Issue #1991 appended to tmp/TLU_Test_Cases.md.

Screenshots

Build quality trend, default report

Build quality trend, Windows platform filter

Build quality trend, Romanian locale

Build quality trend, plan without activity

Clone this wiki locally