Repository navigation
Modernize Tester Platform Execution Matrix testerPlatformMatrix
testerPlatformMatrix is a net-new 2.0.1 read-only report. 1.9.20 could show a
whole plan on one build, one tester's workload across builds, or a suite/build
cross-tab, but never every active tester against every platform linked to one
plan. The report crosses those two dimensions: rows are testers (plus an
unassigned row), columns are active plan-linked platforms, and each cell shows
coverage, executed/assigned counts and the passed/failed/blocked/not-run split.
Refs: #2136. Bugs found and fixed while testing: #2137 (cell click showed an empty pass rate) and #2138 (init offered platforms not linked to the selected plan).
-
Modern UI:
gui/templates/results/testerPlatformMatrix.html— standalone Dashio page (teal header, dark toolbar, context card, 12 KPI cards, verdict banner, matrix plus per-tester and per-platform DataTables, CSV export, footer locale switcher). -
BFF API:
api/testerplatformmatrix/index.php—GET|HEAD ?action=projects|init|report. -
Entry point: ASIDE Test Plan → Tester × Platform Execution Matrix and the Reports launcher, also reachable with
?tproject_id=P&tplan_id=T[&locale=ro]. - No Smarty: the 1.9.20 tree has no equivalent screen; this is additive.
- Scopes: project → test plan → build (optional) → platform (optional). Apply re-queries the BFF; Refresh repeats the last query; Export CSV writes a BOM-prefixed, semicolon-separated, formula-guarded local file with report context header lines.
- Universe:
testplan_tcversionslinks; a link belongs to a tester when it has an activeuser_assignments.type=1row (COALESCE(status,1) NOT IN (2,3),user_id>0) matching the selected build or build 0; other links belong to the synthetic unassigned row. - Platform columns come from active
testplan_platforms; a plan with no linked platforms gets a single synthetic “no platform” column. Selecting a platform filters the matrix to that column; any-platform links appear in every selected column. - Cell status is the latest execution per
(platform_id, tcversion_id)(MAX(executions.id)) with a laterplatform_id=0global execution used as a fallback. A link assigned but never executed is NOT RUN. - Verdicts:
no_data>not_started>complete>in_progress; clicking a matrix cell filters to that platform and shows a localized detail toast with the tester, platform, fraction and pass rate. - Explicit localized state cards for 400, 401, 403, 404 and 405; a 401 bounces to
login.php?note=expired. - i18n:
tpm.*(92 keys) +footers.testerPlatformMatrix× 10 bundles;$TLS_link_report_tester_platform_matrix× 19 server locales. Gateai/verify_i18n_coverage.sh: 9 bundles compared, 14335 keys, 0 missing.
- The owning project is resolved from
tplan_id → testplans.testproject_idbefore report data is returned; a mismatchedtproject_idis404 project_mismatch, not a wrong-project read. -
testplan_metricsis enforced on the owning project withhasRight(..., true); denials are written to the Event Viewer asAUDIT. -
projectsandinitrequire a read right on the addressed project;initwithtplan_idlists only active platforms linked to that plan. - Session gate (
bffEnforceSession), same-origin guard (bffSameOriginGuard),nosniffandCache-Control: no-storeon every answer; all interpolated values are integers.
| Issue | Symptom | Fix |
|---|---|---|
| #2137 | Clicking a matrix cell showed ... pass rate % with no value. |
Key cells by data-s (user_id) instead of table row index and capture $cell = $(this) before the interpolation IIFE. Verified 50.0% pass rate in the fixture; issue closed. |
| #2138 |
init with tplan_id returned every project platform, so an unlinked choice produced 400. |
Join testplan_platforms when a plan is selected; keep the project-wide list when no plan is selected. Verified 1 vs 2 platform options; issue closed. |
Re-runnable fixture tmp/fixtures_2136.php creates project TPM2136, one plan with two linked platforms (Chrome/Firefox), two builds, six linked cases, five assignments (one closed) and four executions (pass/fail/block/global pass). Browser and API pass:
- Normal render: 2 testers, 2 platform columns,
assigned=7,executed=5,passed=3,failed=1,blocked=1,not_run=2,pass_rate=60.0%,coverage=71.4%, verdictin_progress, 2 unassigned links. - Filters: closed build →
assigned=4,executed=0,not_started; platform Chrome → one column withassigned=5,executed=3. - Cell click, Export CSV, Refresh, Close, RO locale (no raw keys), localized 400/401/403/404/405 state cards, role-7 tester 200, role-3 viewer 403, anonymous 401, ASIDE/resultsnav link presence, clean Event Viewer (only AUDIT rows).
- Suite recorded append-only in
tmp/TLU_Test_Cases.mdas Modernize — Issue #2136;TLU_REQUIRE_SUITE="Issue #2136" bash ai/verify_test_suites.sh→ all checks PASS (34 PASS / 0 FAIL on clobber baselines). -
php -l, all 10 bundlespython3 -m json.tool, i18n coverage gate and mandatory code review all PASS.

— see also https://github.com/sebiboga/testlink-upgraded/issues/2136