@capagents/forgeqe 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/HOW_TO_USE.md +5003 -2077
- package/README.md +155 -449
- package/dist/docs-site/docs/app-theme.css +30 -9
- package/dist/docs-site/docs/architecture/index.html +45 -515
- package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
- package/dist/docs-site/docs/area-api/index.html +257 -116
- package/dist/docs-site/docs/area-automated-tests/index.html +1229 -419
- package/dist/docs-site/docs/area-browser/index.html +167 -125
- package/dist/docs-site/docs/area-data/index.html +178 -188
- package/dist/docs-site/docs/area-desktop/index.html +329 -282
- package/dist/docs-site/docs/area-mobile/index.html +138 -86
- package/dist/docs-site/docs/area-operations/index.html +567 -393
- package/dist/docs-site/docs/area-pull-requests/index.html +114 -32
- package/dist/docs-site/docs/area-quality/index.html +111 -49
- package/dist/docs-site/docs/area-release/index.html +180 -65
- package/dist/docs-site/docs/area-setup/index.html +742 -339
- package/dist/docs-site/docs/area-systems/index.html +32 -48
- package/dist/docs-site/docs/area-test-cases/index.html +387 -154
- package/dist/docs-site/docs/containers/index.html +87 -101
- package/dist/docs-site/docs/cost-architecture/index.html +4 -3
- package/dist/docs-site/docs/custom-agents-first-run/index.html +108 -50
- package/dist/docs-site/docs/desktop/index.html +277 -297
- package/dist/docs-site/docs/desktop-ci/index.html +15 -5
- package/dist/docs-site/docs/docs-tabs.js +56 -0
- package/dist/docs-site/docs/evidence/index.html +50 -49
- package/dist/docs-site/docs/feature-test-prompts/index.html +34 -24
- package/dist/docs-site/docs/get-started/index.html +464 -168
- package/dist/docs-site/docs/graphify/index.html +8 -7
- package/dist/docs-site/docs/guardrails/index.html +20 -4
- package/dist/docs-site/docs/index.html +4 -3
- package/dist/docs-site/docs/mobile/index.html +96 -76
- package/dist/docs-site/docs/model-routing/index.html +44 -18
- package/dist/docs-site/docs/overview/index.html +23 -7
- package/dist/docs-site/docs/product-graph/index.html +13 -12
- package/dist/docs-site/docs/product-knowledge/index.html +16 -5
- package/dist/docs-site/docs/product-views/index.html +7 -6
- package/dist/docs-site/docs/reference/index.html +95 -65
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/docs-site/docs/using/index.html +444 -126
- package/dist/docs-site/docs/web-app/index.html +54 -51
- package/dist/forgeqe.js +1822 -1822
- package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
- package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
- package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
- package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
- package/dist/web/assets/Chat-DnBUm_97.js +3 -0
- package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
- package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
- package/dist/web/assets/Cost-CWrc4McH.js +1 -0
- package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
- package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
- package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
- package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
- package/dist/web/assets/{Explore-ObkEpUyS.js → Explore-CMAxWE_8.js} +2 -2
- package/dist/web/assets/Features-haQchkhA.js +1 -0
- package/dist/web/assets/{Flags-0-RniPJm.js → Flags-BaQjYi_t.js} +2 -2
- package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
- package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
- package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
- package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
- package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
- package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
- package/dist/web/assets/Product-BQSiR28a.js +7 -0
- package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
- package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
- package/dist/web/assets/Readiness-CkknP87n.js +1 -0
- package/dist/web/assets/Record-09IsC9U-.js +1 -0
- package/dist/web/assets/Regression-BL4MfN47.js +5 -0
- package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
- package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
- package/dist/web/assets/Response-DTBFBeKB.js +9 -0
- package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
- package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
- package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
- package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
- package/dist/web/assets/{Steps-D-YG0eJy.js → Steps-HYHK9psI.js} +1 -1
- package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
- package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
- package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
- package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
- package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
- package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
- package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
- package/dist/web/assets/{dataParts-DbeCj9ga.js → dataParts-DEPK4eQE.js} +2 -2
- package/dist/web/assets/{diff-BStuTmsN.js → diff-CcNwLCX6.js} +1 -1
- package/dist/web/assets/{families-BBFFrUlo.js → families-gkpkloLT.js} +1 -1
- package/dist/web/assets/filters-C7phIFfd.js +1 -0
- package/dist/web/assets/fold-i73P-EDV.js +1 -0
- package/dist/web/assets/head-BtTqyLlj.js +1 -0
- package/dist/web/assets/{highlight-BcFZIf59.js → highlight-DZI39CzZ.js} +1 -1
- package/dist/web/assets/index-ClFOh63x.css +2 -0
- package/dist/web/assets/index-YGWJEkAT.js +64 -0
- package/dist/web/assets/input-C2vQ9O3a.js +1 -0
- package/dist/web/assets/logos-BmbNTDu2.js +1 -0
- package/dist/web/assets/palette-XFlqvgZl.js +1 -0
- package/dist/web/assets/{paletteCommands-Co-RlQ8q.js → paletteCommands-DsbD2ASU.js} +1 -1
- package/dist/web/assets/parts-DEVx2Sea.js +1 -0
- package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
- package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
- package/dist/web/assets/{recordTest-Cez2sDJO.js → recordTest--Wr40QdN.js} +1 -1
- package/dist/web/assets/route-Dg53WdFu.js +1 -0
- package/dist/web/index.html +6 -7
- package/docs/ARCHITECTURE.md +50 -563
- package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
- package/docs/CONTAINERS.md +87 -87
- package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
- package/docs/DESKTOP-CI.md +18 -3
- package/docs/DESKTOP.md +298 -297
- package/docs/MOBILE.md +103 -71
- package/docs/MODEL_ROUTING.md +48 -15
- package/docs/WEB_APP.md +49 -44
- package/docs/feature-test-prompts.md +29 -16
- package/docs/user-guide.html +5263 -2453
- package/guardrails/README.md +22 -2
- package/knowledge/README.md +15 -2
- package/package.json +1 -1
- package/prompts/brain.md +1 -0
- package/py/forgeqe_engine/recordsession.py +100 -24
- package/dist/web/assets/Agent-CPhmZdFX.js +0 -8
- package/dist/web/assets/AgentWork-BXdN9xgi.js +0 -2
- package/dist/web/assets/ApiTests-Do3xLjfB.js +0 -10
- package/dist/web/assets/Browse-WVkJT6Bs.js +0 -2
- package/dist/web/assets/Chat-CDc9UcQX.js +0 -3
- package/dist/web/assets/CommandPalette-BAZm62lV.js +0 -1
- package/dist/web/assets/Compare-Br6n9T9L.js +0 -1
- package/dist/web/assets/Cost-BBUyBu3Y.js +0 -1
- package/dist/web/assets/Data-Ch2DPEWp.js +0 -6
- package/dist/web/assets/Desktop-Qzoq-cQv.js +0 -1
- package/dist/web/assets/DesktopReview-CF_jQYAM.js +0 -1
- package/dist/web/assets/Evidence-C72Lj5_Q.js +0 -1
- package/dist/web/assets/Features-CQzNo_WP.js +0 -1
- package/dist/web/assets/Flaky-BPJvNLCA.js +0 -1
- package/dist/web/assets/Impact-CfccsL_k.js +0 -3
- package/dist/web/assets/Jobs-T6m4zhDy.js +0 -5
- package/dist/web/assets/KindPage-BDUvWe2p.js +0 -6
- package/dist/web/assets/Migration-Dqeh4x5u.js +0 -2
- package/dist/web/assets/PageAgent-DNjzIgeY.js +0 -1
- package/dist/web/assets/Product-nYV_scOV.js +0 -7
- package/dist/web/assets/Production-CGSbEWVa.js +0 -1
- package/dist/web/assets/Quality-BIypojZm.js +0 -1
- package/dist/web/assets/Readiness-BlRjwJRg.js +0 -1
- package/dist/web/assets/Record-v2KLI-_Z.js +0 -1
- package/dist/web/assets/Regression-B-jSt4Jz.js +0 -5
- package/dist/web/assets/RelationGraph-8J98lOVG.js +0 -1
- package/dist/web/assets/Reports-GI4u6SyW.js +0 -2
- package/dist/web/assets/Response-mhBThq2b.js +0 -9
- package/dist/web/assets/Responsive-DXu7Ra7K.js +0 -3
- package/dist/web/assets/RunDiff-D0SHDNp0.js +0 -1
- package/dist/web/assets/Runs-C1Gjdi9M.js +0 -2
- package/dist/web/assets/Settings-BGGeuvyF.js +0 -21
- package/dist/web/assets/TestCases-DC4w77eQ.js +0 -1
- package/dist/web/assets/TestData-CvKWRVVV.js +0 -2
- package/dist/web/assets/TestDebt-D8YzN29_.js +0 -1
- package/dist/web/assets/TestManagement-C5cDCqrD.js +0 -1
- package/dist/web/assets/Tosca-BGUv3RiJ.js +0 -3
- package/dist/web/assets/WhatsNew-B_Gyuv8O.js +0 -1
- package/dist/web/assets/coverage-BMP6ELFJ.js +0 -5
- package/dist/web/assets/filters-CnAMr286.js +0 -1
- package/dist/web/assets/fold-D_O_VZui.js +0 -1
- package/dist/web/assets/head-CRo48rPt.js +0 -1
- package/dist/web/assets/index-B3JsM7tv.js +0 -64
- package/dist/web/assets/index-CafApcbZ.css +0 -2
- package/dist/web/assets/input-CtzK50ZF.js +0 -1
- package/dist/web/assets/line-icons-rdF8DYDJ.js +0 -1
- package/dist/web/assets/logos-D4oVWzqa.js +0 -1
- package/dist/web/assets/palette-DAaGSao7.js +0 -1
- package/dist/web/assets/parts-D357Wolo.js +0 -1
- package/dist/web/assets/productParts-B8oHRCJF.js +0 -1
- package/dist/web/assets/qualityParts-BLkmIfDY.js +0 -1
- package/dist/web/assets/route-BloYJWgw.js +0 -1
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
<link rel="stylesheet" href="../docs.css">
|
|
12
12
|
<script src="../search.js" defer></script>
|
|
13
13
|
<script src="../docs.js" defer></script>
|
|
14
|
+
<script src="../docs-tabs.js" defer></script>
|
|
14
15
|
<link rel="stylesheet" href="../../app-look.css">
|
|
15
16
|
<link rel="stylesheet" href="../app-theme.css">
|
|
16
17
|
</head>
|
|
@@ -112,11 +113,11 @@
|
|
|
112
113
|
<div class="container docs-layout">
|
|
113
114
|
<nav class="docs-side" aria-label="Docs">
|
|
114
115
|
<a class="side-home" href="../index.html" aria-current="page"><svg class="pix ph" aria-hidden="true" focusable="false"><use href="#ph-wikis"/></svg>Docs home</a>
|
|
115
|
-
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li
|
|
116
|
+
<div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div>
|
|
116
117
|
</nav>
|
|
117
118
|
<main id="main" class="docs-main guide chapter-page">
|
|
118
119
|
<p class="crumbs"><a href="../index.html">Docs</a><span>/</span>Browser and tests</p>
|
|
119
|
-
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li
|
|
120
|
+
<div class="page-bar"><details class="bar-menu"><summary>Docs menu</summary><nav class="bar-panel" aria-label="Docs menu"><div class="side-group"><p class="side-head">Start here</p><ul><li><a href="../overview/index.html"><span>What ForgeQE does</span></a></li><li><a href="../get-started/index.html"><span>Get started</span></a></li><li><a href="../using/index.html"><span>Using ForgeQE</span></a></li><li><a href="../web-app/index.html"><span>The web app</span></a></li></ul></div><div class="side-group"><p class="side-head">Browser and tests</p><ul><li><a href="../area-browser/index.html"><span>Browser testing</span></a></li><li><a href="index.html" aria-current="page"><span>Test cases</span></a></li><li><a href="../area-automated-tests/index.html"><span>Automated tests</span></a></li><li><a href="../feature-test-prompts/index.html"><span>Feature test prompts</span></a></li><li><a href="../area-api/index.html"><span>API testing</span></a></li><li><a href="../area-quality/index.html"><span>Quality checks</span></a></li></ul></div><div class="side-group"><p class="side-head">Desktop and mobile</p><ul><li><a href="../area-desktop/index.html"><span>Desktop apps</span></a></li><li><a href="../area-mobile/index.html"><span>Mobile apps</span></a></li></ul></div><div class="side-group"><p class="side-head">Setup and operations</p><ul><li><a href="../area-setup/index.html"><span>Setup and configuration</span></a></li><li><a href="../area-operations/index.html"><span>Operations and monitoring</span></a></li><li><a href="../area-data/index.html"><span>Test data and databases</span></a></li><li><a href="../area-pull-requests/index.html"><span>Pull requests</span></a></li><li><a href="../area-release/index.html"><span>Release and reports</span></a></li></ul></div><div class="side-group"><p class="side-head">Agents and knowledge</p><ul><li><a href="../custom-agents-first-run/index.html"><span>Custom agents: a first run</span></a></li><li><a href="../product-knowledge/index.html"><span>Product knowledge</span></a></li></ul></div><div class="side-group"><p class="side-head">How ForgeQE works</p><ul><li><a href="../area-systems/index.html"><span>Connected systems</span></a></li><li><a href="../architecture/index.html"><span>How ForgeQE works</span></a></li><li><a href="../../architecture-map/index.html"><span>Architecture map</span></a></li><li><a href="../../security/index.html"><span>Security and data flows</span></a></li><li><a href="../guardrails/index.html"><span>Guardrails</span></a></li></ul></div><div class="side-group"><p class="side-head">Look it up</p><ul><li><a href="../reference/index.html"><span>Reference</span></a></li></ul></div><div class="side-group"><p class="side-head">For contributors</p><ul><li><a href="../architecture-reference/index.html"><span>Architecture reference</span></a></li><li><a href="../product-graph/index.html"><span>Product knowledge graph</span></a></li><li><a href="../product-views/index.html"><span>Product views</span></a></li><li><a href="../graphify/index.html"><span>Reading product code</span></a></li><li><a href="../evidence/index.html"><span>Evidence</span></a></li><li><a href="../cost-architecture/index.html"><span>Cost-aware execution</span></a></li></ul></div></nav></details><details class="bar-toc"><summary>On this page</summary><nav class="bar-panel" aria-label="On this page"><ul><li><a href="#cap-run-test-cases">Run manual test cases in browsers</a></li><li><a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a></li><li><a href="#doc-how_to_use-running">Running</a></li><li><a href="#doc-how_to_use-results-back-in-the-source">Results back in the source</a></li><li><a href="#doc-how_to_use-bugs-for-failures">Bugs for failures</a></li><li><a href="#cap-test-case-quality">Check and improve test cases</a></li><li><a href="#cap-write-test-cases">Write test cases from a story</a></li><li><a href="#cap-domain-compliance">Domain and regulatory test design</a></li><li><a href="#cap-exploratory-testing">Exploratory testing of a story</a></li><li><a href="#cap-business-personas">Business personas for testing</a></li><li><a href="#cap-basal">BASAL: business testing that acts</a></li></ul></nav></details></div>
|
|
120
121
|
<h1 class="topic-h"><svg class="pix pix--title ph" aria-hidden="true" focusable="false"><use href="#ph-case"/></svg>Test cases</h1>
|
|
121
122
|
<p class="guide-lead">Run, check, write, and explore manual test cases</p>
|
|
122
123
|
<article class="spec feat" id="cap-run-test-cases">
|
|
@@ -127,23 +128,41 @@
|
|
|
127
128
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira or Xray or TestRail or Zephyr Scale or qTest, to read cases from a test management system and post results back (files and pasted text work without one): set up under sources: in forgeqe.yaml, or sign in with /auth</span></li><li><span class="need opt">Optional</span><span>Bug filing: sources.bugs in forgeqe.yaml (Jira or Azure DevOps)</span></li></ul></div>
|
|
128
129
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>find_test_cases</code> <code>run_test_cases</code></p></div>
|
|
129
130
|
</div>
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
|
|
132
|
+
</article>
|
|
133
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-7-test-cases-and-suites">
|
|
132
134
|
<h4>Test cases and suites</h4>
|
|
133
|
-
<div class="prose"><p>
|
|
134
|
-
|
|
135
|
-
<
|
|
135
|
+
<div class="prose"><p>You can run the test cases you already have in two ways:</p>
|
|
136
|
+
<ul>
|
|
137
|
+
<li><strong>Ask in plain words.</strong> In the web app's chat, the shell or <code>forgeqe run</code>, say "run SHOP-12 and SHOP-14", "run test plan 12 suite 34" or "run the cases in smoke.yaml", or paste the cases. The agent works out where they come from.</li>
|
|
138
|
+
<li><strong>Run a fixed suite.</strong> <code>forgeqe suite</code>, and the <strong>Run</strong> buttons of <strong>Test management</strong>, take exact references and run the same way every time, with no agent choosing. This is what pipelines call.</li>
|
|
139
|
+
</ul>
|
|
140
|
+
<p>Each case is one goal. ForgeQE tells the agent to do the steps in order and to check every expected result, and the agent's verdict decides whether the case passed. A case with no steps (plain text, a Jira story) is run from its description.</p>
|
|
141
|
+
<p><strong>Running test cases.</strong></p>
|
|
142
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
143
|
+
<ol>
|
|
144
|
+
<li>Open <strong>Test management</strong> (Quality Engineering › Test design).</li>
|
|
145
|
+
<li>On the <strong>Test cases</strong> tab, tick the cases and press <strong>Run</strong> with their number (or <strong>Run</strong> on one row). On the <strong>Suites</strong> tab, press <strong>Run</strong> beside a suite, or <strong>Rerun failed</strong> for its failed cases.</li>
|
|
146
|
+
<li>Pick the <strong>Environment</strong>, then press <strong>Run</strong> with the number of cases.</li>
|
|
147
|
+
</ol>
|
|
148
|
+
<p>Results go to <strong>Runs</strong> and back to each case's system, as your settings say. To run cases Test management does not list, ask in <strong>New chat</strong> ("run SHOP-12 and SHOP-14, two at a time").</p>
|
|
149
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
150
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12</span><span class="pad"> </span><span class="cm"><span class="h">#</span> fixed references, as pipelines run them
|
|
151
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe run "run SHOP-12 and SHOP-14"</span><span class="pad"> </span><span class="cm"><span class="h">#</span> in plain words; the agent finds the source
|
|
152
|
+
</span></span></code></pre></div>
|
|
153
|
+
</div></div></div>
|
|
154
|
+
<section class="doc sub" id="doc-how_to_use-api-steps-in-a-test-case"><h5>API steps in a test case</h5><div class="prose"><p>A test case can mix API and UI steps ("add three products with POST /add_to_cart/{id}, then remove the first one in the cart, then pay"). The browser agent makes each API step from the page, in the browser's own session: the logged-in user's cookies go with the call, and the CSRF token comes from the cookie or the page's form when the site needs one. So what an API step changes (a cart, an order) is what the next UI step sees.</p>
|
|
136
155
|
<ul>
|
|
137
156
|
<li><strong>The verdict</strong> of an API step rests on the status the server answered, not on the agent's account of it.</li>
|
|
138
157
|
<li><strong>The run records it</strong> as an <code>api</code> step in <code>workflow.yaml</code>: method, URL, body, CSRF source, and the status and final URL the server gave.</li>
|
|
139
|
-
<li><strong>ForgeQE's replay repeats it</strong> the same way, and fails that step when the server answers differently (403 where the run got 200)
|
|
158
|
+
<li><strong>ForgeQE's replay repeats it</strong> the same way, and fails that step when the server answers differently (403 where the run got 200). So the replay and the test get past it instead of stalling on an empty cart.</li>
|
|
140
159
|
<li><strong>Quill's handoff</strong> lists each API step with what was sent and answered, and tells Quill to make it through the framework's API request context that shares the browser's cookies (Playwright's <code>page.request</code>), asserting the status.</li>
|
|
141
|
-
<li><strong>Kept for reuse
|
|
160
|
+
<li><strong>Kept for reuse:</strong> the calls are saved as an API scenario, one per test case (<code>out/api/case-ado-2287/</code>, updated by each run). <code>forgeqe api</code> and the <strong>API tests</strong> page run it again without a browser. The run's card says where (<em>API 2 calls saved as a reusable API scenario</em>).</li>
|
|
142
161
|
</ul>
|
|
143
|
-
<p>URLs the case gives are opened exactly as given: when the model adds a trailing slash (<code>/login/</code>, a 404 on many sites), ForgeQE opens and records the URL from the case.</p>
|
|
144
|
-
<p>When a run finds a test case does not fit the application, the agent drafts the steps as they should be, from what the run found, and offers to save them.
|
|
162
|
+
<p><strong>Addresses as given.</strong> URLs the case gives are opened exactly as given: when the model adds a trailing slash (<code>/login/</code>, a 404 on many sites), ForgeQE opens and records the URL from the case.</p>
|
|
163
|
+
<p><strong>Fixing a case that does not fit.</strong> When a run finds a test case does not fit the application, the agent drafts the steps as they should be, from what the run found, and offers to save them. It shows the current and the new steps and asks before it changes the Azure DevOps Test Case. The reason goes into the work item's history, where the old steps stay.</p>
|
|
145
164
|
</div></section>
|
|
146
|
-
<section class="doc sub" id="doc-how_to_use-when-a-case-fails"><h5>When a case fails</h5><div class="prose"><p>The browser run of a test case is the test, so when a case does not pass, ForgeQE works out what kind of failure it was and acts on it. The browser agent reports a cause for each failed step (it saw the page)
|
|
165
|
+
<section class="doc sub" id="doc-how_to_use-when-a-case-fails"><h5>When a case fails</h5><div class="prose"><p>The browser run of a test case is the test, so when a case does not pass, ForgeQE works out what kind of failure it was and acts on it. The browser agent reports a cause for each failed step (it saw the page). Clear evidence in the run, such as an unreachable site or a 503 page, overrides "I could not operate it".</p>
|
|
147
166
|
<div class="tbl tbl--cols-4"><table>
|
|
148
167
|
<thead>
|
|
149
168
|
<tr><th>Failure</th><th>What it means</th><th>Bug</th><th>Automation script</th></tr>
|
|
@@ -155,10 +174,25 @@
|
|
|
155
174
|
<tr><td data-label="Failure">Automation problem</td><td data-label="What it means">A control that is there could not be operated, or the run ran out of steps</td><td data-label="Bug">No</td><td data-label="Automation script">Not yet: page memory keeps the steps that worked and the next run resumes from them</td></tr>
|
|
156
175
|
</tbody>
|
|
157
176
|
</table></div>
|
|
158
|
-
<p>In Azure DevOps a test plan point is recorded as Blocked, not Failed, for the last three, so the plan's failures are product defects
|
|
159
|
-
<p><strong>Tests that need attention.</strong> A coding job that ends without a passing, approved test does not leave a failing test among your tests
|
|
160
|
-
<
|
|
161
|
-
<
|
|
177
|
+
<p>In Azure DevOps a test plan point is recorded as Blocked, not Failed, for the last three kinds, so the plan's failures are product defects. The comment on the test case names the kind of failure.</p>
|
|
178
|
+
<p><strong>Tests that need attention.</strong> A coding job that ends without a passing, approved test does not leave a failing test among your tests.</p>
|
|
179
|
+
<ul>
|
|
180
|
+
<li>The files it created move to a <code>needs-attention/<case id>/</code> folder beside the test, with their relative imports fixed. A README says which test case it is for, why it stopped (the last failure, the reviewer's issues), and how to pick it up; <code>needs-attention/README.md</code> lists them all.</li>
|
|
181
|
+
<li>The job's edits to files that were committed before it are saved as <code>changes.patch</code> in that folder and taken out of the files. Files you had already changed are left as they are.</li>
|
|
182
|
+
<li>The folder is kept out of test runs and builds: Playwright's config gets <code>testIgnore: ['**/needs-attention/**']</code>, TypeScript files a <code>// @ts-nocheck</code> line, a Python folder a <code>conftest.py</code> that collects nothing, and C#, Java or Kotlin files a <code>.txt</code> suffix.</li>
|
|
183
|
+
<li><code>code.needs_attention: false</code> leaves unfinished tests where they are.</li>
|
|
184
|
+
</ul>
|
|
185
|
+
<p><strong>Running a case again.</strong> A case that already has a test (in <code>.forgeqe/test-cases.json</code>) does not get a new one. After its browser run, ForgeQE runs the existing test first.</p>
|
|
186
|
+
<ul>
|
|
187
|
+
<li>When it passes, there is no coding job at all.</li>
|
|
188
|
+
<li>When it fails, the coding agent updates that test (with the failure and the new verified run) instead of writing one from scratch.</li>
|
|
189
|
+
<li>A known-defect test whose defect is fixed (the case now passes) is updated to drop its expected-failure marker. A test that passes although the run found a defect gets the defect's assertion and the marker.</li>
|
|
190
|
+
</ul>
|
|
191
|
+
<p><strong>Mapping tests to test cases.</strong> Each test written for a test case is named <code><case id> <title></code> and tagged with the case id and link in the framework's own way (Playwright tags and annotations, a pytest marker, an NUnit property).</p>
|
|
192
|
+
<ul>
|
|
193
|
+
<li><code>.forgeqe/test-cases.json</code> in the repository maps every test case to its test, with its status (<code>automated</code>, <code>known_defect</code> with the bug, or <code>needs_attention</code> with the folder). Commit it with the tests.</li>
|
|
194
|
+
<li>For Azure DevOps test cases, a passing test is also set as the work item's Associated Automation (test name, file, type, and a stable id, with Automation status Automated), so the test plan shows the case as automated.</li>
|
|
195
|
+
</ul>
|
|
162
196
|
</div></section>
|
|
163
197
|
<section class="doc sub" id="doc-how_to_use-in-the-shell"><h5>In the shell</h5><div class="prose"><p>Ask for the cases in plain words, for example "run SHOP-12 and SHOP-14, two at a time" or "show me what's in test plan 12 without running it". The transcript shows each case's steps as it runs, and a suite card at the end:</p>
|
|
164
198
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">┃ ✗ Suite failed 1/2 passed · 1m 12s · 48.2K tokens
|
|
@@ -174,17 +208,24 @@
|
|
|
174
208
|
</section>
|
|
175
209
|
<section class="doc" id="doc-how_to_use-where-cases-come-from">
|
|
176
210
|
<h4>Where cases come from</h4>
|
|
177
|
-
<div class="prose"><
|
|
211
|
+
<div class="prose"><p>This is done at a terminal only (in the web app or the shell, ask the agent "show me what's in test plan 12 without running it"):</p>
|
|
212
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe cases cases.yaml</span><span class="pad"> </span><span class="cm"><span class="h">#</span> list them
|
|
178
213
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe cases cases.yaml --goal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> and the exact goal each one runs
|
|
179
214
|
</span></span></code></pre></div>
|
|
180
215
|
<p><strong>Plain text.</strong> A quoted string is one case: <code>forgeqe suite "Log in as the demo user and open Invoices"</code>.</p>
|
|
181
|
-
<p><strong>Text or Markdown file.</strong> Without case headings, each block between <code>---</code> lines is a case, its first line the title:</p>
|
|
216
|
+
<p><strong>Text or Markdown file.</strong> Without case headings, each block between <code>---</code> lines is a case, and its first line is the title:</p>
|
|
182
217
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>text</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">Search for hotels in Mumbai and check at least one result is shown
|
|
183
218
|
</span></span><span class="ln"><span class="cmd">---
|
|
184
219
|
</span></span><span class="ln"><span class="cmd">Open the Deals page
|
|
185
220
|
</span></span><span class="ln"><span class="cmd">Check every deal has a price
|
|
186
221
|
</span></span></code></pre></div>
|
|
187
|
-
<p><strong>Markdown with a heading per case.</strong> A heading that starts with a case id
|
|
222
|
+
<p><strong>Markdown with a heading per case.</strong> A heading that starts with a case id starts a case: <code>## 5458-02 Empty state</code>, <code>### TC-3: Sign in</code>, <code>## Test case 4 – Search</code>. A section number (<code>## 1. Introduction</code>) does not.</p>
|
|
223
|
+
<ul>
|
|
224
|
+
<li><strong>Sections outside a case go with every case.</strong> This covers the introduction, <code>## Common steps</code>, <code>## Preconditions</code>, <code>## Test data</code> and business rules. Common steps (or setup, background, sign-in) come before the case's own steps, preconditions join its preconditions, and the rest goes in its description.</li>
|
|
225
|
+
<li><strong>Inside a case,</strong> <code>Preconditions</code>, <code>Steps</code> (a numbered list, or a table with Step, Data and Expected columns) and <code>Expected results</code> are read as sub-headings or as <code>**Label:**</code> lines.</li>
|
|
226
|
+
<li><strong>One case of the file</strong> runs by its id: "run test case 5458-02 from TestCases/DTPE-5458-View-Documents.md". An id the file does not have is an error that lists the ids it has.</li>
|
|
227
|
+
<li><strong>Preconditions</strong> are taken as met by the test data the case names: the run does not stop to prove them.</li>
|
|
228
|
+
</ul>
|
|
188
229
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>markdown</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd"># DTPE-5458 View Documents
|
|
189
230
|
</span></span><span class="ln ln--gap">
|
|
190
231
|
</span><span class="ln"><span class="cmd">## Common steps
|
|
@@ -212,41 +253,55 @@
|
|
|
212
253
|
</span></span><span class="ln ln--pair"><span class="cmd"> group: Accounts</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: area for the Coverage page (or suite, area)
|
|
213
254
|
</span></span><span class="ln ln--pair"><span class="cmd"> requirements: [SHOP-3, SHOP-4]</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional: stories it covers (or refs)
|
|
214
255
|
</span></span></code></pre></div>
|
|
215
|
-
<p><strong>CSV.</strong>
|
|
256
|
+
<p><strong>CSV.</strong> A header row, then a row per case. A row with an empty id (or the id above) adds a step to that case:</p>
|
|
216
257
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>csv</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id,title,url,action,expected
|
|
217
258
|
</span></span><span class="ln"><span class="cmd">SHOP-12,Valid login,https://staging.shop.test/login,Sign in as demo,Dashboard shows
|
|
218
259
|
</span></span><span class="ln"><span class="cmd">,,,Open Orders,Orders list shows
|
|
219
260
|
</span></span></code></pre></div>
|
|
220
261
|
<p>Columns: <code>id</code> (or <code>key</code>), <code>title</code> (or <code>name</code>, <code>summary</code>), <code>url</code>, <code>description</code>, <code>preconditions</code>, <code>tags</code>, <code>group</code> (or <code>suite</code>, <code>area</code>), <code>requirements</code> (or <code>refs</code>), <code>action</code> (or <code>step</code>), <code>data</code>, <code>expected</code> (or <code>expected_result</code>, <code>result</code>). Lists in a cell are separated by <code>;</code>.</p>
|
|
221
262
|
<p><strong>Gherkin.</strong> Each <code>Scenario</code> in a <code>.feature</code> file is a case, and each <code>Examples</code> row of a <code>Scenario Outline</code> is its own case. <code>Background</code> steps come first, and <code>Then</code> steps are the expected results of the step before them.</p>
|
|
222
|
-
<p><strong>
|
|
263
|
+
<p><strong>Test systems.</strong> Connect each one in <strong>Settings › Integrations</strong>, or in <code>sources:</code> in <code>forgeqe.yaml</code> as shown below. Its token goes in an environment variable (or <strong>Settings › Secrets</strong>), never in the file.</p>
|
|
264
|
+
<p><strong>Azure DevOps.</strong> Set the organization, and put a PAT with Test Management and Work Items (read and write) in <code>ADO_PAT</code>. ForgeQE's agent reaches the whole organization. Leave <code>project</code> unset (or set it to <code>*</code> or <code>all</code>) and ForgeQE's own calls cover every project; set <code>project</code> only to limit those calls to one.</p>
|
|
223
265
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
224
266
|
</span></span><span class="ln"><span class="cmd"> azure_devops:
|
|
225
267
|
</span></span><span class="ln"><span class="cmd"> org_url: https://dev.azure.com/acme
|
|
226
268
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> project: Shop # optional
|
|
227
269
|
</span></span></code></pre></div>
|
|
228
|
-
<
|
|
270
|
+
<ul>
|
|
271
|
+
<li><code>ado:123,456</code> reads test case work items: their steps and expected results (HTML turned into text), with shared steps inlined, and one case per parameter row with the <code>@param</code> values filled in. Work item ids are unique in the organization, so they need no project.</li>
|
|
272
|
+
<li><code>ado:plan=12</code> reads every suite in a test plan, and <code>ado:plan=12/suite=34</code> one suite, with each test point's configuration. With no project configured, the plan is looked up in every project; <code>ado:project=Shop/plan=12</code> names one.</li>
|
|
273
|
+
</ul>
|
|
229
274
|
<p><strong>Jira.</strong> <code>jira:SHOP-1,SHOP-2</code> or <code>jira:jql=project = SHOP AND labels = e2e</code>. The summary is the title and the description holds the steps. Jira Cloud (<code>*.atlassian.net</code>) needs <code>JIRA_EMAIL</code> and an API token in <code>JIRA_API_TOKEN</code>; Server and Data Center use a personal access token in <code>JIRA_API_TOKEN</code>.</p>
|
|
230
275
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
231
276
|
</span></span><span class="ln"><span class="cmd"> jira:
|
|
232
277
|
</span></span><span class="ln"><span class="cmd"> url: https://acme.atlassian.net
|
|
233
278
|
</span></span></code></pre></div>
|
|
234
|
-
<p><strong>Xray.</strong> <code>xray:SHOP-1</code>, <code>xray:jql=<query></code>, or <code>xray:plan=SHOP-100</code> for a test plan's tests, with Xray's own steps, data
|
|
235
|
-
<p><strong>TestRail.</strong>
|
|
279
|
+
<p><strong>Xray.</strong> <code>xray:SHOP-1</code>, <code>xray:jql=<query></code>, or <code>xray:plan=SHOP-100</code> for a test plan's tests, with Xray's own steps, data and expected results. Xray Cloud needs an API key pair in <code>XRAY_CLIENT_ID</code> and <code>XRAY_CLIENT_SECRET</code>. Xray Server and Data Center go through the Jira settings above.</p>
|
|
280
|
+
<p><strong>TestRail.</strong> It needs the user's email in <code>TESTRAIL_EMAIL</code> and an API key in <code>TESTRAIL_API_KEY</code>.</p>
|
|
281
|
+
<ul>
|
|
282
|
+
<li><code>testrail:C12,C13</code> reads cases by id, and <code>testrail:run=45</code> the tests of a run (results go back to that run).</li>
|
|
283
|
+
<li><code>testrail:plan=7</code> reads every run in a plan, and <code>testrail:suite=3</code> a suite (this needs <code>project_id</code>).</li>
|
|
284
|
+
<li>Separated steps (<code>custom_steps_separated</code>) become steps with expected results; the text template's steps become one step.</li>
|
|
285
|
+
</ul>
|
|
236
286
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
237
287
|
</span></span><span class="ln"><span class="cmd"> testrail:
|
|
238
288
|
</span></span><span class="ln"><span class="cmd"> url: https://acme.testrail.io
|
|
239
289
|
</span></span><span class="ln ln--pair"><span class="cmd"> project_id: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> needed for suites, and to create a run for cases read by id
|
|
240
290
|
</span></span></code></pre></div>
|
|
241
|
-
<p><strong>Zephyr Scale (Cloud).</strong> <code>zephyr:SHOP-T1,SHOP-T2</code>, <code>zephyr:cycle=SHOP-R5</code> (results go back to that cycle), or <code>zephyr:folder=12</code> (needs <code>project_key</code>). Call-to-test steps are inlined. It needs an API access token in <code>ZEPHYR_API_TOKEN</code>; setting the variable is enough to turn it on.</p>
|
|
242
|
-
<p><strong>qTest.</strong> <code>qtest:1234</code> reads test cases by the id in their URL
|
|
291
|
+
<p><strong>Zephyr Scale (Cloud).</strong> <code>zephyr:SHOP-T1,SHOP-T2</code>, <code>zephyr:cycle=SHOP-R5</code> (results go back to that cycle), or <code>zephyr:folder=12</code> (this needs <code>project_key</code>). Call-to-test steps are inlined. It needs an API access token in <code>ZEPHYR_API_TOKEN</code>; setting the variable is enough to turn it on.</p>
|
|
292
|
+
<p><strong>qTest.</strong> <code>qtest:1234</code> reads test cases by the id in their URL. <code>qtest:cycle=88</code> and <code>qtest:suite=9</code> read the test runs under a cycle or suite, and results go back to those runs. It needs <code>url</code>, <code>project_id</code>, and an API token in <code>QTEST_TOKEN</code>. Result statuses are the automation status names your qTest uses; the defaults are PASS, FAIL and BLOCKED:</p>
|
|
243
293
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
244
294
|
</span></span><span class="ln"><span class="cmd"> qtest:
|
|
245
295
|
</span></span><span class="ln"><span class="cmd"> url: https://acme.qtestnet.com
|
|
246
296
|
</span></span><span class="ln"><span class="cmd"> project_id: 12345
|
|
247
297
|
</span></span><span class="ln"><span class="cmd"> statuses: { passed: PASS, failed: FAIL, error: BLOCKED }
|
|
248
298
|
</span></span></code></pre></div>
|
|
249
|
-
<p><strong>ServiceNow (read only).</strong> <code>servicenow:TST0001234</code> (record numbers or sys_ids) or <code>servicenow:query=active=true^short_descriptionLIKElogin</code> (the first 100) reads Test Management tests and their steps through the Table API
|
|
299
|
+
<p><strong>ServiceNow (read only).</strong> <code>servicenow:TST0001234</code> (record numbers or sys_ids) or <code>servicenow:query=active=true^short_descriptionLIKElogin</code> (the first 100) reads Test Management tests and their steps through the Table API. Results are not posted back.</p>
|
|
300
|
+
<ul>
|
|
301
|
+
<li>With <code>user_env</code> set, ForgeQE signs in as that user, with <code>token_env</code> as the password.</li>
|
|
302
|
+
<li>With <code>user_env: ""</code>, the token variable holds an OAuth access token.</li>
|
|
303
|
+
<li>Table names differ between releases, so check them in your instance:</li>
|
|
304
|
+
</ul>
|
|
250
305
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
251
306
|
</span></span><span class="ln"><span class="cmd"> servicenow:
|
|
252
307
|
</span></span><span class="ln"><span class="cmd"> url: https://acme.service-now.com
|
|
@@ -256,15 +311,28 @@
|
|
|
256
311
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> step_table: sn_test_management_step
|
|
257
312
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> step_parent: test # the step's field naming its test
|
|
258
313
|
</span></span></code></pre></div>
|
|
259
|
-
<p>Several sources can
|
|
260
|
-
<p><strong>Which system an id is in.</strong> A prefix (<code>jira:TA-2344</code>, <code>ado:1234</code>) or a link to a configured site always settles it. A bare id is matched by its shape against the systems you set up
|
|
314
|
+
<p><strong>Mixing sources.</strong> Several sources can go in one suite: <code>forgeqe suite smoke.yaml jira:SHOP-7 testrail:C12</code>.</p>
|
|
315
|
+
<p><strong>Which system an id is in.</strong> A prefix (<code>jira:TA-2344</code>, <code>ado:1234</code>) or a link to a configured site always settles it. A bare id is matched by its shape against the systems you set up:</p>
|
|
316
|
+
<div class="tbl tbl--cols-2"><table>
|
|
317
|
+
<thead>
|
|
318
|
+
<tr><th>Shape</th><th>System</th></tr>
|
|
319
|
+
</thead>
|
|
320
|
+
<tbody>
|
|
321
|
+
<tr><td data-label="Shape"><code>C12</code></td><td data-label="System">TestRail</td></tr>
|
|
322
|
+
<tr><td data-label="Shape"><code>SHOP-T3</code></td><td data-label="System">Zephyr Scale</td></tr>
|
|
323
|
+
<tr><td data-label="Shape"><code>SHOP-12</code></td><td data-label="System">Jira</td></tr>
|
|
324
|
+
<tr><td data-label="Shape"><code>TST0001234</code></td><td data-label="System">ServiceNow</td></tr>
|
|
325
|
+
<tr><td data-label="Shape">A plain number</td><td data-label="System">Azure DevOps, GitHub or qTest</td></tr>
|
|
326
|
+
</tbody>
|
|
327
|
+
</table></div>
|
|
328
|
+
<p>If only one configured system fits, that one is used. If several fit, the command stops and the agent asks you which; it never guesses. Map ids for good with <code>id_routes</code> (<strong>Settings › Integrations</strong>, "Which system an id is in"): a prefix and <code>*</code> (never a regular expression), or <code>*</code> alone for plain numbers.</p>
|
|
261
329
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
262
330
|
</span></span><span class="ln"><span class="cmd"> id_routes:
|
|
263
331
|
</span></span><span class="ln"><span class="cmd"> "TA-*": jira
|
|
264
332
|
</span></span><span class="ln"><span class="cmd"> "TST*": servicenow
|
|
265
333
|
</span></span><span class="ln"><span class="cmd"> "*": azure_devops
|
|
266
334
|
</span></span></code></pre></div>
|
|
267
|
-
<p><strong>From requirements.</strong> Ask the agent to test a Confluence page, a story
|
|
335
|
+
<p><strong>From requirements.</strong> Ask the agent to test a Confluence page, a story or a spec file ("write and run test cases for the refund rules page in Confluence"). It reads the requirements, writes one case per rule or acceptance criterion with the main negative paths, shows them, and runs them as text cases. It saves them into a test system only when you ask. Confluence needs <code>sources.confluence</code>:</p>
|
|
268
336
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
269
337
|
</span></span><span class="ln ln--pair"><span class="cmd"> confluence: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the wiki on the Jira Cloud site above, same account
|
|
270
338
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> or
|
|
@@ -282,34 +350,55 @@
|
|
|
282
350
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe suite cases.yaml --repo ../app</span><span class="pad"> </span><span class="cm"><span class="h">#</span> passed cases get a test in ../app
|
|
283
351
|
</span></span><span class="ln"><span class="cmd">forgeqe suite cases.yaml --no-code --no-write-back --out .forgeqe/reports/smoke
|
|
284
352
|
</span></span></code></pre></div>
|
|
353
|
+
<p>The same settings for every suite are in <code>forgeqe.yaml</code>, and in the web app under <strong>Settings › Parallel execution</strong> (browsers at once) and <strong>Settings › Reports and memory</strong> (the report folder, writing tests for passed cases, starting signed in):</p>
|
|
285
354
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">suite:
|
|
286
355
|
</span></span><span class="ln ln--pair"><span class="cmd"> parallel: 1</span><span class="pad"> </span><span class="cm"><span class="h">#</span> browsers at once
|
|
287
356
|
</span></span><span class="ln ln--pair"><span class="cmd"> code: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> with a repo set, passed cases go to Quill
|
|
288
357
|
</span></span><span class="ln ln--pair"><span class="cmd"> restore_sessions: false</span><span class="pad"> </span><span class="cm"><span class="h">#</span> true: each case starts signed in from the saved logins' sessions
|
|
289
358
|
</span></span><span class="ln"><span class="cmd"> out_dir: ./.forgeqe/reports/suites
|
|
290
359
|
</span></span></code></pre></div>
|
|
291
|
-
<p>
|
|
292
|
-
<
|
|
360
|
+
<p><strong>How a suite runs.</strong></p>
|
|
361
|
+
<ul>
|
|
362
|
+
<li><strong>Browsers:</strong> browser runs happen <code>parallel</code> at a time and share page memory safely.</li>
|
|
363
|
+
<li><strong>Tests:</strong> each passed case goes to the coding agent as soon as its own browser run ends. Its test is written and run before that browser slot starts the next case: explore, hand off, code, next case.</li>
|
|
364
|
+
<li><strong>One coding job at a time,</strong> so two never edit the repository at once. A case with no test says why in the report (it failed, or no model is set up).</li>
|
|
365
|
+
<li><strong>Output:</strong> with <code>--parallel</code> above 1, each line of output starts with the case id.</li>
|
|
366
|
+
<li><strong>Stopping:</strong> Ctrl-C stops the suite. Cases already running finish closing their browsers, and cases that never started are reported as not run.</li>
|
|
367
|
+
</ul>
|
|
368
|
+
<p>At the end, ForgeQE prints the result of every case and writes these files to <code>.forgeqe/reports/suites/<time>/</code>:</p>
|
|
369
|
+
<ul>
|
|
370
|
+
<li><code>report.html</code>: one file with every screenshot embedded. Open it from disk; no server is needed. Its menu is described below.</li>
|
|
371
|
+
<li><code>junit.xml</code>: for CI test reporting. A failed case is a <code><failure></code>, a crash an <code><error></code>, a case not run <code><skipped></code>; step verdicts are in <code>system-out</code>.</li>
|
|
372
|
+
<li><code>suite.json</code>: everything in the report, as data.</li>
|
|
373
|
+
<li><code>01-SHOP-12/</code>, <code>02-…</code>: each case's normal run folder (with its own <code>report.html</code>, <code>steps.json</code>, and <code>steps/NN.jpg</code> screenshots), plus <code>testcase.json</code>.</li>
|
|
374
|
+
</ul>
|
|
375
|
+
<p><strong>The report's menu, This run.</strong></p>
|
|
293
376
|
<ul>
|
|
294
|
-
<li>
|
|
295
|
-
<
|
|
377
|
+
<li><strong>Overview</strong>: the verdict, totals, step checks, browser steps, tokens, cost, what page memory saved, browser errors, accessibility issues, tests written and bugs filed. Also: what changed since the last run, results over the earlier runs in <code>.forgeqe/reports/suites/</code>, the cases that need attention and why, results by source and by tag, the slowest cases, and what was posted where.</li>
|
|
378
|
+
<li><strong>Test results</strong>: search and filter the cases. For each case:
|
|
296
379
|
<ul>
|
|
297
|
-
<li
|
|
298
|
-
<li><strong>
|
|
299
|
-
<li
|
|
300
|
-
<li
|
|
380
|
+
<li>its step table (action, expected, the agent's verdict, what it actually saw), and why it failed (the failed step, the agent's last evaluation, failed actions, the screenshot);</li>
|
|
381
|
+
<li><strong>last good vs now</strong>: the same page from the case's last passing run beside this run's, and where their browser steps start to differ;</li>
|
|
382
|
+
<li>the browser errors per step (console errors, uncaught exceptions, failed and slow requests);</li>
|
|
383
|
+
<li>page memory: steps replayed, tokens and time saved against the last run where the agent took every step, locators that healed, flows repaired;</li>
|
|
384
|
+
<li>the browser agent's steps (goal, actions, errors, time and model time, a screenshot each with the element it acted on outlined), and a timing waterfall (waiting for the model, acting in the browser, replayed from memory);</li>
|
|
385
|
+
<li>the accessibility issues of each page, a screenshot gallery, and its trace, workflow and handoff to read in place. Run history links to earlier reports.</li>
|
|
386
|
+
</ul>
|
|
387
|
+
</li>
|
|
388
|
+
<li><strong>Failures</strong>: each failed case with what the agent reported, the evidence (browser errors included), its last passing screenshot, its bug, and text to copy into a bug report.</li>
|
|
389
|
+
<li><strong>Defects</strong>: failures grouped by what caused them, so one fix clears every case it breaks. The defects that break the most cases come first, each with its root-cause hypothesis when there is one. It downloads as Markdown.</li>
|
|
301
390
|
<li><strong>Since last run</strong>: new failures, fixes, cases still failing, cases at least 5 s and 25% slower or faster, and new or dropped cases, against the previous run in the folder.</li>
|
|
302
391
|
</ul>
|
|
303
|
-
<p><strong>Analysis
|
|
392
|
+
<p><strong>The report's menu, Analysis.</strong></p>
|
|
304
393
|
<ul>
|
|
305
394
|
<li><strong>Trends</strong> and <strong>Flaky tests</strong>: pass rate, outcomes, duration, tokens and cost per run; cases whose result keeps changing, and cases that started failing. Both need earlier suite runs in the same folder.</li>
|
|
306
395
|
<li><strong>Time and cost</strong>: where the time went (model, browser, page memory), a timeline of the cases on each parallel worker, page memory savings per case, and tokens and cost per case.</li>
|
|
307
396
|
<li><strong>Coverage</strong>: results by requirement (a requirement fails when any case covering it fails), by group, by tag and by source. Groups and requirements come from the source: the area path in Azure DevOps, the section and refs in TestRail, the folder in Zephyr Scale, components (or the parent issue) and "tests" links in Jira, and <code>group</code> / <code>requirements</code> in case files.</li>
|
|
308
|
-
<li><strong>Accessibility</strong>: the WCAG rules of the standard you chose, checked
|
|
397
|
+
<li><strong>Accessibility</strong>: the WCAG rules of the standard you chose, checked on every page the agent visited. It lists the rules that passed, and each rule that failed with its success criterion, level, impact, the elements and a link to how to fix it, and any accessibility budget exceeded. Automated checks are a pre-check, not conformance.</li>
|
|
309
398
|
<li><strong>Visual</strong>: every page against its approved baseline: baseline, this run, and the difference side by side, changed pages first, with the share of pixels changed and the visual budget.</li>
|
|
310
399
|
<li><strong>Performance</strong>: each page's Core Web Vitals (LCP, CLS, INP, FCP, TTFB) and load time, coloured good / needs improvement / poor by Google's thresholds, with the budgets each page went over.</li>
|
|
311
400
|
</ul>
|
|
312
|
-
<p><strong>Tokenomics</strong> (reports with token usage)
|
|
401
|
+
<p><strong>The report's menu, Tokenomics</strong> (reports with token usage).</p>
|
|
313
402
|
<ul>
|
|
314
403
|
<li><strong>Usage</strong>: a usage summary, tokens by case, tokens over the run, and the calls that used the most tokens.</li>
|
|
315
404
|
<li><strong>Breakdown</strong>: what the tokens paid for, by agent, job, task, purpose, model, user and machine.</li>
|
|
@@ -320,30 +409,18 @@
|
|
|
320
409
|
<li><strong>Optimise</strong>: where the report could have spent less on models, by how much, and what to change.</li>
|
|
321
410
|
</ul>
|
|
322
411
|
<p><strong>Environment</strong> opens from the model card at the foot of the menu: model, browser, the model's price, start URL, ForgeQE version, machine, CI build, branch, commit, and the sites visited.</p>
|
|
323
|
-
<p>
|
|
324
|
-
</li>
|
|
325
|
-
<li>
|
|
326
|
-
<p><code>junit.xml</code>: for CI test reporting; a failed case is a <code><failure></code>, a crash an <code><error></code>, a case not run <code><skipped></code>; step verdicts are in <code>system-out</code></p>
|
|
327
|
-
</li>
|
|
328
|
-
<li>
|
|
329
|
-
<p><code>suite.json</code>: everything above as data</p>
|
|
330
|
-
</li>
|
|
331
|
-
<li>
|
|
332
|
-
<p><code>01-SHOP-12/</code>, <code>02-…</code>: each case's normal run folder (with its own <code>report.html</code>, <code>steps.json</code>, and <code>steps/NN.jpg</code> screenshots), plus <code>testcase.json</code></p>
|
|
333
|
-
</li>
|
|
334
|
-
</ul>
|
|
412
|
+
<p>The report exports Markdown and JSON and prints cleanly. Up to 40 MB of screenshots are embedded, failed cases first; beyond that they load from the run folders next to the report. Two report settings (<strong>Settings › Reports and memory</strong> and <strong>Settings › Quality checks</strong>):</p>
|
|
335
413
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">report:
|
|
336
414
|
</span></span><span class="ln ln--pair"><span class="cmd"> screenshots: all</span><span class="pad"> </span><span class="cm"><span class="h">#</span> all | failures (only failed runs keep step screenshots) | off
|
|
337
415
|
</span></span><span class="ln ln--pair"><span class="cmd"> accessibility: true</span><span class="pad"> </span><span class="cm"><span class="h">#</span> check each page the agent visits; false skips the checks
|
|
338
416
|
</span></span></code></pre></div>
|
|
339
|
-
<p>Bugs filed for failed cases list the run's console errors and failed requests under "Browser errors"
|
|
340
|
-
<p>Exit codes: <code>0</code> every case passed (and every test written for them passes), <code>1</code> anything failed, <code>2</code> stopped.</p>
|
|
417
|
+
<p><strong>Bugs and exit codes.</strong> Bugs filed for failed cases list the run's console errors and failed requests under "Browser errors". <code>forgeqe suite</code> exits <code>0</code> when every case passed (and every test written for them passes), <code>1</code> when anything failed, and <code>2</code> when it was stopped.</p>
|
|
341
418
|
</div>
|
|
342
419
|
</section>
|
|
343
420
|
<section class="doc" id="doc-how_to_use-results-back-in-the-source">
|
|
344
421
|
<h4>Results back in the source</h4>
|
|
345
|
-
<div class="prose"><p>Test cases the agent writes from an Azure DevOps or Jira story are saved there
|
|
346
|
-
<p>A story often changes a feature that already has test cases, linked to an older story. Map where those cases live
|
|
422
|
+
<div class="prose"><p><strong>Saving the cases the agent writes.</strong> Test cases the agent writes from an Azure DevOps or Jira story are saved there, linked to the story, and the reply lists them as links. Set <code>sources.save_cases: false</code> to keep them in the reply only. Replies render as Markdown (headings, lists, tables, links), in the shell as in the web app.</p>
|
|
423
|
+
<p><strong>Reusing the cases a feature already has.</strong> A story often changes a feature that already has test cases, linked to an older story. Map where those cases live, and saving reuses or extends them instead of writing new ones. Settings › Integrations has the same field for each system:</p>
|
|
347
424
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
348
425
|
</span></span><span class="ln"><span class="cmd"> azure_devops:
|
|
349
426
|
</span></span><span class="ln ln--pair"><span class="cmd"> test_cases:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the story's area path (or a parent of it) = where its cases are
|
|
@@ -353,44 +430,84 @@
|
|
|
353
430
|
</span></span><span class="ln ln--pair"><span class="cmd"> test_cases:</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the story's project key = where its cases are
|
|
354
431
|
</span></span><span class="ln ln--pair"><span class="cmd"> SHOP: label=regression; component=Checkout</span><span class="pad"> </span><span class="cm"><span class="h">#</span> also project= and type= (default Test)
|
|
355
432
|
</span></span></code></pre></div>
|
|
356
|
-
<p>ForgeQE reads that one place itself
|
|
357
|
-
<
|
|
433
|
+
<p>ForgeQE reads that one place itself: at most 300 cases by title, and the steps of only the few closest to each new case. The agent never searches for cases and spends nothing on it. Each case the agent wrote is then marked:</p>
|
|
434
|
+
<div class="tbl tbl--cols-3"><table>
|
|
435
|
+
<thead>
|
|
436
|
+
<tr><th>Mark</th><th>When</th><th>What is offered</th></tr>
|
|
437
|
+
</thead>
|
|
438
|
+
<tbody>
|
|
439
|
+
<tr><td data-label="Mark"><strong>reuse</strong></td><td data-label="When">A case there has the same steps</td><td data-label="What is offered">Linking that case to the story. The question shows each case with the other stories it tests, and asks before linking</td></tr>
|
|
440
|
+
<tr><td data-label="Mark"><strong>extends</strong></td><td data-label="When">A case there has all of this case's steps in order, and this one adds some</td><td data-label="What is offered">Adding only the new steps. The question shows just those steps and where they go, links the case to the story in the same answer, and names the other stories the case tests, since the change applies to them too. When the old steps must stay for those, the agent saves your case as a new one instead</td></tr>
|
|
441
|
+
<tr><td data-label="Mark"><strong>differs</strong> or <strong>similar</strong></td><td data-label="When">As for linked cases</td><td data-label="What is offered"></td></tr>
|
|
442
|
+
<tr><td data-label="Mark"><strong>created</strong></td><td data-label="When">Anything else</td><td data-label="What is offered">A new case</td></tr>
|
|
443
|
+
</tbody>
|
|
444
|
+
</table></div>
|
|
445
|
+
<p>Nothing is written to an existing case until you agree. A case is linked only when it is a test case of the story's project (in Jira, or of the project its <code>test_cases</code> names), at most 20 at once. With no <code>test_cases</code>, only the cases linked to the story are compared.</p>
|
|
446
|
+
<p><strong>Reviewing a story's cases and changes.</strong> A story's linked cases (those older than the story's last change are marked), its acceptance criteria with the cases traced to each, what ForgeQE changed, and the changes the agent proposed.</p>
|
|
447
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
448
|
+
<ol>
|
|
449
|
+
<li>Open <strong>Test cases</strong> (Quality Engineering › Test design).</li>
|
|
450
|
+
<li>Pick the system (<strong>Azure DevOps</strong>, <strong>Jira</strong>, <strong>TestRail</strong>, <strong>Zephyr Scale</strong> or <strong>qTest</strong>), type the <strong>Story</strong>, and press <strong>Open</strong>.</li>
|
|
451
|
+
<li>Under <strong>Proposed changes</strong>, tick the changes to make and press <strong>Review</strong>.</li>
|
|
452
|
+
<li>Press <strong>Apply</strong>. The server checks every change again, and nothing is written before <strong>Apply</strong>.</li>
|
|
453
|
+
</ol>
|
|
454
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
455
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe run "show the test cases of story 1234 and what changed since the story did"
|
|
456
|
+
</span></span></code></pre></div>
|
|
457
|
+
</div></div><p><strong>More of managing test cases.</strong> Each is set in <code>forgeqe.yaml</code> (and Settings › Integrations), or asked of the agent:</p>
|
|
358
458
|
<ul>
|
|
359
|
-
<li><strong>Where new cases go.</strong> When <code>test_cases</code> maps a story to a suite (<code>plan=12/suite=34</code>), new Azure DevOps cases are added to that suite
|
|
459
|
+
<li><strong>Where new cases go.</strong> When <code>test_cases</code> maps a story to a suite (<code>plan=12/suite=34</code>), new Azure DevOps cases are added to that suite and run from it, so their results are recorded as a test run in the plan rather than as comments. In other systems:
|
|
460
|
+
<ul>
|
|
461
|
+
<li>Xray tests are written with their steps in Xray (<code>sources.xray.save_steps: true</code>, Cloud and Server/DC);</li>
|
|
462
|
+
<li>TestRail cases go in <code>sources.testrail.section_id</code>, with the story in refs;</li>
|
|
463
|
+
<li>Zephyr Scale cases go in <code>sources.zephyr.folder_id</code>, linked to the Jira story;</li>
|
|
464
|
+
<li>qTest cases go in <code>module_id</code>, linked to the story's requirement.</li>
|
|
465
|
+
</ul>
|
|
466
|
+
</li>
|
|
360
467
|
<li><strong>Fields on new cases.</strong> <code>new_cases</code> gives every new case a priority, tags or labels, and in Azure DevOps a state: <code>state: Design</code> makes each case wait for a person to mark it Ready. The agent may give a case its own priority and tags.</li>
|
|
361
468
|
<li><strong>Shared steps and data.</strong> <code>sources.azure_devops.shared_steps</code> lists Shared Steps work items; a new case that has their steps in a row refers to them instead of copying them. A case run with several sets of data gets parameters (<code>@user</code>) and a data table.</li>
|
|
362
|
-
<li><strong>Cases left behind by a story change.</strong>
|
|
363
|
-
<li><strong>Retiring a case.</strong>
|
|
364
|
-
<
|
|
365
|
-
<li
|
|
366
|
-
<li
|
|
367
|
-
<li
|
|
368
|
-
|
|
469
|
+
<li><strong>Cases left behind by a story change.</strong> Ask the agent for a story's test cases: it reads the story's history and marks the linked cases last changed before the story's title, description or acceptance criteria were (stale), with what changed. It offers to update each one the change affects, or to retire one that tests behaviour the story no longer has.</li>
|
|
470
|
+
<li><strong>Retiring a case.</strong> The agent asks first, then closes the case or labels it, with the reason. Nothing is deleted, and retired cases are not offered for reuse.
|
|
471
|
+
<ul>
|
|
472
|
+
<li>Azure DevOps: <code>retire_state</code>. By default it is a state the project itself calls done, so a workflow that ends in <em>Verified</em> or <em>Shipped</em> needs no setting.</li>
|
|
473
|
+
<li>Jira: <code>retire_label</code>, by default <code>obsolete</code>.</li>
|
|
474
|
+
<li>TestRail: moved to <code>retired_section_id</code>. Zephyr Scale: status Deprecated.</li>
|
|
475
|
+
</ul>
|
|
476
|
+
</li>
|
|
477
|
+
<li><strong>Duplicates before saving.</strong> Ask the agent to check cases against a story: it compares them with the story's linked cases and its scope. The same steps is a duplicate naming the existing case; more steps or a close title is an overlap.</li>
|
|
478
|
+
<li><strong>Cases with no story.</strong> Cases written from a page, a spec or a file are saved in an Azure DevOps area path or a Jira or Zephyr Scale project you name, and compared with that area's or project's scope.</li>
|
|
479
|
+
<li><strong>The feature's other stories.</strong> <code>sibling_cases: true</code> also compares with the cases of the other stories under the story's feature or epic (the first 30 stories). In Jira Cloud that is the parent field used for epics; on Jira Server, Epic Link.</li>
|
|
480
|
+
<li><strong>Automation status.</strong> A test that passes for a Jira or Xray case labels it <code>automated</code> and records the test on the issue, as Azure DevOps cases get their Associated Automation; a comment is added only when the test is new. TestRail uses <code>automation_field</code>, Zephyr Scale the <code>automated</code> label.</li>
|
|
481
|
+
<li><strong>Release readiness in Jira.</strong> Asked for a Jira scope (<code>system: jira</code>), release readiness reads a sprint, a fix version, an epic or story keys: each story's tests, which are automated, their last results (ForgeQE's runs, Xray test runs and Zephyr Scale executions, the newest of them), open bugs by priority, and the same verdict.</li>
|
|
369
482
|
<li><strong>Matching by steps.</strong> Saving keeps an index of the scope's cases in <code>.forgeqe/cases-index/</code> (git-ignored): every case's steps read once, then only those changed since, 40 per save. A case with the same steps is found whatever its title, and a slightly reworded step still counts for extends.</li>
|
|
370
|
-
<li><strong>Several changes at once.</strong>
|
|
371
|
-
<li><strong>What ForgeQE changed.</strong> Every case it creates, links, updates or retires is logged in <code>.forgeqe/history/case-changes.jsonl</code
|
|
372
|
-
<li><strong>Acceptance criteria traced to cases.</strong> Saved cases carry the criteria they cover
|
|
483
|
+
<li><strong>Several changes at once.</strong> The agent can link, extend, update and retire several cases with one question, every change checked and read first.</li>
|
|
484
|
+
<li><strong>What ForgeQE changed.</strong> Every case it creates, links, updates or retires is logged in <code>.forgeqe/history/case-changes.jsonl</code>. A story's case list and the readiness report list the changes for their stories.</li>
|
|
485
|
+
<li><strong>Acceptance criteria traced to cases.</strong> Saved cases carry the criteria they cover, and ForgeQE records which linked cases cover which. A story's case list shows each criterion with its cases, and readiness names the criteria no traced case covers.</li>
|
|
373
486
|
<li><strong>Healing and test cases.</strong> When healing fixes a test because the application changed, it names the test cases that test automates (heal.md, Test cases to review), and the agent offers to update their steps.</li>
|
|
374
|
-
<li><strong>From Requirements Agent.</strong> Requirements Agent writes <code>requirements.json</code> next to its report
|
|
375
|
-
<li><strong>qTest, TestRail and Zephyr Scale.</strong> Cases are saved in qTest (<code>module_id</code>, linked to the story's requirement), retired in TestRail (moved to <code>retired_section_id</code>) and Zephyr Scale (status Deprecated), and marked automated (TestRail's <code>automation_field</code>, Zephyr Scale's <code>automated</code> label). Sibling stories on Jira Server are found through Epic Link.</li>
|
|
487
|
+
<li><strong>From Requirements Agent.</strong> Requirements Agent writes <code>requirements.json</code> next to its report. Give the agent that file, and it writes a case per requirement, traced by its id (FR-001).</li>
|
|
376
488
|
<li><strong>Settings checks.</strong> A <code>test_cases</code>, <code>new_cases</code> or retire setting ForgeQE would refuse when saving cases is refused when Settings saves it, with the setting named. In a saved Azure DevOps or Jira connection, <strong>Try</strong> beside each <code>test_cases</code> line says how many cases it finds, with a few of their titles.</li>
|
|
377
|
-
<li><strong>The Test cases page</strong> (<code>forgeqe web</code>, Test cases): open a story by its system and id to see its linked cases (those older than the story's last change marked), its acceptance criteria with the cases traced to each, what ForgeQE changed, and the changes <code>save_test_cases</code> proposed. Tick the ones to make, review them, and Apply: the server checks every change again and nothing is written before Apply.</li>
|
|
378
489
|
</ul>
|
|
379
|
-
<p>With <code>sources.write_back: true</code> (the default), results go back after the suite:</p>
|
|
380
|
-
<
|
|
381
|
-
<
|
|
382
|
-
<
|
|
383
|
-
|
|
384
|
-
<
|
|
385
|
-
<
|
|
386
|
-
<
|
|
387
|
-
</
|
|
388
|
-
<
|
|
490
|
+
<p><strong>Posting results.</strong> With <code>sources.write_back: true</code> (the default; <strong>Settings › Integrations</strong>, "Post results back"), results go back after the suite:</p>
|
|
491
|
+
<div class="tbl tbl--cols-2"><table>
|
|
492
|
+
<thead>
|
|
493
|
+
<tr><th>System</th><th>What is posted</th></tr>
|
|
494
|
+
</thead>
|
|
495
|
+
<tbody>
|
|
496
|
+
<tr><td data-label="System">Azure DevOps plan</td><td data-label="What is posted">A completed test run for the plan, with each test point's outcome and the agent's summary as the comment. Cases read by id get a comment on the work item instead</td></tr>
|
|
497
|
+
<tr><td data-label="System">Jira</td><td data-label="What is posted">A comment on each issue with the result, the summary, where the run ended, and the test file if one was written</td></tr>
|
|
498
|
+
<tr><td data-label="System">Xray</td><td data-label="What is posted">One Test Execution per test plan (linked to the plan), with each test's status, step statuses and actual results, the summary, and the failure screenshot as evidence</td></tr>
|
|
499
|
+
<tr><td data-label="System">TestRail</td><td data-label="What is posted">Results in the run the cases came from, or a new run per suite for cases read by id, with step results and the failure screenshot attached</td></tr>
|
|
500
|
+
<tr><td data-label="System">Zephyr Scale</td><td data-label="What is posted">A test execution per case with step results, in the cycle the cases came from or a new cycle per project</td></tr>
|
|
501
|
+
<tr><td data-label="System">qTest</td><td data-label="What is posted">An automation test log per case with step logs, on the test run it came from, or on new test runs in a new test cycle</td></tr>
|
|
502
|
+
</tbody>
|
|
503
|
+
</table></div>
|
|
504
|
+
<p>Every comment and result includes the step verdicts. If a system rejects the step details (a TestRail project without separated steps, say), ForgeQE posts the result again without them rather than losing it. Stopped cases are never posted. <code>--no-write-back</code> skips posting for one suite.</p>
|
|
389
505
|
</div>
|
|
390
506
|
</section>
|
|
391
507
|
<section class="doc" id="doc-how_to_use-bugs-for-failures">
|
|
392
508
|
<h4>Bugs for failures</h4>
|
|
393
|
-
<div class="prose"><
|
|
509
|
+
<div class="prose"><p>Set up the bug tracker in <strong>Settings › Integrations</strong> (the <strong>Bugs</strong> group), or in <code>forgeqe.yaml</code>:</p>
|
|
510
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">sources:
|
|
394
511
|
</span></span><span class="ln"><span class="cmd"> bugs:
|
|
395
512
|
</span></span><span class="ln ln--pair"><span class="cmd"> system: jira</span><span class="pad"> </span><span class="cm"><span class="h">#</span> or azure_devops
|
|
396
513
|
</span></span><span class="ln ln--pair"><span class="cmd"> project: SHOP</span><span class="pad"> </span><span class="cm"><span class="h">#</span> Jira project key; Azure DevOps uses azure_devops.project
|
|
@@ -400,15 +517,44 @@
|
|
|
400
517
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> on_error: true # also for cases that could not run
|
|
401
518
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> group_by: defect # defect (default): cases failing the same way share a bug; case: a bug per case
|
|
402
519
|
</span></span></code></pre></div>
|
|
403
|
-
<p>When results are posted, each case that failed with a functional defect (
|
|
404
|
-
<
|
|
405
|
-
<
|
|
406
|
-
<
|
|
520
|
+
<p><strong>What a bug holds.</strong> When results are posted, each case that failed with a functional defect (see <a href="index.html#doc-how_to_use-when-a-case-fails">When a case fails</a>) gets a bug:</p>
|
|
521
|
+
<ul>
|
|
522
|
+
<li><strong>Title:</strong> <code>[ForgeQE] <case id>: <title></code>.</li>
|
|
523
|
+
<li><strong>Description:</strong> the result, the steps with verdicts, the preconditions, where the run ended, the build link and the run folder. The last screenshot is attached.</li>
|
|
524
|
+
<li><strong>Links:</strong> in Jira the bug "relates to" the Jira or Xray test; in Azure DevOps it is "tested by" the test case work item.</li>
|
|
525
|
+
</ul>
|
|
526
|
+
<p><strong>Following a bug over runs.</strong> Each bug carries a label or tag that fingerprints the case (<code>forgeqe-</code> and ten hex digits).</p>
|
|
407
527
|
<ul>
|
|
408
|
-
<li>
|
|
409
|
-
<li>
|
|
410
|
-
<li>For new defects and regressions, a read-only agent (prompt <code>defect-rca</code>) reads the evidence, the suspect commits and the product's code, and writes a hypothesis with its confidence (high only when it read the code that fails and the change that broke it), what it rests on, and checks to confirm it. The hypothesis is added to the bug as a comment and shown on the Defects page. It runs for at most <code>max_analyses</code> defects per suite; each is one agent session (about 90K–120K tokens with gpt-5.4 in our runs), shown on its own line under Usage.</li>
|
|
528
|
+
<li>The next failure comments "Still failing" on the open bug instead of filing a new one, and a pass adds a note that it passes again.</li>
|
|
529
|
+
<li>A closed bug is not reopened. A new failure after that files a new bug, titled <code>[ForgeQE] Regression: …</code>, that says when the old one was closed and links to it (Jira "relates to", Azure DevOps "Related", a mention on GitHub). A GitHub issue closed as not planned does not count.</li>
|
|
411
530
|
</ul>
|
|
531
|
+
<p><strong>One bug per defect.</strong> Cases that fail the same way share one bug (<code>group_by: defect</code>, the default).</p>
|
|
532
|
+
<ul>
|
|
533
|
+
<li><strong>The signature.</strong> ForgeQE gives each failing case a signature from the strongest evidence its run recorded: a failed request (a 5xx before a 4xx) by its route and status, then an uncaught page error, then a console error. Ids, numbers and times are taken out, so <code>POST /api/cart/123 → 500</code> and <code>/api/cart/456 → 500</code> match.</li>
|
|
534
|
+
<li><strong>Noise.</strong> Errors that the suite's passing runs show too (an analytics call, a missing favicon) do not count.</li>
|
|
535
|
+
<li><strong>The bug.</strong> The first case of a defect files the bug, titled after the defect (<code>[ForgeQE] shop.example.com/api/cart/:id returns 500</code>) and labelled with the defect's fingerprint (<code>forgeqe-d-</code> and ten hex digits) as well as the case's. Every other case failing the same way is added as a comment and gets its own case label on that bug. The next run finds the open bug by either label.</li>
|
|
536
|
+
<li><strong>No browser evidence.</strong> Such a failure is matched by its page and what the agent saw, within one run only, and its bug is titled after the case.</li>
|
|
537
|
+
<li><code>group_by: case</code> files one bug per failing case.</li>
|
|
538
|
+
</ul>
|
|
539
|
+
<p>The report's <strong>Defects</strong> page, the terminal summary and the CI job summary list every defect with the cases it breaks.</p>
|
|
540
|
+
<p><strong>Defect history.</strong> Each suite adds its defects to <code>defect-history.json</code> next to the suite folders. Keep it between CI runs as a cache, like the suite folders, to track a pipeline's defects.</p>
|
|
541
|
+
<ul>
|
|
542
|
+
<li>A defect is <strong>new</strong> the first time, then <strong>known</strong> ("seen in 3 earlier runs since 2 Oct").</li>
|
|
543
|
+
<li>It <strong>went away</strong> when a run did not see it while a case it broke passed. Seen again after that, or matching a closed bug in the tracker, it is a <strong>regression</strong>.</li>
|
|
544
|
+
<li>A defect whose cases keep changing between passing and failing across the last 20 suites (pass, fail, pass) is <strong>intermittent</strong>. It still gets a bug, which says so.</li>
|
|
545
|
+
<li>When a new bug is filed, ForgeQE also searches the tracker once for open bugs people filed about the same route or error (<code>/api/cart</code>, <code>price is undefined</code>) and lists them on the bug as possibly related. It never merges them.</li>
|
|
546
|
+
<li>Only defects found by browser evidence are kept in the history: a defect matched by the agent's words gets new words every run.</li>
|
|
547
|
+
</ul>
|
|
548
|
+
<p>The Defects page shows the history and filters new defects and regressions; the summaries say it next to each defect.</p>
|
|
549
|
+
<p><strong>Reproducing.</strong> Each defect gets a repro file, <code>defects/<defect id>.md</code> in the suite folder, and the same steps go in its bug: how reproducible it is, the case's steps with the agent's verdicts, what the browser did, where it ended, the environment (browser, device, build, commit), the failing request as a <code>curl</code> command with its response (credentials are taken out of the recorded requests), and the run's files (screenshot, replay flow, every step, every API call).</p>
|
|
550
|
+
<p>The first case of a new product defect runs once more into its <code>reproduce/</code> folder. Failing the same way makes it <strong>always</strong> reproducible; not failing again makes it <strong>intermittent</strong>. A defect seen in earlier runs is not run again.</p>
|
|
551
|
+
<p><strong>Root cause.</strong> The root cause is always a hypothesis, from three sources:</p>
|
|
552
|
+
<ul>
|
|
553
|
+
<li><strong>The evidence, at no cost:</strong> the layer (the server, the front end, access, a route that is not there, the environment) and the component (the route or the script).</li>
|
|
554
|
+
<li><strong>Suspect commits,</strong> with <code>defects.product_repo</code> set: commits made since the defect's cases last passed whose changes mention its route or error (<code>git log -G</code>), or whose files are named after it.</li>
|
|
555
|
+
<li><strong>An analysis,</strong> for new defects and regressions: a read-only agent (prompt <code>defect-rca</code>) reads the evidence, the suspect commits and the product's code. It writes a hypothesis with its confidence (high only when it read the code that fails and the change that broke it), what it rests on, and checks to confirm it. The hypothesis is added to the bug as a comment and shown on the Defects page. It runs for at most <code>max_analyses</code> defects per suite. Each is one agent session (about 90K–120K tokens with gpt-5.4 in our runs), shown on its own line under Usage.</li>
|
|
556
|
+
</ul>
|
|
557
|
+
<p>These settings are in <strong>Settings › Reports and memory</strong> (Defect analysis):</p>
|
|
412
558
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">defects:
|
|
413
559
|
</span></span><span class="ln ln--pair"><span class="cmd"> product_repo: ../shop</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the application's repository: suspect commits, and the code the analysis reads
|
|
414
560
|
</span></span><span class="ln ln--note"><span class="pad"> </span><span class="cm"><span class="h">#</span> reproduce: true # run the first case of each new defect once more
|
|
@@ -418,7 +564,6 @@
|
|
|
418
564
|
</div>
|
|
419
565
|
</section>
|
|
420
566
|
</div>
|
|
421
|
-
</article>
|
|
422
567
|
<article class="spec feat" id="cap-test-case-quality">
|
|
423
568
|
<div class="hd"><span class="mono">Test cases</span><h3>Check and improve test cases</h3></div>
|
|
424
569
|
<p class="ds">Checks test cases before they run (vague or missing expected results, missing test data, placeholders, duplicates) against the story, feature, and epic they test, then rewrites Azure DevOps or Jira cases in place once the user agrees.</p>
|
|
@@ -427,10 +572,11 @@
|
|
|
427
572
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to rewrite cases in place: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
428
573
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>check_test_cases</code> <code>update_test_case</code> <code>retire_test_case</code></p></div>
|
|
429
574
|
</div>
|
|
430
|
-
|
|
431
|
-
|
|
575
|
+
|
|
576
|
+
</article>
|
|
577
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-checking-test-cases-before-they-run">
|
|
432
578
|
<h4>Checking test cases before they run</h4>
|
|
433
|
-
<div class="prose"><p
|
|
579
|
+
<div class="prose"><p>ForgeQE checks cases before it runs them. Ask it to check cases without running anything ("are these test cases ready?", "check test plan 12 against its stories"), in the web app's chat or the shell. A check uses everything ForgeQE can know about a case:</p>
|
|
434
580
|
<div class="tbl tbl--cols-3"><table>
|
|
435
581
|
<thead>
|
|
436
582
|
<tr><th>Source</th><th>What it finds</th><th>Cost</th></tr>
|
|
@@ -443,8 +589,9 @@
|
|
|
443
589
|
<tr><td data-label="Source">A RAG service (optional)</td><td data-label="What it finds">Passages your own search finds for the case</td><td data-label="Cost">Your service</td></tr>
|
|
444
590
|
</tbody>
|
|
445
591
|
</table></div>
|
|
446
|
-
<p>Each case is <strong>ready</strong>, <strong>to review</strong>, or <strong>not runnable</strong
|
|
447
|
-
<p
|
|
592
|
+
<p><strong>The result.</strong> Each case is <strong>ready</strong>, <strong>to review</strong>, or <strong>not runnable</strong>. It shows as a card with what it tests (<code>tests PBI 2211 "Contact Us form" ← Feature 300 ← Epic 12</code>) and the acceptance criteria no step seems to cover.</p>
|
|
593
|
+
<p>ForgeQE's agent then judges each case against its requirements: criteria no step covers, steps no requirement asks for, expected results that contradict the requirement, and controls the application does not have. The check before a run uses the rules and page memory only (no reads); a quick check you ask for does the same.</p>
|
|
594
|
+
<p><strong>RAG, plug and play.</strong> Point ForgeQE at any search service over your requirements (Confluence, a wiki, specs), in <strong>Settings › Product knowledge</strong> (Search service) or <code>forgeqe.yaml</code>, and the check adds its passages:</p>
|
|
448
595
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">rag:
|
|
449
596
|
</span></span><span class="ln ln--pair"><span class="cmd"> url: http://localhost:8080/search</span><span class="pad"> </span><span class="cm"><span class="h">#</span> POST {"query": "...", "top_k": 5}; answers a list of {text, source, score}
|
|
450
597
|
</span></span><span class="ln ln--pair"><span class="cmd"> token_env: RAG_TOKEN</span><span class="pad"> </span><span class="cm"><span class="h">#</span> optional, sent as a bearer token
|
|
@@ -456,12 +603,17 @@
|
|
|
456
603
|
</span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> rag:
|
|
457
604
|
</span></span><span class="ln ln--note"><span class="pad"></span><span class="cm"><span class="h">#</span> documents: { folders: [docs/requirements], reasoning: false }
|
|
458
605
|
</span></span></code></pre></div>
|
|
459
|
-
<p>The answer can also be an object with <code>results</code>, <code>passages</code>, <code>documents</code
|
|
460
|
-
<p><
|
|
606
|
+
<p>The answer can also be an object with <code>results</code>, <code>passages</code>, <code>documents</code> or <code>hits</code>, and a passage's text can be <code>text</code>, <code>content</code> or <code>page_content</code> (LangChain's shape). A RAG server with an MCP interface works through <code>mcp:</code> instead: ForgeQE's agent calls its tools.</p>
|
|
607
|
+
<p><strong>What happens before a run.</strong> <code>suite.case_check</code> (<strong>Settings › Reports and memory</strong>, "Before a run, check the cases") decides:</p>
|
|
608
|
+
<ul>
|
|
609
|
+
<li><code>warn</code> (the default) shows the findings and runs every case.</li>
|
|
610
|
+
<li><code>block</code> leaves out the cases that cannot run as written.</li>
|
|
611
|
+
<li><code>off</code> skips the check.</li>
|
|
612
|
+
</ul>
|
|
613
|
+
<p>Ask to run a case and it runs, whatever the check found: ForgeQE's agent reports the findings with the result instead of refusing. A case whose steps have no expected results runs too. It passes when every step can be done, and the check lists it <strong>to review</strong>, since it checks no result the page should show.</p>
|
|
461
614
|
</div>
|
|
462
615
|
</section>
|
|
463
616
|
</div>
|
|
464
|
-
</article>
|
|
465
617
|
<article class="spec feat" id="cap-write-test-cases">
|
|
466
618
|
<div class="hd"><span class="mono">Test cases</span><h3>Write test cases from a story</h3></div>
|
|
467
619
|
<p class="ds">Writes test cases from an understanding of the feature, not only a story's acceptance criteria: it reads the feature and epic above the story, their other stories, linked Confluence pages, the RAG service, product knowledge, the app's pages and flows in page memory, and the area's past defects (from earlier runs and the tracker's bugs), then analyses each criterion before it designs cases. Each case names what it covers, and nothing is saved while a criterion has no case or reason. Saves them in Azure DevOps or Jira, linked to the story. Reads the cases already linked first, so asking again adds only what is missing and updates cases in place instead of duplicating them; plans end-to-end journeys from the existing cases.</p>
|
|
@@ -470,10 +622,10 @@
|
|
|
470
622
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>Azure DevOps or Jira: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
471
623
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>story_test_cases</code> <code>save_test_cases</code> <code>link_test_case</code> <code>apply_case_changes</code> <code>trace_criteria</code> <code>requirements_file</code> <code>e2e_journey</code></p></div>
|
|
472
624
|
</div>
|
|
473
|
-
|
|
474
|
-
<p class="see">See <a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a>.</p>
|
|
475
|
-
</div>
|
|
625
|
+
|
|
476
626
|
</article>
|
|
627
|
+
<div class="feat-detail"><p class="see">See <a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a>.</p>
|
|
628
|
+
</div>
|
|
477
629
|
<article class="spec feat" id="cap-domain-compliance">
|
|
478
630
|
<div class="hd"><span class="mono">Test cases</span><h3>Domain and regulatory test design</h3></div>
|
|
479
631
|
<p class="ds">Every agent works as an expert in the product's industry would, automatically: the risks the industry is known for and the obligations of its regulations and standards (for example DORA, PSD2, GDPR, ISO 27001), declared in forgeqe.yaml or worked out from the story and the application. It applies to analysing requirements, writing and checking test cases, exploration, writing, reviewing, and healing test code, API tests, finding tests, and pull request reviews, labelled so coverage can be traced and citing only the control ids in the team's compliance file. forgeqe eval domain measures how well the agent does it.</p>
|
|
@@ -483,16 +635,25 @@
|
|
|
483
635
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>Designs and checks tests for regulatory obligations; it does not certify compliance or replace an audit.</li><li>Cites control or article ids only from the team's compliance file, never from memory.</li></ul></div>
|
|
484
636
|
<div class="fact"><span class="mono">Tools</span><p class="tools"></p></div>
|
|
485
637
|
</div>
|
|
486
|
-
|
|
487
|
-
|
|
638
|
+
|
|
639
|
+
</article>
|
|
640
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-16-domain-and-regulations">
|
|
488
641
|
<h4>Domain and regulations</h4>
|
|
489
|
-
<div class="prose"><p>ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job
|
|
642
|
+
<div class="prose"><p>ForgeQE's agents already know the common industries and regulations: banking, insurance, lending, retail; DORA, PSD2, GDPR, ISO 27001, SOX, IDD, and more. Every agent applies that knowledge to its own job: analysing requirements, writing and checking test cases, planning exploration, writing test code (Quill), reviewing it, healing it, writing and planning API tests, finding tests, and reviewing pull requests. Without a declaration, each works out the industry and regulations from the story, the product knowledge, and the application, and says what it assumed. Declaring yours removes the guesswork.</p>
|
|
643
|
+
<p><strong>Declaring your domain.</strong></p>
|
|
644
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
645
|
+
<ol>
|
|
646
|
+
<li>Open <strong>Settings › Product knowledge</strong> (under <strong>Connections</strong>).</li>
|
|
647
|
+
<li>Under <strong>The product</strong>, fill in <strong>Industry</strong>, <strong>Regulations</strong> (comma separated) and <strong>Notes</strong>.</li>
|
|
648
|
+
</ol>
|
|
649
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
650
|
+
<p>Add <code>domain:</code> to <code>forgeqe.yaml</code>:</p>
|
|
490
651
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">domain:
|
|
491
652
|
</span></span><span class="ln"><span class="cmd"> industry: retail banking
|
|
492
653
|
</span></span><span class="ln"><span class="cmd"> regulations: [DORA, PSD2, GDPR, ISO 27001]
|
|
493
654
|
</span></span><span class="ln"><span class="cmd"> notes: Payments to UK and EU accounts; customers are consumers and small businesses.
|
|
494
655
|
</span></span></code></pre></div>
|
|
495
|
-
|
|
656
|
+
</div></div><p><strong>What the agents do with it.</strong> They add the risks the industry is known for (duplicate submissions, limits, cut-off times, effective dates, recalculated premiums) and the obligations of each regulation a feature touches (audit trail, segregation of duties, data protection, incident logging, resilience), and label each test case, charter, test, or finding with what it covers, for example <code>Domain: duplicate payment</code> or <code>GDPR: right to erasure</code>.</p>
|
|
496
657
|
<div class="tbl tbl--cols-2"><table>
|
|
497
658
|
<thead>
|
|
498
659
|
<tr><th>Agent</th><th>What it does with the domain</th></tr>
|
|
@@ -508,18 +669,25 @@
|
|
|
508
669
|
<tr><td data-label="Agent">Pull request review</td><td data-label="What it does with the domain">A change that weakens a domain safeguard or an obligation is at least a major finding</td></tr>
|
|
509
670
|
</tbody>
|
|
510
671
|
</table></div>
|
|
511
|
-
<p>Every agent
|
|
512
|
-
<p>Which requirements apply to your product, and the ids your auditors use, are your organisation's decision: list them in <code>.forgeqe/knowledge/compliance.md</code> (<code>forgeqe init</code> adds a template), with what is out of scope. Agents cite a control, article, or clause id only when it is listed there, and name the obligation in words otherwise, so nothing in a test traces to an id recalled from memory. ForgeQE designs and checks tests for these obligations; it does not certify compliance or replace an audit.</p>
|
|
672
|
+
<p>Every agent gets the domain in its instructions from one place. The rule itself is <code>domain-rule.md</code> in <code>.forgeqe/prompts/</code>, included in every agent that analyses requirements or designs, writes, reviews, or heals tests.</p>
|
|
673
|
+
<p><strong>Your compliance list.</strong> Which requirements apply to your product, and the ids your auditors use, are your organisation's decision: list them in <code>.forgeqe/knowledge/compliance.md</code> (<code>forgeqe init</code> adds a template), with what is out of scope. Agents cite a control, article, or clause id only when it is listed there, and name the obligation in words otherwise, so nothing in a test traces to an id recalled from memory. ForgeQE designs and checks tests for these obligations; it does not certify compliance or replace an audit.</p>
|
|
513
674
|
</div>
|
|
514
|
-
<section class="doc sub" id="doc-how_to_use-evaluating-the-agents-domain-knowledge"><h5>Evaluating the agent's domain knowledge</h5><div class="prose"><p
|
|
675
|
+
<section class="doc sub" id="doc-how_to_use-evaluating-the-agents-domain-knowledge"><h5>Evaluating the agent's domain knowledge</h5><div class="prose"><p>The domain check measures whether the agent applies all this, with your model. Each evaluation case is a realistic story whose acceptance criteria leave the industry's risks and the regulations' obligations unstated, with what a domain expert expects its test cases to check. ForgeQE's own agent writes test cases for each story twice, with the domain declared (and a compliance file) and without, and a separate read-only judge decides, expectation by expectation, whether a test case actually checks it, and lists every id the cases cite.</p>
|
|
676
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
677
|
+
<ol>
|
|
678
|
+
<li>Open <strong>Settings › Product knowledge</strong>.</li>
|
|
679
|
+
<li>Under <strong>Check the agent's domain knowledge</strong>, pick one case, or keep all of them.</li>
|
|
680
|
+
<li>Press <strong>Run</strong>. It asks first, since each case is a model session with the domain and one without, plus a judge; it takes a few minutes and costs tokens.</li>
|
|
681
|
+
</ol>
|
|
682
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
515
683
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe eval domain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the bundled cases: banking, insurance, access control, data protection, lending
|
|
516
684
|
</span></span><span class="ln"><span class="cmd">forgeqe eval domain --only banking-payment-transfer --repeat 3
|
|
517
685
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --cases ./evals/our-domain</span><span class="pad"> </span><span class="cm"><span class="h">#</span> your own cases
|
|
518
686
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --judge-profile judge</span><span class="pad"> </span><span class="cm"><span class="h">#</span> judge with another llms.json profile
|
|
519
687
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe eval domain --variant declared --min 0.8</span><span class="pad"> </span><span class="cm"><span class="h">#</span> exit 1 under 80% coverage, or on any invented id: a CI gate
|
|
520
688
|
</span></span></code></pre></div>
|
|
521
|
-
|
|
522
|
-
<p>A case is a YAML file:</p>
|
|
689
|
+
</div></div><p><strong>The report</strong> (<code>.forgeqe/reports/evals/domain/<time>/report.md</code> and <code>report.json</code>) shows coverage of the story's own expectations, the industry's, and the regulations', for each variant, the expectations each run missed with the judge's reason, and any invented ids (cited, but not in the compliance file). The gap between the two variants is what declaring the domain adds; the declared coverage is what you can rely on. Model answers vary, so use <code>--repeat</code> before drawing conclusions from one case.</p>
|
|
690
|
+
<p><strong>Your own cases.</strong> A case is a YAML file:</p>
|
|
523
691
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id: banking-payment-transfer
|
|
524
692
|
</span></span><span class="ln"><span class="cmd">title: Send money to a saved beneficiary
|
|
525
693
|
</span></span><span class="ln"><span class="cmd">domain: { industry: retail banking, regulations: [PSD2, DORA, GDPR] }
|
|
@@ -538,7 +706,6 @@
|
|
|
538
706
|
</div></section>
|
|
539
707
|
</section>
|
|
540
708
|
</div>
|
|
541
|
-
</article>
|
|
542
709
|
<article class="spec feat" id="cap-exploratory-testing">
|
|
543
710
|
<div class="hd"><span class="mono">Test cases</span><h3>Exploratory testing of a story</h3></div>
|
|
544
711
|
<p class="ds">Explores a story in real browsers beyond its scripted cases (edge cases, invalid input, boundaries, roles, state), confirms each defect by reproducing it, proposes test cases, and files bugs once the user agrees.</p>
|
|
@@ -547,32 +714,52 @@
|
|
|
547
714
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li><li><span class="need opt">Optional</span><span>Azure DevOps or Jira, to read the story and file bugs: set up under sources: in forgeqe.yaml, or sign in with /auth</span></li></ul></div>
|
|
548
715
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>explore_story</code></p></div>
|
|
549
716
|
</div>
|
|
550
|
-
|
|
551
|
-
|
|
717
|
+
|
|
718
|
+
</article>
|
|
719
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-exploratory-testing-from-a-story">
|
|
552
720
|
<h4>Exploratory testing from a story</h4>
|
|
553
|
-
<div class="prose"><p
|
|
721
|
+
<div class="prose"><p>Exploratory testing tests a story's feature beyond its scripted test cases, in real browsers. A session works in seven steps:</p>
|
|
554
722
|
<ol>
|
|
555
723
|
<li><strong>Reads the story:</strong> description and acceptance criteria, the feature and epic above it, the test cases that already script it (Azure DevOps "Tested By", Jira test links), and passages from the requirements search when one is set up. A Jira key, a link, or the story's text with its acceptance criteria works too.</li>
|
|
556
|
-
<li><strong>Plans charters</strong> (6 by default,
|
|
557
|
-
<
|
|
558
|
-
<li
|
|
559
|
-
<li
|
|
560
|
-
<li
|
|
561
|
-
|
|
724
|
+
<li><strong>Plans charters</strong> (6 by default, at most 12). Each has a mission, concrete steps and data, and an expected result per step. Charters cover other paths and valid data, edge cases (empty, long, special characters, duplicates), invalid input, the boundaries the story states, <strong>role differences</strong>, state (refresh, back, double submit, a second tab, an expired session), and what must not happen.
|
|
725
|
+
<ul>
|
|
726
|
+
<li>Expected results come from the acceptance criteria. Where the story says nothing, they come from what a well-behaved application does, and the charter says so.</li>
|
|
727
|
+
<li>Nothing irreversible beyond test data is planned, and charters that create or change data are marked.</li>
|
|
728
|
+
<li>You see the charters and choose to run them all, only those that change no data, or none.</li>
|
|
729
|
+
</ul>
|
|
730
|
+
</li>
|
|
731
|
+
<li><strong>Explores:</strong> each charter is a browser run. The browser agent judges each expected result on the page and lists anything else that looks wrong. <strong>Roles</strong> are your saved logins (<code>logins:</code> in <code>forgeqe.yaml</code>); by default every one is used when there are two or more. A role's charter signs in with only that role's login on the site.</li>
|
|
732
|
+
<li><strong>Confirms:</strong> a charter that finds a functional defect runs a second time. It counts as a <strong>confirmed defect</strong> only when it fails the same way again. The failure classification decides what is a defect: an environment problem (run once more), a test that could not be done, or a charter that does not fit the application is reported as "could not explore", not as a defect.</li>
|
|
733
|
+
<li><strong>Reports</strong> in <code>.forgeqe/reports/explore/<id>/exploration.md</code> (and <code>.json</code>): each charter's result, the confirmed defects with both runs' evidence, and <strong>observations</strong>. Observations are defects that did not reproduce, browser errors (failed requests, console errors), and what the agent noticed beyond the steps. They are never filed as bugs.</li>
|
|
734
|
+
<li><strong>Bugs for confirmed defects only,</strong> through the bug tracker set up under <code>bugs:</code> (Jira or Azure DevOps), after you agree. A bug filed before for the same charter gets a comment instead of a duplicate.</li>
|
|
735
|
+
<li><strong>Proposed test cases:</strong> the charters that ran clean become regression cases, and each confirmed defect becomes a case that checks the correct behaviour (it fails until the defect is fixed). The agent offers to save the ones you pick to the story.</li>
|
|
736
|
+
</ol>
|
|
737
|
+
<p><strong>Cost and limits.</strong> Each charter is a browser run (two for a possible defect), so a session takes several minutes and costs about as much as running that many test cases. A session can have a time limit: at it, the running charter stops, the rest are marked stopped, and what ran is saved.</p>
|
|
738
|
+
<p><strong>Running a session.</strong></p>
|
|
739
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
740
|
+
<ol>
|
|
741
|
+
<li>Open <strong>Exploratory</strong> (Quality Engineering › Test design).</li>
|
|
742
|
+
<li>Under <strong>New session</strong>, write the <strong>Goal</strong>: what to try to break, or what to look for.</li>
|
|
743
|
+
<li>Pick where to <strong>Start at</strong> (an app of the active environment, or <strong>Another address…</strong> and its <strong>Address</strong>), and optionally a <strong>Story</strong> (<code>ado:1234</code> or <code>SHOP-12</code>).</li>
|
|
744
|
+
<li>Pick <strong>Charters, at most</strong> and the <strong>Time limit</strong>. With two or more saved logins, pick the <strong>Roles</strong> to explore as (none picked: each of them).</li>
|
|
745
|
+
<li>Press <strong>Explore</strong>, then <strong>Start</strong>.</li>
|
|
746
|
+
<li>When the charters are planned, choose which ones run. At the end, answer whether to file bugs.</li>
|
|
562
747
|
</ol>
|
|
748
|
+
<p>The page always asks for a goal, a cap on the charters and a time limit. <strong>Stop</strong> ends a session; what ran is kept. Each session's charters, <strong>Defects</strong> and <strong>Proposed test cases</strong> stay on the page.</p>
|
|
749
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
563
750
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">forgeqe explore ado:1234 --url https://staging.shop.example/orders
|
|
564
751
|
</span></span><span class="ln"><span class="cmd">forgeqe explore SHOP-12 --charters 8 --roles shop_admin,shop_viewer --focus "the address form"
|
|
752
|
+
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe explore SHOP-12 --max-minutes 30</span><span class="pad"> </span><span class="cm"><span class="h">#</span> a time limit
|
|
565
753
|
</span></span><span class="ln"><span class="cmd">forgeqe explore "Change the delivery address
|
|
566
754
|
</span></span><span class="ln"><span class="cmd">Customers can change the address of an open order.
|
|
567
755
|
</span></span><span class="ln"><span class="cmd">Acceptance criteria:
|
|
568
756
|
</span></span><span class="ln"><span class="cmd">- Postcode is required and validated" --url https://staging.shop.example
|
|
569
757
|
</span></span></code></pre></div>
|
|
570
|
-
<p>
|
|
571
|
-
|
|
758
|
+
<p><code>forgeqe explore</code> exits 1 when a defect is confirmed. <code>--file-bugs</code> files bugs where nobody can be asked. In the shell, say "explore story 1234".</p>
|
|
759
|
+
</div></div><p><strong>On a schedule.</strong> A job can run a session on a schedule, and it must have both a goal and a time limit: <code>forgeqe jobs add nightly-explore --cron "0 2 * * 1-5" -- explore --url URL --max-minutes 30 -- "Try to break checkout"</code>.</p>
|
|
572
760
|
</div>
|
|
573
761
|
</section>
|
|
574
762
|
</div>
|
|
575
|
-
</article>
|
|
576
763
|
<article class="spec feat" id="cap-business-personas">
|
|
577
764
|
<div class="hd"><span class="mono">Test cases</span><h3>Business personas for testing</h3></div>
|
|
578
765
|
<p class="ds">Personas that test the software the way the business would: a subject matter expert (a payments SME who checks refunds, settlement cut-offs and currency rounding), an end user, a specialist (compliance) or a business user (an operations manager with approval limits). Mask drafts a new one from your words; any agent then acts as it in a browser run, designs test cases from what it validates, or reviews a feature through its eyes. Kept in the project for every agent.</p>
|
|
@@ -582,29 +769,68 @@
|
|
|
582
769
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>A persona is a description for agents to act on, not a real user: its checks come from its validates list and the domain the model knows</li><li>Saved only after you agree, as .forgeqe/business-personas/<id>.yaml; a persona never changes what an agent may do</li></ul></div>
|
|
583
770
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>business_persona</code></p></div>
|
|
584
771
|
</div>
|
|
585
|
-
|
|
586
|
-
|
|
772
|
+
|
|
773
|
+
</article>
|
|
774
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-business-personas">
|
|
587
775
|
<h4>Business personas</h4>
|
|
588
|
-
<div class="prose"><p>A <strong>business persona</strong> is a person who validates the software the way the business does
|
|
776
|
+
<div class="prose"><p>A <strong>business persona</strong> is a person who validates the software the way the business does:</p>
|
|
589
777
|
<ul>
|
|
590
|
-
<li
|
|
778
|
+
<li>a <strong>subject matter expert</strong>: a payments SME who checks refunds, settlement cut-offs and currency rounding;</li>
|
|
779
|
+
<li>an <strong>end user</strong>: an everyday customer, a first-time user;</li>
|
|
780
|
+
<li>a <strong>specialist</strong>: a KYC and AML compliance reviewer;</li>
|
|
781
|
+
<li>a <strong>business user</strong>: an operations manager with approval limits.</li>
|
|
782
|
+
</ul>
|
|
783
|
+
<p>Each persona says who the person is, what they want, what they know, and above all <strong>what they check before they accept the software</strong> (<code>validates</code>).</p>
|
|
784
|
+
<p><strong>Who uses personas.</strong></p>
|
|
785
|
+
<ul>
|
|
786
|
+
<li><strong>Atlas</strong> makes personas too ("create a persona of an SME in payments"), with Mask. It acts as a persona in a browser run (the persona's brief goes at the start of the goal), designs test cases from what it validates, or reviews a feature through its eyes: "test the refund flow as a payments SME", "write test cases for checkout as a first-time user".</li>
|
|
591
787
|
<li><strong>Other agents</strong> (<code>forgeqe mcp</code> clients such as Claude Code or Copilot, and custom agents) call the <code>business_persona</code> tool: <code>op: list</code>, <code>op: get</code> (the persona and its brief), or <code>op: create</code>.</li>
|
|
592
|
-
<li><strong>A person</strong
|
|
788
|
+
<li><strong>A person</strong>, in the web app or at a terminal.</li>
|
|
789
|
+
</ul>
|
|
790
|
+
<p><strong>Built in:</strong> <code>payments-sme</code> (<code>/priya</code>), <code>retail-customer</code> (<code>/sam</code>), <code>compliance-specialist</code> (<code>/dana</code>), <code>operations-manager</code> (<code>/lee</code>), <code>first-time-user</code> (<code>/alex</code>), and three risk-oriented personas for testing misuse on a test environment:</p>
|
|
791
|
+
<ul>
|
|
792
|
+
<li><code>incentive-exploiter</code> (<code>/max</code>), an opportunistic deal hunter;</li>
|
|
793
|
+
<li><code>insider-agent</code> (<code>/rory</code>), a customer service agent who misuses refund and credit rights;</li>
|
|
794
|
+
<li><code>partner-merchant</code> (<code>/morgan</code>), a marketplace merchant watching payout timing.</li>
|
|
593
795
|
</ul>
|
|
796
|
+
<p><a href="#doc-how_to_use-basal-business-testing">BASAL</a> casts its own personas for each business test.</p>
|
|
797
|
+
<p><strong>What else a persona can say:</strong> <strong>why they act</strong> (<code>intent</code>: <code>legitimate</code>, <code>opportunistic</code> or <code>adversarial</code>, with a <code>risk_appetite</code>), what drives them (<code>motivations</code>), what their role lets them do in the app (<code>permissions</code>), the limits they work within (<code>constraints</code>), the mistakes they plausibly make (<code>mistakes</code>) and who they deal with (<code>relationships</code>, by persona id). Each saved change raises its <code>version</code>.</p>
|
|
798
|
+
<p><strong>Making a persona.</strong> Mask drafts a new persona from your words. It answers in a fixed shape, and ForgeQE keeps only the persona's fields, checked. A draft is shown first and saved only when you agree. It needs a live model; without one, write the persona yourself.</p>
|
|
799
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
800
|
+
<ol>
|
|
801
|
+
<li>Open Mask's page (<strong>All agents</strong> › Mask). It has three pages, linked at the top right of each: <strong>Agent</strong>, <strong>Personas</strong> and <strong>Tools and runs</strong>.</li>
|
|
802
|
+
<li>On <strong>Agent</strong>, describe a person in your words ("a compliance officer who reviews every refund over 10,000 EUR"). The agent turns them into a persona in the conversation, shows it, and asks before saving it.</li>
|
|
803
|
+
<li>Or, on <strong>Personas</strong>, press <strong>New persona</strong>: Mask drafts one from your words (or write it yourself), you change any field, and <strong>Save</strong> keeps it.</li>
|
|
804
|
+
</ol>
|
|
805
|
+
<p>On <strong>Personas</strong>, every persona is listed by kind. Open one to read what it checks in a side panel, with <strong>Edit</strong> for your own and <strong>Copy to edit</strong> for a built-in one.</p>
|
|
806
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
594
807
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe persona</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the personas: built in, and the project's
|
|
595
808
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe persona show payments-sme</span><span class="pad"> </span><span class="cm"><span class="h">#</span> one persona and the brief agents act on
|
|
596
809
|
</span></span><span class="ln"><span class="cmd">forgeqe persona create "an SME in card payments who reconciles settlements" --domain payments --kind sme [--save]
|
|
597
810
|
</span></span></code></pre></div>
|
|
598
|
-
<p
|
|
599
|
-
|
|
600
|
-
<
|
|
811
|
+
<p><code>--save</code> asks before it saves.</p>
|
|
812
|
+
</div></div><p><strong>Every persona is a command in every agent's chat.</strong> Start a message with it and the task (<code>/priya Validate the payment change</code>), or name personas anywhere in the words (<code>check @steps.json as /sam and /priya</code>), up to four in one message. A word that names no persona, such as <code>/tmp</code>, stays as it is.</p>
|
|
813
|
+
<ul>
|
|
814
|
+
<li><strong>Where it works:</strong> the terminal shell (typing <code>/</code> suggests the personas with the shell's commands), <code>forgeqe run "/priya …"</code>, every chat box of the web app (typing <code>/</code> at the start offers the personas) and a custom agent's chat.</li>
|
|
815
|
+
<li><strong>What it does:</strong> ForgeQE turns the command into the persona's brief, quoted as data, and your task after it. The agent acts as that person, puts the brief at the start of its browser runs, and judges the app by what they check.</li>
|
|
816
|
+
<li><strong>The command</strong> is the persona's <code>handle</code> (its id when it has none): a word of lower-case letters, digits and dashes that is never one of the shell's own commands or another persona's.</li>
|
|
817
|
+
</ul>
|
|
818
|
+
<p><strong>Sharing personas.</strong> The file is JSON of the personas' fields. An import is checked as strictly as a persona file. The whole file is refused when any persona in it is refused, and a persona whose id or command this project already has is skipped and listed, never replaced.</p>
|
|
819
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
820
|
+
<ol>
|
|
821
|
+
<li>Open Mask's page, <strong>Personas</strong>.</li>
|
|
822
|
+
<li>Press <strong>Export</strong> to save your own personas as a file, or <strong>Import</strong> to add another project's.</li>
|
|
823
|
+
</ol>
|
|
824
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
601
825
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe persona export --out personas.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> your own personas, as a file to share
|
|
602
826
|
</span></span><span class="ln ln--pair"><span class="cmd">forgeqe persona import personas.json</span><span class="pad"> </span><span class="cm"><span class="h">#</span> another project's: new ones only, never replacing one here
|
|
603
827
|
</span></span></code></pre></div>
|
|
604
|
-
|
|
605
|
-
<
|
|
606
|
-
<
|
|
607
|
-
<
|
|
828
|
+
</div></div><p><strong>A persona's own skills and knowledge</strong> are used only when an agent works as that persona (its command in a chat), never by other agents. They are kept in <code>.forgeqe/business-personas/<id>/skills/<name>/SKILL.md</code> and <code>.forgeqe/business-personas/<id>/knowledge/<name>.md</code>, a folder the skills list and the document search do not read.</p>
|
|
829
|
+
<ul>
|
|
830
|
+
<li>Mask drafts a skill and a knowledge note from the persona right after you save a new persona or a copy, and on <strong>Generate skill and knowledge</strong> in any persona's panel (a built-in one too).</li>
|
|
831
|
+
<li>You review and change them, and nothing is saved until you press <strong>Save</strong>. Edit or remove them in the panel.</li>
|
|
832
|
+
<li>A persona can also use the project's shared skills and documents, picked in <strong>Edit</strong>, with suggestions that match its domain.</li>
|
|
833
|
+
</ul>
|
|
608
834
|
<p><strong>Your own personas</strong> are <code>.forgeqe/business-personas/<id>.yaml</code>, shared with everyone who uses the repository. Saving one also writes its profile as <code><id>.md</code> beside it, made from its fields, for people and agents that read the project's documents. The YAML is the persona; the <code>.md</code> is written again whenever the persona is saved:</p>
|
|
609
835
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln"><span class="cmd">id: merchant-onboarding-sme
|
|
610
836
|
</span></span><span class="ln ln--pair"><span class="cmd">handle: omar</span><span class="pad"> </span><span class="cm"><span class="h">#</span> its command in any agent's chat: /omar Validate the merchant onboarding change
|
|
@@ -627,35 +853,44 @@
|
|
|
627
853
|
</span></span><span class="ln"><span class="cmd">scenarios:
|
|
628
854
|
</span></span><span class="ln"><span class="cmd"> - Onboard a merchant and take its first test payment
|
|
629
855
|
</span></span></code></pre></div>
|
|
630
|
-
<p>A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each choice from its list, no YAML aliases, every text one line and clipped, at most 12 items in a list, a regular file only (no link)
|
|
856
|
+
<p><strong>Read strictly.</strong> A persona file can come from the repository, so ForgeQE reads it strictly: only these keys, each choice from its list, no YAML aliases, every text one line and clipped, at most 12 items in a list, a regular file only (no link). A text that reads as an instruction to an agent ("ignore the rules", "run this command") is refused. A persona only describes a person: it never changes what an agent may do.</p>
|
|
857
|
+
<p>These personas are separate from the accessibility personas (<code>.forgeqe/personas</code>), which set how the browser perceives the page.</p>
|
|
631
858
|
</div>
|
|
632
859
|
</section>
|
|
633
860
|
</div>
|
|
634
|
-
</article>
|
|
635
861
|
<article class="spec feat" id="cap-basal">
|
|
636
862
|
<div class="hd"><span class="mono">Test cases</span><h3>BASAL: business testing that acts</h3></div>
|
|
637
|
-
<p class="ds">BASAL turns a business question (should we launch saved cards with a fee? are prices the same from list to cart before the sale?) into a test that ForgeQE's own agents play as the people it affects. It reads the question's brief and data with the product knowledge graph (
|
|
863
|
+
<p class="ds">BASAL turns a business question (should we launch saved cards with a fee? are prices the same from list to cart before the sale?) into a test that ForgeQE's own agents play as the people it affects. It reads the question's brief and data with the product knowledge graph (searched by meaning) into a scenario: the decision, stakeholders, success criteria and facts, observed or inferred; writes a test strategy whose steps are on browser, API, mobile, desktop or a person; casts a persona for each stakeholder; rehearses their reactions on a feed; and, once a person approves, hands each step to WebPilot, the API workbench, the mobile or desktop agent as that persona on a test environment. Code judges each scenario from what the agents observed: confirmed failure, policy ambiguity, potential risk, missing evidence or expected behaviour.</p>
|
|
638
864
|
<div class="facts">
|
|
639
865
|
<div class="fact"><span class="mono">Ask it</span><ul class="asks"><li>Should we launch saved cards with a fee? Test how merchants, shoppers and support would really be affected</li><li>Before our weekend sale, test that prices stay the same from list to cart</li><li>Test our refunds and coupons the way an opportunistic customer would</li></ul></div>
|
|
640
866
|
<div class="fact"><span class="mono">What it needs</span><ul class="needs"><li><span class="need req">Required</span><span>A live model profile in llms.json (an API key or Microsoft Entra ID sign-in)</span></li></ul></div>
|
|
641
867
|
<div class="fact"><span class="mono">Limits</span><ul class="plainlist"><li>It knows the product from the knowledge graph (forgeqe knowledge build) and the files you give it: what neither shows, it does not know</li><li>A person approves every strategy before anything runs; steps that change data run only after you agree, and only on a test environment of env.yaml</li><li>A rehearsal's posts are the personas' opinions, never evidence; a verdict comes only from what the agents observed</li></ul></div>
|
|
642
868
|
<div class="fact"><span class="mono">Tools</span><p class="tools"><code>basal</code></p></div>
|
|
643
869
|
</div>
|
|
644
|
-
|
|
645
|
-
|
|
870
|
+
|
|
871
|
+
</article>
|
|
872
|
+
<div class="feat-detail"><section class="doc" data-topic id="doc-how_to_use-basal-business-testing">
|
|
646
873
|
<h4>BASAL: business testing</h4>
|
|
647
|
-
<div class="prose"><p><strong>BASAL</strong> tests a business decision the way real people meet it. Ask a business question with its brief ("Should we launch saved cards as Option A or B? Test how merchants, shoppers and support would really be affected"), and BASAL works it through eight steps
|
|
874
|
+
<div class="prose"><p><strong>BASAL</strong> tests a business decision the way real people meet it. Ask a business question with its brief ("Should we launch saved cards as Option A or B? Test how merchants, shoppers and support would really be affected"), and BASAL works it through eight steps:</p>
|
|
648
875
|
<ol>
|
|
649
|
-
<li><strong>Ask</strong>: the question, the files it rests on (a brief, survey data, policy extracts) and work items.
|
|
650
|
-
<li><strong>Understand</strong>: the decision, its options, the stakeholders, the success criteria and the facts, read from the sources and the product knowledge graph (found by meaning
|
|
651
|
-
<li><strong>Strategy</strong>: scenarios that decide the question
|
|
876
|
+
<li><strong>Ask</strong>: the question, the files it rests on (a brief, survey data, policy extracts) and work items. In the web app you give the question; files and work items are added at a terminal (<code>--file</code>, <code>--story</code>).</li>
|
|
877
|
+
<li><strong>Understand</strong>: the decision, its options, the stakeholders, the success criteria and the facts, read from the sources and the product knowledge graph (found by meaning). An item is <strong>observed</strong> only when its quote is in the source it names; otherwise it is <strong>inferred</strong>.</li>
|
|
878
|
+
<li><strong>Strategy</strong>: scenarios that decide the question. Each step is played by a stakeholder on a channel ForgeQE's agents play (browser, API, mobile, desktop, a person, or opinion only), with the business expectations that judge it. Only stakeholders, apps, saved API calls and test environments the project has are kept. An expectation is <strong>policy</strong> only when it rests on an observed success criterion.</li>
|
|
652
879
|
<li><strong>Cast</strong>: one persona per stakeholder who acts: what they check, what they object to, the mistakes they bring.</li>
|
|
653
|
-
<li><strong>Rehearse</strong>: the cast react on a feed (post, comment, share, like) to the decision, to each other, and to what the agents saw on the product
|
|
654
|
-
<li><strong>Approve</strong>: nothing runs until a person approves the strategy
|
|
655
|
-
<li><strong>Act</strong>: each step goes to WebPilot, the API workbench, the mobile or desktop agent as its persona, on a test environment
|
|
880
|
+
<li><strong>Rehearse</strong>: the cast react on a feed (post, comment, share, like) to the decision, to each other, and to what the agents saw on the product. What they want tried picks what to play next. Their posts are opinions, never evidence.</li>
|
|
881
|
+
<li><strong>Approve</strong>: nothing runs until a person approves the strategy, with the test's id typed. An agent never approves.</li>
|
|
882
|
+
<li><strong>Act</strong>: each step goes to WebPilot, the API workbench, or the mobile or desktop agent, as its persona, on a test environment. A journey of one persona in one app is one handover. Steps that change data run only when you agree to the list shown. The operations board shows each handover as it happens.</li>
|
|
656
883
|
<li><strong>Judge</strong>: code judges each scenario from what was observed: <strong>confirmed failure</strong>, <strong>policy ambiguity</strong>, <strong>potential risk</strong>, <strong>missing evidence</strong> or <strong>expected behaviour</strong>. A step only a person can see waits for you. "Next round" sends the outcomes back to the cast.</li>
|
|
657
884
|
</ol>
|
|
658
|
-
<p>
|
|
885
|
+
<p><strong>Running a business test.</strong></p>
|
|
886
|
+
<div class="views" data-views><div class="view-tabs" role="tablist" aria-label="Show the steps for" hidden><button type="button" role="tab" class="view-tab" data-view="web" aria-selected="true">Web app</button><button type="button" role="tab" class="view-tab" data-view="terminal" aria-selected="false">Terminal</button></div><div class="view-panel" role="tabpanel" data-view="web"><p class="view-label"><strong>Web app</strong></p>
|
|
887
|
+
<ol>
|
|
888
|
+
<li>Open <strong>BASAL</strong> (Quality Engineering › Test design).</li>
|
|
889
|
+
<li>On <strong>Agent</strong>, write your business question and press <strong>Start</strong>.</li>
|
|
890
|
+
<li>On <strong>Tests</strong>, open the test and work through its steps, each a page of its own beside the live knowledge graph. <strong>Approve</strong> it when the strategy is right.</li>
|
|
891
|
+
</ol>
|
|
892
|
+
<p>The <strong>Personas</strong> tab shows who each test was cast with, and <strong>Findings</strong> shows every scenario's latest verdict, the ones that need attention first. You can also ask Atlas in any chat ("test whether we should launch saved cards with a fee, here is the brief"): it starts the test and works through the steps, but never approves. It tells you where to approve, and acts only after you have.</p>
|
|
893
|
+
</div><div class="view-panel" role="tabpanel" data-view="terminal"><p class="view-label"><strong>Terminal</strong></p>
|
|
659
894
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>bash</span><button class="copy-code" type="button">Copy</button></div><pre class="lines"><code><span class="ln ln--pair"><span class="cmd">forgeqe basal</span><span class="pad"> </span><span class="cm"><span class="h">#</span> the business tests here (same as: forgeqe basal list)
|
|
660
895
|
</span></span><span class="ln"><span class="cmd">forgeqe basal new "Should we launch saved cards with a fee?" --file briefs/brief.md --file briefs/survey.csv [--story ID] [--env qa]
|
|
661
896
|
</span></span><span class="ln"><span class="cmd">forgeqe basal understand <id>
|
|
@@ -669,19 +904,17 @@
|
|
|
669
904
|
</span></span><span class="ln"><span class="cmd">forgeqe basal observe <id> <scenario> --step 3 --accepted|--refused [--values name=value] [--note TEXT]
|
|
670
905
|
</span></span></code></pre></div>
|
|
671
906
|
<p><code>act</code> lists the steps that change data and runs them only when you type <code>yes</code>; <code>--yes-writes</code> agrees in advance.</p>
|
|
672
|
-
|
|
673
|
-
<p>BASAL needs a model, and is best with the graph store (<code>forgeqe graph setup</code>: Neo4j, after you agree) and an embedding model (<code>graph.embedding</code>). Its files are in <code>.forgeqe/basal/tests/<id>/</code>. BASAL replaced the Business assurance agent: <code>forgeqe business</code> now only says where BASAL is, and tests kept in <code>.forgeqe/business</code> are not read.</p>
|
|
907
|
+
</div></div><p><strong>What BASAL needs.</strong> A model, and it is best with the graph store (<code>forgeqe graph setup</code>, after you agree) and an embedding model (<code>graph.embedding</code>). Its files are in <code>.forgeqe/basal/tests/<id>/</code>. BASAL replaced the Business assurance agent: <code>forgeqe business</code> now only says where BASAL is, and tests kept in <code>.forgeqe/business</code> are not read.</p>
|
|
674
908
|
</div>
|
|
675
909
|
</section>
|
|
676
910
|
</div>
|
|
677
|
-
</article>
|
|
678
911
|
|
|
679
912
|
<nav class="pager" aria-label="Previous and next">
|
|
680
913
|
<a class="prev" href="../area-browser/index.html"><small>Previous</small><span>Browser testing</span></a>
|
|
681
914
|
<a class="next" href="../area-automated-tests/index.html"><small>Next</small><span>Automated tests</span></a>
|
|
682
915
|
</nav>
|
|
683
916
|
</main>
|
|
684
|
-
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-run-test-cases">Run manual test cases in browsers</a></li><li><a href="#doc-how_to_use-
|
|
917
|
+
<aside class="docs-toc" aria-label="On this page"><p class="side-head">On this page</p><ul><li><a href="#cap-run-test-cases">Run manual test cases in browsers</a></li><li><a href="#doc-how_to_use-where-cases-come-from">Where cases come from</a></li><li><a href="#doc-how_to_use-running">Running</a></li><li><a href="#doc-how_to_use-results-back-in-the-source">Results back in the source</a></li><li><a href="#doc-how_to_use-bugs-for-failures">Bugs for failures</a></li><li><a href="#cap-test-case-quality">Check and improve test cases</a></li><li><a href="#cap-write-test-cases">Write test cases from a story</a></li><li><a href="#cap-domain-compliance">Domain and regulatory test design</a></li><li><a href="#cap-exploratory-testing">Exploratory testing of a story</a></li><li><a href="#cap-business-personas">Business personas for testing</a></li><li><a href="#cap-basal">BASAL: business testing that acts</a></li></ul></aside>
|
|
685
918
|
</div>
|
|
686
919
|
<footer class="foot">
|
|
687
920
|
<div class="container foot__row">
|