Bugfix Issue 1444 Test Levels Chapter Verified - sebiboga/testlink-upgraded GitHub Wiki

Issue #1444 β€” Test Strategy "Test Levels" chapter: verified complete (stale tracking issue)

Issue requirement

The tracking issue requested a dedicated chapter page for the Test Levels section of the Test Strategy:

  • Page: gui/templates/strategy/testLevels.html
  • Icon: fa-layer-group
  • Wired into:
    • Aside nav: sub-item under Test Strategy (href_test_strategy_* labels in en_GB/en_US/ro_RO strings.txt)
    • General Overview: CHAPTERS entry in gui/templates/strategy/testStrategy.html with an Open chapter button
  • i18n keys: ts.levels* in en.json + ro.json (header, sub, card titles, bullets)
  • Content β€” Test levels: unit testing within the development environment; integration testing of component interactions; system testing of the whole product. Ownership: developers own unit and component integration; the QA team owns system and integration testing; stakeholders own acceptance (BAT/UAT).

Investigation result (measured)

Every requirement above is already implemented and verified working on the default branch. No defect is reproducible on this issue's subject matter; the issue was a tracking issue left open after the chapter landed.

Implementation provenance:

  • f934433d7 β€” feat(strategy): dedicated pages + nav sub-items for all 18 Test Strategy chapters (Refs #1426, #1440-#1458) β€” created testLevels.html, the BFF chapter-map entry (api/strategy/index.php:62, num 5, fa-layer-group, ts.chapterLevels β†’ testLevels.html) and the ASIDE sub-item (gui/templates/dashio/aside.tpl:145, label href_test_strategy_levels).
  • 1ee2e0501 β€” jQuery loaded on all Test Strategy chapter pages so TLi18n initializes inside the mainframe iframe (Refs #1457).
  • 945679c5b β€” the 179 chapter content keys (incl. ts.levels*) translated in all 8 non-en/ro bundles (Refs #1486, closed bug).

Verification evidence

  • HTTP: testLevels.html β†’ 200; testStrategy.html β†’ 200.
  • BFF (authenticated): GET api/strategy/index.php?action=chapters β†’ status:ok with chapter 5 = {icon:"fa-layer-group", key:"ts.chapterLevels", descKey:"ts.chapterLevelsDesc", url:"/gui/templates/strategy/testLevels.html"}; footer keys present.
  • ASIDE label href_test_strategy_levels present in locale/en_US/strings.txt:2286, locale/en_GB/strings.txt:2317, locale/ro_RO/strings.txt:34; common.php:2117 maps testStrategyLevels β†’ testLevels.html.
  • i18n: all 10 bundles (de en es fr it ja pt ro ru zh) contain all 10 ts.levels* keys + ts.chapterLevels/ts.chapterLevelsDesc with native translations; every bundle passes python3 -m json.tool.
  • Browser (admin/admin): ASIDE β†’ Test Strategy β†’ Test Levels renders the chapter in the mainframe (header + sub, Test levels card with 3 bullets, Ownership card with 3 bullets incl. BAT/UAT, Back-to-Strategy link, locale switcher); General Overview card #5 shows fa-layer-group + Open chapter β†’ navigates to testLevels.html; locale switch β†’ RomΓ’nΔƒ renders Niveluri de Testare + translated bullets. Console: 0 messages.
  • Event Viewer: events table has no new ERROR/WARNING entries.

Resolution

No code change was needed (nothing to fix). Closed after an 8/8 PASS regression suite (tmp/TLU_Test_Cases.md), browser/console/Event-Viewer clean.

Screenshots

  • Test Levels β€” English render β€” testLevels.html: title/header/sub, both cards (Test levels + Ownership) with all six bullets, Back-to-Strategy link, locale switcher.
  • Test Levels β€” RomΓ’nΔƒ render β€” same page after the locale switcher β†’ RomΓ’nΔƒ: Niveluri de Testare, translated header/sub/cards/bullets proving client-side i18n.